Oracle管理安全和資源(四)Oracle資源管理員的使用

來源:互聯網
上載者:User

1、資源管理,啟用參數

09:44:54 SQL> show  parameter resource

NAME                                 TYPE        VALUE

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

resource_limit                       boolean     FALSE

resource_manager_plan                string

09:51:22 SQL> alter system set resource_limit=true;

System altered.

09:51:39 SQL> show  parameter resource

NAME                                 TYPE        VALUE

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

resource_limit                       boolean     TRUE

resource_manager_plan                string

2、資源管理分類

1)基於會話

2)基於語句

09:56:24 SQL> create profile res_profile limit

09:56:26   2   SESSIONS_PER_USER 2;

Profile created.

驗證:

09:56:39 SQL> alter user tom profile res_profile;

User altered.

09:56:57 SQL> conn tom/tom

Connected.

09:57:09 SQL> conn tom/tom

Connected.

09:57:17 SQL> conn tom/tom

ERROR:

ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit

Warning: You are no longer connected to ORACLE.

查看本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.