Oracle数据库使用DMP文件恢复数据
2016-10-07 09:43
369 查看
1、创建还原所用的dmp所在的文件夹
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;
grant connect to 用户 with admin option ;
grant dba to 用户 with admin option;
grant unlimited tablespace to 用户 with admin option;
grant create session to 用户;
导入要和导出的命令相对应,exp和imp,expdp和impdp
IMPDP USERID='用户名/密码@实例 as sysdba' directory=LOG_FILE_DIR dumpfile=20100816.dmp logfile=20100816.log
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数据库?
- 使用日志恢复误删除的数据文件
- 查看Oracle数据库表空间大小(空闲、已使用),是否要增加表空间的数据文件
- 不使用rman工具就能恢复被rm删除的数据文件
- 使用blockrecover 对有坏块的数据文件进行恢复
- 完整恢复DMP文件到Oracle数据库
- 查看Oracle数据库表空间大小(空闲、已使用),是否要增加表空间的数据文件
- 使用文件和文件组备份可以恢复表数据吗?
- 查看Oracle数据库表空间大小(空闲、已使用),是否要增加表空间的数据文件
- 查看Oracle数据库表空间大小(空闲、已使用),是否要增加表空间的数据文件
- 如何恢复只有完好数据文件的oracle数据库
- oracle 新建数据库从dmp文件恢复数据
- 查看Oracle数据库表空间大小(空闲、已使用),是否要增加表空间的数据文件
- 如何从完好的数据文件恢复oracle数据库
- 使用blockrecover 对有坏块的数据文件进行恢复
- oracle数据库中的内容全部丢失,只有RMAN的备份文件(包括数据,参数,控制文件),恢复数据库到备份状态
- Oracle数据库备份dmp文件,使用cmd命令导入导出步骤,以及忘记Oracle密码
- 从完好的数据文件恢复oracle数据库
- Linux下使用extundelete恢复ext3误删除数据文件
- 使用保存点恢复删除的数据 oracle数据库恢复