最近的Oracle 11g RAC安裝碰到了INS-30507錯誤,也就是在grid安裝到建立ASM磁碟組的時候找不到任何候選磁碟,google了N多安裝指導也沒有找到蛛絲馬跡。如果你碰到這個問題,不妨往下瞧。1、錯誤資訊與解釋SEVERE: [FATAL] [INS-30507] Empty ASM disk group.CAUSE: No disks were selected from a managed ASM disk group.ACTION: Select appropriate
/*====================================================================== column Functions - oracol.c======================================================================*//* returns column data type */ORADB_CALL1(const
使用者的最大串連數查看該使用者的最大串連數select profile from dba_users where username='APP_TEST';select * from dba_profiles where profile='PF_APP_TEST' and resource_name='SESSIONS_PER_USER';查看該使用者當前的串連數select count(*) from v$session where username='
solaris X86-64下ORACLE打11.2.0.3.8補丁:正確步驟:1.BUG6880880 ,OPATCH的補丁2.BUG16902043,11.2.0.3.8補丁感慨就是要實踐啊看著容易的事也一波三折--像OPATCH的版本問題在安裝11.2.0.3.8補丁前有提示的,要細心唉。MOS還是很好用的哈哈。安裝過程:1.環境檢查-bash-3.2$ ls16902043 &
1、把主鍵定義為自動成長標識符類型在mysql中,如果把表的主鍵設為auto_increment類型,資料庫就會自動為主鍵賦值。例如:create table customers(id int auto_increment primary key not null, name varchar(15));insert into customers(name) values("name1"),("name2");select id from
關於SQL SERVER中的CTE中的CTE應用,請看這裡:http://www.cnblogs.com/downmoon/archive/2009/10/23/1588405.html其實,ORACLE的CTE文法完全一樣,看樣本:一、建立樣本資料表如下:declare tableExistedCount number; begin select count(1) into tableExistedCount from user_tables where
在SQL SERVER中,關聯表的批次更新,可以參看這裡:http://www.cnblogs.com/downmoon/archive/2007/12/29/1019832.htmlOracle下沒找到好的文法,臨時用這個:update employee set hrdeptname=(select d.DEPTNAME from DEPARTMENT dwhere ROWNUM=1 and d.deptID=employee.hrdeptID)對應的SQL Server文法:Update