Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

we use to make a copy of schemas from one database and move it to another for testing using this par file ...

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')"

then create the CONFIG_HISTORY with a script on the target database!

is there any way to NOT EXCLUDE=TABLE:"IN ('SYS_HISTORY')" and export the structure only of this table?

can I use something like this:

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

note: there is no CON_ID with value less than 0, it will return nothing when CON_ID < 0!

share|improve this question
    
CONTENT=METADATA_ONLY ? –  Mindaugas Riauba Oct 16 '13 at 6:39
    
this will export METADATA_ONLY or The Structure only of the whole schemas, i need everything but only the structure of this table! –  Data-Base Oct 16 '13 at 6:41
add comment

1 Answer

up vote 1 down vote accepted

You probably can try something like,

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
query=SYS_HISTORY:"where 1=2"

This way, the metadata about table SYS_HISTORY will be copied but no data. Note: since you are not prefixing table name (to exclude data from), with schema name, this filter will apply to this table in each schema specified.

share|improve this answer
    
Thanks allot :-) –  Data-Base Oct 17 '13 at 12:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.