Skip to Main Content

Oracle Database Discussions

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!

in windows batch file,how to check if connection to db is successful or not

880186Aug 4 2011 — edited Aug 4 2011
I want to do some operations in batch file. So i use command "sqlplus usr/pwd@con @operation.sql" to in the batch file. But how can i check if i connect successfully? The %ErrorLevel% is always 0
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2011
Added on Aug 4 2011
6 comments
2,365 views