SQLPlus - Useful Command

About

Useful command in sqlplus.

Articles Related

The slash

The slash command (/) rerun the last query : /

gerardnico@orcl>select 'test' FROM dual;
 
TES
----
test
 
gerardnico@orcl>/
 
TES
----
test

Exclamation mark

The exclamation mark an the begin of a command permit to send an shell command.

SQL> !pwd
/home/oracle

Question mark

The question mark is the equivalent of the ORACLE_HOME directory

Example: to start the compilation script utlrp.sql

@?/rdbms/admin/utlrp.sql

@ is an equivalent of the START command.

This script recompiles all PL/SQL modules that might be in an invalid state, including packages, procedures, and types.

  • Bookmark "SQLPlus - Useful Command" at del.icio.us
  • Bookmark "SQLPlus - Useful Command" at Digg
  • Bookmark "SQLPlus - Useful Command" at Ask
  • Bookmark "SQLPlus - Useful Command" at Google
  • Bookmark "SQLPlus - Useful Command" at StumbleUpon
  • Bookmark "SQLPlus - Useful Command" at Technorati
  • Bookmark "SQLPlus - Useful Command" at Live Bookmarks
  • Bookmark "SQLPlus - Useful Command" at Yahoo! Myweb
  • Bookmark "SQLPlus - Useful Command" at Facebook
  • Bookmark "SQLPlus - Useful Command" at Yahoo! Bookmarks
  • Bookmark "SQLPlus - Useful Command" at Twitter
  • Bookmark "SQLPlus - Useful Command" at myAOL
 
database/oracle/sqlplus_useful_command.txt · Last modified: 2010/07/23 17:58 by gerardnico