Q

Error with single quotes during export

I want to export a table based on condition that could be provided in the WHERE clause in the export command. The condition on which the clause is built has a field that is of the string type, so we need to provide the string in single quotes but the export is not allowing me to perform the same. HEre is the command (Oracle Version 8.1.7 on Win2k box):
 
 EXP USERID = userid/userid TABLES='temp_table' LOG='temp_table.LOG'

 FILE='temp_table.DMP' QUERY= "where some_FLAG='YES'"
It is giving me this error:
 LRM-00101: unknown parameter name 'some_FLAG' 
 EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
 EXP-00000: Export terminated unsuccessfully

Try escaping the quote and double quote marks.
 
 QUERY= \"where some_FLAG=\'YES\'\"

This was first published in August 2004

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close