Home » SQL & PL/SQL » SQL & PL/SQL » COPY command in SQL giving some error
COPY command in SQL giving some error [message #19327] Tue, 12 March 2002 03:15 Go to next message
Aswin Kumar
Messages: 4
Registered: January 2002
Junior Member
I am trying to use COPY sql command to insert some data from a seperate local database and I am getting the following error, Can anybody help me out with this:
-----------------------------------------------------
copy from lcs/lcs@nextlinx to lcs/lcs@lcs_test -
replace lcs_hts -
using select * from lcs_hts;

Array fetch/bind size is 1000. (arraysize is 1000)
Will commit after every 100 array binds. (copycommit is 100)
Maximum long size is 2000000000. (long is 2000000000)

ERROR:
ORA-01458: invalid length inside variable character string
-------------------------------------------
Re: COPY command in SQL giving some error [message #19341 is a reply to message #19327] Tue, 12 March 2002 10:49 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
there are restrictions with datatypres on the copy command. Have you checked the documentation on those - I don't know them offhand. I think LONG is one of the ones not supported.
Re: COPY command in SQL giving some error [message #19348 is a reply to message #19341] Tue, 12 March 2002 19:25 Go to previous messageGo to next message
Aswin Kumar
Messages: 4
Registered: January 2002
Junior Member
Thanks,
I checked the docs, COPY supports LONG but not LONG RAW,
But I have no LONG datatypes in any of my tables, I guess there is some other problem. Still I am getting the same error.
Re: COPY command in SQL giving some error [message #20313 is a reply to message #19341] Mon, 13 May 2002 09:37 Go to previous messageGo to next message
SANDY
Messages: 60
Registered: April 1998
Member
This is a bug in oracle 8.1.5 and is fixed in 8.1.6. If you are having 8.1.5, you will have to upgrade.
Reference: metalink
Re: COPY command in SQL giving some error [message #20848 is a reply to message #19348] Tue, 25 June 2002 11:36 Go to previous messageGo to next message
Chris Wilson
Messages: 1
Registered: June 2002
Junior Member
I am getting the same error, too, with no longs in sight.
Re: COPY command in SQL giving some error [message #20852 is a reply to message #19348] Tue, 25 June 2002 14:49 Go to previous messageGo to next message
Suresh
Messages: 189
Registered: December 1998
Senior Member
There was a bug related to this in ver 8.1.5. Should have fixed in 8.1.6.
Re: COPY command in SQL giving some error [message #21313 is a reply to message #19341] Thu, 25 July 2002 13:53 Go to previous message
Julie
Messages: 98
Registered: February 2002
Member
I got the same error. I am using oracle 8.1.7.
Previous Topic: dates
Next Topic: START command in SQL*PLUS with pathname ?
Goto Forum:
  


Current Time: Fri Apr 26 03:26:01 CDT 2024