Last active
December 23, 2015 06:18
-
-
Save fibo/6592631 to your computer and use it in GitHub Desktop.
sqlplus user profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- [Gist](https://gist.github.com/fibo/6592631) | |
-- | |
-- Put this login.sql file in your current dir, or any dir you add to the SQLPATH env var | |
-- Make SQL prompt show database name so I know where I am (thanks to Tom Kyte for this) | |
COLUMN global_name new_value gname | |
SET TERMOUT OFF | |
SELECT LOWER(USER) || '@' || global_name || '> ' AS global_name FROM global_name; | |
SET SQLPROMPT '&gname' | |
SET TERMOUT ON | |
SET TIME ON | |
SET PAUSE ON | |
SET PAGESIZE 80 | |
SET LINESIZE 120 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment