Database Utilities (MOSC)

MOSC Banner

Exporting selective data from a table using data pump

edited Mar 7, 2011 12:51AM in Database Utilities (MOSC) 3 commentsAnswered
 



Hi, we are trying to export selective data from a table using data pump. We are on 11g R2
we are running the following command to extract the data for the month of FEB from table TRX_MAIN that belongs to APP schema

expdp schemas=APP include=TABLE:"IN ('TRX_MAIN')" query=TRX_MAIN:"where to_char(trx_dt_crt,'MON') ='FEB' " directory=DATA_PUMP_DIR dumpfile=trxfeb2011.dmp logfile=trxfeb2011.log


but we keep getting this error

LRM-00116: syntax error at ')' following 'MON'


any ideas? how can we get around this ?


thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center