怎麼確保終端使用者在Oracle資料庫中只有一個會話
《Oracle 9i & 10g 程式設計藝術:深入資料庫體系結構》第38頁
利用概要檔案(profile)方式:
1、建立一個名稱為one_session的概要檔案2、為概要檔案one_session設定sessions_per_user=1的limit
3、為使用者分配one_session概要檔案
4、設定資料庫引數resource_limit=true
下面演示具體操作過程:
[@more@]ora_test@oracle[/home/oracle]> sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 16 10:12:15 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options sys@CNHTM> create profile one_session limit sessions_per_user 1; Profile created. sys@CNHTM> alter user scott profile one_session; User altered. sys@CNHTM> alter system set resource_limit=true; System altered. sys@CNHTM> conn scott/tiger Connected. scott@CNHTM> ! sqlplus scott/tiger SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 16 10:13:26 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. ERROR: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit Enter user-name: |
--end--
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1031866/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 怎樣在oracle資料庫中建一個只讀使用者Oracle資料庫
- Oracle中如何保證使用者只有一個Session登入OracleSession
- 怎麼殺掉特定的資料庫會話資料庫會話
- screen 命令示例:管理多個終端會話會話
- 資料庫中會話休眠一段時間資料庫會話
- 在另一個資料庫中建立一個與原來資料庫中許可權一樣的使用者資料庫
- 在 Linux 上記錄和重放終端會話活動Linux會話
- Asciinema:在雲端記錄並分享你的終端會話ASCII會話
- 在一個資料庫中模擬兩個資料庫(每個資料庫中使用者都建立表的同義詞)資料庫
- 華納雲:怎麼在Docker中執行資料庫?Docker資料庫
- 怎麼識別Oracle客戶端、資料庫、Java在WIN上是多少位的Oracle客戶端資料庫Java
- 資料庫中事務、會話、執行緒這幾個概念是什麼關係資料庫會話執行緒
- Oracle資料庫SYS使用者密碼忘了怎麼辦??Oracle資料庫密碼
- mybatis怎麼實現insert into多個資料-oracle資料庫MyBatisOracle資料庫
- 定時從一個資料庫表中的資料儲存到另外一個資料庫中的表,而且怎麼處理重複的資料?...資料庫
- impdp在同一個資料庫中將一個使用者下的物件複製到另一個使用者下資料庫物件
- 使用 Terminator 在一個視窗中執行多個終端
- 求助:怎麼在tomcat+mysql中建2個資料庫連線池TomcatMySql資料庫
- 在Linux中,如何備份一個資料庫?Linux資料庫
- Oracle資料庫該怎麼入門?Oracle資料庫
- MySQL終端管理資料庫操作指南MySql資料庫
- 保護Oracle資料庫的安全Oracle資料庫
- Oracle Goldengate是如何保證資料有序和確保資料不丟失的?OracleGo
- 怎麼樣在JBUILDERX中實現會話BEAN訪問實體BEAN??UI會話Bean
- 確保Oracle 11g R2資料庫高可用性WQOracle資料庫
- oracle僵死會話鎖住buffer,導致資料庫hang住Oracle會話資料庫
- 怎麼在anaconda終端搜尋安裝包
- Linux終端會話實時共享(kibitz)Linux會話
- 資料泵在本地匯出資料到遠端資料庫中資料庫
- Oracle資料庫終極恢復Oracle資料庫
- 資料庫會話記錄使用者登陸的密碼資訊資料庫會話密碼
- 同一會話中的多個 WebRequest會話Web
- 資料庫會話數量過多,定期清理inactive會話資料庫會話
- windows10只有一個c盤怎麼分盤_win10只有c盤怎麼分割槽WindowsWin10
- 資料庫中的圖片欄位怎麼在報表中呈現資料庫
- 在ORACLE中移動資料庫檔案在(轉)Oracle資料庫
- ORACLE 10G以上 在同一資料庫中複製使用者下的所有表Oracle 10g資料庫
- 在ORACLE中移動資料庫檔案Oracle資料庫