Skip to Main Content

SQL & PL/SQL

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!

COPY statement abort.

BugsJun 25 2014 — edited Jun 25 2014

Guys,

Could you please advise the way around to cause the COPY statement to reject the record instead of aborting it.

CREATE TABLE XXX_VOIP_DB_STAGE.TEMP

  (DATETIME TIMESTAMP);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

COPY XXX_VOIP_DB_STAGE.TEMP (

TIME  FILLER VARCHAR(10240)

,DATETIME AS TO_TIMESTAMP(TIME,'MMDDYYYY:HH24MI')

)

FROM LOCAL '/home/files/VOIP/test.csv' SKIP 1 DELIMITER ','  REJECTMAX 10000 NO COMMIT;

ERROR 2005:  Invalid input for HH24: "d0"

cat /home/files/VOIP/test.csv

TIME

20140625:d0

Thank you!

-Bugs

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2014
Added on Jun 25 2014
1 comment
206 views