Home » RDBMS Server » Server Administration » Oracle DATE datatype internal structure
Oracle DATE datatype internal structure [message #57512] Fri, 20 June 2003 00:15 Go to next message
Yasuhiro Ikeda
Messages: 4
Registered: June 2003
Junior Member
Hi all,

I want to know DATE datatype internal structure for Oracle. I entountered a following WebLogic probrem.
http://e-docs.bea.com/wls/docs61/notes/ bugfixes2.html#1245159 <CR101517>

Our database has some wrong data in DATE before 1900. However I think they has some wrong data and some correct data. I want to know what is wrong and what si correct data. I know Oracle stored 7 bytes in DATE which is YYYY=2byte, MM=1byte DD=1byte HH24=1byte MI=1byte and SS=1byte.

SYYYY wrong? Dump (decimal)
---------- ---------- --------------------
YYYY A B
2003 correct 120 103
-0001 correct 100 099
0072 wrong 100 172
0072 correct 101 072

I think Oracle uses following fomura. Is it correct?
SYYYY = (A - 100) * 100 + (B-100)

--
Thanks,
Yasuhiro
Re: Oracle DATE datatype internal structure [message #57513 is a reply to message #57512] Fri, 20 June 2003 00:18 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Here's some explanation.

MHE
Re: Oracle DATE datatype internal structure [message #57519 is a reply to message #57513] Fri, 20 June 2003 04:19 Go to previous message
Yasuhiro Ikeda
Messages: 4
Registered: June 2003
Junior Member
Maaher,

Thak you for your quick response and good answer.

Thanks,
Yasuhiro
Previous Topic: Urgent! nt server to solaris server oracle import
Next Topic: '0000/06/19' is correct?
Goto Forum:
  


Current Time: Fri Sep 20 10:37:18 CDT 2024