Repository navigation
How To
On Windows, from the preferences menu, select Browse Packages...

On a Mac, from the Sublime Text menu select Preferences/Browse Packages...

On the file explorer or finder, the Packages folder will be open, navigate to the parent folder (Sublime Text 2/3) and look for the Installed Packages folder (create it if not there).


Download the Oracle.sublime-package from the repository and copy it into the Installed Packages folder (overwrite if prompted).


Restart Sublime
If the desired syntax is not selected by default (e.g. SQL is used for default for .sql files), click on the lower right of the status bar to show the list of available syntax definitions, select Oracle and then the appropriate syntax.

From the preferences menu, select Browse Packages...
On the explorer, navigate to User folder
Download the sqlplus.sublime-build file from the repository into the Packages/User folder (overwrite if prompted).
Edit the file in Sublime text and add entries for your environments based on the example provided, e.g.
{
"name": "scott@demo.world",
"cmd": ["sqlplus", "scott/tiger@demo.world", "@$file"]
}
You only need to modify the following
- "name" - Text you want to appear when selecting the environment to execute a script in
- "cmd" - Specify credentials and tnsnames alias, e.g. scott/tiger@demo.world
Note: This assumes SQL*Plus executable is available
Press F7 (or CTRL+SHIFT+B or go to Menu Tools/Build With...) and select the appropriate connection.
