create user 用戶名 identified by 密碼 default tablespace 默認表空間 temporary tablespace 臨時表空間;oracle
select tablespace_name, sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;ide
select a.tablespace_name, total, free, total-free as used from
(select tablespace_name, sum(bytes)/1024/1024 as total from dba_data_files group by tablespace_name) a,
(select tablespace_name, sum(bytes)/1024/1024 as free from dba_free_space group by tablespace_name) b
where a.tablespace_name = b.tablespace_name;spa
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name
alter database datafile '/oracle/oradata/ts_tmp_f01.dbf' resize 2048m索引
select tablespace_name, tablespace_size/1024/1024 as total, allocated_space/1024/1024 as used, free_space/1024/1024 as free from dba_temp_free_space;table
select * from dba_temp_files;sed
alter table 表名 move tablespace 表空間名;file
select * from dba_directories;select
select * from user_indexes where table_name = '表名'密碼
select * from user_tab_columns where table_name='表名'數據
alter table 表名 rename column 現列名 to 新列名;