简体   繁体   中英

Run multiple SQL scripts with oracle SQL developer

Right now I'm dropping, creating and then running scripts for several database several times each day. It's getting a little tedious.

I've simple scripts from dropping and creating databases and additional scripts that writes data to the DBs.

I run these scripts through oracle SQL developer. Is there a way I can run all of these scripts at the same time. Like in a batch file or another tool? Ie

  • Drop existing DBs

  • Create DBs

  • Run scripts for DBs

Haven't been able to figure it out

You can create a scheduled job in sql developer. See bellow steps to create a job:

1- From your connection in sql developer select scheduler. In right click select "New Job...".

在此处输入图像描述

2- In opened window you should select "PL/SQL Block" for "Type of Job" then write a block just like I wrote in bellow picture. Then you should select "Repeating" and insert intervals and start and end dates: 在此处输入图像描述

3- Keep in the mind that "Enable" box should be checked.

4- click on "Apply". Your Job will be ran based on intervals and start date you inserted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM