Multiple queries with expdp [message #252607] |
Thu, 19 July 2007 06:51 |
aajk
Messages: 7 Registered: July 2007 Location: India
|
Junior Member |
|
|
Hi all,
Is there any facility to give multiple queries in expdp
Actually I want to export more than one table with different queries corresponding to each table
Regards
Arjun
|
|
|
|
|
|
Re: Multiple queries with expdp [message #252627 is a reply to message #252620] |
Thu, 19 July 2007 08:09 |
aajk
Messages: 7 Registered: July 2007 Location: India
|
Junior Member |
|
|
Hi Michel,
i tried what you suggested
Trail1:-
exp 'sys/alm@alm10g as sydba' directory=export dumpfile=testing1.dmp
tables=almoib.<table>
query=almoib.<table>:'where lgm_load_date=''31-jul-06'''
Trial2:-
exp 'sys/alm@alm10g as sydba'directory=export
dumpfile=testing1.dmp
tables=almoib.<table>
query='where lgm_load_date=''31-jul-06'''
Trial 2 executed fine while Trail1(which will solve my problem) gave the following error
:unknown parameter name lgm_load_date
Can u help on this...any quotation marks problem!!! but everything is same as in the Trail2...
I also tried with double quotes as shown in the example you attached....but with that both trials are not working....
Regards,
Arjun
[Updated on: Thu, 19 July 2007 08:14] Report message to a moderator
|
|
|
|
Re: Multiple queries with expdp [message #252638 is a reply to message #252631] |
Thu, 19 July 2007 08:49 |
aajk
Messages: 7 Registered: July 2007 Location: India
|
Junior Member |
|
|
Hi Michel,
Thank you for your suggestions....Now it is working fine
I gave the following command
expdp 'sys/alm@alm10g as sysdba'
directory=export dumpfile=testing5.dmp
tables=almoib.<table1>,almoib.<table2>
query='almoib.<table1>:where lgm_load_date=''31-jul-06''','almoib.<table2>:where lgcu_load_date=''31-jul-06'''
Problem was that inside query tables were not in the quotes
Thank you again for your help
Regards,
Arjun Jkoshi
|
|
|