?
Solved

Transfer 'LONG RAW" data from one database to another

Posted on 2000-04-28
2
Medium Priority
?
727 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

650 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