[分享]常用sqlplus修饰参数_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3947 | 回复: 0   主题: [分享]常用sqlplus修饰参数        下一篇 
shunzi
注册用户
等级:上尉
经验:782
发帖:133
精华:0
注册:2011-10-10
状态:离线
发送短消息息给shunzi 加好友    发送短消息息给shunzi 发消息
发表于: IP:您无权察看 2011-11-2 13:28:38 | [全部帖] [楼主帖] 楼主

[/root]#vim /u01/oracle/product/10.2.0/sqlplus/admin/glogin.sql

存放格式的配置

/* set termout off

define PROMTP=idle

column PROMTP new_value PROMTP

select '_user'||chr(39)||'@'||chr(39)||'_connect_identifier' PROMTP from dual;

select '_user'||chr(39)||'_S:'||m.sid||'_P:'||p.spid||'_'||chr(39)||'_connect_identifier' PROMTP

from v$session s,v$mystat m,v$process p

where s.sid=m.sid

and s.paddr=p.addr

and rownum=1;

set sqlprompt "&PROMTP> "

set termout on

*/

set serveroutput on size 1000000

set trimspool on

set long 5000

set linesize 100

set pagesize 9999

column plan_plus_exp format a80

DEFINE _EDITOR = "vim"  /* linux */

-- DEFINE _EDITOR = "notepad" /* windows */

col PROPERTY_VALUE for a20

col DESCRIPTION for a40

col event for a58

col P1TEXT for a30

col OPTIONS for a30

col file_name for a45

col tablespace_name for a15

col table_name for a25

col column_name for a25

col member for a45

col status for a10

col segment_name for a25

col SID for 9999999999

col NAME for a50

col DISPLAY_VALUE for a15

col ISSPECIFIED for a12

col UPDATE_COMMENT for a15

COL HIGH_VALUE for a20

col TOPNSQL for a20

col retention for a20

col SNAP_INTERVAL for a20

col DESCRIPTION for a55

col DESCRIPTION for a50

col OBJECT_NAME for a30

col parameter for a30

col error for a20

col FILENAME for a45

col value for a35




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论