Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3214989
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: Oracle

2012-03-01 13:20:47

11g grid control install
前提
1.安装oracle 11g
2.安装weblogic

安装过程
1.查看oracle安装了哪些组件
>select * from v$option;

2.如果配置了EM,则删除以前的配置
emca -deconfig dbcontrol db -repos drop

3.修改几个参数
db_block_size>8192
job_queue_processes>10
log_buffer>    10485760
open_cursors>300
processes>500
session_cached_cursors>200

alter system set session_cached_cursors=201 scope=spfile;
alter system set processes=501 scope=spfile;
alter system set open_cursors=301 scope=spfile;
alter system set log_buffer=10485761 scope=spfile;
重启数据库

4.undo表空间至少需要200MB,需要8.4G硬盘空间
如何计算需要多少undo空间
SELECT SUM(DECODE(autoextensible,'YES',200*1024*1024+1,bytes)) total
FROM dba_data_files f, dba_tablespaces s
WHERE s.contents = 'UNDO'
AND s.tablespace_name = f.tablespace_name;

alter database datafile '/u01/app/oracle/oradata/orcl/undotbs01.dbf' resize 250M;

5.archive log模式
select log_mode from v$database;

6.hosts configuration
127.0.0.1       localhost.localdomain localhost
10.0.127.144    host144.bestv.com.cn    host144

7.
./runInstaller
1)email,disable updates,next/yes
2)check for updates,skip
3)install a new enterprise manager system
4)check prerequisites,内存至少需要3072MB
.bash_profile添加环境变量:
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/bea/Oracle/Middleware;export ORACLE_MIDDLEWARE_HOME_LOCATION
OMS_HOME=/u01/app/bea/Oracle/gc_inst;export OMS_HOME
/u01/app/bea/Oracle/Middleware
/u01/app/bea/Oracle/gc_inst
5)configure pasword(A-Z,a-z,0-9),  weblogic/Bestv123;nodemanager/Bestv123
6)hostname,1521,sid,sys_password
7)sysman password
8)registration password
9)customize ports,不做修改
9)install
10)exec script as root
/u01/app/bea/Oracle/Middleware/oms11g/allroot.sh

查看cat /etc/oratab
orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N
*:/u01/app/bea/Oracle/Middleware/oms11g:N
*:/u01/app/bea/Oracle/Middleware/agent11g:N

添加环境变量.bash_profile
OMS_HOME=/u01/app/bea/Oracle/Middleware/oms11g; export OMS_HOME
AGENT_HOME=/u01/app/bea/Oracle/Middleware/agent11g; export AGENT_HOME

安装结果
less /u01/app/bea/Oracle/Middleware/oms11g/install/setupinfo.txt

查看OMS状态
[oracle@host144 ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
查看agent状态
[oracle@host144 ~]$ $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 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.0.0
Agent Home        : /u01/app/bea/Oracle/Middleware/agent11g
Agent binaries    : /u01/app/bea/Oracle/Middleware/agent11g
Agent Process ID  : 27654
Parent Process ID : 27632
Agent URL         :
Repository URL    :
Started at        : 2012-03-01 04:45:59
Started by user   : oracle
Last Reload       : 2012-03-01 04:46:47
Last successful upload                       : 2012-03-01 05:04:21
Total Megabytes of XML files uploaded so far :    27.16
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    34.44%
Last successful heartbeat to OMS             : 2012-03-01 05:07:07
---------------------------------------------------------------
Agent is Running and Ready

[oracle@host144 ~]$ /u01/app/bea/Oracle/Middleware/agent11g/bin/emctl upload
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
[oracle@host144 ~]$ $OMS_HOME/bin/emctl secure unlock -console
Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
OMS Console is unlocked. HTTP ports too can be used to access console.
默认https访问,这样http也能访问了!

login
grid control ssl (sysman/Bestv123)
grid control (sysman/Bestv123)
weblogic server (weblogic/Bestv123)


参考

http://st-curriculum.oracle.com/obe/em/emgc1110/installemgc11101linux/emgc11101install.htm

http://hi.baidu.com/edeed/blog/item/2061bc3190c214a55edf0e90.html
http://www.itpub.net/thread-1313758-1-1.html
http://candon123.blog.51cto.com/704299/348875




































阅读(5112) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~