Subject: How to Clean Up After a Failed Oracle Clusterware (CRS) Installation Doc ID: 239998.1 Type: BULLETIN Modified Date: 18-MAR-2009 Status: PUBLISHED PURPOSE-------The purpose of this document is to help DBA's and support analysts
10g RAC安裝起來步驟比較多,時間比較長,裝了兩天才裝好下面是前兩天安裝的時候碰到的問題:一、在安裝ocfs2時耽誤了很久,裝好後,運行/usr/sbin/ocfs2console,選擇 [Clucster]-[Configure Nodes] ,總出現:“Could not start cluster stack.This must be resolved before any ocfs2...."原因:1。要disable selinux安全!編輯
Oracle官方參考:PL/SQL Language Referenc->9 PL/SQL TriggerReasons to Use Trigger:■ Automatically generate calculated column values ■ Log events ■ Gather statistics on table access ■ Modify table data when DML statements are issued against views
案例:一個應用表中的一個欄位是主鍵,向表中插入資料時,先把資料放在暫存資料表中(沒有主鍵)然後再插入應用表。這時候如果暫存資料表中有重複資料,無論是主鍵欄位businessid有重複,還是一整行有重複都會報出違反唯一主鍵約束錯誤。方法:group by XX having count(*)>1,rowid,distinct,temporary table,procedure1、查詢表中的重複資料a.重複一個欄位b.重複多個欄位c.重複一整行建立測試表:create table cfa (
在oracle中處理日期大全 TO_DATE格式 Day: dd number 12 dy abbreviated fri day spelled out friday ddspth spelled out, ordinal twelfth Month: mm number 03 mon abbreviated mar month spelled out march Year: yy two digits 98 yyyy four digits
隱式遊標beginupdate try set 成績=60 where 課程編號='C008' and 成績<60;if SQL%notfound then dbms_output.put_line('There is no score below 60!');end if;end;/-- 遊標變數的使用declaretype cursor_type is ref cursor;stu_cursor cursor_type;v_stu 學生基本資料%rowtype;notfound
一、建立一個預存程序create or replace procedure MY_Procedureis --這裡用到了遊標 cursor cur is select * from users where length(name) > 10 ;begin for user in cur loop insert into users_temp values(user