简体   繁体   中英

Run SQL script on multiple DB connections at same time in Oracle SQL Developer

I have 4 different database connections in Oracle SQL Developer. All of them have the exact same set of packages and procedures. Every time I change something in my scripts I have to run it on all of the connections one-by-one. Is there no way to run it on all the connections at the same time?

I'm afraid that you can only execute SQL developer queries on different connections using the GUI.

You should, however, be able to acheive what you want using SQLPlus instead.

You can use "create database link" function:

          CREATE DATABASE LINK linkDB_1
            CONNECT TO xxxx IDENTIFIED BY xxxx
            USING 'xxxxx';


            SELECT *
            FROM   tablename@linkDB_1;

            DROP DATABASE LINK linkdb_1;

I tested on my SQL Navigator, and it works.

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