impdp ETL/etl_pwd DIRECTORY=DB_DIR DUMPFILE=ETL.dmp logfile=ETL_20221008.log table_exists_action=replace
这里报错就十分明显了,无法扩展shared pool的内存大小
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
UDI-04031: operation generated ORACLE error 4031
ORA-04031: unable to allocate 784 bytes of shared memory ("shared pool","SELECT job_id FROM sys.v_$da...","TCHK^edef1e20","qbcdef:qcpiqbk")
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4747
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4571
ORA-06512: at "SYS.KUPC$QUE_INT", line 1810
ORA-06512: at "SYS.KUPV$FT_INT", line 3417
ORA-06512: at "SYS.KUPV$FT_INT", line 3372
ORA-06512: at "SYS.KUPC$QUE_INT", line 617
ORA-25254: time-out in LISTEN while waiting for a message
ORA-06512: at "SYS.DBMS_AQ", line 1163
ORA-06512:
扩一下就好了
SQL> show parameter shared
NAME TYPE VALUE
------------------------------------ ---------------------- ------------------------------
hi_shared_memory_address integer 0
max_shared_servers integer
shared_memory_address integer 0
shared_pool_reserved_size big integer 27682406
shared_pool_size big integer 528M
shared_server_sessions integer
shared_servers integer 1
SQL> alter system set shared_pool_size=800m scope=both;
System altered.