473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Oracle 8.0 Copy long from 1 table to another

Hello all,

Yes, it is another Oracle 8.0 question. We are just too small to force our
customer to migrate to newer Oracle.

My problem is I need to copy the value of the long column in table A to
another table B's long column.

Unfortunately, "insert into table_a select long_column from table_b"
doesn't work. I also thought of changing table_a's long column to clob,
and convert table_b.long_column to clob before inserting into table_a, but
to_lob() doesn't exist in Oracle 8.0.

So is this my only option: dumping table_b.long_column to a file and
loading it back to table_a.long_column?

Thanks in advance!!!
- Will
Jul 19 '05 #1
3 12158
On Tue, 30 Sep 2003 20:55:26 GMT, jcwhui
<j_c_w_h_u_i@hot_mail.company> wrote:
My problem is I need to copy the value of the long column in table A to
another table B's long column.

Unfortunately, "insert into table_a select long_column from table_b"
doesn't work. I also thought of changing table_a's long column to clob,
and convert table_b.long_column to clob before inserting into table_a, but
to_lob() doesn't exist in Oracle 8.0.

So is this my only option: dumping table_b.long_column to a file and
loading it back to table_a.long_column?


Investigate the use of the SQLPlus COPY command. This can transfer
longs.

Here's a link to the FAQ: http://www.orafaq.com/faqplus.htm#COPYLONG

Kind regards
Dale

Need to get the DDL out of a schema (or database)? Check out our
freeware DBATool. http://www.DataBee.com/dt_home.htm

Jul 19 '05 #2
Dale Edgar <Da**@DataBee.com> wrote in
news:tc********************************@4ax.com:
On Tue, 30 Sep 2003 20:55:26 GMT, jcwhui
<j_c_w_h_u_i@hot_mail.company> wrote:
My problem is I need to copy the value of the long column in table A to
another table B's long column.

Unfortunately, "insert into table_a select long_column from table_b"
doesn't work. I also thought of changing table_a's long column to clob,
and convert table_b.long_column to clob before inserting into table_a,
but to_lob() doesn't exist in Oracle 8.0.

So is this my only option: dumping table_b.long_column to a file and
loading it back to table_a.long_column?


Investigate the use of the SQLPlus COPY command. This can transfer
longs.

Here's a link to the FAQ: http://www.orafaq.com/faqplus.htm#COPYLONG

Kind regards
Dale

I doubt this will work for me. My code is inside a stored procedure. And
in fact I meant to copy 1 particular row from table_b to table_a, i.e.
"insert into table_a select long_column from table_b where id=123"

I guess external file access is my only option now. Thanks anyway!

- Will
Jul 19 '05 #3
jcwhui wrote:
Dale Edgar <Da**@DataBee.com> wrote in
news:tc********************************@4ax.com:

On Tue, 30 Sep 2003 20:55:26 GMT, jcwhui
<j_c_w_h_u_i@hot_mail.company> wrote:

My problem is I need to copy the value of the long column in table A to
another table B's long column.

Unfortunately, "insert into table_a select long_column from table_b"
doesn't work. I also thought of changing table_a's long column to clob,
and convert table_b.long_column to clob before inserting into table_a,
but to_lob() doesn't exist in Oracle 8.0.

So is this my only option: dumping table_b.long_column to a file and
loading it back to table_a.long_column?


Investigate the use of the SQLPlus COPY command. This can transfer
longs.

Here's a link to the FAQ: http://www.orafaq.com/faqplus.htm#COPYLONG

Kind regards
Dale


I doubt this will work for me. My code is inside a stored procedure. And
in fact I meant to copy 1 particular row from table_b to table_a, i.e.
"insert into table_a select long_column from table_b where id=123"

I guess external file access is my only option now. Thanks anyway!

- Will

Insert all data, except the long, then update the long.
Didn't try, but works for LOB across dblinks...

--
Regards, Frank van Bortel

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

133
by: jonathan | last post by:
hey all, I realize that this question might pop up from time to time, but I haven't seen it a while and things might of changed, so - Right now (July 2004) how does mysql stand up in...
11
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
2
by: jmev7 | last post by:
Any way to avoid having to manually enter my user name & password for the Oracle login box? I normally run a query on an attached Oracle table and have to enter the un/pw before the query will run....
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
7
by: peter.morin | last post by:
Issue: I am inserting an Oracle record containing insert trigger via Access 2002 using the code below. The issue is that the sequence from the acSaveRecord is not reflected after the insert so...
56
by: Ashish Patankar | last post by:
I want to migrate my Oracle 10g database to Db2. I want some documentation for the comparision between these to databases. I also want to know which features of Oracle 10g are supported by Db2 and...
0
by: Chris Leonard | last post by:
James - you could be running into a known issue with installing Oracle8i software on a P4. Here is a plain-text section of our internal documentation of the issue: Subject/Title: Installing...
3
by: jcwhui | last post by:
Hello all, Yes, it is another Oracle 8.0 question. We are just too small to force our customer to migrate to newer Oracle. My problem is I need to copy the value of the long column in table A...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.