I don’t think you can do it in the script.
Secondly, do you not want user 'IM333 not to be able to execute the script
do you not want host_name ‘IM133’ show on the script.
Please explain what you are trying to do
On Fri, Aug 11, 2017 at 8:44 AM, rust email@example.com wrote:
sqlplus script exit
Thread created by rust
I want to start a script in SQLPLUS. If the login of HOST_NAME <> ‘IM333’, the script may continue.
But I do not know how I define a query and the script in the <> case is terminated.
So I ask for help. Many Thanks.
REM sqlplus USER/PASSWORD@DATABASE
COL HOSTNAME NEW_VALUE HNAME
COL HOSTNAME_WERT NEW_VALUE HNAMEW
SELECT HOST_NAME AS HOSTNAME,
DECODE( HOST_NAME, 'IM333', 0, 1 ) AS HOSTNAME_WERT
To reply, please reply-all to this email.
Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle Forum notifications altogether.
Toad for Oracle - Discussion Forum
Flag this post as spam/abuse.
Gene L. Bradley Jr.
Office of Information Technology
Jackson State University
1400 J R Lynch Street
P.O. Box 17750
Jackson, MS 39217
*In God we trust; all others bring data. * ~W.E. Deming
This electronic transmission is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone (601) 979-1042. Thank you.