---可以成功的-开始
备份
exp rsgl_pro/rsgl@orcl file=C:\Users\Administrator\Desktop\rsgl_pro_201808070917.dmp owner=(rsgl_pro)--备份
恢复(可以在PL/SQL执行sql语句的窗口执行)
create tablespace JXKH_BKX datafile 'C:\app\Administrator\oradata\orcl\JXKH_BKX.dbf' size 100m autoextend on;
create user jxkh_bkx identified by rsgl default tablespace JXKH_BKX temporary tablespace temp;
grant dba to jxkh_bkx;
imp jxkh_bkx/rsgl@orcl file=C:\backup\rsgl_pro_201808070917.dmp fromuser=rsgl_pro touser=jxkh_bkx ignore=y --恢复
imp jxkh_bkx/rsgl 就是创建的新的用户名和密码;
---可以成功的-结束
--删除用户
drop user rsgl cascade;
--删除表空间
DROP TABLESPACE tablespace_name INCLUDING CONTENTS AND DATAFILES;
--查询表空间
select * from DBA_TABLESPACES
--查找用户
select * from dba_users;
--查找工作空间的路径
select * from dba_data_files;
删除用户和表空间的例子
--删除用户
drop user jxkh_bkx cascade;
--删除表空间
drop tablespace JXKH_BKX including contents and datafiles cascade constraint;