一.問題說明作業系統: Redhat 5.8資料庫: 11.2.0.32節點RAC. 使用RMAN 備份的時候,報如下錯誤:ORA-00245: control file backup failed;target is likely on a local file system 這個問題只存在Oracle 11gR2以後的RAC 環境。 二.ORA-245 觸發條件在以下的5種環境下,會出現ORA-00245的錯誤。 2.1 RAC
1. Oracle安裝完成後的使用者名稱和密碼sys/change_on_install system/manager scott/tiger sysman/oem_temp internal/oracle 2.修改使用者的密碼SQL> conn sys/change_on_install as sysdbaConnected.SQL> alter user sys identified by ******;User altered. 3.為使用者解鎖SQL> conn
如何通過Sqlplus建立一個oracle的user1,通過system管理員串連到要添加USER的DB或者通過以下命令: Connect system/manager@user_datebase AS SYSDBA ;以SYS登陸去建立使用者2,建立使用者並分配許可權drop user asset cascade; 刪除該使用者下所有的表和視圖create user asset identified by
.Oracle 層級語句 樹形結構area_id 就是普通的主鍵ID 與 parent_id 對應..行政區劃表1. start with t.parent_id 這裡為parent_id 不顯示頂端根結點,這樣會有多個根select t.* from HM_F_AREA t where length(t.area_id) = 6 start with t.parent_id = '510000' connect by t.parent_id = PRIOR
1、只複製表結構 的sqlcreate table tableName2 as select * from tableName1 where 1<>1 2、即複製表結構又複製表中資料 的sqlcreate table tableName2 as select * from tableName1 3、Oracle複製表的制定欄位 的sqlcreate table tableName2 as select row_id,name,age from tableName1 where 1&
今天在用exp/imp做一個備份恢複小操作的時候,出現了一個問題,很多的空表不能被exp出來,一開始沒有弄懂,後來上Oracle官網看了下Oracle的資料,發下Oracle11g R2 有一個新的特性,在exp和imp的時候,當表無資料時,不分配segment,以節省空間的,這樣會導致空表資料不能被exp出來。不覺想說一聲shit下。好的,解決方案:解決辦法1: 設定system參數,僅對參數更新後建立的表生效alter system set
背景:排序時候對NULL值的處理,在Oracle官方文檔中說明,null值在排序過程是個比較特殊的實值型別,預設情況下排序時把它看成了最大值了,也就是說在排序的時候,當排序的記錄中出現了Null值,預設是,升序排列在最後,反過來在最前,那麼也可以程式自己來定義它前後。1、排在最前:select xx from student order by xx nulls first;2、排在最後select xx from student order by xx nulls last;然後就搞定了!