Skip to Main Content

Database Software

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!

Oracle Scheduler to run a .bat file without username/password in the bat file

user4529974Jan 26 2017 — edited Jan 26 2017

Hi ,

The scenario as follows ,

Would like to have a daily spool file of the database health check using the .sql file.

1) the .sql file has been tested

2) the spool output has been tested

Now I need to schedule using either .bat or using procedure + Scheduler.

I have issues with using SPOOL command in procedure , as I understand it is a sqlplus command.

So I am trying to run it with a .bat file.

The question is how can I run the .bat file without entering the username/password?

@D:\test.sql

Thats all I want in the .bat file to be scheduled to run daily using the scheduler.

Thanks!

This post has been answered by AndrewSayer on Jan 26 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2017
Added on Jan 26 2017
8 comments
1,510 views