Remove Sqlplus reprompting on error

(Doc ID 1680304.1)

Last updated on OCTOBER 27, 2016

Applies to:

SQL*Plus - Version 12.1.0.1 and later
Information in this document applies to any platform.

Goal

When connecting to a database using:
  sqlplus user/xxx

in case of error for ex: ORA-1033 or ORA-01017: invalid username/password ,  is reported and prompts for the username two times:


Can the prompting for username "Enter user-name:"  be removed? The issue is that the screen stays on until it is manually been exited.  This is not good in the automation process


 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms