使用oracle的impdp导入dump文件的时候,报错,如下
1、报错
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31626: job does not exist
ORA-31687: error creating worker process with worker id 1
ORA-31687: error creating worker process with worker id 1
ORA-31688: Worker process failed during startup.
2、根据网上查到的结果,是数据库参数aq_tm_processes为0导致,而正确情况应该是不为0,查询数据库参数
SQL> show parameter processes;
NAME TYPE VALUE
aq_tm_processes integer 1
db_writer_processes integer 2
gcs_server_processes integer 0
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 500
3、可以看到aq_tm_processes不为0,尝试另一种方法:给要导入的用户赋予权限
grant DATAPUMP_IMP_FULL_DATABASE to finance_report;
4、依然报错,尝试给aq_tm_processes改大一点(最大值为40)
alter system set aq_tm_processes=40 scope = spfile;
5、将改配置生效
create pfile from spfile;
6、重启数据库
shutdown immediate;
startup;
7、再次查看数据库参数配置
SQL> show parameter processes;
NAME TYPE VALUE
aq_tm_processes integer 40
db_writer_processes integer 2
gcs_server_processes integer 0
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 500
8、再次尝试导入:
imdpd语句(自行百度)
成功执行