EMCTL Archives - DBACLASS https://dbaclass.com/article-tag/emctl/ database administration Tue, 17 Oct 2017 19:05:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 How to change http port of EM dbconsole https://dbaclass.com/article/change-http-port-em-dbconsole/ https://dbaclass.com/article/change-http-port-em-dbconsole/#respond Tue, 17 Oct 2017 19:02:09 +0000 http://dbaclass.com/?post_type=article&p=3416 By default , when we setup enterprise Manager database console(dbconsole), 1158 port will be configured. But we can change this port easily using emca utility. In the below example, we will change the port from 1158 to 7100 1. Check the current dbconsole details: ./emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 […]

The post How to change http port of EM dbconsole appeared first on DBACLASS.

]]>
By default , when we setup enterprise Manager database console(dbconsole), 1158 port will be configured.

But we can change this port easily using emca utility.

In the below example, we will change the port from 1158 to 7100
1. Check the current dbconsole details:

./emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
https://prdeaidb2:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /oracle/app/oracle/product/11.2.0/dbhome_1/prd/sysman/log

Currently the port is 1158 . https://prodb:1158/em/console/aboutApplication

2. Invoke emca command as below

./emca –reconfig ports -DBCONTROL_HTTP_PORT

STARTED EMCA at Oct 1, 2017 7:00:51 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: ecnmprod
Password for SYS user:

Do you wish to continue? [yes(Y)/no(N)]: Y
Oct 1, 2017 7:01:15 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/app/oracle/cfgtoollogs/emca/prddb/emca_2017_10_01_19_00_51.log.
Oct 1, 2017 7:01:15 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Oct 1, 2017 7:01:37 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Oct 1, 2017 7:01:53 PM oracle.sysman.emcp.EMDBPostConfig performReconfiguration
INFO: Database Control started successfully
Oct 1, 2017 7:01:53 PM oracle.sysman.emcp.EMDBPostConfig performReconfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://prddb:7100/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 1, 2017 7:01:53 PM

3. Check the status again:

./emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
https://prdeaidb2:7100/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /oracle/app/oracle/product/11.2.0/dbhome_1/prddb/sysman/log

We have successfully changed the http port of the database console.

The post How to change http port of EM dbconsole appeared first on DBACLASS.

]]>
https://dbaclass.com/article/change-http-port-em-dbconsole/feed/ 0
How to restart Agents in oracle 12c cloud control https://dbaclass.com/article/how-to-restart-agents-in-oracle-12c-cloud-control/ https://dbaclass.com/article/how-to-restart-agents-in-oracle-12c-cloud-control/#respond Fri, 11 Dec 2015 08:15:44 +0000 http://dbaclass.com/?post_type=article&p=546 Agents are deployed on the target servers which are being monitored from 12c cloud control . Use below command to start the agent. Checking the agent status: oracle@test:…oracle/agent12c/agent_inst/bin$. /emctl status agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent is Not Running Starting the […]

The post How to restart Agents in oracle 12c cloud control appeared first on DBACLASS.

]]>
Agents are deployed on the target servers which are being monitored from 12c cloud control . Use below command to start the agent.

Checking the agent status:
oracle@test:…oracle/agent12c/agent_inst/bin$. /emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.	All rights reserved.

---------------------------------------------------------------
Agent is Not Running

Starting the Agent
oracle@test:…oracle/agent12c/agent_inst/bin$ ./emctl start agent

Oracle Enterprise Manager Cloud Control 12c Release 5

Copyright (c) 1996, 2015 Oracle Corporation.	All rights reserved.
Starting agent .............................. started.


Check the status:
oracle@test:…oracle/agent12c/agent_inst/bin$ ./emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015	Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version	: 12.1.0.5.0
OMS Version	: 12.1.0.5.0
Protocol Version	: 12.1.0.1.0
Agent Home	: /oracle/agent12c/agent_inst
Agent Log Directory	: /oracle/agent12c/agent_inst/sysman/log
Agent Binaries	: /oracle/agent12c/core/12.1.0.5.0
Agent Process ID	:	11952
Parent Process ID	:	11938
Agent URL	:	https://192.20.204.64:3872/emd/main/
Local Agent URL in NAT	:	https://192.20.204.64:3872/emd/main/
Repository URL	:	https://test.test.com.sa:1159/empbs/upload
Started at	:	2015-11-19 09:46:09
Started by user	:	oracle
Operating System	:	SunOS version 5.11 (sparcv9)
Last Reload	:	(none)

Last successful upload	:	2015-11-19 09:46:30
Last attempted upload	:	2015 -11-19 09:46:30
Total Megabytes of XML files uploaded so far :	0.02
Number of XML files pending upload	:	0
Size of XML files pending upload(MB)	:	0
Available disk space on upload filesystem	: 57.38%
Collection Status	: Collections enabled
Heartbeat Status	: Ok	
Last attempted heartbeat to OMS	:	2015 -11-19	09:46:27
Last successful heartbeat to OMS	: 2015-11-19	09:46:27
Next scheduled heartbeat to OMS	:	2015 -11-19	09:47:28

---------------------------------------------------------------
Agent is Running and Ready

To stop the agent use :

emctl stop agent

The post How to restart Agents in oracle 12c cloud control appeared first on DBACLASS.

]]>
https://dbaclass.com/article/how-to-restart-agents-in-oracle-12c-cloud-control/feed/ 0
How to restart OMS in oracle 12c cloud https://dbaclass.com/article/how-to-restart-oms-in-oracle-12c-cloud/ https://dbaclass.com/article/how-to-restart-oms-in-oracle-12c-cloud/#respond Fri, 11 Dec 2015 07:58:49 +0000 http://dbaclass.com/?post_type=article&p=544                      OMS service runs on the server, where oracle 12c cloud control is installed. We can use EMCTL utility to stop and restart OMS service.   cd $OMS_HOME/bin Stopping OMS:   oracle@test:…ta/app/oracle/oms12cr5/oms/bin$ ./emctl stop oms Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, […]

The post How to restart OMS in oracle 12c cloud appeared first on DBACLASS.

]]>
                     OMS service runs on the server, where oracle 12c cloud control is installed. We can use EMCTL utility to stop and restart OMS service.

 

cd $OMS_HOME/bin

Stopping OMS:

 

 oracle@test:…ta/app/oracle/oms12cr5/oms/bin$ ./emctl stop oms

Oracle Enterprise Manager Cloud Control 12c Release 5

Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Stopping WebTier...

WebTier Successfully Stopped Stopping Oracle Management Server...

Oracle Management Server Successfully Stopped
Oracle Management Server is Down

Starting OMS:
 
oracle@test:…ta/app/oracle/oms12cr5/oms/bin$ ./emctl start oms

Oracle Enterprise Manager Cloud Control 12c Release 5

Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Starting Oracle Management Server...

Starting WebTier...
WebTier Successfully Started

Oracle Management Server Successfully Started
Oracle Management Server is Up


Checking the OMS status:
oracle@test:…ta/app/oracle/oms12cr5/oms/bin$ ./emctl status oms

Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.	All rights reserved.
WebTier is Up
Oracle Management Server is Up


The post How to restart OMS in oracle 12c cloud appeared first on DBACLASS.

]]>
https://dbaclass.com/article/how-to-restart-oms-in-oracle-12c-cloud/feed/ 0