Export Data Pump Tutti i dati da pochi schemi tranne solo una struttura della tabella?

dba.stackexchange https://dba.stackexchange.com/questions/51579

  •  01-11-2019
  •  | 
  •  

Domanda

Utilizziamo per creare una copia degli schemi da un database e spostarla in un altro per il test utilizzando questo file par ...

DIRECTORY=EXPORT
DUMPFILE=QQS_PROD.DMP
LOGFILE=QQS_PROD.LOG
SCHEMAS=QQSDATA_PROD,QQSREPOSITORY_PROD,QQS_CENTRAL_PROD,QQS_BD_PROD,QQS_QD_PROD
FLASHBACK_TIME=SYSTIMESTAMP
EXCLUDE=TABLE:"IN ('SYS_HISTORY')"

Quindi crea config_history con uno script sul database di destinazione!

C'è un modo per no Escludere = tabella: "in ('sys_history')" ed esportare la struttura solo di questa tabella?

Posso usare qualcosa di simile:

INCLUDE=TABLE:"IN ('SYS_HISTORY')"
QUERY=SYS_HISTORY:"where CON_ID < 0"

Nota: non esiste un con_id con un valore inferiore a 0, non restituirà nulla quando Con_id <0!

Nessuna soluzione corretta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange
scroll top