Help please ! MS SQL -> Oracle !

Help please ! MS SQL -> Oracle !

Post by Sall » Fri, 04 Jan 2002 22:41:05



Dear all,

What I need is to transfer data from a SQL Server table to an Oracle table.
I use DTS in SQL Server to simplify the process.  However, the task failed.
An error 'Invalid Number' is prompted indicates an error occurs to one
field.  The field types of the source and the destination tables are as
follow.

(SQL)  numeric(18,2)    -->      (Oracle) number(18,2)

The field types look the same but the process failed.  Could any body tell
me why and how to solve it ?

Thanks for any help !

Sally

 
 
 

Help please ! MS SQL -> Oracle !

Post by Geoff Reade » Sat, 05 Jan 2002 01:34:28


It may be that you have a NULL value from SQLServer that you are trying
to Insert into the column on Oracle which would like a number, if you
can change NULLs to zero's that would probably help.

Don't know how you'd do it in SQLServer, but in SQLPlus it would be
NVL(column_name,0)

HTH
Geoff
Geoff Reader
University of Brighton


> Dear all,

> What I need is to transfer data from a SQL Server table to an Oracle table.
> I use DTS in SQL Server to simplify the process.  However, the task failed.
> An error 'Invalid Number' is prompted indicates an error occurs to one
> field.  The field types of the source and the destination tables are as
> follow.

> (SQL)  numeric(18,2)    -->      (Oracle) number(18,2)

> The field types look the same but the process failed.  Could any body tell
> me why and how to solve it ?

> Thanks for any help !

> Sally


 
 
 

Help please ! MS SQL -> Oracle !

Post by Sall » Sun, 06 Jan 2002 00:11:41


Thanks for your reply, Geoff.  But I've tried to transfer 1 record only with
no null value at all.  Then, I've tried to convert the field to type DECIMAL
in SQL Server before transfer.  The task succeeded but decimal places were
lost.  I've also tried to convert to type DECIMAL(18,2), i.e. with precision
& scale specified.  This time, the task failed with the same error message
"Invalid number".  Please help!

Sally


> It may be that you have a NULL value from SQLServer that you are trying
> to Insert into the column on Oracle which would like a number, if you
> can change NULLs to zero's that would probably help.

> Don't know how you'd do it in SQLServer, but in SQLPlus it would be
> NVL(column_name,0)

> HTH
> Geoff
> Geoff Reader
> University of Brighton


> > Dear all,

> > What I need is to transfer data from a SQL Server table to an Oracle
table.
> > I use DTS in SQL Server to simplify the process.  However, the task
failed.
> > An error 'Invalid Number' is prompted indicates an error occurs to one
> > field.  The field types of the source and the destination tables are as
> > follow.

> > (SQL)  numeric(18,2)    -->      (Oracle) number(18,2)

> > The field types look the same but the process failed.  Could any body
tell
> > me why and how to solve it ?

> > Thanks for any help !

> > Sally

 
 
 

1. Help please ! MS SQL -> Oracle !

Dear all,

What I need is to transfer data from a SQL Server table to an Oracle table.
I use DTS in SQL Server to simplify the process.  However, the task failed.
An error 'Invalid Number' is prompted indicates an error occurs to one
field.  The field types of the source and the destination tables are as
follow.

(SQL)  numeric(18,2)    -->      (Oracle) number(18,2)

The field types look the same but the process failed.  Could any body tell
me why and how to solve it ?

Thanks for any help !

Sally

2. Errate sheet for "Principles of Distributed Database Systems"?

3. ODBC->MS SQL Errors, please help.

4. r4gl -> ?

5. Oracle->ODBC->MS-ACCESS problem, need help

6. Performance guide

7. xp_sendmail: failed with mail error 0x80004005 HELP>>>PLEASE

8. MS-Win95-->MS-Proxy2.0-->MS-SQL6.5

9. TORONTO>>>DBA MS SQL SERVER, - Full time position -TORONTO

10. MS/ACCESS SQL -> ORACLE SQL

11. HELP>>HELP>>Using an Index for an MSSQL database

12. Sqlserver->ODBC->ASP Please HELP !!!