在MOS 上有一篇介紹SQL 解析流程圖的文檔,參考[ID32895.1]。 截取主要部分內容如下: Thisarticle show the parsing mechanism as a flow diagram. Its main purpose is toshow the difference between a 'soft' and a 'hard' parse. It is intended to givea feel of how
讀一致性即確保查詢的結果與發起查詢的時刻的資料一致,不管在此查詢期間其他事務有沒有更改資料。 首先假設我們有如下函數用來根據部門id求該部門的總薪資:CREATE OR REPLACE FUNCTION sum2(p_deptno IN NUMBER) RETURN NUMBER IS --PRAGMA AUTONOMOUS_TRANSACTION;l_ret NUMBER;BEGIN dbms_lock.sleep(5); --DBMS_BACKUP_RESTORE.SLEEP(5);
MOS 上有一篇文章專門介紹這個問題,參考:[ID 779552.1]。 在Oracle 10.2.0.4版本中,alert log 可能出現如下錯誤: ORA-00494:enqueue [CF] held for too long (more than 900 seconds) 這個錯誤,通常和ORA-600 [2103] 一起出現。 他們的產生的原因都是一樣的。進程在指定時間內(預設900秒)不能擷取CF 隊列。
One mistake can lead to a lot of work. When you’ve installed Oracle Database 11g, you can’t change theWindows Hostname without reinstalling Oracle Enterprise Manager.These are the steps:1. Change the %ORACLE_HOME%\network\admin\listener.ora file
在看Oracle約束時,看到ENABLE NOVALIDATE,意思是對自現在起及以後的資料啟用約束,但是不管以前的資料怎樣。不過在實驗的時候卻出了一點小問題:SQL> create table dept as select * from scott.dept where 1=2;Table createdSQL> insert into dept select * from scott.dept where deptno=10;1 row insertedSQL>
一. Oracle Checkpoint 說明 1.1 Checkpoint(1)A synchronization event at aspecific point in time(2)Causes some or all dirty blockimages to be written to the database thereby guaranteeing that blocks dirtiedprior to that point in time get
關於Oracle SGA中Shared Pool的詳細說明,參考我的blog: Oracle Shared pool 詳解 http://blog.csdn.net/tianlesoftware/article/details/6560956 在上篇blog裡,介紹了shared pool 的組成和一些原理, 也有一些指令碼,在這篇blog裡,在補充幾個查看Shared Pool 的指令碼。
測試代碼:DECLARE TYPE list_of_names_t IS TABLE OF VARCHAR2(100) INDEX BY PLS_INTEGER; happyfamily list_of_names_t; l_row PLS_INTEGER;BEGIN --build table data which index is not consecutive. happyfamily(2020202020) := 'Eli'; happyfamily(-15070
在計算月份的時候除了add_months,還可用INTERVAL: Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0Connected as xxpoSQL>SQL> SELECT to_char(SYSDATE,'YYYY/MM/DD HH24:MI:SS') now FROM dual;NOW-------------------2011/05/20 06:22:00SQL>
Upgrading ASM instance from Oracle 10.1 to Oracle 10.2. (Single Instance) Solution o Upgrading of ASM instance from 10.1 to 10.2 can be accomplished through DBUA. o All the database that use the ASM instance being upgraded must be