1 在终端中运行导入命令,命令如下:
impdp sys/oracle SCHEMAS=EARADMIN directory=PUMP_DIR dumpfile=EARADMIN.dmp logfile=EARADMIN02.log
2 系统提示错误如下:
ORA-39006: internal error
ORA-39213: Metadata processing is not available
3 问题分析,使用系统自带的命令
[oracle@oracle trace]$ oerr ora 39009
39009, 00000, "Starting %s: %s"
// *Document: NO
// *Cause: Informational message to describe the starting of a job.
// *Action: None required.
[oracle@oracle trace]$ oerr ora 39213
39213, 00000, "Metadata processing is not available"
// *Cause: The Data Pump could not use the Metadata API. Typically,
// this is caused by the XSL stylesheets not being set up properly.
// *Action: Connect AS SYSDBA and execute dbms_metadata_util.load_stylesheets
// to reload the stylesheets.
[oracle@oracle trace]$
4 解决办法:以sysdba登陆到系统,执行命令
SQL> conn / as sysdba
SQL> exec dbms_metadata_util.load_stylesheets;