Auto start-stop script
Hi to All,
I have create as root in /etc/init.d the file dbora:
+#!/bin/sh+
+# chkconfig: 345 99 10+
+# description: Oracle auto start-stop script.+
+#+
+# Set ORA_HOME to be equivalent to the $ORACLE_HOME+
+# from which you wish to execute dbstart and dbshut;+
+#+
+# Set ORA_OWNER to the user id of the owner of the+
+# Oracle database in ORA_HOME.+
ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_OWNER=oracle
+if [ ! -f $ORA_HOME/bin/dbstart ]+
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
+'start')+
+# Start the Oracle databases:+
+# The following command assumes that the oracle login+
+# will not prompt the user for any values+
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
touch /var/lock/subsys/dbora
+;;+
+'stop')+
+# Stop the Oracle databases:+
+# The following command assumes that the oracle login+
+# will not prompt the user for any values+
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
rm -f /var/lock/subsys/dbora
+;;+
esac
After I have execute:
*#chmod 750 /etc/init.d/dbora*
*# ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora*
*# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora*
*# ln -s /etc/init.d/dbora /etc/rc.d/rc4.d/S99dbora*
*# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora*
At last
*#chkconfig --add /etc/init.d/dbora*
This message is returned
dbora service don't support chkconfig.+
Have You an idea ?
Thank You and best regards
Gaetano
Solved !
I have inserted a space before chkconfig and description in the script:
Incorrect Code:
#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
This is the correct code
#!/bin/sh
#chkconfig: 345 99 10
#description: Oracle auto start-stop script.Bye
Gaetano
Similar Messages
-
Problem with auto start-stop script
Hi to All,
Logged as root. I have create in /etc/rc.d/init.d this file and saved as dbora (Oracle Linux 5.4):
+#!/bin/sh+
+# chkconfig: 345 99 10+
+# description: Oracle auto start-stop script.+
+#+
+# Set ORA_HOME to be equivalent to the $ORACLE_HOME+
+# from which you wish to execute dbstart and dbshut;+
+#+
+# Set ORA_OWNER to the user id of the owner of the+
+# Oracle database in ORA_HOME.+
ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
ORA_OWNER=oracle
+if [ ! -f $ORA_HOME/bin/dbstart ]+
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
+'start')+
+# Start the Oracle databases:+
+# The following command assumes that the oracle login+
+# will not prompt the user for any values+
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
touch /var/lock/subsys/dbora
+;;+
+'stop')+
+# Stop the Oracle databases:+
+# The following command assumes that the oracle login+
+# will not prompt the user for any values+
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
rm -f /var/lock/subsys/dbora
+;;+
esac
After creation I have execute:
*#chmod 750 /etc/rc.d/init.d/dbora*
*#chkconfig --add /etc/rc.d/init.d/dbora*
The last command return this message:
+"service dbora does not support chkconfig"+.
Can You help me? Have You an idea ?
Thank You and best regards
Gaetanosb92075 wrote:
Oracle RDBMS needs to be started by process running at OS level as owner of Oracle software; typically OS user "oracle" & not as ROOT!Ok,
But I have founded this script at [http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php].
The article report:
Article
When using RAC or ASM under Oracle 10g Release 2 or above, the Oracle Clusterware automatically starts and stops the Oracle database instances, so the following procedures are not necessary. For all other cases, you can use the methods described below.I must suppose, that the author has written an incorrect article?
Best Regards
Gaetano -
Auto Start/Stop Oracle Database Lintener DBConslone on Linux
Dear all
I have install oracle 10.2.0 on redhat 4.7 every time i have to start manualy.
it try with following scrip / process but database not starting automatically.
Please any one can provide steps for auto start and stop oracel services on RedHat 4.7
Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
TSH1:/u01/app/oracle/product/10.2.0:Y
Next, create a file called "/etc/init.d/dbora" as the root user, containing the following.
#!/bin/bash
#chkconfig: 345 95 10
#description: init script to start/stop oracle database 10g, TNS listener, EMS and isqlplus
case $1 in
start)
su - oracle -c 'lsnrctl start'
su - oracle -c 'dbstart'
su - ora10g -c 'isqlplusctl start'
su - oracle -c 'emctl start dbconsole'
stop)
su - oracle -c 'emctl stop dbconsole'
su - oracle -c 'isqlplusctl stop'
su - oracle -c 'dbshut'
su - oracle -c 'lsnrctl stop'
restart)
su - oracle -c 'emctl stop dbconsole'
su - oracle -c 'isqlplusctl stop'
su - oracle -c 'dbshut'
su - oracle -c 'lsnrctl stop'
su - oracle -c 'lsnrctl start'
su - oracle -c 'dbstart'
su - ora10g -c 'isqlplusctl start'
su - oracle -c 'emctl start dbconsole'
esac
create service on linux
Actions >> System Settings >> Server Settings >> Services Then
Actions >> Add Service Then
Service Name = dbora Then Press Ok
chmod a+x /etc/init.d/dbora
Check is it running this service properly
service dbora stop
service dbora start
showing error
:bad interperter : no such file or directory
Please forward me process/steps for auto start/stop oracel services:bad interperter : no such file or directorymeans that it could not find the interpreter which should be used to interpret the script.
most probably this is caused by the shebang (#!/bin/bash)
the default location of bash on RHEL (OEL/CentOS) is /bin/bash, which means that the shebang looks correct.
can you make the shebang:
#!/bin/bash -xso shelltracing is put on and execute script again?
this will make clear if it is the shebang in your script, or in another script. -
How we can control auto start/stop of db/listener on Unix/linux?
How we can control auto start/stop of db/listener on Unix/linux?
http://download-uk.oracle.com/docs/html/B10812_01/chapter2.htm#BABGDGHF
-
Windows SAP Start/Stop Scripting
Hi all,
We are working in SAP Start/Stop Scripts in Windows + SQL Platform.
We need some help from your side.We run the command to stop SAP & then SAP is stopped.If SAP is not stopped,next service stop command should not run.
How can i write in Script & also from which command for SAP Stop. I can get the RC.
Please help me on this ?
Thanks,
Richa
Edited by: Richa Saran on Sep 14, 2011 9:18 AM
Edited by: Richa Saran on Sep 14, 2011 9:18 AMI run the command sapcontrol -nr %erppno% -prot PIPE -function StopWait 60 10.
SAP Stopped in MMC .
My Next Command is stop SAP Services {NET STOP %servicename% (SAPSID_NO)}
I want to write the command in Script that NET STOP command will be detect or check that SAP Instance is stopped & then run Service stop command.
Please help me on this topic. -
Service start stop scripts and Nagios scripts
Hello. Are there some "official" service start stop scripts somewhere? And: Has somebody already written a Nagios monitoring script for Oracle NoSQL? Thanks, Jesus.
Hi. Yes, but I mean something like service kvclient start / stop / restart / status, and using e.g. daemon without nohup. Of course one can be written, e.g. I have a simple one based on a script I found in internet long time ago for Cassandra, but then by Murphy's Law you will probably have an "official" one in the .124 version : - ).
-
[Debian] Oracle 10g Express - init.d start/stop script problem + fix
I've experienced a problem with the init.d script "oracle xe" which is used to start/stop/reload the 10g server and comes with the debian package from oss.oracle.com.
I noticed that after installing Oracle 10g in the "Debian" way (via .deb package and an apt-source oss.oracle.com), the start and stop method of the script doesn't do anything.
It's checking for the value of the "ORACLE_DBENABLED" variable, which is on my installation set to "false", because I answered during installation false to the question "do you want to start Oracle 10g at system boot?".
In my opinion that's wrong. I should always be able to start/stop the Oracle server trough the init.d script regardless of your choice starting Oracle at boot or not.
I commented out row 604 and 621 in the file "/etc/init.d/oracle-xe" :
case "$1" in
start)
if test -f "$CONFIGURATION"
then
if test "$ORACLE_DBENABLED" != "true"
then
echo "exit"
# exit 0
fi
else
echo "Oracle Database 10g Express Edition is not configured. You must
exit 0
fi
start
configure)
configure
stop)
if test -f "$CONFIGURATION"
then
if test "$ORACLE_DBENABLED" != "true"
then
echo "exit"
# exit 0
fi
else
echo "Oracle Database 10g Express Edition is not configured. You must
exit 0
fi
stop
;;Hello,
I have the same problem on RH9.
[root@phpsrv init.d]# ./oracle-xe start
Starting Oracle Net Listener.
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
Starting Oracle Database 10g Express Edition Instance.
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
Regards,
Pavel Kucera -
Weblogic Solaris SMF start/stop script
Does anyone have a Solaris SMF script to start/stop Weblogic they'd care to share? Thanks.
I don't think it matters but I'm running Solaris 10, Weblogic 10.3 and X86.In /etc/rc3.d (all the files in this script are executed at the time of server boot) you can keep a script called S99weblogic and add below line that file,
#!/bin/ksh
su - wladmin -c "/etc/init.d/start_weblogic.sh start"
and in /etc/init.d you can write script start_weblogic.sh, as below
#!/bin/ksh
case "$1" in
'start')
# for admin server
if [ -f <init log path>/startadmin.log ]
then
print -n "\t\n\n deleting <init log path>/startadmin.log\n\n"
/usr/xpg4/bin/rm -rf <init log path>/startadmin.log
fi
### like above do for manged servers logs also ( if you have different script formats for admin and managed servers) and startadmin.log contains paths to all the admin server scripts)
# boot logs when the instances are started which will contains error while the instances are started
if [ -f init log path/boot.err.log ]
then
print -n "\t\n\n deleting init log path/boot.err.log\n\n"
/usr/xpg4/bin/rm -rf init log path/boot.err.log
#contians the list of domains in your physical or virtual server
if [ -f init log path/domain_list.log ]
then
print -n "\t\n\n deleting init log path/domain_list.log\n\n"
/usr/xpg4/bin/rm -rf init log path/domain_list.log
#list all domain names in domain_list.log
#use below command to find all the domians scripts home, for weblogic 8 in ur physical server
# for weblogic 8
ls -d <path to user projects untill scripts home>/* > inint log path/domain_list.log
#if ur domain are scattered then append other domains also -for weblogic 9.x, 10.x.........
ls -d <path to user projects untill scripts home>/*/bin >> initn log path/domain_list.log
# get start up sctiprs
for file in `/usr/bin/cat init log path/domain_list.log`
do
ls $file/startadm*.sh >> init log path/startadmin.log
ls $file/startwl*.sh >> init log path/startmgd.log
fi
done
#start startup scritps
for file in `/usr/bin/cat init log path/startadmin.log`
do
cd `/usr/bin/dirname $file`
nohup $file >> init log path/boot.err.log 2>&1 &
#do the same for manged server sctips
done -
Worth it? Auto start/stop services and change iptables rules
I have recently set up a crontab to start/stop services based on my schedule, such as when I'll be home or away. I intend to only have a service running when I'll probably use it.
I also integrated rules for iptables into the start/stop of the services (systemd), so they automatically modify rules to accept/reject on their ports when the services start/stop.
I am behind a router, so I only forward outside ports I use like ssh (which is not on port 22). I manually forward ports, but am looking at UPnP. This is my home network so I should be able to trust the devices on it.
Now, to my question. Is it worth the time and effort to set this up? Would it be fine to just enable the services I use, let them run and always have firewall ports open for them? I feel like it's good to limit the time that ssh is running, but what about services not open to the Internet? Resources aren't really an issue. What do you guys think?
I enjoyed learning about systemd, iptables, and cron in the process of setting it up. I'd just like to also learn about how much benefit there actually is, or if anyone has other ideas. Or if it's something that could go on the wiki (not really cron, but maybe the iptables/systemd stuff).I'd say, if resources aren't an issue; why limit the time ssh is reachable from the outside? You should have PasswordAuthentication and RootLogin disabled anyway so your vulnerability doesn't really decrease by updating iptables? This script probably works fine until you forget about it and it makes a boo-boo; making your machine unreachable.
-
Common weblogic start/stop script
Hi,
We have Weblogic 8.1 on Solaris 8. We have lot of domains in the user_projects. Instead of shutting down and starting up each domain everytime. I would like to have a common weblogic start and stop script for all the domains. so that when I execute the script all the weblogic instances in each domain should be stopped or started up automatically.
I think lot of people would have implemented this. I appreciate if someone can help me in achieving this.
Thanks,
VaniIn /etc/rc3.d (all the files in this script are executed at the time of server boot) you can keep a script called S99weblogic and add below line that file,
#!/bin/ksh
su - wladmin -c "/etc/init.d/start_weblogic.sh start"
and in /etc/init.d you can write script start_weblogic.sh, as below
#!/bin/ksh
case "$1" in
'start')
# for admin server
if [ -f <init log path>/startadmin.log ]
then
print -n "\t\n\n deleting <init log path>/startadmin.log\n\n"
/usr/xpg4/bin/rm -rf <init log path>/startadmin.log
fi
### like above do for manged servers logs also ( if you have different script formats for admin and managed servers) and startadmin.log contains paths to all the admin server scripts)
# boot logs when the instances are started which will contains error while the instances are started
if [ -f init log path/boot.err.log ]
then
print -n "\t\n\n deleting init log path/boot.err.log\n\n"
/usr/xpg4/bin/rm -rf init log path/boot.err.log
#contians the list of domains in your physical or virtual server
if [ -f init log path/domain_list.log ]
then
print -n "\t\n\n deleting init log path/domain_list.log\n\n"
/usr/xpg4/bin/rm -rf init log path/domain_list.log
#list all domain names in domain_list.log
#use below command to find all the domians scripts home, for weblogic 8 in ur physical server
# for weblogic 8
ls -d <path to user projects untill scripts home>/* > inint log path/domain_list.log
#if ur domain are scattered then append other domains also -for weblogic 9.x, 10.x.........
ls -d <path to user projects untill scripts home>/*/bin >> initn log path/domain_list.log
# get start up sctiprs
for file in `/usr/bin/cat init log path/domain_list.log`
do
ls $file/startadm*.sh >> init log path/startadmin.log
ls $file/startwl*.sh >> init log path/startmgd.log
fi
done
#start startup scritps
for file in `/usr/bin/cat init log path/startadmin.log`
do
cd `/usr/bin/dirname $file`
nohup $file >> init log path/boot.err.log 2>&1 &
#do the same for manged server sctips
done -
Where can i find start/stop scripts for all SAP instances
Hi,
I installed CI, DB and Dialog instance on a standalone S10 machine and i could see start scripts under /sapmnt/RAM/profile
START_DVEBMGS09_hostSAP
START_D24_hostSAP
But i cann't see stop scripts for the above and also i cann't see start and stop scripts for SAP DB instance. Could some one point me where i can find them when everything is installed on a single box.
Thanks,
RamUSAGE: STARTSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
FURTHER INFORMATION:
- The executable sapstart.exe must be in the same directory
when you start sap instacne, it will check db instance first, if db instance not start , it will automatic start db instance then sap instance.
vice visa :
stopsap is alos can be used. -
[SOLVED] netctl profile auto-start/stop on Huawei modem plug-in/out
Hello!
I have Huawei 3G USB modem.
$ lsusb | grep -i huawei
Bus 004 Device 007: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
I am trying to make netctl to auto-switch to internet connection via this modem as soon as I plug it in.
Following Arch Wiki, I made internet via wvdial working fine:
$ sudo wvdial kymp
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.kymp.net"
AT+CGDCONT=1,"IP","internet.kymp.net"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Aug 6 22:52:11 2013
--> Pid of pppd: 2087
--> Using interface ppp0
--> local IP address <...>
--> remote IP address <...>
--> primary DNS address <...>
--> secondary DNS address <...>
Next, I tried to setup netctl profile for this modem, but my netctl mobile_ppp profile is NOT working:
$ cat /etc/netctl/ttyUSB0-kymp | nocomment
Description='Kymp internet connection'
Interface=ttyUSB0
Connection=mobile_ppp
PPPDebug=true
AccessPointName=internet.kymp.net
Mode=3Gpref
...with following log info:
$ sudo journalctl -b | grep pppd | grep 2387
pppd 2.4.5 started by root, uid 0
Script /usr/sbin/chat -v -t15 -f /run/network/mobile_ppp.ttyUSB0.ttyUSB0-kymp/modem.chat finished (pid 2389), status = 0x0
Serial connection established.
using channel 8
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xbe5c7839> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x11 <asyncmap 0x0> <auth chap MD5> <magic 0x167ecad> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x11 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xbe5c7839> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x12 <asyncmap 0x0> <magic 0x167ecad> <pcomp> <accomp>]
sent [LCP ConfAck id=0x12 <asyncmap 0x0> <magic 0x167ecad> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xbe5c7839]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <addr 192.168.1.15> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP DiscReq id=0x13 magic=0x167ecad]
rcvd [LCP EchoRep id=0x0 magic=0x167ecad be 5c 78 39]
rcvd [LCP ProtRej id=0x14 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x2 <addr 192.168.1.15> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x3 <addr 192.168.1.15> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x4 <addr 192.168.1.15> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x4 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x5 <addr 192.168.1.15> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x5 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x6 <addr 192.168.1.15> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Hangup (SIGHUP)
Modem hangup
Connection terminated.
Exit.
Seems like something is wrong in netctl profile and I need to teach netctl to use wvdial instead of whatever-it-uses-now for mobile_ppp connection.
So the question is: "Is this possible to make netctl profile based on wvdial connection? Or is this possible to fix abovr netctl mobile_ppp profile?"
Any help is appreciated! Thank you!
Last edited by studentik (2013-08-09 04:33:18)studentik wrote:Managed to solve above problem by adding "noipdefault" parameter to pppd config lines in /usr/lib/network/connections/mobile_ppp
Thanks for sharing this bit of information. This solved the issue for me. But before fixing this, I also had to change the file at another position: I had to escape the quotes around the IP in the connect string setting the APN, so that it now looks like this:
${AccessPointName:+'OK-AT-OK' 'AT+CGDCONT=1,\"IP\",$(quote_word "$AccessPointName")'}
Without this change, I was getting errors like this:
May 04 10:25:26 bppi chat[2105]: send (AT+CGDCONT=1,IP,"web.vodafone.de"^M)
May 04 10:25:27 bppi chat[2105]: expect (OK)
May 04 10:25:27 bppi chat[2105]: ^M
May 04 10:25:27 bppi chat[2105]: AT+CGDCONT=1,IP,"web.vodafone.de"^M^M
May 04 10:25:27 bppi chat[2105]: ERROR^M
May 04 10:25:30 bppi pppd[2103]: Connect script failed -
Location of reports server start/stop script.
Hiii..
can anyone tell me the location of reports server script in R12, so that i can restart the reports server.
And how can i restart the reports server..??
Thanks..As u told i have stopped and started the adopmnctl.sh script, but the status is showing down...y.???
[oravis@MSFTORA3 scripts]$ sh adopmnctl.sh start
You are running adopmnctl.sh version 120.6.12010000.3
Starting Oracle Process Manager (OPMN) ...
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /u03/oracle/VIS/inst/apps/VIS_msftora3/logs/appl/admin/log/adopmnctl.txt for more information ...
The following is the status o/p
[oravis@MSFTORA3 scripts]$ sh adopmnctl.sh status
You are running adopmnctl.sh version 120.6.12010000.3
Checking status of OPMN managed processes...
Processes in Instance: VIS_msftora3.msftora3.msftpnq.com
--------------------------------------------------------------+---------
ias-component | process-type | pid | status
--------------------------------------------------------------+---------
OC4JGroup:default_group | OC4J:oafm | N/A | Down
OC4JGroup:default_group | OC4J:forms | N/A | Down
OC4JGroup:default_group | OC4J:oacore | N/A | Down
HTTP_Server | HTTP_Server | N/A | Down
adopmnctl.sh: exiting with status 0
adopmnctl.sh: check the logfile /u03/oracle/VIS/inst/apps/VIS_msftora3/logs/appl/admin/log/adopmnctl.txt for more information ...
Thankss.. -
Auto-start OC4J process after Linux reboot
Oracle 11gR2, OC4J 10g (10.1.3.5.0), RHEL5 64 bit
Hi All,
I am trying to figure out how to get my oc4j process start at boot time. I already have a dbora script setup. I tried adding the following line to my dbora/dbstart script but it did not do anything:
#!/bin/sh
# chkconfig: 345 99 10
description: Oracle auto start-stop script.
ORACLE_OC4J_HOME=/u02/oc4j
JAVA_HOME=/usr/java/jdk1.6.0_21/
su - $ORACLE_OWNER -c "$ORACLE_OC4J_HOME/bin/oc4j -start"
I read somewhere that I may need to put the entire path like:
/usr/bin/java -jar /path/to/oc4j.jar &
Just not sure where and how to put that path in the file.
Thanks for your help all.
JrOraDBAHi,
To run oc4j in the background, on Linux
Execute the following command:
nohup ./oc4j -start &
to run oc4j in the background. The 'nohup' command ignores the hangup signal (closing the terminal window) and enables oc4j to continue running in the background.
In rare cases, oc4j will not shutdown cleanly with the standard command:
./oc4j -shutdown -port 23791 -oc4jadmin <admin_pwd>
In those cases, try the following command:
java -jar admin_client.jar deployer:oc4j:localhost oc4jadmin <admin_pwd> -shutdown
to stop the oc4j service.
Thanks,
Sharmela -
Auto start oracle in linux - error
1. edited the "/etc/oratab" file setting flag to 'Y'.
soni:/home/oracle/oracle/product/10.2.0/db_1:Y
2 connect wih root user
- created empty file (/etc/init.d/dbora)
copied from (http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php)
#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
4.
chmod 750 /etc/init.d/dbora
5.
chkconfig --add dbora
When I try this root user i get error
# /etc/init.d/dbora start
/etc/profile: line 51: syntax error near unexpected token `then'
/etc/profile: line 51: `if[ \$USER= "oracle" ]; then'
-bash: c: No such file or directory
I restarted the database, but DB didnt start automatically...
Edited by: The_Rock on Jun 10, 2010 9:47 PMThe_Rock wrote:
# /etc/init.d/dbora start
/etc/profile: line 51: syntax error near unexpected token `then'
/etc/profile: line 51: `if[ \$USER= "oracle" ]; then'
-bash: c: No such file or directoryThe /etc/profile line 51 seems to be incorrect. No space between the "+if+" and the bracket condition.
E.g.
/home/billy> if[ \$USER = "oracle" ]; then echo true;else echo false;fi
bash: syntax error near unexpected token `then'
/home/billy> if [ \$USER = "oracle" ]; then echo true;else echo false;fi
falseWhy do you use a leading slash for the +$USER+ variable? It changes it from a variable to a literal.
/home/billy> echo $USER
billy
/home/billy> echo \$USER
$USERLiteral "+$USER+" will never equal literal "+oracle+".
Maybe you are looking for
-
Auto Update of configuration values in PR from SRM.
Hi, For Configurable material we have characteristics values. Material is configurable material with material type as services. Same ECC material is replicate in SRM. Create Shopping cart in portal SRM EBP for Multiple line item for material. Each ma
-
I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?
-
Custom Workflow generates a thousand of Workflow Instances and EREs
Hi everyone, I developed a Custom Workflow that complete user attributes information when a user select a value from a drop down list. I tested this workflow with a Request MPR with an Action Type "Create" and the workflow Works perfectly. But now,
-
Disable saving Quicktime in web page (not though html).
Is there a way to disable saving (downloading) of a Quicktime file, with this (kioske mode?) encoded into the clip itself. I can't access the html of the web page in this case (using iWeb). It's been a few years since I've done this, I think there us
-
I just downloaded Adobe Reader 8.1.2 for Mac OS (10.4.11) and used it to fill out pdfs and saving them as PDF (with the filled in info intact) . Then all of the sudden it stopped letting me save the PDFs. Does anybody know what I can do? The Save as