讀一致性即確保查詢的結果與發起查詢的時刻的資料一致,不管在此查詢期間其他事務有沒有更改資料。首先假設我們有如下函數用來根據部門id求該部門的總薪資:CREATE OR REPLACE FUNCTION sum2(p_deptno IN NUMBER) RETURN NUMBER IS --PRAGMA AUTONOMOUS_TRANSACTION;&n
--Oracle分頁語句介紹--為每條記錄編號select t1.*,rownum rn from (select * from emp) t1;--取出前10條記錄select t1.*,rownum rn from (select * from emp) t1 where rownum<=10;--取出第6條到第10條記錄,此語句可以作為分頁的一個模板select * from(select t1.*,rownum rn from (select * from emp) t1
1. 在Oracle 10G在安裝cluster時,第到61%的時候,就提示如下錯誤:WARNING: Error while copying directory /home/oracle/app/oracle/10R2/crs with exclude file list 'null' to nodes 'rac2'.[PRKC-1002 : All the submitted commands did not execute successfully](類似)解決:這個錯誤可以忽略原因:
問題:在來源資料庫發現Streams異常,如:查:select * from dba_capture看到異常錯誤ORA-26744: STREAMS capture process "CAPTURE_STREAM" does not support "BHOMSWAS"."DBMS_TABCOMP_TEMP_UNCMP" because of the following reason: ORA-26767: No enough redo log information for LogMiner&
有組態工具使用時, 經常會出現以下錯誤: ORA-01502: index 'xxx.xxxxx' or partition of such index is in unusable state,解決方案為——以 DBA 登入,並運行以下指令碼即可-- 請以 DBA 許可權登入,並執行 -- 將所有 UNUSABLE 狀態的 index 修複, rebuild 一下即可 &
查看Oracle資料庫表被鎖例子——故障定位 1.開一個會話session1,(實際就是和資料庫建立一個串連,可以通過第三方軟體,或者直接使用sqlplus來串連)SQL>select sid from v$mystat where rownum=1;SID158SQL>create table t(x int primary key);table createdSQL>insert into t values(1);commit;SQL>update t1