DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Migrating from long raw to blob

Hybrid View

  1. #1
    Join Date
    Sep 2000
    Posts
    33
    Hi

    I am running Oracle 8.0.6 EE. I have a table with a long raw column. I have created a new table replacing the longraw column with a blob column. I would like to migrate my data into the new table. I have tried insert into new_table select ..,to_lob(longrawcolumn) from old_table. This command fails with an error. Any ideas how I can succesfully go round this problem.


  2. #2
    Join Date
    Jan 2001
    Posts
    2,828

    Talking

    Hello

    Please post the error message here.

    regards
    Hrishy

  3. #3
    Join Date
    Sep 2000
    Posts
    33
    Here is the comand as well as the error

    SQL> insert into test2 select * from test1;
    insert into test2 select * from test1
    *
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype

    SQL> insert into test2 select id, to_blob(img) from test1;
    insert into test2 select id, to_blob(img) from test1
    *
    ERROR at line 1:
    ORA-00904: invalid column name

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width