Oracle Enterprise Manager Cloud Control 12c(12.1) OMS&Agent 学习(1)

Oracle Enterprise Manager Cloud Control 12c(12.1) OMS&Agent 学习(1)

安装&启动关闭

关闭:

[oracle@ora12 oms]$ export OMS_HOME=/u01/em12c/emhome/oms
[oracle@ora12 oms]$ export AGENT_HOME=/u01/em12c/emagent/core/12.1.0.4.0

[oracle@ora12 oms]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down

[oracle@ora12 oms]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Stopping agent .... stopped.

[oracle@ora12 oms]$ ps -ef|grep u01
oracle    57765  54684  0 20:09 pts/1    00:00:00 grep u01
[oracle@ora12 oms]$ 

[oracle@ora12 oms]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Dec 23 20:10:06 2014
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> 

[oracle@ora12 trace]$ crontab -l
no crontab for oracle
[oracle@ora12 trace]$ su -  
Password: 
[root@ora12 ~]# crontab -l
no crontab for root
[root@ora12 ~]# reboot

启动:

上述步骤的反向操作!

安装:

alter system set processes= 500 scope=spfile;
alter system set session_cached_cursors=500 scope=spfile;
alter system set shared_pool_size=650M scope=spfile;
alter system set job_queue_processes=22 scope=spfile;
alter database add logfile size 320M;
alter system set open_cursors=350 scope=spfile;
alter system set sga_target=2g scope=spfile;
aLTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;

高级安装

[oracle@ora12 ~]$ $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4  
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.4.0
OMS Version            : (unknown)
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/em12c/emagent/agent_inst
Agent Log Directory    : /u01/em12c/emagent/agent_inst/sysman/log
Agent Binaries         : /u01/em12c/emagent/core/12.1.0.4.0
Agent Process ID       : 5922
Parent Process ID      : 1969
Agent URL              : https://ora12.dom:3872/emd/main/
Local Agent URL in NAT : https://ora12.dom:3872/emd/main/
Repository URL         : https://ora12.dom:4903/empbs/upload
Started at             : 2014-12-23 20:29:15
Started by user        : oracle
Operating System       : Linux version 2.6.39-400.17.1.el6uek.x86_64 (amd64)
Last Reload            : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 1
Size of XML files pending upload(MB)         : 0.01
Available disk space on upload filesystem    : 66.81%
Collection Status                            : Collections enabled
Heartbeat Status                             : OMS is unreachable
Last attempted heartbeat to OMS              : 2014-12-23 20:36:54
Last successful heartbeat to OMS             : (none)
Next scheduled heartbeat to OMS              : 2014-12-23 20:37:24
---------------------------------------------------------------
Agent is Running and Ready

自动启动!


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值