Tuesday, December 22, 2009

Move Grid Control Agent Repository To Another Server

Change Grid Control Agent Repository To Another Server

1. Stop the agent.

AGENT_HOME/bin: emctl stop agent

[oracle@test ~]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.


2. Edit the AGENT_HOME/sysman/config/emd.properties file. Change the following lines to port 4889. Make sure to back up this file before editing:
REPOSITORY_URL=http://:4889/em/upload/
emdWalletSrcUrl=http://:4889/em/wallets/emd

3. Delete these files from the agent home

rm -r AGENT_HOME/sysman/log/*.*
rm -r AGENT_HOME/sysman/emd/state/*
rm -r AGENT_HOME/sysman/emd/upload/*
rm AGENT_HOME/sysman/emd/lastupld.xml
rm AGENT_HOME/sysman/emd/agntstmp.txt
rm AGENT_HOME/sysman/emd/protocol.ini

4. Start the agent
AGENT_HOME/bin: emctl start agent

[oracle@test ~]$ $AGENT_HOME/bin/emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting agent ....... started.


5. Issue an agent clearstate from the agent home

AGENT_HOME/bin: emctl clearstate agent

[oracle@test ~]$ $AGENT_HOME/bin/emctl clearstate agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully

6. Now secure the agent

[oracle@test ~]$ emctl secure agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Enter Agent Registration password :
Agent is already stopped... Done.
Securing agent... Started.
Requesting an HTTPS Upload URL from the OMS... Done.
Requesting an Oracle Wallet and Agent Key from the OMS... Done.
Check if HTTPS Upload URL is accessible from the agent... Done.
Configuring Agent for HTTPS in CENTRAL_AGENT mode... Done.
EMD_URL set in /home/oracle/OracleHomes1/agent10g/sysman/config/emd.properties
Securing agent... Successful.


7. Force an upload to the OMS

AGENT_HOME/bin: emctl upload agent


[oracle@test ~]$ emctl upload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully

[oracle@test ~]$ emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /home/oracle/OracleHomes1/agent10g
Agent binaries : /home/oracle/OracleHomes1/agent10g
Agent Process ID : 22942
Parent Process ID : 22568
Agent URL : https://test.server.com:3872/emd/main/
Repository URL : https://sys104.server.in:1159/em/upload
Started at : 2009-12-23 12:20:59
Started by user : oracle
Last Reload : 2009-12-23 12:20:59
Last successful upload : 2009-12-23 12:23:01
Total Megabytes of XML files uploaded so far : 31.26
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 8.95%
Last successful heartbeat to OMS : 2009-12-23 12:24:05
---------------------------------------------------------------
Agent is Running and Ready
[oracle@test ~]$




Wednesday, December 9, 2009

Install Oracle JDeveloper 11g 11.1.1.2

Install Oracle JDeveloper 11g 11.1.1.2

1. Download Oracle JDeveloper 11g






2. Unzip

3. Run runinstaller


4. Click Next


5. Click Next

Note : Directory


6. Click Next

Note : Choose Type


7 Click Next


8.Click Next


9. Click Next



10. Click Next


11. Click Next


12 Click Next


13. Click Done


Agent Failed to start HTTP listener

Enterprise Manager Grid Control Agent Failed to start HTTP listener

[oracle@egrouptest ~]$ emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting agent ....... failed.
Failed to start HTTP listener.

Solutions


1. Go to $AGENT_HOME/sysman/config

2. Modify the emd.properties file as follows:
Change the parameter

AgentListenOnAllNICs=TRUE
to
AgentListenOnAllNICs=FALSE

Note: This will cause the Agent to only listen on the specific NIC as stated in the EMD_URL parameter in the emd.properties configuration file.

2. Startup the Agent
/bin/emctl start agent

[oracle@egrouptest agent10g]$ emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting agent ........ started.

Monday, December 7, 2009

Enable Trace in Oracle E-Business Suite R12

Debugging tool for HTTP, OC4J and OPMN in E-Business Suite R12

How To Enable and Collect Debug for HTTP, OC4J and OPMN

Shutdown the http server, oc4j and opmn services

adapcctl.sh stop
adoacorectl.sh stop
adformsctl.sh stop
adoafmctl.sh stop
adopmnctl.sh stop

Enable http ODL logging
-----------------------
$ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf/httpd.conf

OraLogMode oracle
OraLogSeverity TRACE:32
OraLogDir $LOG_HOME/ora/10.1.3/Apache/oracle


Please use the full path to $LOG_HOME e.g. OraLogDir /u01/inst/apps/JCB_atg/logs/ora/10.1.3/Apache/oracle

mkdir $LOG_HOME/ora/10.1.3/Apache/oracle

Increase OC4J logging for oacore
-------------------------------
edit j2ee-logging.xml adjust the following in file:

$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/config/j2ee-logging.xml




Increase OC4J logging for forms
------------------------------
edit j2ee-logging.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/j2ee/forms/config/j2ee-logging.xml


edit orion-web.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xml


debug_mode
true

Increase OPMN Logging
-------------------------------
edit opmn.xml adjust the following in file:
$ORA_CONFIG_HOME/10.1.3/opmn/conf/opmn.xml



Note : Check log Location /u01/inst/apps/JB_atg/logs/ora/10.1.3/opmn/opmn.dbg

Startup the http server, oc4j and opmn (reverse the startup sequence above)