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 date field

RE: export with query date field

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Thu, 06 Nov 2003 14:14:31 -0800
Message-ID: <F001.005D5DCC.20031106141431@fatcity.com>


oraclei_at_rhea-OLDNCS1> exp system file=aud.dmp log=aud.log tables=user_logon_audit query=\"where trunc\(logon_time\) = to_date\(\'20031105\',\'yyyymmdd\'\)\" Export: Release 9.2.0.2.0 - Production on Thu Nov 6 17:11:41 2003 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Password:

Connected to: Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options JServer Release 9.2.0.2.0 - Production
Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set

About to export specified tables via Conventional Path ... . . exporting table USER_LOGON_AUDIT 10289 rows exported Export terminated successfully without warnings.

putting a trunc() around message_date might help ...

Raj



Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
Sent: Thursday, November 06, 2003 4:55 PM To: Multiple recipients of list ORACLE-L

List,

I am trying to do an export query with a date field. I have tired different syntax. I know there are 500+ records with a date of 11/06/2003 in this table. What is wrong with my query since it returns no records? I have done this with character fields with no problem. What am I missing in the date syntax?

$exp user/pwd file=test.dmp log=test.log tables=processing_messages

             query=\"where message_date=to_date\(\'11/06/2003\'\,
\'MM/DD/YYYY\'\)\"                                


example output:

Export: Release 8.1.7.0.0 - Production on Thu Nov 6 15:30:21 2003

(c) Copyright 2000 Oracle Corporation. All rights reserved.

Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option
JServer Release 8.1.7.0.0 - Production
Export done in US7ASCII character set and US7ASCII NCHAR character set

About to export specified tables via Conventional Path ... . . exporting table PROCESSING_MESSAGES 0 rows exported Export terminated successfully without warnings.

thanks,

David Ehresmann
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Ehresmann, David
  INET: David.Ehresmann_at_ps.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************4

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Thu Nov 06 2003 - 16:14:31 CST

Original text of this message

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