在Oracle中增加用戶限制 | 
    
| 發(fā)布時間: 2012/9/19 17:27:36 | 
|  
  今天在項目開發(fā)中,發(fā)現(xiàn)數(shù)據(jù)庫連接數(shù)過多,Oracle中存在很多超時連接。導(dǎo)致新增客戶端無法連接到數(shù)據(jù)庫。所以設(shè)置了強制釋放oracle連接屬性。 在網(wǎng)上查詢了設(shè)置說明如下: sqlplus /nolog show parameter resource_limit 在數(shù)據(jù)庫中的實際操作如下: Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production 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. 
 SQL> show parameter resource NAME                                 TYPE SQL> alter system set resource_limit=true; System altered. SQL> create profile sbaplimit20091222 limit connect_time 60 idle_time 30 Profile created. SQL> alter user sbap profile sbaplimit20091222_; User altered. SQL> exit 
 本文出自:億恩科技【www.cmtents.com】 服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]  | 
    
       
       
       京公網(wǎng)安備41019702002023號