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: Unreadable time_stamp format

RE: Unreadable time_stamp format

From: Nguyen, David M <david.m.nguyen_at_xo.com>
Date: Wed, 17 Dec 2003 09:44:37 -0800
Message-ID: <F001.005DA309.20031217094437@fatcity.com>


Content-Type: text/plain;
 charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Jared,

=20

Sure I will. Thanks for you help.

=20

Regards,
David

=20

-----Original Message-----
Jared.Still_at_radisys.com
Sent: Wednesday, December 17, 2003 11:10 AM To: Multiple recipients of list ORACLE-L

=20

David,=20

<SOAPBOX>=20

Not trying to sound condescending or disrespectful, but I think you need

some serious practice time with SQL. Break out the SQL manual, and find

out how to join various tables. A good place to start would be the demo

account scott/tiger, with the demo tables in $ORACLE_HOME/sqlplus/demo.=20

Knock yourself out playing with joins, experimenting with different SQL functions.=20

Create foreign keys, find out why FK's should have an index, what the requirements=20
are for the index, etc. Become *fluent* in PL/SQL as well, and learn when to=20
use it and when not to use it.=20

</SOAPBOX>=20

Try this:=20

select=20

   user_name=20
   , to_date('01/01/1970','mm/dd/yyyy') + ( time_stamp / (24*60*60*1000))=20
from user_activity_log=20
where rownum <=3D 100=20

HTH=20 Jared=20

=20

"Nguyen, David M" <david.m.nguyen_at_xo.com>=20 Sent by: ml-errors_at_fatcity.com=20

 12/17/2003 07:54 AM=20
 Please respond to ORACLE-L=20

       =20
        To:        Multiple recipients of list ORACLE-L

<ORACLE-L_at_fatcity.com>=20
cc: =20 Subject: RE: Unreadable time_stamp format

Jared,=20
 =20
It is epochtime. When I run your given SQL I got TO_DATE output is "24-NOV-03". Is it actual date translated from epochtime "1069716948959" ? =20
 =20
How do I query to select only 100 records?=20  =20
 =20
SQL> select to_date('01/01/1970','mm/dd/yyyy') + ( 1069716948959 / (24*60*60*100=20
0) ) from dual ;=20
 =20

TO_DATE('=20
---------=20
24-NOV-03=20

 =20
 =20
Thanks,
David=20
 =20
 =20
-----Original Message-----
Jared.Still_at_radisys.com
Sent: Tuesday, December 16, 2003 7:14 PM To: Multiple recipients of list ORACLE-L  =20

Try milliseconds from the epoch - 1/1/1970=20

select to_date('01/01/1970','mm/dd/yyyy') + ( 1069716948959 / (24*60*60*1000) ) from dual=20

You really need to know how the timestamp column is defined by your app.

Jared=20

 =20

"Nguyen, David M" <david.m.nguyen_at_xo.com>=20 Sent by: ml-errors_at_fatcity.com=20

 12/16/2003 02:09 PM=20
Please respond to ORACLE-L=20

       =20
       To:        Multiple recipients of list ORACLE-L

<ORACLE-L_at_fatcity.com>=20
cc: =20 Subject: RE: Unreadable time_stamp format

Now I got.=20
=20

USER_NAME             TIME STAMP=20
--------------------              ----------------------=20
eholley                       1069716948959=20
jmdavis                       1069715246467=20
jmdavis                       1069715324466=20
=20
=20
-----Original Message-----
Bobak, Mark
Sent: Tuesday, December 16, 2003 3:54 PM To: Multiple recipients of list ORACLE-L =20
Since it's a NUMBER datatype, try:=20
SQL>  column time_stamp format 99999999999999999999=20
SQL> select user_name, time_stamp from USER_ACTIVITY_LOG;=20 =20
-----Original Message-----
Sent: Tuesday, December 16, 2003 4:39 PM To: Multiple recipients of list ORACLE-L

I need to view time_stamp column in USER_ACTIVITY_LOG table but it displays unreadable format as shown below. Is there a way to decode it to be readable?=20

SQL> desc USER_ACTIVITY_LOG=20

 Name                                      Null?    Type=20

 ----------------------------------------- --------
----------------------------=20

 TIME_STAMP                              NOT NULL NUMBER(20)=20

 NODE_NAME                               NOT NULL VARCHAR2(20)=20

 USER_NAME                                NOT NULL VARCHAR2(20)=20

 CLIENT_IP                                    NOT NULL VARCHAR2(15)=20

 DESCRIPTION                              NOT NULL VARCHAR2(2048)=20
 =20

SQL>select user_name, time_stamp from USER_ACTIVITY_LOG;=20

edscott 1.0693E+12=20

edscott 1.0693E+12=20

edscott 1.0693E+12=20

edscott 1.0693E+12=20

jmdavis 1.0693E+12=20

edscott 1.0693E+12=20

edscott 1.0693E+12=20

Thanks,
David=20

------_=_NextPart_001_01C3C4C4.FFF20250
Content-Type: text/html;
 charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">

<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--

 /* Font Definitions */
 @font-face

	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:sans-serif;
	panose-1:0 0 0 0 0 0 0 0 0 0;}

 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}

-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Jared,</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Sure I will.&nbsp; Thanks for you = help.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<br> David</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original = Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> =
ml-errors_at_fatcity.com
[mailto:ml-errors_at_fatcity.com] <b><span style=3D'font-weight:bold'>On = Behalf Of </span></b>Jared.Still_at_radisys.com<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, December =
17, 2003
11:10 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Multiple recipients =
of list
ORACLE-L<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Unreadable =
time_stamp
format</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal =

style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><br>
</span></font><font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;
font-family:sans-serif'>David,</span></font> <br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>&lt;SOAPBOX&gt;</span><= /font>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>Not trying to sound condescending or disrespectful, but I think you = need</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>some serious practice time with SQL. &nbsp;Break out the SQL manual, and = find</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>out how to join various tables. &nbsp;A good place to start would be the = demo</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>account scott/tiger, with the demo tables in =
$ORACLE_HOME/sqlplus/demo.</span></font> <br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>Knock yourself out playing with joins, experimenting with different SQL = functions.</span></font>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>Create foreign keys, find out why FK's should have an index, what the = requirements</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>are for the index, etc. &nbsp;Become *fluent* in PL/SQL as well, and learn = when to</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>use it and when not to use it.</span></font> <br>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>&lt;/SOAPBOX&gt;</span>=
</font>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>Try this:</span></font> <br>
<br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>select </span></font><br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp; &nbsp;user_name</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp; &nbsp;, to_date('01/01/1970','mm/dd/yyyy') + ( time_stamp / (24*60*60*1000))</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>from user_activity_log</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>where rownum &lt;=3D 100</span></font> <br>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>HTH</span></font>
<br>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'>Jared</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br>
</span></font><br>
<br>
</p>

<table class=3DMsoNormalTable border=3D0 cellpadding=3D0 width=3D"100%"
 style=3D'width:100.0%;margin-left:.5in'>  <tr>
  <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'>   <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span   style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

  </td>
  <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'>
  <p class=3DMsoNormal><b><font size=3D1 face=3Dsans-serif><span =
style=3D'font-size:
  7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Nguyen, David = M&quot;
  &lt;david.m.nguyen_at_xo.com&gt;</span></font></b> <br>   <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>Sent   by: ml-errors_at_fatcity.com</span></font> </p>   <p><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:
  sans-serif'>&nbsp;12/17/2003 07:54 AM</span></font> <br>   <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;font-family:sans-serif'>&nbsp;</span></font><fo= nt
  size=3D1 face=3Dsans-serif><span =
style=3D'font-size:7.5pt;font-family:sans-serif'>Please   respond to ORACLE-L</span></font> </p>
  </td>
  <td valign=3Dtop style=3D'padding:.75pt .75pt .75pt .75pt'>
  <p class=3DMsoNormal><font size=3D1 face=3DArial><span =
style=3D'font-size:7.5pt;
  font-family:Arial'>&nbsp; &nbsp; &nbsp; &nbsp; </span></font><br>   <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp;   &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;Multiple = recipients of
  list ORACLE-L &lt;ORACLE-L_at_fatcity.com&gt;</span></font> <br>   <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp;   &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</span></font> =
<br>

  <font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:sans-serif'>&nbsp;   &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: = Unreadable
  time_stamp format</span></font></p>
  </td>
 </tr>
</table>

<p class=3DMsoNormal =

style=3D'margin-right:0in;margin-bottom:12.0pt;margin-left: .5in'><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size:12.0pt'><br>
<br>
<br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'>Jared,</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>It is epochtime. &nbsp;When I run your given SQL I got TO_DATE output is &quot;24-NOV-03&quot;. &nbsp;Is it actual date = translated
from epochtime &quot;1069716948959&quot; ? &nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>How do I query to select only 100 = records?</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>SQL&gt; select to_date('01/01/1970','mm/dd/yyyy') + ( 1069716948959 / (24*60*60*100</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>0) ) from dual ;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>TO_DATE('</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>---------</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>24-NOV-03</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>Thanks,<br>
David</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>&nbsp;</span></font> <br>
<font size=3D2 face=3DTahoma><span =

style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<b><span style=3D'font-weight:bold'><br> From:</span></b> ml-errors_at_fatcity.com [mailto:ml-errors_at_fatcity.com] =
<b><span

style=3D'font-weight:bold'>On Behalf Of =
</span></b>Jared.Still_at_radisys.com<b><span
style=3D'font-weight:bold'><br>
Sent:</span></b> Tuesday, December 16, 2003 7:14 PM<b><span = style=3D'font-weight:
bold'><br>
To:</span></b> Multiple recipients of list ORACLE-L<b><span = style=3D'font-weight:
bold'><br>
Subject:</span></b> RE: Unreadable time_stamp format</span></font> <br> &nbsp; <br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br> Try milliseconds from the epoch - 1/1/1970</span></font> <br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br> select to_date('01/01/1970','mm/dd/yyyy') + ( 1069716948959 / = (24*60*60*1000) )
from dual</span></font> <br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br> You really need to know how the timestamp column is defined by your = app.</span></font>
<br>
<font size=3D2 face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br> Jared</span></font> <font size=3D2 face=3Dsans-serif><span = style=3D'font-size:10.0pt;
font-family:sans-serif'><br>
<br>
</span></font></p>

<table class=3DMsoNormalTable border=3D0 cellpadding=3D0 width=3D"100%"
 style=3D'width:100.0%;margin-left:.5in'>  <tr>
  <td width=3D"1%" valign=3Dtop style=3D'width:1.04%;padding:.75pt .75pt = .75pt .75pt'>
  <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span   style=3D'font-size:12.0pt'>&nbsp; </span></font></p>   </td>
  <td width=3D"41%" valign=3Dtop style=3D'width:41.82%;padding:.75pt = .75pt .75pt .75pt'>
  <p class=3DMsoNormal><b><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:
  7.5pt;font-family:sans-serif;font-weight:bold'>&quot;Nguyen, David = M&quot;
  &lt;david.m.nguyen_at_xo.com&gt;</span></font></b> <font size=3D1 = face=3Dsans-serif><span
  style=3D'font-size:7.5pt;font-family:sans-serif'><br>   Sent by: ml-errors_at_fatcity.com</span></font> </p>   <p><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;font-family:
  sans-serif'>&nbsp;12/16/2003 02:09 PM</span></font> <font size=3D2   face=3Dsans-serif><span =
style=3D'font-size:10.0pt;font-family:sans-serif'><br>   </span></font><font size=3D1 face=3Dsans-serif><span = style=3D'font-size:7.5pt;
  font-family:sans-serif'>Please respond to ORACLE-L</span></font> </p>   </td>
  <td width=3D"55%" valign=3Dtop style=3D'width:55.78%;padding:.75pt = .75pt .75pt .75pt'>
  <p class=3DMsoNormal><font size=3D1 face=3DArial><span = style=3D'font-size:7.5pt;
  font-family:Arial'>&nbsp; &nbsp; &nbsp; &nbsp; </span></font><font = size=3D1
  face=3Dsans-serif><span =
style=3D'font-size:7.5pt;font-family:sans-serif'><br>   &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; &nbsp;Multiple = recipients
  of list ORACLE-L &lt;ORACLE-L_at_fatcity.com&gt;</span></font> <font = size=3D1
  face=3Dsans-serif><span =
style=3D'font-size:7.5pt;font-family:sans-serif'><br>   &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; = &nbsp;</span></font> <font
  size=3D1 face=3Dsans-serif><span =
style=3D'font-size:7.5pt;font-family:sans-serif'><br>   &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: = Unreadable
  time_stamp format</span></font></p>
  </td>
 </tr>
</table>

<p style=3D'margin-left:.5in'><font size=3D3 face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt'><br>
<br>
<br>
</span></font><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:navy'><br>
Now I got.</span></font> <font size=3D2 color=3Dnavy face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:navy'><br>
</span></font>&nbsp;<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><br> USER_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TIME = STAMP</span></font> <font
size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial; color:navy'><br>

-------------------- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;----------------------</span></font> <font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><br> eholley &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; 1069716948959</span></font> <font size=3D2 color=3Dnavy = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><br> jmdavis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; 1069715246467</span></font> <font size=3D2 color=3Dnavy = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><br> jmdavis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; 1069715324466</span></font> <font size=3D2 color=3Dnavy = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'><br>
</span></font>&nbsp;<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><br>
</span></font>&nbsp;<font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'><br>
-----Original Message-----<b><span style=3D'font-weight:bold'><br> From:</span></b> ml-errors_at_fatcity.com [mailto:ml-errors_at_fatcity.com] =
<b><span

style=3D'font-weight:bold'>On Behalf Of </span></b>Bobak, Mark<b><span style=3D'font-weight:bold'><br>
Sent:</span></b> Tuesday, December 16, 2003 3:54 PM<b><span = style=3D'font-weight:
bold'><br>
To:</span></b> Multiple recipients of list ORACLE-L<b><span = style=3D'font-weight:
bold'><br>
Subject:</span></b> RE: Unreadable time_stamp format</span></font> <br> &nbsp;<font size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size:10.0pt;
font-family:Arial;color:blue'><br>
Since it's a NUMBER datatype, try:</span></font> <font size=3D2 = color=3Dblue
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:blue'><br> SQL&gt; &nbsp;column time_stamp format =
99999999999999999999</span></font> <font
size=3D2 color=3Dblue face=3DArial><span = style=3D'font-size:10.0pt;font-family:Arial; color:blue'><br>
SQL&gt; &nbsp;select user_name, time_stamp from = USER_ACTIVITY_LOG;</span></font>
<br>

&nbsp;<font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'><br> -----Original Message-----<b><span style=3D'font-weight:bold'><br> From:</span></b> Nguyen, David M [mailto:david.m.nguyen_at_xo.com]<b><span style=3D'font-weight:bold'><br>
Sent:</span></b> Tuesday, December 16, 2003 4:39 PM<b><span = style=3D'font-weight:
bold'><br>
To:</span></b> Multiple recipients of list ORACLE-L<b><span = style=3D'font-weight:
bold'><br>
Subject:</span></b> Unreadable time_stamp format</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>I need to</span></font> <font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>view = time_stamp</span></font> <font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>column in USER_ACTIVITY_LOG table but it displays unreadable format as shown = below.
&nbsp;Is there a</span></font> <font size=3D2 face=3DArial><span = style=3D'font-size:
10.0pt;font-family:Arial'>way to decode it to be readable?</span></font> =
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>SQL&gt; desc USER_ACTIVITY_LOG</span></font> =
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =

&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;
&nbsp; &nbsp;Null? &nbsp; &nbsp;Type</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:

10.0pt;font-family:Arial'>&nbsp;-----------------------------------------=

-------- ----------------------------</span></font> </p>

<p style=3D'margin-left:.5in'><b><font size=3D3 face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>&nbsp;</span></font></b><b><f= ont
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;font-weight: bold'>TIME_STAMP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOT NULL = NUMBER(20)</span></font></b> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;NODE_NAME &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = NOT NULL
VARCHAR2(20)</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;USER_NAME &nbsp; &nbsp; &nbsp; &nbsp; =

&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;NOT

NULL VARCHAR2(20)</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;CLIENT_IP &nbsp; &nbsp; &nbsp; &nbsp; =

&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;</span></font>

<font size=3D2 face=3DArial><span =

style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;
</span></font>&nbsp;<font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>NOT NULL VARCHAR2(15)</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;DESCRIPTION &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOT = NULL
VARCHAR2(2048)</span></font> <br>
&nbsp; </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>SQL&gt;select user_name<b><span = style=3D'font-weight:
bold'>, time_stamp</span></b> from USER_ACTIVITY_LOG;</span></font> </p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>jmdavis &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>edscott &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; </span></font><b><span
style=3D'font-weight:bold'>&nbsp;</span></b><b><font size=3D2 = face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold'>1.0693E+12<= /span></font></b>
</p>

<p style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'>Thanks,<br>
David</span></font> </p>

</div>

</body>

</html>

=00
------_=_NextPart_001_01C3C4C4.FFF20250--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Nguyen, David M
  INET: david.m.nguyen_at_xo.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 Wed Dec 17 2003 - 11:44:37 CST

Original text of this message

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