Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

expdp and ROWNUM function

2617359Jan 12 2016 — edited Jan 13 2016

Hello,

I have to export 10+ tables for top 100 rows. I am using below information in .par file

DUMPFILE="T_%U.dmp"

FILESIZE=10G             

LOGFILE="T__%U.log"

DIRECTORY=DATA_PUMP_DIR

SCHEMAS=('schema')

STATISTICS=NONE

EXCLUDE=METADATA,STATISTICS

CLUSTER=N


QUERY=schema.tbl1:'" WHERE tbl1.id in ( select "temp_id" from schema1.tbl1 where ROWNUM < 101)"'

QUERY=schema.tbl2:'" WHERE tbl1.id in ( select "temp_id" from schema1.tbl2 where ROWNUM < 101)"'

.

.

.

.

QUERY=schema.tbl10:'" WHERE tbl1.id in ( select "temp_id" from schema1.tbl10 where ROWNUM < 101)"'


However, when expdp command is used, getting below error

ORA-31693: Table data object "schema"."tbl1" failed to load/unload and is being skipped due to error:

 

ORA-00972: identifier is too long


Is it due to use of ROWNUM function? 

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2016
Added on Jan 12 2016
2 comments
2,172 views