1.下面的語句用來查詢哪些對象被鎖: select object_name,machine,s.sid,s.serial# from v$locked_object l,dba_objects o ,v$session s where l.object_id = o.object_id and l.session_id=s.sid; 2.下面的語句用來殺死一個進程: alter system kill session '24,111';
在Oracle中類比ms Sql 中的自動增加欄位方法原理:建立一個與表欄位對應的序列,再建立一個插入前的觸發器,使在插入前得到一個序列值,實現欄位的自動成長列,不需手工幹預。建立的觸發器如下:CREATE Or REPLACE TRIGGER 觸發器名 before INSERT ON 表名 FOR EACH ROWBEGIN SELECT 序列名.NEXTVAL into :new.欄位名 FROM dual; --IF
-------------常用動態效能檢視--------------------- V$OPTION:顯示已安裝的Oracle選項select * from v$option;-- 取得Oracle版本的詳細資料select * from v$version; -- 取得初始化參數的詳細資料select name,value,description from v$parameter;-- 取得當前常式的詳細資料select * from v$instance;-----------------
Partitioning enables you to decompose very large tables and indexes into smaller and more manageable pieces called partitions. Each partition is an independent object with its own name and optionally its own storage
Oracle Streams Advanced Queuing (AQ) is a robust and feature-rich message queuing system integrated with Oracle Database. When an organization has different systems that must communicate with each other, a messaging environment can provide a
//=====================================================================//// //// function GetOracleServerList //// 擷取機機所有ORACLE服務列表//// purpose get the local oracle servers from the tnsnames.ora //// from the path %oraclepath%\nerwork\admin // // ///
SQL Server和Oracle的常用函數對比2006-12-06 21:33SQL Server和Oracle的常用函數對比 ---------數學函數1.絕對值S:select abs(-1) valueO:select abs(-1) value from dual2.取整(大)S:select ceiling(-1.001) valueO:select ceil(-1.001) value from dual3.取整(小)S:select floor(-1.001)