We encountered one issue while running the expdp job on one of our test database with the below listed error:
oracle@TESTERP:~$ expdp oracle/oracle@ERPDB schemas=TESTERP,TESTUAT,TESTDEV directory=FULL_BKP FLASHBACK_SCN=72118557 dumpfile=dbschema201601161417.dmp logfile=dbschema201601161417.log Export: Release 12.1.0.2.0 - Production on Sat Jan 16 14:43:03 2016 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options UDE-31623: operation generated ORACLE error 31623 ORA-31623: a job is not attached to this session via the specified handle ORA-06512: at "SYS.DBMS_DATAPUMP", line 3905 ORA-06512: at "SYS.DBMS_DATAPUMP", line 5203 ORA-06512: at line 1 oracle@TESTERP:~$
As a workaround the other team members were just restarting the database and the expdp job was running fine.
Cause:
The problem is the stream pool size. It was configured to value
SQL> show parameter streams_pool NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ streams_pool_size big integer 0
Solution:
Increase the value of stream_pool_size initialization parameter
oracle@TESTERP:~$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 16 14:44:23 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> alter system set streams_pool_size=1G scope=both; System altered. SQL>
After increasing the stream_pool_size parameter all expdp and impdp jobs started working without issues. Orscle datapump uses the stream_pool_size parameter, So we must ensure that this parameter is configured appropriately before running the data pump jobs.
