O11g GC

 
基本的设置这里就不做介绍了,可以参考Oracle Grid Control 10.2.0.5 for Linux安装和配置指南
一、WebLogic的安装:
1、创建bea组和weblogic用户:
image
image
 
2、安装:
在安装的过程中不创建任何domain,到时候GC会创建一个叫GCdomain的域。
[root@grid tools]# chmod +x wls1032_linux32.bin
[root@grid tools]# su - weblogic
[root@grid tools]$ ./wls1032_linux32.bin
Extracting 0%....................................................................................................100%
image
image
image 不注册,下一步
image 默认,即可
image
image 
 
 
 
 
 
image 不运行Quickstart。
Weblogic安装到此结束。
二、安装GC:
1、oracle环境变量设置:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/Middleware/db11g
export OMS_HOME=$ORACLE_BASE/Middleware/oms11g
export AGENT_HOME=$ORACLE_BASE/Middleware/agent11g
export ORACLE_SID=emrep
export ORACLE_HOSTNAME=grid
export ORACLE_OWNER=oracle
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/X11R6/lib:$LD_LIBRARY_PATH
export PATH=.:/usr/sbin:$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$PATH
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$CLASSPATH
export NLS_LANG="simplified chinese_china.zhs16gbk"
export LC=en_US
export WLS_HOME=/u01/app/0racle/Middleware/wlserver_10.3
export WT_HOME=/u01/app/oracle/Middleware/Oracle_WT
2、安装过程:
image 忽略不写,下一步
image
跳过软件更新,下一步
image 选择安装新的,选中简体中文语言
image 下一步
image
image abcd1234
image 下一步时,弹出了以下对话框:
image
由于这个数据库是早前安装好的,一直在用,所以里面有些东西冲突了,才弹出此对话框,所以按照上面的提示,运行以下命令:
image
以上执行完,点击下一步时又弹出如下对话框:
image
这些参数值太小了,更改如下:
更改前的值:
image
更改后:
image 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
image
更改完后重启数据库,否则还会报以上错误;
image
再点击下一步,又弹出以下错误:
image
接着修改undo表空间大小为300M;
image
点击下一步,终于通过了,如下图所示:
image
定义sysman密码:abcd1234,以及定义那三个表空间的位置,完了后下一步
image
这里的密码也是abcd1234,下一步
image
定义端口,默认即可,下一步:
image
点击install,开始安装
image
image
执行完,点OK,继续…
image
这里需要点时间,比10g的时间还要长,耐心等吧…………
配置完后点击"Close"退出. 安装完后各项服务已经自动启动.
3、安装后检查:
more $OMS_HOME/install/setupinfo.txt (查看安装结束后的提示信息)
------------------------------------------------------------------
...
Use the following URL to access:
1. Enterprise Manager GridControl URL: https://grid:7799/em
2. Admin Server URL: https://grid:7101/console
...
------------------------------------------------------------------
$OMS_HOME/bin/emctl status oms (查看OMS 状态信息)
------------------------------------------------------------------
...
WebTier is Up
Oracle Management Server is Up
------------------------------------------------------------------
$AGENT_HOME/bin/emctl status agent (查看Agent 状态信息)
Oracle Enterprise Manager 11g Release 1 GridControl 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 11.1.0.1.0
OMS Version : 11.1.0.1.0
Protocol Version : 11.1.0.1.0
Agent Home : /u01/app/oracle/Middleware/agent11g
Agent binaries : /u01/app/oracle/Middleware/agent11g
Agent Process ID : 11707
Parent Process ID : 11677
Agent URL : https://grid:3872/emd/main/
20
Repository URL : https://grid:1159/em/upload
Started at : 2010-07-13 21:07:20
Started by user : oracle
Last Reload : 2010-07-13 21:08:04
Last successful upload : 2010-07-13 21:09:48
Total Megabytes of XML files uploaded so far : 26.58
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 80.08%
Last successful heartbeat to OMS : 2010-07-13 21:10:24
---------------------------------------------------------------
Agent is Running and Ready
$AGENT_HOME/bin/emctl upload (确认EMD 上传成功)
...
EMD upload completed successfully
$OMS_HOME/emctl secure unlock -console (现在默认能https 访问, 如果需要http 访问则执行本步骤)
 
4、登录gc:
根据$OMS_HOME/install/setupinfo.txt 中的提示登录. 如果在Windows 里登陆, 首先得在
C:\WINDOWS\system32\drivers\etc\hosts 文件里增加服务器ip 和主机名的对应关系. 进入GC 控制台后, web 界面的显示会根据浏览器的首选语言进行显示。
OEM GridControl 中央控制台SSL URL: https://grid:7799/em (用户名密码sysman/abcd1234)
OEM GridControl 中央控制台without SSL URL: http://grid:7202/em (用户名密码sysman/abcd1234)
Weblogic Server 管理控制台SSL URL: https://grid:7101/console (用户名密码weblogic/abcd1234)
 
参考文献:

 

后补于2011年9月2日:

   1、weblogic的安装可以使用oracle用户直接安装,不必单独创建bea组以及weblogic用户用于weblogic的安装。

   2、确保/etc/hosts文件里,存在127.0.0.1条目。如果127.0.0.1解析不正确的话,会在后面的配置过程中,出现transx Failed以及'Repository Configuration'错误。

  3、如何打补丁9431704,见下面的链接:

      "EMGC_ADMINSERVER/FMW Welcome Page Application(11.1.0.0.0)" -Target Down

如何打补丁9431704,见下面的链接:

      "EMGC_ADMINSERVER/FMW Welcome Page Application(11.1.0.0.0)" -Target Down

http://hi.baidu.com/quwuztzwxubopqd/item/2916793eab6cd28bf4e4ad6b

"EMGC_ADMINSERVER/FMW Welcome Page Application(11.1.0.0.0)" -Target Down

1.[oracle@gracez 9431704]$ cd /u01/app/oracle/Middleware/oms11g/bin/
[oracle@gracez bin]$ ./emctl stop oms -all

 

2.download p6880880_112000_Linux-x86-64.zip

#unzip -d /u01/app/oracle/Middleware/oracle_common/ p6880880_112000_Linux-x86-64.zip

 

3.download  p9431704_111120_Generic.zip

#unzip p9431704_111120_Generic.zip

 

[oracle@gracez 9431704]$ export ORACLE_HOME=/u01/app/oracle/Middleware/oracle_common/
[oracle@gracez 9431704]$ /u01/app/oracle/Middleware/oracle_common/OPatch/opatch apply
Invoking OPatch 11.2.0.1.6

Oracle Interim Patch Installer version 11.2.0.1.6
Copyright (c) 2011, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/Middleware/oracle_common
Central Inventory : /u01/app/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.6
OUI version       : 11.1.0.7.0
Log file location : /u01/app/oracle/Middleware/oracle_common/cfgtoollogs/opatch/opatch2011-07-20_14-48-55PM.log


OPatch detects the Middleware Home as "/u01/app/oracle/Middleware"

Applying interim patch '9431704' to OH '/u01/app/oracle/Middleware/oracle_common'
Verifying environment and performing prerequisite checks...

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  y

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/Middleware/oracle_common')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...

Patching component oracle.jrf.j2ee, 11.1.1.2.0...
Patch 9431704 successfully applied
Log file location: /u01/app/oracle/Middleware/oracle_common/cfgtoollogs/opatch/opatch2011-07-20_14-48-55PM.log

OPatch succeeded.

[oracle@gracez 9431704]$ cd /u01/app/oracle/Middleware/oms11g/bin/
[oracle@gracez bin]$ ./emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
WARNING: Limit of open file descriptors is found to be 1024.
For proper functioning of OMS, please set "ulimit -n" to be at least 4096.

[oracle@gracez bin]$ su -
Password:

[root@gracez ~]# vi /etc/profile

add:

 

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 4096
else
ulimit -u 16384 -n 4096
fi
fi

 

[root@gracez ~]# su - oracle
[oracle@gracez ~]$ cd /u01/app/oracle/Middleware/oms11g/bin/
[oracle@gracez bin]$  ./emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Could Not Be Started
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
Please check /u01/app/oracle/Middleware/oms11g/em/EMGC_OMS1/sysman/log/emctl.log for error details

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/90986/viewspace-767022/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/90986/viewspace-767022/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值