今天使用expdp来备份数据发现了一些问题(10.1.0.2 on solaris10):
1。DBMS_DM_MODEL_EXP:schema_callout: DM models not found in schema IMPS
发现dmsys用户被锁了,解开该用户,然后没出现这个问题
2. ORA-06512: at "SYS.DBMS_METADATA", line 5339
ORA-39127: unexpected error from call to status := SYS.DBMS_JAVA.START_EXPORT('chkSpecNumber','IMPS',0,29,...)
ORA-01031: insufficient privileges
这个需要打补丁:3470641
因为有java存储过程在里面,不能备份,打上补丁才能
3。exclude和include的语法问题
expdp scott/tiger directory=dumpdir dumpfile=scott.dmp exclude=TABLE:"IN ('SMSMSG','USERS')" logfile=scott.log schemas=scott
请注意我的exclude后面跟的东东:
TABLE:"IN ('SMSMSG')"
凡是
"
(
'
,
)
都要使用转义字符才能备份成功,但是expdp -help的帮助却是:
exclude=table:tablename1,tablename2
使用的时候会出现问题!
需要注意!!
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7916042/viewspace-1006073/ ,如需转载,请注明出处,否则将追究法律责任。