Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: EXPORT WITH QUERY CLAUSE in win NT

Re: EXPORT WITH QUERY CLAUSE in win NT

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Tue, 08 Jan 2002 08:04:41 -0800
Message-ID: <F001.003E9901.20020108072526@fatcity.com>

Ramesh,
The command works on Linux but requires the "special" characters be escaped as described in the doc's.
http://otn.oracle.com/doc/oracle8i_816/server.816/a76955/ch01.htm#37997

exp scott/tiger tables=emp query=\"where job=\'SALESMAN\' and sal\<1600\"

Note: Because the value of the QUERY parameter contains blanks, most operating systems require that the entire strings
where job=\'SALESMAN\' and sal\<1600 be placed in double quotation marks or marked as a literal by some method.
Operating system reserved characters also need to be preceded by an escape character. See your operating system-specific
documentation for information about special and reserved characters on your system.

If you do not use the escapes it gives confusing error messages that do not lead to the correct answer:EXP-000019, LRM-00101 unknown parameter..

HTH
ROR mª¿ªm

>>> tday6_at_csc.com 01/08/02 08:50AM >>>

I don't remember export supporting queries. Why don't you create a temp table or tables, eg. create table t_linemto as select * from linemto where PROJ_CODE='CF-804', and then export the temp tables?                                                                                             

                    rpapnoi                                                            
    
                    @chemtex.co.i        To:     Multiple recipients of list ORACLE-L  
    
                    n                    <ORACLE-L_at_fatcity.com>                        
    
                    Sent by: root        cc:                                           
    
                                         Subject:     EXPORT WITH QUERY CLAUSE in win 
NT   
                                                                                       
    
                    01/08/2002                                                         
    
                    01:00 AM                                                           
    
                    Please                                                             
    
                    respond to                                                         
    
                    ORACLE-L                                                           
    
                                                                                       
    
                                                                                       
    




Hi list

I want to export few tables with a common column in all. My OS is WinNT and db version is Oracle 8.1.6

I am using the folling command

exp username/password_at_nts7 tables=(linemto,specs,specmast,password) file=c:\MTO.DMP QUERY="where PROJ_CODE='CF-804'"

It gives me the following error:
EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help EXP-00000: Export terminated unsuccessfully

Where I am missing? Can someone correct me. Regards,
Ramesh D Papnoi
Oracle DBA @ Chemtex Global Engineers Pvt. Ltd., Mumbai, India (BrainBench & Brainbuzz Certified Oracle 8/8i DBA & Developer) http://www22.Brinkster.com/rpapnoi

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
--
Author:
  INET: rpapnoi_at_chemtex.co.in 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: 
  INET: tday6_at_csc.com 

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Jan 08 2002 - 10:04:41 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US