1.查詢資料庫當前進程的串連數: select count(*) from v$process; 2.查看資料庫當前會話的串連數: elect count(*) from v$session; 3.查看資料庫的並發串連數: select count(*) from v$session where status='ACTIVE'; 4.查看當前資料庫建立的會話情況: select sid,serial#,username,program,machine,status from
Oracle中授權有兩種方式,系統許可權授權及對象許可權授權。 對於系統許可權授權需要用DBA許可權登陸,然後進行授權。如下邊語句,"select any table"為系統許可權,需要DBA賬戶才可以。GRANT SELECT ANY TABLE TO gsc; 對於對象許可權授權無需DBA許可權。--授權grant select on hr.accounts to gsc;--刪除授權revoke select on hr.accounts from gsc
今天接到使用者指示,需要在資料庫中建立一張表,結果指令碼寫好了也執行通過了,卻發現用錯使用者了,用了user1,應該用user2。接著就刪除原來建立的表,重新換user2使用者登入,執行指令碼,一切oK。結果用user1使用者卻訪問不到,忽然想到沒給使用者授權,直接在PL/SQL授權竟然執行不通過,只能用指令碼執行了執行:grant select, insert,update on 表名 to 使用者名稱; 用user1使用者還是不能直接存取,select * from user2.表名
create database testcontrolfile reusedatafile 'd:\data\system1.dbf' size 100m autoextend on next 100m maxsize unlimited sysaux datafile 'd:\data\sysaux1.dbf' size 100m reuse autoextend on next 100m maxsize unlimiteddefault temporary tablespace temp1
.NET中訪問Oracle資料庫連結:ORA-02041: client database did not begin a transaction 問題的處理。 .NET中訪問Oracle資料庫連結:ORA-02041: client database did not begin a transaction 問題的處理。.NET中訪問Oracle中帶有DB_LINK時對象時,會拋出一下異常ORA-02041: client database did not begin a