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:


2012年2月27日 星期一

Installing VMWare Tools - What is the location of the directory of C header files that match your running

Resolution
vi /usr/src/kernels/{uname -r}/include/linux/utsrelease.h
Remove old define kernel
Add {uname -r} define kernel
#define UTS_RELEASE "uname -r"

Continue installation tools
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/ {uname -r}/include/

2012年2月16日 星期四

oracle linux yum setup

http://public-yum.oracle.com/

Public Yum Server

Last updated: 9 May, 2011
Introduction

The Oracle public yum server offers a free and convenient way to install packages from the Oracle Linux and Oracle VM installation media via a yum client.

You can download the full Oracle Linux and Oracle VM installation media via edelivery.oracle.com/linux. Note that errata are not available via this public yum server. To access errata (bug fixes, security fixes and enhancement), you must have a valid support contract to access Unbreakable Linux Network (ULN). For more information, see the FAQ below.

This yum server is offered without support of any kind. If you require support, please consider purchasing Oracle Linux support via the online store, or via your sales representative.
Getting Started

Download and Install Oracle Linux

Download and copy the appropriate yum configuration file in place, by running the following commands as root:
Oracle Linux 4, Update 6 or Newer

# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo

Oracle Linux 5

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo

Oracle Linux 6

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo

Oracle VM 2

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo

Enable the appropriate repository by editing the yum configuration file
Open the yum configuration file in a text editor
Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
Change enabled=0 to enabled=1

Begin using yum, for example:

yum list

yum install firefox

You may be prompted to confirm the import of the Oracle OSS Group GPG key.