Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1600427
  • 博文数量: 184
  • 博客积分: 3044
  • 博客等级: 中校
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 15:04
文章分类

全部博文(184)

文章存档

2022年(4)

2021年(3)

2020年(1)

2019年(5)

2018年(13)

2017年(6)

2016年(10)

2015年(11)

2014年(11)

2013年(13)

2012年(23)

2011年(25)

2010年(2)

2008年(1)

2007年(5)

2006年(51)

分类: LINUX

2011-01-10 14:31:07

创建目录
sql>create directory dpdata1 as 'd:\test\dump';  

赋予权限
sql>grant read, write on directory dpdata to sccott;

导出整个数据库
sql>host expdp DIRECTORY=dpdata1 DUMPFILE=full.dmp FULL=Y;

补上用户/密码/实例/身份
username: system@orcl as sysdba
password: manager

不知怎么的, 会出以下错误:
With the Partitioning, OLAP and Data Mining options
ORA-39002: invalid operation
ORA-39135: SYS schema cannot read data using specific SCNs

请教如何解决?<

解决方法


expdp不能用sys用户导出的,虽然你指定了system用户,但是因为你加了 as sysdba,所以变成sys用户了,输入用户名时去掉as sysdba就可以了。
或者直接写:
expdp system/pw@orcl directory=dpdata1 dumpfile=full.dmp full=y

引用楼主 javaex 的帖子:
创建目录 
sql>create directory dpdata1 as 'd:\test\dump'; 

赋予权限 
sql>grant read, write on directory dpdata to sccott; 

导出整个数据库 
sql>host expdp DIRECTORY=dpdata1 DUMPFILE=full.dmp FULL=Y; 

补上用户/密码/实例/身份 
username: system@orcl as sysdba 
password: manager 

不知怎么的, 会出以下错误: 
With the Partitioning, OLAP and Data Mining options 
ORA-39002: invalid ope…
阅读(2484) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-08 14:15:29

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com