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?
-
Why run the same script on 4 different connections?Rajesh Chamarthi– Rajesh Chamarthi2012-10-10 15:15:57 +00:00Commented Oct 10, 2012 at 15:15
-
1Because I want all of them to have the procedures I'm working on.Jawap– Jawap2012-10-10 15:17:22 +00:00Commented Oct 10, 2012 at 15:17
Add a comment
|
3 Answers
You can use JetBrains products like Intellij IDEA or DataGrip Prerequisites: -Ensure you have IntelliJ IDEA or DataGrip installed and configured with the necessary database drivers. Steps:
- Establish Database Connections: -Open the Database tool window (View > Tool Windows > Database). -Click the "Add New" (+) icon and select "Data Source". -Choose your database type (e.g., MySQL, PostgreSQL, Oracle) and provide the required connection details (hostname, port, username, password, etc.). -Repeat this process for each database you intend to target.
- Create a Database Script Run Configuration: -Go to the menu bar and select Run > Edit Configurations (or Run > Run Configurations... depending on your IntelliJ IDEA version). -Click the "Add New Configuration" (+) icon and choose "Database Script". -Assign a descriptive name to your configuration (e.g., "Multi-Database Script Execution").
- Specify Target Data Sources: -In the "Target Data Source/Schema" section, click the "Add..." button. -Select the database connections you want to include from the list. You can select multiple connections simultaneously.
- Select or Write Your SQL Script: -Execute Box: If you have a short, self-contained SQL statement, paste it directly into the "Execute" box within the configuration. -SQL File: For more complex scripts, navigate to the file containing your SQL code in the Project tool window. Drag and drop the file onto the appropriate data source/schema in the configuration.
- Execute the Script: -Back in the Run Configurations window, click the "Run" button (or the green play icon) to initiate the script execution across all chosen databases.
2 Comments
Abra
The posted question asks about SQL Developer but you are referring to different software products. So are you implying that what the OP wants cannot be achieved using SQL Developer?
tdy
Was any of this AI-generated?