Issue : above error showed when used
opmn command.
Root Cause: permission issue on
apachectl.sh
1. Solution: Log in as root.
- Run the following commands in the Oracle home:
3. cd ORACLE_HOME/ohs/bin
4. chown root .apachectl
5. chmod 6750 .apachectl
then run ./opmn startall (command as oracle fusion installer user
like oracle in my case)
case 2:When http server status is NONE from command ./opmnctl status then do below solution
1. Allow root to start HTTP Server
1.1Login as root
1.2 Run following command as root
cd ORACLE_HOME/ohs/bin (Oracle Home in Fusion Middleware 11g is under Middleware Home MW_HOME to know more about ORACLE_HOME, MW_HOME or INSTANCE_HOME in 11g Click here)
1.1Login as root
1.2 Run following command as root
cd ORACLE_HOME/ohs/bin (Oracle Home in Fusion Middleware 11g is under Middleware Home MW_HOME to know more about ORACLE_HOME, MW_HOME or INSTANCE_HOME in 11g Click here)
chown root .apachectl (Note* dot infront of apachectl
which in Unix means this is hidden file)
chmod 6750 .apachectl
chmod 6750 .apachectl
.
2.
Change httpd.conf(using user owning OHS – awebtier in my case)
2.1Login as owning OHS 11g
2.2 cd $INSTANCE_HOME/config/OHS/ohs1 (INSTANCE_HOME for OHS by default is $MW_HOME/Oracle_WT1/instances/instance1)
2.3cp httpd.conf httpd.conf_pre_port_80
2.4 Change value against Listen to 80 (by default LISTEN value for OHS is 7777 or 7778 for OHS with webcache)
2.1Login as owning OHS 11g
2.2 cd $INSTANCE_HOME/config/OHS/ohs1 (INSTANCE_HOME for OHS by default is $MW_HOME/Oracle_WT1/instances/instance1)
2.3cp httpd.conf httpd.conf_pre_port_80
2.4 Change value against Listen to 80 (by default LISTEN value for OHS is 7777 or 7778 for OHS with webcache)
3.Start
OHS using OPMN (using user owning OHS – awebtier in my case)
3.1cd $INSTANCE_HOME/bin (or $MW_HOME/Oracle_WT1/instances/instance1/bin)
3.2./opmnctl startall (stopall and startall if opmn is already running)
3.1cd $INSTANCE_HOME/bin (or $MW_HOME/Oracle_WT1/instances/instance1/bin)
3.2./opmnctl startall (stopall and startall if opmn is already running)
4.
Test OHS via URL
4.1 Check if port 80 is listening on that machine “netstat -an | grep 80″
4.2 Type URL http://servername:80 (If you don’t specify port with http by default it takes port 80)
4.1 Check if port 80 is listening on that machine “netstat -an | grep 80″
4.2 Type URL http://servername:80 (If you don’t specify port with http by default it takes port 80)
No comments:
Post a Comment