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!

SQLPLUS not detecting error

AlbertoFaenzaNov 12 2015 — edited Nov 12 2015

Hi all,

I have recently come across a script which has not been tested properly and it was having an error which sqlplus did not detect.

Here the example:

SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 12 11:50:18 2015

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

SQL> update emp

  2     set comm=1

  3   where empno=7369

  4

SQL> commit;

Commit complete.

SQL>

As you can see the update statement missed the semicolon at the end or the slash on the next line and the update statement has not been executed.

Is there any way to avoid this problem (apart writing correctly and testing properly the script)?

Regards.

Alberto

This post has been answered by SomeoneElse on Nov 12 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2015
Added on Nov 12 2015
11 comments
927 views