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

Similar Messages

  • [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.

  • 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.)

  • 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

  • I purchased Lightroom 5, loaded it on my Mac, and updated to version 5.6. I then tried importing photos from my Sony DSC-RX100iii. Unfortunately it only imports JPEG files but no RAW files. What is the problem and how do I fix it?

    I purchased Lightroom 5, loaded it on my Mac, and updated to version 5.6. I then tried importing photos from my Sony DSC-RX100iii. Unfortunately it only imports JPEG files but no RAW files. What is the problem and how do I fix it?

    Than LR should have brought in the RAW files as well. ACR is the RAW
    processing engine used by LR under the covers so anything not supported by
    ACR would not be supported by Lightroom.
    Are you shooting RAW plus JPEG? By default, Lightroom will stack then
    unless you tell it not to. Check to see if there is a small badge on the
    preview that looks like two sheets of paper with a number. That is how
    Lightroom indicates a stack. You can unstack them by clicking on the badge.
    There is also a menu item to stack/unstack photos. Otherwise, I would have
    to research but not sure why Lightroom would ignore the RAW photos but
    still import the JPEGS.

  • Is it possible to import a file containing 300+ photos into PE10 at one time?

    I have a file on my hard drive that I want to import into PE 10. Is it possible to import a file containing 300+ photos into PE10 at one time? I can only find a way to import photos one by one.
    Is there an easy way to send these photos to Blogger?
    Thanks.

    File >> get Photos & Videos >> From Files & Folders
    Then navigate to your folder and press (Ctrl+A) to select all and click Open or Get Media.
    If blogger has an upload window try dragging a dropping directly from the folder into your web browser.

  • How to insert data from file into long raw field using utl_file?

    I try to insert binary data from a file (under AIX 4.3.3) into a LONG
    RAW field (Oracle 8.1.6).
    First, I retrieve the data from the file like this:
    DECLARE
    FileHandle = UTL_FILE.FILE_TYPE;
    myVariable LONG RAW;
    FileHandle := UTL_FILE.FOPEN ;('prj/oracle/admin/MARTIJN/udump',
    'MyFile.ATT', 'R');
    UTL_FILE.GET_LINE (FileHandle, myVariable);
    UTL_FILE.FCLOSE(FileHandle);
    INSERT INTO myTable(DUMMYFIELD) VALUES(myVariable);
    Where DUMMYFIELD of table myTable is of type LONG RAW.
    The GET_LINE statement crashes on Oracle Error ORA-6502: Numeric of
    Value error: hex to raw conversion error.
    What do I do wrong?
    Do I use the right method to retrieve information from a file and put
    it into a long raw field, should I try it another way?
    Any help greatly appreciated,
    Martijn Rutte

    Zarina,
    To clarify your problem, you have a script node contaning your Matlab code. Are you then using the standard LV functions to load in your data from a file and pass it into the script node?
    Regards
    Tristan

  • 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.
    Regards

    I'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.

  • 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 advance

    Hi,
    Could you list the error messages that you are getting when you try to do an import.

  • ORA-22835: buffer too small when trying to save pdf file in LONG RAW column

    Hi,
    I get "ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (real : 125695, maximum : 2000)" when i trying to save a 120k pdf file in an Oracle Long Raw column using dotnet 4.0 and Entity FrameWork.
    Dim db As New OracleEntities
    Try
    Dim myEntity = (From e In db.TEXTE _
    Where e.TEXT_ID = txtTextId.Text _
    Select e).Single
    With myEntity
    If txtTextypeId.Text <> "" Then
    .TEXTYPE_ID = txtTextypeId.Text
    Else
    .TEXTYPE_ID = Nothing
    End If
    .TEXT_NUM = txtTextNum.Text
    .TEXT_NAME = txtTextName.Text
    .TEXT_DATE = dtTextDate.SelectedDate
    If DocAdded Then
    .TEXT_DOC = Document
    ElseIf DocDeleted Then
    .TEXT_DOC = Nothing
    End If
    End With
    db.SaveChanges()
    Document is an array of Byte and TEXT_DOC also (mapped to a long row column).
    is it possible to increase the size of the buffer ? how may i do it ?
    Thx in advance.
    Regards.

    Using a custom UPDATE or INSERT stored procedure for LONG RAW column with
    exceed-limit data may still get the following error.
    "ORA-01460: unimplemented or unreasonable conversion requested".
    One option is to use BLOB instead of LONG RAW in your table and regenerate your
    data model from the table. Then using the default UPDATE or INSERT statement
    (created by EF) should work.
    The following will modify your LONG RAW column to BLOB column.
    Disclaimers:
    1. It's irreversible--you cannot modify BLOB back to LONG RAW.
    2. I have not tried that when there are huge data in LONG RAW column.
    So be careful.
    alter table <your_table_name> modify <your_long_raw_type_column> blob;

  • Exporting File Name to "Raw Data" Metadata

    At one time I was able to export a file's original file name in the "Raw Data" area of the metadata. I seem to have lost that ability in LR 4. I find this useful when a client renames a file and then wants me to find the original. I would open the file in Photoshop (or even a word processor) and the original name would be in the Raw Data area in File Info.
    When LR 4 imports the file the first time, it apparently still creates the xmp file with the file name at the end of <rdf:Description rdf:about="" field and it looks like:  crs:RawFileName="_DSC6501.NEF">
    At one time Lightroom exported that info. But now I seem to have lost that file name info, even with "Export All Metadata" selected.
    This is how it would look in Photoshop's File Info:
    <rdf:Description rdf:about=""
                xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
             <crs:RawFileName>DSC_8466.NEF</crs:RawFileName>
             <crs:Version>6.7</crs:Version>
             <crs:ProcessVersion>5.7</crs:ProcessVersion>
    Now it just says:
    <rdf:Description rdf:about=""
                xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
             <crs:Version>7.0</crs:Version>
             <crs:ProcessVersion>6.7</crs:ProcessVersion>
    What am I missing?
    Thanks!
    Stan

    Hi John, Thanks for your reply. I actually use Metadata Wrangler, but there is no "copy original file name into metadata" switch that I can see. And when you ask it to export all metadata, it actually doesn't.
    After several hours of testing I've found the culprit. Lightroom does not export all the metadata if you save it to a JPEG file, even if you tell it to. Neither does Photoshop's "Save for Web" even if you tell it to save all metadata. Both lose the field with the original file name (see my first post above).
    But if you export the file to Photoshop using the "CMD + E" command, Photoshop gets all the metadata.  If you then "Save As" a JPEG, the original file name travels to the newly created JPEG file.  It's there in the metadata. If you then do the same thing with "Save for Web" with "metadata" "all" you lose the file name field.
    So since you are asking all these programs to "save all metadata" and they don't, I would consider that a bug.
    Wouldn't you?

  • 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. Prasad

    You 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

  • Accessing LONG RAW data information

    Hi,
    Can anybody help me in knowing the information stored into a LONG RAW column. I would appreciate it in either SQL / PL SQL.
    Thanks in advance.
    Anil.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anil Budhkar ([email protected]):
    Hi,
    Can anybody help me in knowing the information stored into a LONG RAW column. I would appreciate it in either SQL / PL SQL.
    Thanks in advance.
    Anil.<HR></BLOCKQUOTE>
    well you have DBMS_LOB functions. Tou can visit the website for documentation and try using them. But what type of data is it.
    null

  • LONG RAW Data Column

    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:57

    Hi,
    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;

Maybe you are looking for