91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ORACLE 配置event參數

發布時間:2020-06-09 23:40:05 來源:網絡 閱讀:687 作者:7343696 欄目:關系型數據庫

下面測試來至于11G

1,數據庫的版本

www.htz.pw > select * from v$version;

 

BANNER

--------------------------------------------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

PL/SQL Release 11.2.0.4.0 - Production

CORE    11.2.0.4.0      Production

TNS for Linux: Version 11.2.0.4.0 - Production

NLSRTL Version 11.2.0.4.0 - Production

2,在spfile中修改event參數

www.htz.pw > alter system set event='10235 trace name context forever,level 512', '10015 trace name context forever, level 1' scope=spfile;

 

System altered.

 

www.htz.pw > startup force;

 

 

www.htz.pw > @dump_event.sql

"***************************************************************************"

"session - Dump session group's event settings                              "

"process - Dump process group's event settings                              "

"system  - Dump system group's event settings(Ie the instance wide events)  "

"***************************************************************************"

Statement processed.

Enter value for input: system

10015 trace name context forever, level 1

10235 trace name context forever,level 512

 

清空event的值

ALTER SYSTEM RESET EVENT SCOPE=SPFILE SID='*';

 

其實我們還可以使用下面的方法

這里需要注意的是:level 512后面接的:沒有','

 

www.htz.pw > alter system set event='10235 trace name context forever,level 512:10015 trace name context forever,level 1' scope=spfile;

 

System altered.

 

"***************************************************************************"

"session - Dump session group's event settings                              "

"process - Dump process group's event settings                              "

"system  - Dump system group's event settings(Ie the instance wide events)  "

"***************************************************************************"

Statement processed.

Enter value for input: system

10235 trace name context forever,level 512

10015 trace name context forever,level 1

3,在init中修改event參數

方法1

www.htz.pw > !grep "event" /tmp/123.txt

*.event='10235 trace name context forever,level 512:10015 trace name context forever,level 1'

方法2

www.htz.pw > !grep "event" /tmp/123.txt

*.event='10235 trace name context forever,level 512'

*.event='10015 trace name context forever,level 1'

方法3

www.htz.pw >  !grep -A1 "event" /tmp/123.txt

*.event='10235 trace name context forever,level 512:\

10015 trace name context forever,level 1' 

4,清空event的方法

如果使用init參數文件,直接刪除event參數,如果使用spfile文件

www.htz.pw > @dump_event.sql

"***************************************************************************"

"session - Dump session group's event settings                              "

"process - Dump process group's event settings                              "

"system  - Dump system group's event settings(Ie the instance wide events)  "

"***************************************************************************"

Statement processed.

Enter value for input: system

10235 trace name context forever,level 512

10015 trace name context forever,level 1

www.htz.pw > alter system set event='' scope=spfile ;

其實這里我們還可以使用reset event scope=spfile sid='*'來操作

System altered.

 

www.htz.pw > startup force;

ORACLE instance started.

 

Total System Global Area  379965440 bytes

Fixed Size                  2253464 bytes

Variable Size             171969896 bytes

Database Buffers          201326592 bytes

Redo Buffers                4415488 bytes

Database mounted.

Database opened.

www.htz.pw > @dump_event.sql

"***************************************************************************"

"session - Dump session group's event settings                              "

"process - Dump process group's event settings                              "

"system  - Dump system group's event settings(Ie the instance wide events)  "

"***************************************************************************"

Statement processed.

Enter value for input: system

Statement processed.

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

安康市| 玉溪市| 陈巴尔虎旗| 盐山县| 凉城县| 七台河市| 吴川市| 宜都市| 安义县| 都兰县| 河池市| 克什克腾旗| 甘孜| 荥阳市| 琼中| 扬州市| 康乐县| 鸡东县| 罗田县| 潞西市| 嘉黎县| 长治县| 新余市| 大庆市| 新乡县| 寻乌县| 芦溪县| 嘉善县| 文化| 浪卡子县| 陆丰市| 屏南县| 甘孜| 麻城市| 霸州市| 尼木县| 西平县| 法库县| 那坡县| 鄂托克旗| 玛沁县|