Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7764101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:49:33+00:00 2026-06-01T14:49:33+00:00

Below you could see template of SQL script that i’m trying to execute on

  • 0

Below you could see template of SQL script that i’m trying to execute on sqlplus:

WHENEVER SQLERROR EXIT 1 ROLLBACK
WHENEVER OSERROR EXIT 1 ROLLBACK

BEGIN
 -- Doing some Insert
END;
/

INSERT INTO TMP_TABLE VALUES('A', 'B')

COMMIT;
QUIT;
/

This script is available in a file (Test1.sql) on my local system and I am running this query by connecting to Oracle through Windows command line console. Typing below line on cmd.

C:\Users\myself> sqlplus UNAME/PWD@//DB IP:PORT/SID @C:\Users\Test1.sql

In SQL script I purposeful didn’t terminated one statement (INSERT INTO...) with a semi colon (see above). Now when i run this script by following above instructions, program run successfully and prints a message:

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Apr 6 16:50:19 2012

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options


PL/SQL procedure successfully completed.


Commit complete.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64
bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options

When I run the same set of scripts on my SQL Navigator tool, I get below error and that is correct:

[10]: (Error): ORA-00933: SQL command not properly ended

I am not understanding why the script is not reporting this error and instead displaying message like ‘Commit complete’.

Can you tell me how can i make my script throw this error on console when i’m trying to run the same through sdlplus using Windows command console?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:49:34+00:00Added an answer on June 1, 2026 at 2:49 pm

    My understanding is that in a sqlplus script, a blank line terminates a sql statement. I don’t have an Oracle environment to test, but try removing the blank line between your insert and the commit statement and see if you then get an error. I would imagine that you would see it then (it would act as a concatenated insert..commit statement).

    Take a look at executing commands section in the SQL Plus reference

    Specifically:

    Ending a SQL Command

    You can end a SQL command in one of three ways:

    • with a semicolon (;)
    • with a slash (/) on a line by itself
    • with a blank line

    Note:
    You can change the way blank lines appear and behave in SQL statements using the SET SQLBLANKLINES command (not in iSQL*Plus). For more information about changing blank line behavior, see the SET command.

    As for SQLNavigator, different client tools will behave differently. The SQLNavigator interpreter does not behave the same as the sqlplus interpreter. If you call Oracle support with an issue with a script, the first thing they will ask is "do you see this error when running it in sqlplus?"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I could see the below entries in the ULS log 02/08/2010 14:36:46.12 w3wp.exe (0x15F4)
How could I change the text below so that the text within it has
Below I'm trying to match certain nodes. <xsl:template match=nodes> <element> <xsl:apply-templates select=nodes mode=different />
I'm trying to set up a Rails Template that would allow for comprehensive set-up
please see the demo below : http://www.templateaccess.com/demos/walkin/ i bought this template and really really
I have a problem for querying records into mysql explanation below The user could
Below is my table, a User could have multiple profiles in certain languages, non-English
Could you please have a look at my code below. #!C:\Perl\bin\perl.exe use strict; use
Could someone please help me with the code for below requirement or scenarios...I achieved
Could anyone help me in assessing why the code below doesn't work. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.