在Linux上安裝Oracle時,經常會報以下錯誤:無法使用命令 /usr/X11R6/bin/xdpyinfo 自動檢查顯示器顏色。請檢查是否設定了DISPLAY 變數。可以使用下述命令解決這個問題:1.在root下執行 啟動vnc服務vncserver #xdpyinfo記錄下name of display:後的字串,如 127.0.0.1:1.02. #xhost +返回資訊為: access control disabled,clients can connect from any
用distinct關鍵字只能過濾查詢欄位中所有記錄相同的(記錄集相同),而如果要指定一個欄位卻沒有效果,另外distinct關鍵字會排序,效率很低。select distinct name from t1 能消除重複記錄,但只能取一個欄位,現在要同時取id,name這2個欄位的值。 select distinct id,name from t1 可以取多個欄位,但只能消除這2個欄位值全部相同的記錄 所以用distinct達不到想要的效果,用group by
主要環境: JBOSS 5.1.0 Orace 10G Gatein3.1.0-GA引用一下Gatein 官方使用手冊上的原文並簡單反譯和註解一下大概意思:2.1. Database Configuration2.1.1. OverviewGateIn 3.1 has two different database
解決Oracle 10gRAC安裝中libpthread.so.0問題一。問題10.2.0.1的CRS在linux5上在以下情況下會遇到同樣的問題:1.root時Oracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeapps/oracle/product/10.2.0/crs/jdk/jre//bin/java: error while loading
現象描述:登陸Oracle11g提示ERROR:ORA-28002: the password will expirewithin 7 days警示資訊:ERROR: ORA-28002: the password will expire within 7 days原因分析:SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' ANDresource_name='PASSWORD_LIFE_TIME';oracle11g
前幾天偶然發現任意OS使用者無需密碼就可以擷取PG資料庫管理員許可權。感覺這個也太BUG了,如果DBA配置不當,豈不是很容易就資料泄露了。通過合理配置pg_hba.conf,pg_ident.conf禁止非資料庫OS使用者登入以trust方式登入,對於某些需要支援本地認證的同學可能有用。前置條件:1.我的PG資料庫是由Linux使用者 ithomer建立的私人資料庫2.資料庫認證方式pg_hba.conf中,本機使用者登入認證方式為trust# TYPE DATABASE
一、複製表的文法:create table 表名稱 as (子查詢)例子: 複製oracel安裝後的預設資料庫scott中的表empcreate table myemp as (select * from emp);此例是表示表結構和表內容一起複製過來了。二、複製表結構create table 表名稱 as (子查詢 where 1=2) ,即在上述的基礎上加入了一個永遠不可能成立的條件(1=2),則此時表示的是只複製表結構,但不複製表的內容。例子:create table myemp2 as