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!

How to create a config file and batch file

Ravi0013Aug 2 2017 — edited Aug 2 2017

Hello,

I have a requirement to create a config file and shell batch file, so the idea is when I run the batch file it should pickup the database connection details from the config file and should generate another batch file  in this format sqlplus username/password@host:port/service @file location, so that when I run the generated batch files it will create, drop or truncate as needed. Please let me know if any of you have done this, the reason is  we have to do this repeatedly on different schema's and db's and we are trying to minimize manual intervention. Also, there is more we have to build on top of this logic, but this will be a good start. 

Thanks in advance.

Thanks,

Ravi

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2017
Added on Aug 2 2017
3 comments
567 views