Skip to content

Sqlplus and the exclamation mark

30/10/2012

I was recently shown a useful trick for sqlplus.  When you are in the sqlplus command line but want to check something on the the shell command line you can use ! to temporarily exit the sqlplus command line and run your shell command.  This is particularly useful if you are checking what a script should do and you wish to vi the script as you go.  The syntax is as follows

SQL> ! pwd

/export/home/yourname

Another useful trick whilst in the sqlplus command line is the forward slash /.  This will rerun the last sql command you ran.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: