Solved

EXPDP   QUERY option  -  Is there anyway to continue to the next line for a parameter

Posted on 2014-10-09
5
414 Views
Last Modified: 2014-10-09
I need to use expdp to export data using the query option.   The query I will be using is very long and I would like to be able to continue on the next line (actually multiple lines) within the parameter file.    This will make it much more readable.   Is there a way to do this?
0
Comment
Question by:ciphersol
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
Stampel earned 500 total points
ID: 40371091
You can have multiple lines as far as you follow this rule.

The preferred method of using QUERY parameter is in a parameter file is to put double quotes around the WHERE clause.

parameter file exp_emp.par contains,

TABLES:emp_salary
DUMPFILE=dump_dir
QUERY= emp_salary:"WHERE emp_id IN (SELECT id from emp
where join_date> to_date('2004-01-01','YYYY-MM-DD')
AND dept='SALSE')"
0
 

Author Closing Comment

by:ciphersol
ID: 40371239
Thank you.  That works.
0
 
LVL 7

Expert Comment

by:Stampel
ID: 40371409
I can not edit the post anymore.
Please add reference to  : http://shaharear.blogspot.fr/2008/09/using-query-parameter-in-expdpimpdp.html
My intend was not bad, i just prefer the solution inside the post than a link that can be broken in a few weeks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to free up undo space? 3 51
Oracle SQL Select unique values from two columns 4 66
Fill Date time Field 12 25
format dd/mm/yyyy parameter 16 33
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question