Oracle数据库常用命令(草稿)

查看表空间

select * from dba_tablespaces;


查询数据库文件

select * from dba_data_files;


查询所有表

select * from dba_tables;


创建表空间

create tablespace 表空间名称 datafile '表空间的物理路径' size 50m autoextend on;

注:表空间物理路径:C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF 格式一般为DBF 路径根据数据库具体安装到哪里


创建临时表空间

create temporary tablespace 临时表空间名称 tempfile '临时表空间物理路径' size 50m autoextend on;

注:临时表空间格式一般也是DBF


删除表空间
drop tablespace 表空间名称 including contents and datafile;



猜你喜欢

转载自blog.csdn.net/gelong_bokewang/article/details/78262085