oracle增量条件导入导出dmp,Oracle数据导入 导出

导出表:

exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp

导出用户:

exp system/manager@mycon owner=scott file=usr1.dmp

导出数据库:

1.完全导出

exp system/manager@mycon full=y inctype=complete file=full1.dmp

2.增量导出

exp system/manager@mycon full=y inctype=incremental file=inc1.dmp

3.累积导出

exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp

imp example:

导入表:

imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott 导入用户:

imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott

导入数据库:

1.全库导入

imp system/manager@mycon file=full1.dmp full=y

2.增量导入

1)导入数据库最新信息

imp system/manager@mycon inctype=system full=y file=inc7.dmp

2)导入最近完全导出文件

imp system/manager@mycon inctype=restore full=y file=full1.dmp

3)导入所有累积导出文件

imp system/manager@mycon inctype=restore full=y file=cum1.dmp

4)导入最近一次增量导出的文件

imp system/manager@mycon inctype=restore full=y file=inc1.dmp

>exp netadmin/netadmin@ip file=c:\2.dmp

>imp netadmin/netadmin@test file=c:\2.dmp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Oracle 19c的导出导入dmp全过程可以分为以下几个步骤: 1. 创建目录 首先需要在数据库中创建一个目录,用于存放导出导入文件。可以使用以下命令: ``` CREATE DIRECTORY dmpdir AS '/oracle/dmp'; ``` 其中dmpdir为目录名称,'/oracle/dmp'为目录路径。 2. 导出数据 使用expdp命令来导出数据,命令语法如下: ``` expdp username/password@database_name directory=dmpdir dumpfile=dumpfile.dmp logfile=log_file.log ``` 其中,username为数据库用户名,password为密码,database_name为数据库实例名,directory为上一步中创建的目录名称,dumpfile为导出文件名称,logfile为日志文件名称。 3. 导入数据 使用impdp命令来导入数据,命令语法如下: ``` impdp username/password@database_name directory=dmpdir dumpfile=dumpfile.dmp logfile=log_file.log ``` 其中,username为数据库用户名,password为密码,database_name为数据库实例名,directory为上一步中创建的目录名称,dumpfile为导入文件名称,logfile为日志文件名称。 在导入数据时,需要注意一些参数的设置,例如: - REMAP_SCHEMA:用于将导入数据重命名为新的模式名称。 - REMAP_TABLESPACE:用于将导入数据重命名为新的表空间名称。 - TABLE_EXISTS_ACTION:用于控制导入时遇到已存在的表或索引时的操作,有三个选项:SKIP、APPEND和REPLACE。 可以根据具体的需求进行设置。 以上就是Oracle 19c导出导入dmp全过程的主要步骤。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值