Operating System - HP-UX
1753923 Members
8425 Online
108810 Solutions
New Discussion юеВ

Re: Oracle Date 10000-01-01

 
SOLVED
Go to solution
Eric Antunes
Honored Contributor

Re: Oracle Date 10000-01-01

Hi KY.Chuang,

Go to the dirctory where you want your export file, in DOS and execute:

exp80 userid=/@ file=:\...\ttiedm100886.dmp tables=(TTIEDM100886)

In fact the min value for t$exdt is very strange...

Eric

Each and every day is a good day to learn.
Eric Antunes
Honored Contributor

Re: Oracle Date 10000-01-01

Can you post the min value without formating with to_char?

select min(t$exdt) from ttiedm100886;


Each and every day is a good day to learn.
KY.Chuang
Advisor

Re: Oracle Date 10000-01-01

Dear all,
I already export table structure and data, Please check the attachment...

Following is Log
--------------------------------------------
Connected to: Oracle8 Enterprise Edition Release 8.0.5.0.1 64bit - Production
With the Partitioning and Objects options
PL/SQL Release 8.0.5.0.0 - Production
Export done in ZHT32EUC character set and ZHT32EUC NCHAR character set

About to export specified tables via Conventional Path ...
. . exporting table TTIEDM100886 93 rows exported
Export terminated successfully without warnings.
--------------------------------------------

Regards.

K.Y
Service is King
Eric Antunes
Honored Contributor

Re: Oracle Date 10000-01-01

Hi KY,

I can't import your table because of the different character set...

Show me the result of:

select min(to_char( t$exdt, 'DD-MM-RRRR')) from ttiedm100886;

Each and every day is a good day to learn.
KY.Chuang
Advisor

Re: Oracle Date 10000-01-01

to Eric Antunes,
SQL> select min(to_char(t$exdt,'DD-MM-RRRR'))
2 from ttiedm100886;

MIN(TO_CHA
----------
00-00-0000

K.Y
Service is King
Eric Antunes
Honored Contributor

Re: Oracle Date 10000-01-01

K.Y,

Post the results of the following queries from SQL*Plus:

select to_char(min( t$exdt), 'YYYY') from ttiedm100886;

select to_char(min( t$exdt), 'MON') from ttiedm100886;

select to_char(min( t$exdt), 'MM') from ttiedm100886;

select to_char(min( t$exdt), 'DD') from ttiedm100886;

select to_char(min( t$exdt), 'HH:MI:SS') from ttiedm100886;

select to_char(min( t$exdt), 'HH24:MI:SS') from ttiedm100886;

select to_char(min( t$exdt), 'HH') from ttiedm100886;

select to_char(min( t$exdt), 'MI') from ttiedm100886;

select to_char(min( t$exdt), 'SS') from ttiedm100886;

Usually, these kind of issues end up being related to data being entered through some 3rd party application which for some reason does something strange to the date data to cause the error. Is this your case?

Best Regards,

Eric
Each and every day is a good day to learn.
KY.Chuang
Advisor

Re: Oracle Date 10000-01-01

To Eric,
the following result as your script...
select to_char(min( t$exdt), 'YYYY') from ttiedm100886;
TO_C
----
0000

select to_char(min( t$exdt), 'MON') from ttiedm100886;
TO_CHA
------
000

select to_char(min( t$exdt), 'MM') from ttiedm100886;
TO
--
00

select to_char(min( t$exdt), 'DD') from ttiedm100886;
TO
--
00

select to_char(min( t$exdt), 'HH:MI:SS') from ttiedm100886;
TO_CHAR(
--------
00:00:00

select to_char(min( t$exdt), 'HH24:MI:SS') from ttiedm100886;
TO_CHAR(
--------
00:00:00

select to_char(min( t$exdt), 'HH') from ttiedm100886;
TO
--
00

select to_char(min( t$exdt), 'MI') from ttiedm100886;
TO
--
00

select to_char(min( t$exdt), 'SS') from ttiedm100886;
TO
--
00

-----------------------------------------
Yes, My agent application process this strange date by itself, and I want to know how it did. But application's company don't want to tell me how it did. So I just can find the solution by myself.
Maybe you or discuss's man have some ideas which can find the solution.
Thanks & Regards.
K.Y
Service is King
Eric Antunes
Honored Contributor
Solution

Re: Oracle Date 10000-01-01

Hi K.Y,

Your primary concern should be to correct the data: tell application's company that if they don't want to tell you where the program is doing this, they'll need at least to correct this zero date(s) to the correct(s) value(s).

Eric Antunes

Each and every day is a good day to learn.
Don Spare
Regular Advisor

Re: Oracle Date 10000-01-01

The dates in the screen shots appear to have Chinese characters. It is possible that this is a valid Chinese calendar date that fits in the specified Oracle Gregorian calendar range??? I don't know what the offset is but I believe the Chinese calendar is a couple thousand years ahead of the Gregorian one.