oracle 自動關閉 資料庫連接

來源:互聯網
上載者:User

標籤:

資料庫啟動後過一會自動中斷連線(大概10分鐘)
    方法一、直接修改資源設定檔 
    分三個步驟在sqlplus環境下完成。 
    第一步,查詢資源檔,找到CONNECT_TIME所在的profile名。 
        select resource_name,profile from dba_profiles; 
    第二步,用alter命令修改profile中的值; 
        alter profile MONITORING_PROFILE limit connect_time unlimited;(或跟一個時間值,如1000,單位為分鐘) 
        alter profile MONITORING_PROFILE limit idle_time unlimited; 
    第三步,用如下命令查看profile中的值; 
        select resource_name,limit from dba_profiles where profile=‘MONITORING_PROFILE‘; 

    方法二:通過建立資源設定檔並進行使用者指派來完成。 
    分三個步驟在sqlplus環境下完成。[該方法不對其它資料庫連接使用者產生影響] 
    第一步,查看並修改resource_limit的狀態。 
    SQL>show   parameter   resource_limit;   如果為FALSE,則將其修改為TRUE,否則配置不會生效:  
    SQL>alter system set resource_file=true;            
    第二步,用create profile命令建立一個新的profile檔案:  
    SQL>create profile [profile檔案名稱] limit connect_time unlimited idle_time unlimited;  
    [樣本:create profile test_profile limit connect_time unlimited idle_time unlimited;]  
    第三步,將這個新的設定檔分配給該使用者:  
    SQL>alter   user   [user_name,如ROOT_QY]   profile  [profile檔案名稱]; 
    [樣本:alter user root_qy profile test_profile;] 

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.