Benutzer-Werkzeuge

Webseiten-Werkzeuge


dba:datapump_import

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
dba:datapump_import [2018/11/06 14:27] – [Quellen] gpipperrdba:datapump_import [2018/11/24 12:11] – [ORA-01555: snapshot too old] gpipperr
Zeile 708: Zeile 708:
   * IMPDP Reports ORA-942 and ORA-39083 During Importing Schema Objects (Doc ID 750783.1)   * IMPDP Reports ORA-942 and ORA-39083 During Importing Schema Objects (Doc ID 750783.1)
   * https://odenysenko.wordpress.com/2016/08/12/impdb-with-schema_remap-may-createimport-trigger-on-table-in-wrong-schema/   * https://odenysenko.wordpress.com/2016/08/12/impdb-with-schema_remap-may-createimport-trigger-on-table-in-wrong-schema/
 +
 +=== ORA-01555: snapshot too old ===
 +
 +Undo einstellungen kontrollieren =>https://github.com/gpipperr/OraPowerShell/blob/master/Ora_SQLPlus_SQLcL_sql_scripts/undo_stat.sql und https://github.com/gpipperr/OraPowerShell/blob/master/Ora_SQLPlus_SQLcL_sql_scripts/undo.sql
 +
 +Optmieren (ersmal nur im Speicher und auf beiden Instancen wenn RAC!) :
 +<code sql>
 +alter system set undo_retention=4800 scope=memory sid='*';
 +
 +# Für RAC, tablespace auch optimieren, falls auf NOGUARANTEE!
 +# Tablespace beobachten ! damit kann der Tablespace recht voll laufen, falls sich viel im System ändert!
 +
 +# 36000 = 10h
 +ALTER TABLESPACE UNDOTBS01 RETENTION GUARANTEE;
 +ALTER system SET undo_retention=36000 scope=memory sid='GPIDB1';
 +
 +ALTER TABLESPACE UNDOTBS02 RETENTION GUARANTEE;
 +ALTER system SET undo_retention=36000 scope=memory sid='GPIDB2';
 +
 +</code>
 +
 +
 +
 +Parameter im Detail siehe https://docs.oracle.com/en/database/oracle/oracle-database/18/refrn/UNDO_RETENTION.html#GUID-D238E854-A2C5-463E-A146-31F61300124E
 +
 +
 +
 +===ORA-39370: remap value  is too long ===
 +
 +In der Kommandozeile kann das nicht so einfach übergeben werden:
 +
 +<code bash>
 +impdp "'/ as sysdba'" directory=DATA_PUMP_DIR dumpfile=expdp_10-11-2018_23_31_INTERSHOP_LIVE_ISORCL7%u.dmp    REMAP_TABLESPACE=IS_EDIT_INDX:IS_LIVE_INDX:IS_EDIT_INDX_CTX:IS_LIVE_INDX_CTX:IS_EDIT_USERS:IS_LIVE_USERS     sqlfile=INTERSHOP_LIVE_sql_script.sql
 +</code>
 +
 +Lösung: Parameter Datei anlegen:
 +
 +<code bash>
 +directory=DATA_PUMP_DIR
 +dumpfile=expdp_10-11-2018_23_31_INTERSHOP_LIVE_ISORCL7%u.dmp
 +REMAP_TABLESPACE=IS_EDIT_INDX:IS_LIVE_INDX
 +REMAP_TABLESPACE=IS_EDIT_INDX_CTX:IS_LIVE_INDX_CTX
 +REMAP_TABLESPACE=IS_EDIT_USERS:IS_LIVE_USERS
 +sqlfile=INTERSHOP_LIVE_sql_script.sql
 +
 +</code>
 +
 +Aber! Die Tablespace Clause (ctxsys.driimp.set_value('P_TABLE_CLAUSE','TABLESPACE IS_EDIT_INDX_CTX'); ) von Oracle Text Indexen wird nicht beachtet!
 +
 +Teste gerade in einer 12c R1, der Bug ist dort noch nicht gefixt => Bug 6969504 : IMPDP REMAP_TABLESPACE PARAMETER NOT APPLIED FOR SPATIAL INDEXES
 +
 +
 +D.h. hier muss manuell nachgebessert werden.
  
  
dba/datapump_import.txt · Zuletzt geändert: 2024/01/09 13:31 von gpipperr