Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sqlcl copy failing while it works with sqlplus

3846595Dec 6 2018 — edited Dec 13 2018

so, I am trying to copy some data from one database to another, first I was trying with sqlplus, then I had to stop since some tables had blob data, and sqlplus didn't support, then I came to know sqlcl and decided to give a try which worked perfectly for the blob, however some of the tables working before just stopped working complaining the identifier is too long, it seems its considering the schema name together with the table name making it bigger than the allowed 30 chars, for now I am using the old sqlplus to copy these tables but is there way to work around this, without the need to give login permission to the schema user ? I am not a DBA and neither an oracle expert so would appreciate any insights. thanks in advance.

*sqlplus sample

SQL > copy from user/password@SOURCEDB to user/password@NEWDB APPEND SCMHISTORY.TRANSACTION_DATA_ITEMS using select * from TRANSACTION_DATA_ITEMS where rownum < 5;

Array fetch/bind size is 15. (arraysize is 15)

Will commit when done. (copycommit is 0)

Maximum long size is 80. (long is 80)

    4 rows selected from user@SOURCEDB.

    4 rows inserted into SCMHISTORY.TRANSACTION_DATA_ITEMS.

    4 rows committed into SCMHISTORY.TRANSACTION_DATA_ITEMS at user@NEWDB.

*sqlcl sample

SQL > copy from user/password@SOURCEDB to user/password@NEWDB APPEND SCMHISTORY.TRANSACTION_DATA_ITEMS using select * from TRANSACTION_DATA_ITEMS where rownum < 5;

Array fetch/bind size is 15. (arraysize is 15)

Will commit when done. (copycommit is 0)

Maximum long size is 80. (long is 80)

Statement create table "SCMHISTORY.TRANSACTION_DATA_ITEMS" ("TRANS_NO" NUMBER(12) , "LINE_NUMBER" NUMBER(10) , "QTY" NUMBER(10) , "DESCRIPTION" VARCHAR2(25 CHAR) , "COMMENT" VARCHAR2(50 CHAR) , "RMA" VARCHAR2(25 CHAR) , "SERVICE_CODE" VARCHAR2(2 CHAR) ) failed, error message: ORA-00972: identifier is too long

COPY_DESTINATION_WAS_NOT_CREATED.

Comments

Post Details

Added on Dec 6 2018
6 comments
311 views