oracle tablespace tables list code example
Example 1: oracle list tables
SELECT * FROM USER_TABLES; ' Tables from your schema
SELECT * FROM ALL_TABLES; ' Tables from schemas you can access
SELECT * FROM DBA_TABLES; ' All Tables
Example 2: oracle tablespace tables list
SELECT e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME, sum(e.bytes) / 1048576 AS Megs
FROM dba_extents e
WHERE
e.OWNER = 'MY_USER' AND
e.TABLESPACE_NAME = 'MY_TABLESPACE'
GROUP BY e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME
ORDER BY e.TABLESPACE_NAME, e.SEGMENT_NAME;
Example 3: Tablespace ORACLE
CREATE TABLE TB_NOME_TABELA
(
CODIGO NUMBER(38)
)TABLESPACE TBS_NOME_TABLESPACE;
Example 4: Tablespace ORACLE
CREATE TABLESPACE
TBS_NOME_TABLESPACE
DATAFILE 'NOME_DATAFILE.dbf' SIZE 40M ONLINE;