Run Query in PL/SQL

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Run Query in PL/SQL

Postby tinti » Fri May 25, 2007 7:29 am

Hi

Cause UE32 is a great text editor I write all my SQL queries with UE32 :D

But how do I have to configure a tool that the query is loaded in a already open PL/SQL instance? I've tried it with following:

Code: Select all
"C:\Program Files\plsqldev.exe" "%f"


With this I've every time to logon in a new PL/SQL Window.

Regards
Joerg Braendli
User avatar
tinti
Newbie
 
Posts: 4
Joined: Thu May 24, 2007 11:00 pm

Re: Run Query in PL/SQL

Postby Bego » Fri May 25, 2007 7:34 am

AFAIK you can only launch new processes, but NOT use ("inject") existing processes (ora-sessions).
You have to live with a new session per tool-call.

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: Run Query in PL/SQL

Postby jorrasdk » Fri May 25, 2007 8:28 am

I don't know if this is helpful, but I use the free Oracle SQL Developer for SQL stuff and from within this tool I register UltraEdit as an external tool.

So whenever I need to make some more powerful editing, I click the UE icon in SQL developer and the SQL file opens in UltraEdit.

Whenever SQL Developer gets focus the file is reloaded, so I can test the SQL, make small corrections, test again. If I also kept the file open in UE and go back, it of course detects that the file might have changed and suggests a reload. Really a neat integration.

Maybe plsqldev.exe can do something similar?

(Sadly Oracle SQL Developer can't take command line arguments (yet) so integration the other way round from UE isn't possible at the moment, but then there is SQLPlus).
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Run Query in PL/SQL

Postby tinti » Fri May 25, 2007 9:59 am

The way to register UE as an external tool in PL/SQL is great. This works fine for me :P

Thanks a lot and have a nice weekend
User avatar
tinti
Newbie
 
Posts: 4
Joined: Thu May 24, 2007 11:00 pm

Re: Run Query in PL/SQL

Postby Nufacik » Wed Aug 22, 2007 8:21 pm

I have feature, how SQL file (PL/SQL) opened in UE run on oracle DB.
if some interested, send me email.
User avatar
Nufacik
Newbie
 
Posts: 9
Joined: Mon Jul 31, 2006 11:00 pm

Re: Run Query in PL/SQL

Postby PaoloFCantoni » Fri Aug 24, 2007 9:26 am

Nufacik wrote:I have feature, how SQL file (PL/SQL) opened in UE run on oracle DB.
if some interested, send me email.
How?
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Run Query in PL/SQL

Postby Nufacik » Fri Nov 02, 2007 12:00 pm

Hi Paolo.

Send me email and I send you how setup UE for running scripts from UE into oracle DB.

Nuf.
User avatar
Nufacik
Newbie
 
Posts: 9
Joined: Mon Jul 31, 2006 11:00 pm

Re: Run Query in PL/SQL

Postby ChrisDeluca » Tue Jun 28, 2011 12:21 pm

I realize this thread is several years old, but thought I would post this just in case anyone else was looking...

Run the following via the DOS command (F9):
If you use service names:
SqlPlus [UserName]/[Password]@[ServiceName] "@%f"

and if not:
SqlPlus [UserName]/[Password] "@%f"
ChrisDeluca
Newbie
 
Posts: 3
Joined: Tue Jun 28, 2011 12:19 pm

Re: Run Query in PL/SQL

Postby davjohnson » Tue Jan 17, 2012 10:19 am

From the PLSQL Developer Main Menu Choose: Tools, Configure Tools ...
Click on *Document Icon (New Tool)

Then Enter the following in the Detail fields below:

Tab: General
Description: EDIT Current File
Type: External
Executable/Script: "C:\Program Files\IDM Computer Solutions\UltraEdit\Uedit32.exe"
Parameters: #path
Default Path: #dir

Tab: Menu
Main Menu: Edit
Sub Menu: Undo
(.) Above

Tab: Button
[v] Toolbar button
Description: Edit File
Image: Text.bmp
davjohnson
Newbie
 
Posts: 1
Joined: Tue Jan 17, 2012 9:41 am


Return to Custom User Tools/Tool Configuration