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!

Windows batch file

700833May 23 2009 — edited May 23 2009
Hi,
I am trying to familiarize myself with a windows .bat file that connects to sqlplus and executes some commands. The login command in the file goes like this:

echo connect sys/pwd as sysdba;

The above command connects fine. But when I replace this command with:

echo sqlplus sys/sudhakar as sysdba;

It does not work. Why is this? The second command is how I would normally login to sqlplus, why does it not work in a batch file?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2009
Added on May 23 2009
2 comments
1,752 views