Oracle登入指令碼
Oracle登入指令碼
點選(此處)摺疊或開啟
-
REM turn off the terminal output - make it so SQLPlus does not
-
REM print out anything when we log in
-
set termout off
-
-
REM default your editor here. SQLPlus has many individual settings
-
REM This is one of the most important ones
-
define _editor=vi
-
-
REM serveroutput controls whether your DBMS_OUTPUT.PUT_LINE calls
-
REM go into the bit bucket (serveroutput off) or get displayed
-
REM on screen. I always want serveroutput set on and as big
-
REM as possible - this does that. The format wrapped elements
-
REM causes SQLPlus to preserve leading whitespace - very useful
-
set serveroutput on size 1000000 format wrapped
-
-
REM Here I set some default column widths for commonly queried
-
REM columns - columns I find myself setting frequently, day after day
-
column object_name format a30
-
column segment_name format a30
-
column file_name format a40
-
column name format a30
-
column file_name format a30
-
column what format a30 word_wrapped
-
column plan_plus_exp format a100
-
-
REM by default, a spool file is a fixed width file with lots of
-
REM trailing blanks. Trimspool removes these trailing blanks
-
REM making the spool file significantly smaller
-
set trimspool on
-
-
REM LONG controls how much of a LONG or CLOB sqlplus displays
-
REM by default. It defaults to 80 characters which in general
-
REM is far too small. I use the first 5000 characters by default
-
Set long 5000
-
-
REM This sets the default width at which sqlplus wraps output.
-
REM I use a telnet client that can go upto 200 characters wide -
-
REM hence this is my preferred setting.
-
set linesize 200
-
-
REM SQLplus will print column headings every N lines of output
-
REM this defaults to 14 lines. I find that they just clutter my
-
REM screen so this setting effectively disables them for all
-
REM intents and purposes - except for the first page of course
-
set pagesize 9999
-
-
REM MY SQL_NAME , it different from tom ,it prefer to hostname/username@database
-
REM here is how I set my signature prompt in sqlplus to
-
REM username@database> I use the NEW_VALUE concept to format
-
REM a nice prompt string that defaults to IDLE (useful for those
-
REM of you that use sqlplus to startup their databases - the
-
REM prompt will default to idle> if your database isn\'t started)
-
define gname=idle
-
column global_name new_value gname
-
select sys_context(\'userenv\', \'host\')||\'/\'||lower(user) || \'@\' ||
-
substr( global_name, 1, decode( dot,
-
0, length(global_name),
-
dot-1) ) global_name
-
from (select global_name, instr(global_name,\'.\') dot
-
from global_name );
-
set sqlprompt \'&gname> \'
-
REM and lastly, we\'ll put termout back on so sqlplus prints
-
REM to the screen
- set termout on
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1403179/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 理解 Linux/Unix 登入指令碼Linux指令碼
- 理解 Linux/Unix 登入指令碼的技巧Linux指令碼
- 運維指令碼: 實時監測登入運維指令碼
- Oracle登入命令Oracle
- redis - 遠端登入指令Redis
- oracle建庫指令碼Oracle指令碼
- ORACLE備份指令碼Oracle指令碼
- uniapp 完成兩種方式登入 驗證碼登入 密碼登入APP密碼
- 1-Linux叢集搭建,分發指令碼,ssh免密登入Linux指令碼
- 密碼登入密碼
- 掃碼登入是這樣登入的
- oracle安裝後無法登入Oracle
- ORACLE常用定時備份指令碼Oracle指令碼
- Oracle:GRID 下 root.sh 指令碼Oracle指令碼
- 分享Oracle Rman的備份指令碼Oracle指令碼
- 【SCN】Oracle檢查scn值指令碼Oracle指令碼
- 【TABLE】Oracle表資訊收集指令碼Oracle指令碼
- Oracle批次生成Merge指令碼程式Oracle指令碼
- oracle自動冷備份指令碼Oracle指令碼
- 【效率工具】史上最好用的SSH一鍵登入指令碼,超強更新!指令碼
- oracle_ray.sh 常用的oracle sql功能指令碼OracleSQL指令碼
- 【AWR】Oracle批量生成awr報告指令碼Oracle指令碼
- Oracle運維指令碼-巡檢(RAC版)Oracle運維指令碼
- Oracle ADG 自動切換指令碼分享Oracle指令碼
- ORACLE問題處理十個指令碼Oracle指令碼
- 史上最全近百條Oracle DBA日常維護SQL指令碼指令OracleSQL指令碼
- [JPT_05] 效能測試-指令碼開發(登入&隨機購買業務)指令碼隨機
- 微信掃碼登入
- 修改 MySQL 登入密碼MySql密碼
- 密碼方式登入redis密碼Redis
- Jmeter 登入使用了 jsencrypt 加密密碼的登入介面JMeterJS加密密碼
- 指令碼的動態載入指令碼
- Redis Lua指令碼完全入門Redis指令碼
- Oracle RAC重新執行root.sh指令碼Oracle指令碼
- Oracle運維指令碼-巡檢(單機版)Oracle運維指令碼
- Oracle運維指令碼-收集統計資訊Oracle運維指令碼
- 【SCRIPT】Oracle日常巡檢指令碼通用版Oracle指令碼
- oracle資料庫使用rman備份指令碼Oracle資料庫指令碼
- 聊聊“密碼登入”、“手機快捷登入”和“第三方聯合登入”密碼