oracle 数据库学习笔记

这篇博客详细记录了Oracle数据库的导入导出操作,包括导入命令、导出命令、数据泵的使用以及如何解决'IMP-00017'错误。还介绍了如何导出空表,并提供了设置和修复统计信息的方案。
摘要由CSDN通过智能技术生成

oracle 数据库学习笔记

Giser-Yu

1、导入命令

imp Test/Test@ORCL file='D:\bdcdata\Test.DMP' log='D:\bdcdata\Test_in.log' full=y; 

参数tables=(table1,table2)设置部分表导出/导入

2、导出命令

exp userid=scott/tiger@orcl file=D:\BACK01.dmp log=D:\BACK01.log

3、数据泵导入、导出操作

1.使用管理员身份登陆:

sqlplus username/password@SID as sysdba

2.创建路径:

 create or replace directory cad as 'E:\oracle';

3.给用户授权

grant read,write on directory cad to username(指定用户)/public(所有用户);
grant read,write on directory cad to Test;

4.数据还原(在cmd窗口运行):

impdp username/password@ORCL directory=cad dumpfile=xxx.dmp logfile=xxx_impdp.log full=y;

可选参数

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值