?
Solved

Transfer 'LONG RAW" data from one database to another

Posted on 2000-04-28
2
Medium Priority
?
717 Views
Last Modified: 2008-03-06
Hi Expert,
I have two database. IE database 1 and database 2. Both have a table that contain a column with "LONG RAW" data type.
I would like to transfer some of this column data from database 1 to database 2.
Pls propose a solution for this.
Thks!
0
Comment
Question by:jiayiloo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
askjervold earned 100 total points
ID: 2758961
If you do not want all the data transfered you ought to copy the table to a working table:

create table tmp_table as
select * from table;

in database 1,

and then export and import the table to database 2 using exp and imp utilities.

in database 2 use direct load to insert data into the table:

insert into table
select * from tmp_table
where <your clause for selecting data>;

This data is inserted above HWM (High Water mark) so if this is big tables you should give this a thought.

rgds andy
0
 

Expert Comment

by:mphilipp
ID: 2761779
I don't think this will work, Andy. You can't copy LONG fields like that(ORA-0997 - illegal use of Long datatype). There are two options:

1-export/import. Here you can't make a selection of the records you want to transfer.
2-write the content of the long field to a file and read them with SQL*Loader. I did that once, but was only able to do it because ot was ASCII data in a LONG collumn. I'm not sure if you can do the same thing with a binary values. Maybe you should try something in Visual Basic, for Oracle doesn't leave you with much option for LONG columns.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question