1、创建还原所用的dmp所在的文件夹admin管理员组文章数量:1582699
create directory 文件夹名 as '/dir'
create directory backup as 'backup';
2、创建表空间
create tablespace 空间名 datafile '.dbf'size 500M autoextend on maxsize unlimited;
create tablespace liuwei datafile '.dbf'size 500M autoextend on maxsize unlimited;
3、创建用户(与导出时的用户名一致)
create user 用户名
identified by 密码
default tablespace 表空间
temporary tablespace TEMP
profile DEFAULT;
create user Lavi
identified by Lavi
default tablespace LaviSpace
temporary tablespace TEMP
profile DEFAULT;
4、对用户进行授权
grant connect to 用户 with admin option ;
grant dba to 用户 with admin option;
grant unlimited tablespace to 用户 with admin option;
grant create session to 用户;
grant connect to Lavi with admin option ;
grant dba to Lavi with admin option;
grant unlimited tablespace to Lavi with admin option;
grant create session to Lavi;
5、进行数据库导入(以上命令要在sqlplus中执行,而导入导出命令要在cmd中执行)
导入要和导出的命令相对应,exp和imp,expdp和impdp
IMPDP USERID='用户名/密码@实例 as sysdba' directory=LOG_FILE_DIR dumpfile=20100816.dmp logfile=20100816.log
版权声明:本文标题:Oracle数据库使用DMP文件恢复数据 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1727894160a1136620.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论