Solved

Transfer 'LONG RAW" data from one database to another

Posted on 2000-04-28
2
698 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 50 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

726 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