- 论坛徽章:
- 0
|
本帖最后由 花和尚 于 2014-01-09 00:06 编辑
hi,各位,在现有的RAC环境中创建EM报错。环境先说下:
系统:Linux rac1 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
oracle版本:11.2.0.4
RAC节点:2
GRID用户环境变量:
[grid@rac1 ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/oracle/app/grid
#export ORACLE_HOME=/oracle/app/11.2.0/grid
export GRID_HOME=/oracle/app/11.2.0.4/grid
export ORACLE_HOME=/oracle/app/11.2.0.4/grid
export ORACLE_SID=caws1
export ORACLE_TERM=xterm
#export NLS_LANG='AMERICAN_AMERICA.ZHS16GK'
#export NLS_LANG拢陆SIMPLIFIED CHINESE_CHINA.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LD_LIBRARY_PATH=$GRID_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$ORACLE_HOME/RDBMS/lib:/lib:/usr/lib
export ORACLE_DOC=$ORACLE_HOME/doc
export PATH=$ORACLE_HOME/OPatCh:$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export TMP=/tmp
export TMPDIR=$TMP
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
export EDITOR=vi
oracle用户环境变量:
[oracle@rac1 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_BASE=/oracle/app
#export ORACLE_HOME=$ORACLE_BASE/product/db11gr2
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4
export GRID_HOME=/oracle/app/11.2.0.4/grid
export ORACLE_SID=caws1
export ORACLE_TERM=xterm
#export NLS_LANG='AMERICAN_AMERICA.ZHS16GK'
#export NLS_LANG拢陆SIMPLIFIED CHINESE_CHINA.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export LD_LIBRARY_PATH=$GRID_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:$ORACLE_HOME/RDBMS/lib:/lib:/usr/lib
export ORACLE_DOC=$ORACLE_HOME/doc
export PATH=.:ORACLE_HOME/OPatCh:$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export TMP=/tmp
export TMPDIR=$TMP
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
export NLS_LANG=american_america.AL32UTF8
export ORACLE_UNQNAME=caws
export EDITOR=vi
hosts文件
[root@rac1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
::1 localhost6.localdomain6 localhost6
192.8.60.202 rac2
192.8.60.201 rac1
192.8.60.205 scan
192.8.60.203 rac1-vip
192.8.60.204 rac2-vip
192.8.60.206 scan-ip
172.16.101.2 rac2-priv
172.16.101.1 rac1-priv
192.168.88.1 rac1-priv1
192.168.88.2 rac2-priv1
创建EM过程:
[oracle@rac1 ~]$ emca -deconfig dbcontrol db -repos recreate -cluster
STARTED EMCA at Jan 8, 2014 11:25:31 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: caws
Service name: caws
Listener port number: 1521
Listener ORACLE_HOME [ /oracle/app/11.2.0.4/grid ]:
Password for SYS user:
Incorrect usage. Run 'emca -help' for more details.
[oracle@rac1 ~]$ emca -config dbcontrol db -repos recreate -cluster
STARTED EMCA at Jan 8, 2014 11:25:59 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: caws
Service name: caws
Listener port number: 1521
Listener ORACLE_HOME [ /oracle/app/11.2.0.4/grid ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Cluster name: rac11204
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /oracle/app/11.2.0.4/grid --这里为什么是GRID_HOME?
Database instance hostname ................ --这里搞不明白,为什么认不到主机
Listener ORACLE_HOME ................ /oracle/app/11.2.0.4/grid
Listener port number ................ 1521
Cluster name ................ rac11204
Database unique name ................ caws
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Jan 8, 2014 11:26:20 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at/oracle/app/cfgtoollogs/emca/caws/emca_2014_01_08_23_25_59.log
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sysman/emdrep/config/ConfigurationException
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:599)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1482)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:583)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:529)
报错日志
报错日志太大,我用附件的方式上传。
log.7z
(3.77 KB, 下载次数: 7)
求指导,谢谢! |
|