今天第一次配 Oracle 11g R2 Active Data Guard,在用 RMAN 建立好 physical standby database 後,嘗試將 standby 以 read only 方式開啟時遇如下錯誤:SQL> alter database open read only;alter database open read only*ERROR at line 1:ORA-10458: standby database requires recoveryORA-011
在Oracle中如何利用Rowid尋找和刪除表中的重複記錄轉自:CSDN平時工作中可能會遇到當試圖對庫表中的某一列或幾列建立唯一索引時,系統提示 ORA-01452 :不能建立唯一索引,發現重複記錄。 下面總結一下幾種尋找和重複資料刪除記錄的方法(以表CZ為例):表CZ的結構如下:SQL> desc cz Name Null? Type -------------------------------------
WMSYS.WM_CONCAT: 依賴WMSYS 使用者,不同oracle環境時可能用不了,傳回型別為CLOB,可用substr截取長度後to_char轉化為字元類型LISTAGG : 11g2才提供的函數,不支援distinct,拼接長度不能大於4000,函數返回為varchar2類型,最大長度為4000. with temp as( select 'China' nation ,'Guangzhou' city from dual union all select
方法1:SQL> create table b as select 1 id from dual connect bylevel<=100; 方法2:SQL> create table a (id int);Table created.SQL> insert into a select 1 from dual connect by level<=100; 100 rows created.方法三:create table test_big as select *
racle提供的檔案操作包UTL_FILE包中的UTL_FILE.FOPEN負責開啟一個檔案。UTL_FILE.FOPEN(location in varchar2, filename in varchar2, open_mode in varchar2) return FILE_TYPE;Location 是路徑參數,FILENAME
資料庫是從Oracle10.2.0.5 升級到11.2.0.3的:Oracle 使用RMAN 將 DB 從10g 直接Restore 到11g 樣本http://blog.csdn.net/tianlesoftware/article/details/7311352 在升級的過程中就有這個問題,同時還伴隨這XDB和ORDIM 兩個組件無效的問題,如下: SQL> col comp_id for a15SQL> col version for a15SQL> col comp_
在PB中用oracle的預存程序返回記錄集做資料來源來產生資料視窗首先oracle的預存程序寫法與MSSQL不一樣,差別比較大。如果是返回資料集的預存程序則需要利用oracle的包來定義遊標。但是若按正規的oracle寫法,預存程序寫在包體裡面,如果這樣的話,PB會找不到此預存程序(如果用直連的方式)(如果用ODBC的方式則有可能不能正常識別預存程序的參數)因此我們需要將預存程序單獨寫。首先我們來看下oracle正規的返回結果集的預存程序的寫法方法一:create or replace
Oracle DBMS_CRYPTOVersion 10.2 General InformationSource{ORACLE_HOME}/rdbms/admin/dbmsobtk.sqlAlgorithm ConstantsNameData TypeValueHash FunctionsHASH_MD4 (128 bit hash)PLS_INTEGER1HASH_MD5 (128 bit hash)PLS_INTEGER2HASH_SH1 (160 bit