Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
Subject: ora 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
Subject: Re: ORA 01722 invalid number
 
Subject: Re: Date conversion question

Subject: Re: Date conversion question

2007-10-03       - By Rumpi Gravenstein

 Back
Harvinder,

Are these valid dates?  Some clearly aren't ( "0").  I can think of at least
two ways to get this loaded:

1.  Use a column expression (http://tinyurl.com/29k93m) within your
Sqlloader control file to convert the data into a valid date.
2.  Load the data into a staging table that has this column defined as a
VARCHAR2.  Then write a PL/SQL procedure that moves the data from the
staging table to the real table.  The procedure should include the necessary
logic to convert this column into a recognized Oracle date format.

On 10/3/07, Harvinder Singh <Harvinder.Singh@(protected)> wrote:
>
> Hi,
>
> We have a flat file that contains a column and the values are stored as:
> 991123
> 421
> 60823
> 0
> 70930
>
> Now we are moving data from flat file to table and this column will be
> inserted into Date dataype column, What is the way to insert into this
> table and avoid "ORA-01821 (See http://ORA-01821.ora-code.com): date format not recognized" errors.
>
> Thanks
> --Harvinder
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>


--
Rumpi Gravenstein

<div>Harvinder,</div>
<div>&nbsp;</div>
<div>Are these valid dates?&nbsp; Some clearly aren&#39;t ( &quot;0&quot;).
&nbsp; I can think of at least two ways to get this loaded:</div>
<div>&nbsp;</div>
<div>1.&nbsp; Use a column expression (<a href="http://tinyurl.com/29k93m">http
://tinyurl.com/29k93m</a>)&nbsp;within your Sqlloader control file to convert
the data into a valid date.</div>
<div>2.&nbsp; Load the data into a staging table that has this column defined
as a VARCHAR2.&nbsp; Then write a PL/SQL procedure that moves the data from the
staging table to the real table.&nbsp; The procedure should include the
necessary logic to convert this column into a recognized Oracle date format.
<br>&nbsp;</div>
<div><span class="gmail_quote">On 10/3/07, <b class="gmail_sendername"
>Harvinder Singh</b> &lt;<a href="mailto:Harvinder.Singh@(protected)"
>Harvinder.Singh@(protected)</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0
.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>We have a flat file that contains
a column and the values are stored as:<br>991123<br>421<br>60823
<br>0<br>70930<br><br>Now we are moving data from flat file to table and this
column will be<br>inserted into Date dataype column, What is the way to insert
into this<br>table and avoid &quot;ORA-01821 (See http://ORA-01821.ora-code.com): date format not recognized&quot;
errors.
<br><br>Thanks<br>--Harvinder<br><br>--<br><a href="http://www.freelists.org
/webpage/oracle-l">http://www.freelists.org/webpage/oracle-l</a><br><br><br><
/blockquote></div><br><br clear="all"><br>-- <br>Rumpi Gravenstein