简单操作orcal

查询表空间

select * from sys.dba_tablespaces;


删除表空间

drop tablespace 表空间名字

进入系统默认的dba权限

sqlplus sys/orcl as sysdba

//创建表空间
create tablespace oawf1 datafile 'e:/oawf1.dbf' size 100M  autoextend on next 100M maxsize unlimited;
//创建用户
create user oawf1 identified by oawf1;
//设置表空间给用户
alter user oawf1 default tablespace oawf1;
//授予dba权限
grant dba to oawf1;
//提交
commit;
exit
//命令行导入
imp oawf1/oawf1 full=y file=f:/82.dmp log=f:/82.log



你可能感兴趣的:(简单操作orcal)