473,799 Members | 3,077 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_co lumn 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_co lumn to a file and
loading it back to table_a.long_co lumn?

Thanks in advance!!!
- Will
Jul 19 '05 #1
3 12185
On Tue, 30 Sep 2003 20:55:26 GMT, jcwhui
<j_c_w_h_u_i@ho t_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.

Unfortunatel y, "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_co lumn 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_co lumn to a file and
loading it back to table_a.long_co lumn?


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.c om> wrote in
news:tc******** *************** *********@4ax.c om:
On Tue, 30 Sep 2003 20:55:26 GMT, jcwhui
<j_c_w_h_u_i@ho t_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_co lumn 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_co lumn to a file and
loading it back to table_a.long_co lumn?


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.c om> wrote in
news:tc******** *************** *********@4ax.c om:

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

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

Unfortunatel y, "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_co lumn 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_co lumn to a file and
loading it back to table_a.long_co lumn?


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
9097
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 comparison to oracle? We are seriously considering migrating our multi-processor oracle system to mysql to save on licensing costs, and would need several features that mysql may or may not have:
11
10760
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 execute in the database server with better performance? Please advise good references for Oracle stored procedures also. thanks!!
13
3334
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 to rewrite all your code because Microsoft upgraded all their crap and nothing you wrote 10 years earlier works. It doesn't take a rocket scientist to figure out that Microsoft is unreliable. Try opening an Excel 95 spreadsheet you wrote in...
2
7975
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. There's no place to enter this information in. Later, if I run subsequent queries on the table in question, I don't need to enter un/pw again. I can leave my PC on 24x7, but that's not really a solution. I need to know if I can log in to the...
1
9203
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 will work for 9i and even 10g ) No one had what I needed, so I wrote it myself. I Rule. This code isn't going for efficiency, and isn't trying to be dynamic. It doesn't create the table structure in Oracle, that's up to you. (I
7
3947
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 the insert into the second table section: ' Copy LOB entries now. fails on unique index constraint (understandable because it has the orig rate_id). The strange thing is that it works fine for new records that have beend added and then...
56
4969
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 which are not supported.
0
1994
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 Oracle software on Pentium 4 computers Category: Oracle, Oracle Client Software ITS area: Administrative Information Systems When trying to install some Oracle8i software on a PC with a Pentium 4 processor, JREW.EXE may fail to launch the...
3
248
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 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,
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10219
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.