激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

        在Oracle中增加用戶限制

        發(fā)布時間:  2012/9/19 17:27:36

        今天在項目開發(fā)中,發(fā)現(xiàn)數(shù)據(jù)庫連接數(shù)過多,Oracle中存在很多超時連接。導致新增客戶端無法連接到數(shù)據(jù)庫。所以設(shè)置了強制釋放oracle連接屬性。

        在網(wǎng)上查詢了設(shè)置說明如下:

        sqlplus /nolog
        打開sqlplus
        connect system/bianqiwei@orcltns as sysdba
        使用具有dba權(quán)限得用戶登陸Oracle-
         

        show parameter resource_limit
        顯示資源限定是否開啟,value為true是開啟,為false是關(guān)閉
        alter system set resource_limit=true
        如果未開啟,則使用此命令開啟資源限定功能
        create profile profileName limit connect_time 60 idle_time 30
        創(chuàng)建profile文件,profileName任意起,connect_time設(shè)置連接超過多少分鐘后強制釋放,idle_time設(shè)置連續(xù)不活動的會話超過多少分鐘后強制釋放
        alter user OracleUser profile profileName
        將profile文件作用于指定用戶 【LINUX公社 www.LinuxIDC.com 】

        在數(shù)據(jù)庫中的實際操作如下:

        Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
        With the Partitioning, OLAP and Data Mining options
        [Oracle@nsn-db-server ~]$ sqlplus "/ as sysdba"

        SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 22 16:14:11 2009

        Copyright (c) 1982, 2005, Oracle.  All rights reserved.


        Connected to:
        Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
        With the Partitioning, OLAP and Data Mining options

        SQL> show parameter resource

        NAME                                 TYPE
        ------------------------------------ ---------------------------------
        VALUE
        ------------------------------
        resource_limit                       boolean
        FALSE
        resource_manager_plan                string

        SQL> alter system set resource_limit=true;

        System altered.

        SQL> create profile sbaplimit20091222 limit connect_time 60 idle_time 30
          2 
        SQL> create profile sbaplimit20091222 limit connect_time 60 idle_time 30
          2 
        SQL>
        SQL> create profile sbaplimit20091222 limit connect_time 60 idle_time 30;

        Profile created.

        SQL> alter user sbap profile sbaplimit20091222_;

        User altered.

        SQL> exit


         


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機 24小時售后服務(wù)電話:0371-60135900
      10. 虛擬主機/智能建站 24小時售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務(wù)熱線