2012年9月24日 星期一

Oracle Linux 6 Installation

1.放入安裝光碟執行安裝
install or upgrade an existing system


2.選擇OK會進入檢查光碟資料完整性
這邊可以點選Skip略過檢查
3.進入歡迎視窗點選Next進入安裝
4.選擇安裝語系

5.選擇鍵盤配置
6.選擇安裝儲存裝置沒有特殊的硬體配置選擇預設即可
7.
8.輸入主機名稱
9.這邊可以順便配置網路設定,單然這邊不做任何設定留在安裝完畢後設置也是可以的.
10.配置時區設定.
11.輸入作為root的密碼.
12.開始配置磁區的分割,這邊選擇自訂分割.

13.依照環境不同做適當的磁區規劃分割
14.分割完畢接著格式化分割區.

15.選擇安裝開機程式於分割區這邊預設即可


16.配置伺服器類型,這邊選擇Desktop方便後續使用圖形介面安裝ORACLE Database.


17.開始安裝OEL6



 18.安裝完畢 reboot server.

19.歡迎視窗點擊下Forward進行系統配置

 20.授權協議書點擊Forward進行下一步驟

21.連線至ULN(Unbreakable Linux Network)註冊,這邊可以直接略過.


22.依照需求新增使用者設定完畢點擊Forward進行下一步驟 
 
23.配置日期和時間也可以設置ntp servers來校時,設定完畢點擊Forward進行下一步驟



24.Kdump是kernel crash可以carsh dump可以進一步分析,若無compile kernel和系統軟體開發需求可以不啟用,設定完畢finish完成系統配置.






25.關閉selinux


reference:
http://www.oracle-base.com/articles/linux/oracle-linux-6-installation.php

2012年6月11日 星期一

mod_oc4j: request to OC4J 21500 failed: Connect failed


The problem is solved by removing the primary & secondary DNS in network configuration.Now it working with good speed while internet is “OFF”.

reference:  https://forums.oracle.com/forums/thread.jspa?threadID=2200136

2012年5月27日 星期日

linux kernel - make menuconfig error

error message
[root@hadoop linux]# make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconf HOSTCC scripts/kconfig/lxdialog/checklist.o In file included from scripts/kconfig/lxdialog/checklist.c:24: scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: No such file or directory In file included from scripts/kconfig/lxdialog/checklist.c:24: scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’ scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’ scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’ scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’: scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.) scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function ‘endwin’ scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function ‘fprintf’ scripts/kconfig/lxdialog/checklist.c:122: warning: incompatible implicit declaration of built-in function ‘fprintf’ scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘draw_shadow’ scripts/kconfig/lxdialog/checklist.c:143: error: ‘stdscr’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘newwin’ scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function ‘keypad’ scripts/kconfig/lxdialog/checklist.c:146: error: ‘TRUE’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘draw_box’ scripts/kconfig/lxdialog/checklist.c:148: error: ‘attributes’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:149: warning: implicit declaration of function ‘wattrset’ scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘mvwaddch’ scripts/kconfig/lxdialog/checklist.c:152: warning: implicit declaration of function ‘waddch’ scripts/kconfig/lxdialog/checklist.c:156: warning: implicit declaration of function ‘print_title’ scripts/kconfig/lxdialog/checklist.c:159: warning: implicit declaration of function ‘print_autowrap’ scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function ‘subwin’ scripts/kconfig/lxdialog/checklist.c:190: warning: implicit declaration of function ‘print_item’ scripts/kconfig/lxdialog/checklist.c:194: warning: implicit declaration of function ‘print_arrows’ scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘print_buttons’ scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‘wnoutrefresh’ scripts/kconfig/lxdialog/checklist.c:201: warning: implicit declaration of function ‘doupdate’ scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function ‘wgetch’ scripts/kconfig/lxdialog/checklist.c:211: error: ‘KEY_UP’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:211: error: ‘KEY_DOWN’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:221: error: ‘FALSE’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‘scrollok’ scripts/kconfig/lxdialog/checklist.c:223: warning: implicit declaration of function ‘wscrl’ scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function ‘wrefresh’ scripts/kconfig/lxdialog/checklist.c:282: warning: incompatible implicit declaration of built-in function ‘fprintf’ scripts/kconfig/lxdialog/checklist.c:283: warning: implicit declaration of function ‘delwin’ scripts/kconfig/lxdialog/checklist.c:287: error: ‘KEY_LEFT’ undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:288: error: ‘KEY_RIGHT’ undeclared (first use in this function) make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2
Solution: ubuntu install apt-get install libncurses5-dev
redhat install ncurses-devel
reference: http://hi.baidu.com/fghzone/blog/item/e63a23fc2e1e018cb901a051.html

2012年3月18日 星期日

Installation of EMGrid Control in same location

when getting the error message about that the



ORACLE_MIDDLEWARE_HOME_LOCATION : "/export/home/oracle/Oracle/Middleware/oms11g" subdirectory already exists in oracle inventory: specify another home location.

try this:


/etc/oratab

and also you have to remove following four entries from each of directories that stores inventory information:

Locate your central inventory directory from /etc/oraInst.loc
inventory_loc=/u00/app/oraInventory

ls -l
backup
ContentsXML

cd ContentsXML
vi inventory.xml

delete all the entries for

#
#
#
#

Also note that under directory Backups, there are further directories and you need to remove these entries from each and every inventory.xml.

cd backup

grep -i inventory */*/in*

once you remove all the entries.

Go to your location where you have installed Middleware.

in my case
cd /u00/app/oracle/product/11.2.0/Middleware.

rm -rf oms11g agent11g oracle_common Oracle_WT.


==============================================================================
EMD upload error: uploadXMLFiles skipped - Error communicating with the agent
Problem description:


emctl upload agent


EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors.
Resync Agent is failed with the following message:
Error communicating with the agent. Exception message - oracle.sysman.emSDK.emd.comm.CommException: java.io.IOException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated




Solution:


emctl stop agent
cd $AGENT_HOME
rm sysman/emd/agntstmp.txt
rm sysman/emd/blackouts.xml
rm -r sysman/emd/state/*
rm -r sysman/emd/collection/*
rm -r sysman/emd/upload/*
rm sysman/emd/lastupld.xml
rm sysman/emd/protocol.ini


Go to the repository Grid Control Database


SQL> select target_name from mgmt_targets where target_type='oracle_emd';


TARGET_NAME
--------------------------------------------------------------------------------


si01.an.com:3872


SQL> exec mgmt_admin.cleanup_agent(' si01.an.com:3872);


PL/SQL procedure successfully completed.


emctl clearstate agent


emctl secure agent


emctl start agent


emctl upload agent

$AGENT_HOME/root.sh

reference:
http://bduan2.blog.163.com/blog/static/181238102201132192352424/
http://www.oracleangels.com/2011/07/emd-upload-error-uploadxmlfiles-skipped.html

2012年2月28日 星期二

INS-30060: Check for group existence failed.

Install Oracle 11gR2 on RHEL5 issue

solution

./runInstaller -ignoreSysPrereqs –ignoreInternalDriverError

Reference:
Cause: Unexpected error occurred while trying to check for group existence.
Action: Refer to the logs or contact Oracle Support Services. Note for advanced users: Launch the installer by passing the following flag ‘-ignoreInternalDriverError’.

EM Configuration issue. $ORACLE_HOME/odprimary_PRIDB not found

oracle control 12c agent issue
root cause
A common cause for this error is changing the hostname of the server in either /etc/hosts or DNS. In this case the there were no changes to the hostname as we were able to connect to the hostname listed in the last known state on the database home page.

Resolution
changing /etc/hosts to the following:
127.0.0.1 localhost.localdomain localhost
172.17.100.250 cloudcc12c cloudcc12c.com

reference: