Import/Export of LONG RAW data to/from Oracle 7.3.3
Is it possible to export the table with LONG RAW data from one instance and then import the dump file to another instance? Does Oracle 7.3.3 support these, if yes, how can I verify the LONG RAW data is successfully imported? If possible, please also provide me with some sample codes. Thanks a lot.
NO you do not have to run catexp7, export files are UPWARD compatable. 10G import can read a 7 export (however 7 export could NOT understand a 10g export.)
Similar Messages
-
Issue with Oracle LONG RAW data type
Hi All,
I am facing some issues with Oracle LONG RAW DATA Type.
We are using Oracle 9IR2 Database.
I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
I have gone through some docs and found we should not use LONG RAW using these operations.
So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
Appreciate if anyone can help me out here.
DECLARE
Y LONG RAW;
BEGIN
FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
INSERT INTO TRU_CMP.TERRITORY
BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
VALUES
REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
REC.STARTPERIOD, REC.TERRITORYSEQ
END LOOP;
END;
/Maddy wrote:
Hi All,
I am facing some issues with Oracle LONG RAW DATA Type.
We are using Oracle 9IR2 Database.
I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
I have gone through some docs and found we should not use LONG RAW using these operations.
So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
Appreciate if anyone can help me out here.
DECLARE
Y LONG RAW;
BEGIN
FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
INSERT INTO TRU_CMP.TERRITORY
BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
VALUES
REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
REC.STARTPERIOD, REC.TERRITORYSEQ
END LOOP;
END;
/below might work
12:06:23 SQL> help copy
COPY
Copies data from a query to a table in the same or another
database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
COPY {FROM database | TO database | FROM database TO database}
{APPEND|CREATE|INSERT|REPLACE} destination_table
[(column, column, column, ...)] USING query
where database has the following syntax:
username[/password]@connect_identifier -
Select Long Raw data type is so slow?
Hi
I have a table having Long Raw data type field.It's store
more than 2mb per record.But,I need to select others fields in this table without selecting Long Raw field.
anyway,it's so slow for me. Any advise to me?
thx a lot. :)I do not understand what you mean because if you have this table ( Example ):
c1 number
c2 number
c3 long
you can do this: select c1, c2 from <table_name>;
Joel Pérez -
[ORACLE 10G] Extract Long Raw data to disc
Hi All,
I want to extract a column which contain long raw data (pdf file) into files on my disque, but i don't know how to do it in SQL or PL/SQL, any help ???Or maybe just an alter table statement will do it for you...
SQL> create table xx (x long raw);
Table created.
SQL> desc xx;
Name Null? Type
X LONG RAW
SQL> alter table xx modify (x blob);
Table altered.
SQL> desc xx;
Name Null? Type
X BLOB
SQL>I've not really used LONG RAW's before but apparently (according to sources on the net) the simlple alter table statement above will do the job. -
Problem with date format from Oracle DB
Hi,
I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
I have changing the field settings in DataSource to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
Thanks in advance.
Regards
VaradaThanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
The issue again in detail
I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
The problem is, I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
Regards
Varada -
Data transfer from oracle database(external database) to sap database
Hi Abapers,
I have a requirment like excel data upload from oracle database(external database) to SAP database .Plz any one can help me how to create a bdc program for this requarment.
Advance thanks you.
JnanaHI
use function module 'ASLM_EXCEL_TO_INTERNAL_TABLE' TO UPLOAD DATA FROM EXCEL SHEET TO INTERNAL TABLE. FROM THERE U CAN SAVE IT TO DATABASE USING BDC FUNCTION MODULES. -
DATA EXTRACTION FROM ORACLE & SYBASE
Hello members...
Good day. This is my first posting in this site. I am new to Oracle and have a question regarding Data extraction from Oracle and Sybase.
My project has two applications one having Oracle as the database and the other has Sybase as the database. On the proposed production schedule, there would be a interface data update from the Oracle database to the Sybase database.
My aim is to check if the data update is in sync after the update. We plan to extract the data from the two databases (Oracle and Sybase) and compare in a Third Party tool. We have the tool to compare. Can any of you suggest a nice data extraction tool. I have to set this data extraction as a batch in the nightly batch schedule.
Thanks in advance,
Regards,
Krishna Kumar...Sybase provides the best data extraction utility called BCP. You can load and extract data. It is very user friendly. From your unix prompt if you type in BCP ? you will all the switches and
help messages you need to use. It is so simple.
Oracle dosn't have such a utility to extract data from table.
You need to write a Stored procedure and use UTF_FILE package to
extract data from table and write into a file. -
Does oracle 8i can be able to export and import long raw data?
Hi freinds,
i m trying to export a user schema that includes emp_photo a long raw, it got exported with out errors (oracle 7 doesnt). when im tryuing to import it is getting failed, does it cant be imported? or this is becz of some other problems.
thanks in advanceHi,
Could you list the error messages that you are getting when you try to do an import. -
Importing a file containing long raw data
I have got a .dmp file which was exported from an oracle 8i database & contains a long raw column.Now, when i try to import this file in to oracle 9i database, the import says,
C:\>imp
Import: Release 9.2.0.1.0 - Production on Sat Aug 20 14:51:03 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Username: sys@mydb2 as sysdba
Password:
Connected to: Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Import file: EXPDAT.DMP > invoice_content.dmp
Enter insert buffer size (minimum is 8192) 30720>
Export file created by EXPORT:V08.01.07 via conventional path
Warning: the objects were exported by TPSYSADM, not by you
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
export client uses US7ASCII character set (possible charset conversion)
export server uses US7ASCII NCHAR character set (possible ncharset conversion)
List contents of import file only (yes/no): no >
Ignore create error due to object existence (yes/no): no >
Import grants (yes/no): yes >
Import table data (yes/no): yes >
Import entire export file (yes/no): no >
Username: tpsysadm
Enter table(T) or partition(T:P) names. Null list means all tables for user
Enter table(T) or partition(T:P) name or . if done:
. importing TPSYSADM's objects into SYS
Import terminated successfully without warnings.
Now, when i query from the sys user, i dont find any object with the name invoice_contents.
Can any 1 help me out of the above problem.
Thanks in advance.The import seems OK, but it also seems that no rows have been imported, maybe no tables. What is the result of :
SQL> select owner, table_name from dba_tables where table_name like '%INVOICE%';
BTW, is the name invoice_content or invoice_contents ?
If the query does not give result, then try to check the content of your dmp file
C:\> imp user/password@db file=invoice_content.dmp full=y show=y
Paul -
How to read LONG RAW data from one table and insert into another table
Hello EVERYBODY
I have a table called sound with the following attributes. in the music attribute i have stored some messages in the different language like hindi, english etc. i want to concatinate all hindi messages and store in the another table with only one attribute of type LONG RAW.and this attribute is attached with the sound item.
when i click the play button of sound item the all the messages recorded in hindi will play one by one automatically. for that i'm doing the following.
i have written the following when button pressed trigger which will concatinate all the messages of any selected language from the sound table, and store in another table called temp.
and then sound will be played from the temp table.
declare
tmp sound.music%type;
temp1 sound.music%type;
item_id ITEM;
cursor c1
is select music
from sound
where lang=:LIST10;
begin
open c1;
loop
fetch c1 into tmp; //THIS LINE GENERATES THE ERROR
temp1:=temp1||tmp;
exit when c1%notfound;
end loop;
CLOSE C1;
insert into temp values(temp1);
item_id:=Find_Item('Music');
go_item('music');
play_sound(item_id);
end;
but when i'm clicking the button it generates the following error.
WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-06502.
ORA-06502: PL/SQL: numeric or value error
SQL> desc sound;
Name Null? Type
SL_NO NUMBER(2)
MUSIC LONG RAW
LANG CHAR(10)
IF MY PROCESS TO SOLVE THE ABOVE PROBLEM IS OK THEN PLESE TELL ME THE SOLUTION FOR THE ERROR. OTHER WISE PLEASE SUGGEST ME,IF ANY OTHER WAY IS THERE TO SOLVE THE ABOVE PROBLEM.
THANKS IN ADVANCE.
D. PrasadYou can achieve this in many different ways, one is
1. Create another VO based on the EO which is based on the dest table.
2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
3. commiting the transaction will push the data into the dest table on which the dest VO is based.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
Tapash -
Slow performance with long raw data
Hi all,
we are running a 8i on linux (suse 6.2). everything is fine, but
when we try to select data from a table with two number and one
long raw fields the performance is real low.
data were exported from a 7.0.3 server running on a solaris box.
the new server is much more performant then the sun box, only
this one table doesnt work correct.
Any ideas what i did wrong? more details could be supplied if
needed.
Li
nullCaitanya wrote:
Blushadow,
I thought this is how a Cursor loop works:
..cut..
you need not fetch it again inside the loop? you fetch it once and the loop takes care of implicitly fetching one record at a time in the cursor.
Please correct me if I am wrong.Yes, typically a cursor loop starts the loop, then fetches and then tests for exit condition before processing.
The style the OP is using comes from the old BASIC style where we had REPEAT..UNTIL loops. The condition for these loops, due to their syntax, was specified on the UNTIL part e.g.
REPEAT
.. code ..
UNTIL <condition>;This meant that the code would always be executed once and therefore, to prevent the code executing unecessarily you would have to code something like... (excuse my pseudo code)
IF <condition> = TRUE THEN
REPEAT
.. code ..
UNTIL <condition>
END IF;So, in terms of what the OP is doing, they are fetching the first row outside the loop, using the condional check as the first thing inside the loop to prevent execution of the code if it's unnecessary, and then at the end of the loop fetching the next row before looping back around to the conditional check. Typically, you wouldn't do it that way, but it's fine and does work. -
Hi everybody,
I have this table:
CREATE TABLE ATTACHMENTS
AREFITEM NUMBER NOT NULL,
ATTACHMENT LONG RAW ,
CONSTRAINT ATTACHMENTS_PK PRIMARY KEY ( AREFITEM ) ENABLE
);This sequence:
CREATE SEQUENCE SATTACHMENTS INCREMENT BY 1 MAXVALUE 999999999999999999999999999 MINVALUE 1 CACHE 20;I have some data in the table... i will not show because it would looks awful posted in here (something like 53454C4543542..... in the ATTACHMENT column) :P
How can i duplicate the data?
INSERT INTO ATTACHMENTS(AREFITEM , ATTACHMENT ) SELECT SATTACHMENTS.NEXTVAL, ATTACHMENT from ATTACHMENTS WHERE AREFITEM = 1;Gives me an error of : illegal use of LONG datatype.
Is this even possible?
1. I cannot unfortunately change to BLOB.
2. Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Corrected.
Edited by: Vitor Rodrigues on 26/Mar/2012 14:57Hi,
It seems like you've forgotten the from clause in the select statement :
INSERT INTO ATTACHMENTS(AREFITEM , ATTACHMENT ) SELECT SATTACHMENTS.NEXTVAL, ATTACHMENT WHERE AREFITEM = 1; -
Re:read long raw data in Oracle and write to a file
So we need an mechanism to read data from LONG RAW and convert into actual file.
RegardsI've branched your post off from the thread you posted on ({thread:id=620757}) as it was an old thread.
When you have a question of your own, you should always start a new thread rather than tag onto old ones.
Please read: {message:id=9360002} and post some relevant information so that people can help you. -
Parsing raw DAT files from WVC210 IP cam
Hi,
Is there any information available about the raw DAT file format that cisco uses for the WvC210 IP camera's?
A surveillence system based on 2 WvC210 IP camera's was vandalised and we could salvage only the DAT files, the rest is trashed.
I've loaded the software onto a new system and put the DAT files in the correct location but nothing works on these files.
I can see structure in the raw data, so there is something there.
The validate tools and the DBTools don't have any effect so maybe the files are mangled.
But as a programmer I could parse the files and possibly pad stuff to get it working again.
It's really important we do a full effort to retrieve some evidence, any help is appreciated.
I've read most posts and I relalise the product is EOL, but all I need is the file structure, any tech docs available?
Regards,
ShaunHi Alan,
We have more .DAT files but no .rcd or other files.
Here is the full file list, showing bytes and filenames.
These are all the files that were recovered from the vandalised harddrive.
But I'll double check this just to be sure.
I'm guessing the naming convention is:
C00000/1 (camera number)
S00A ??
20120215 (year-month-day)
151302 (hr-min-sec)
37178 (??)
.dat (file extention)
15-02-2012 16:02 717.034 C00000S00A20120215130237178.dat
15-02-2012 16:40 819.238 C00000S00A20120215134037698.dat
15-02-2012 18:03 718.943 C00000S00A20120215150349680.dat
15-02-2012 19:06 935.351 C00000S00A20120215160626831.dat
15-02-2012 19:08 323.334 C00000S00A20120215160844811.dat
15-02-2012 14:37 971.580 C00001S00A20120215113659726.dat
15-02-2012 15:09 752.687 C00001S00A20120215120925565.dat
15-02-2012 16:00 563.281 C00001S00A20120215130006543.dat
15-02-2012 17:34 615.714 C00001S00A20120215143439943.dat
15-02-2012 17:34 22.921.555 C00001S00A20120215143441035.dat
15-02-2012 19:08 858.214 C00001S00A20120215160839377.dat
15-02-2012 19:13 132.448.256 C00001S00A20120215161340485.dat
15-02-2012 19:19 350.180.000 C00001S00A20120215161947209.dat
These are all the files we have and I've uploaded all to the google docs folder:
https://docs.google.com/open?id=0B8oCN_ZRP1rARTBFWW4tNHhRUEdxTmM0SV9SSTVsQQ -
Hi
I am trying to import date fields in an Oracle database in to SQL Server 2012, using SSIS. The package is using DT_DBTIMESTAMP type in the Data Flow, but this has the same range as SQL Server datetime, and it bombs out all the time.
I have tried to change the type used to DT_DBDATE, but no matter what I do the data type on the input columns is readonly and will not change.
Any help would be much appreciated
Andy
CRM 4, SQL Server and .Net developer using C#Hi Andy,
From the Mapping of Integration Services Data Types to Database Data Types section of the document, we can get the detailed information about mapping the Oracle data types to Integration Services data types. To change the data type from DT_DBTIMESTAMP to
DT_DBDATE, we can use the following two methods:
Method 1:
Right click on the Source component and click “Show Advanced Editor”.
Switch to the “Input and Output Properties” tab, expand the XX Source Output node, and expand the Output Columns node.
Click the target column, and change the DataType property to DT_DBDATE.
Method 2:
Add a Data Conversion component to the Data Flow Task
Double click the Data Conversion component to open the Data Conversion Transformation Editor
Select the target input column, and change the Data Type to database date [DT_DBDATE].
If I have anything misunderstood, please feel free to let me know.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support
Maybe you are looking for
-
Problems with superscript when exporting to PDF
If one writes in a table cell for example "100m3 tank" with 3 as a superscript, then exports the document to PDF, the "3 tank" disappears, likewise if one just writes "100m3", the 3 disappears. However, if you just write "m3", the three in superscrip
-
Ec pca Special G/L Indicator
hi, When I posting a document with a line item supplier and a line item advance (with G/L indicator) the first profit center is the dummy. Why? Tanks Dani
-
CS4...How do you draw/paint in pure black & white?
Sorry for the dumb questions but I'm absolutely new to this stuff and I'm getting a lot of great info here which I'm keeping meticulous notes of... I've figured out how to paint with CS4 in colors and "near" black/grey/ white (by going to the extreme
-
I've been searching through the various folders on my Mac Pro hard drive and cannot see where user data is stored.As an example, I deleed Skype and reloaded it and my old profile data is still available. but I cannot determine where it is stored. Can
-
Loss of Sound After Waking From Sleep or unplug headsets
As the title said, it lose sound sometimes, I have to restart it, then it will OK. Is there a better way to solve that?