SOA start/stop on linux

Hi Friends,
How do I stop/start SOA services on LINUX?
Thanks a lot

There are no startup scripts be default. The seasoned sysadmin does it with a script in /etc/init.d. The script should do the things with the appropriate ORACLE_HOME and PATH environments set:
- Start the database
sqlplus / as sysdba <<EOF
startup
EOF
lsnrctl start- Oracle XE variant: See /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/script/startdb.sh
- Start the AS (different ORACLE_HOME and PATH)
opmnctl startall

Similar Messages

  • 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.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • 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

  • Cannot start a server with start/stop (WLS 7.0 Linux)

    Hi:
    I have node manager running in a machine with RedHat Linux and WLS
    7.0.1. In the Start/Stop tab of the Control tab of any server it
    doesn't appear the Start Server option. Of course, administrator
    server and node manager are running and I can obtain the node manager
    status from the console.
    Any ideas?
    Cheers, Miguel

    I found the solution.  Here it is:
    Take backup of below registry key.
    HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid This key should ideally have the GUID of the machine without curly braces, so {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} becomes xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    Then delete the braces.
    Try to reboot and start the SQL service . If service don’t start then Uninstall and reinstall SQL.
    The MachineGuid had curly braces so I removed them and rebooted my laptop.  Now both instances of SQL Server start.  It is the last post of this thread:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/56f14665-3f00-41ff-b002-bb5e86b3f219/sql-server-not-starting-fallback-certificate-initialization-failed?forum=sqlsecurity
    He states that he got it from Microsoft but did not give the url.
    Thanks for all your help.
    Fred Schmid

  • Starting Stopping Oracle 10g XE on Linux

    Hi,
    I successfully installed Oracle 10g XE on Suse 10.0 as root. The install went without errors. I configured the oracle with "/etc/init.d/oracle-xe configure" and opted not to start oracle while bootup.
    Then whenever I clicked on Start Database or Stop Database link just nothing happens. The cursor changes shape and after sometime returns back to original shape.
    However, I was easily able to start/stop the database from command line: -
    /etc/init.d/oracle-xe enable
    /etc/init.d/oracle-xe start
    /etc/init.d/oracle-xe stop
    Then I edited /etc/init.d/oracle-xe to enable startup of oracle at bootup and everything work fine now.
    But I'm still not able to start/stop the database from the links provided in the KDE menu.
    By checking the links, they are pointing rightly to startdb.sh and stopdb.sh in scripts directory of config directory.
    Please help me.
    Thanks in advance.

    Hi,
    Thanks for the concern. When I ran su - oracle on KDE Konsole and then stopdb.sh, I got the following output: -
    xsetroot: Unable to open display ' '
    xsetroot: Unable to open display ' '
    and it worked. It stopped the database. Similarly by typing startdb.sh I was able to start the database with above two messages.
    Then came the real part. When I saw the menu entries for Starting & Stopping Database in KDE Menu, they were running as current user. I changed them to run as 'oracle' user and it worked.
    Now I'm able to start and stop database form the KDE Menu entries.
    Another Tip: May be useful to someone: -
    When we run the SQL Command Line Utility from KDE Menu in Suse 10.0 it runs in old style terminal. When I saw the script it ran i.e. startsqlplus.sh of some thing like this ( I don't remember the exact name, but you can find out by right clicking on menu entry and then edit item), it came to know that it was seeking gnome-terminal in /usr/bin and in Suse 10.0 gnome-terminal is located in /opt/gnome/bin!!!!!!. So, I made a symbolic link /usr/bin/gnome-terminal for /opt/gnome/bin/gnome-terminal and now it presents me with nice gnome-terminal to run SQL Plus command line.
    Thanks

  • 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
    Gaetano

    sb92075 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

  • Shell script to start, stop and restart a JAR

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
      public Client(String name){
      public void stopClient(){
      public static void main(String[] args){
         new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Script to start/stop all manager sever/Admin server

    Hi Gurus,
    I am new bee to weblogic and learning it on daily basic.
    I have a scenario and would like to see if this is possible.
    We have one server and have couple of applications are running like SOA,OSB, OSR etc. During any downtime, we have to shut down each Admin Server, Manage server one by one and take up. This take time and effort too.
    Do we have some options through which we can configure all start/stop script in one file and do this work with few clicks. server shout down should be clean and take care of node manager recycle also.
    Could you please advise me on this or pls point me towards some already documented solution. I goggled this but did not find.

    Thanks radoui for your response.
    I see this approach as the default one.. Could you please advice me whats the correct sequence of shutting down the servers including node manager and starting back.
    Like I have SOA installed.
    So First I have to take down SOA managed server followed by Admin server and then node manager ..? Let me know if this is not correct.
    I still have doubt on this approach as if, managed server failed to stop and means while script will take down admin server and so on..

  • How to start OC4J at Linux boot time

    Hello,
    I am using Linux AS 3.0 and i have installed OC4J ( 9.0.4) ok, and OC4J also work fine.But each time i want to start OC4J , i must execute command java -jar oc4j.jar at console.
    Now, I want to start OC4J automatic at System startup ( ie: Linux boot time ).How can i do?
    Thanks.

    Just put your OC4J start/stop commands in a rc script.
    Scripts in the directories
    /etc/rc.d/rc2.d
    /etc/rc.d/rc3.d
    /etc/rc.d/rc5.d
    will be called by the operating system with the command line option start.
    The number in the directory names represent the desired run level of the machine.
    Scripts in the directory
    /etc/rc.d/rc0.d
    will be called during shutdown with the command line option stop.

  • Starting OEM on Linux

    Hi,
    Please, how do I start Oracle Enterprise Manager on Linux. RDBMS is Oracle 816 on RedHat 6.2

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Adeyemi Ayofe ([email protected]):
    thank you very much. After installation of Oracle816, I thought I saw something like using OEM Intelligent Agent<HR></BLOCKQUOTE>
    Intelligent Agent IS included. It is a tool which OEM needs for starting/stopping/monitoring the remote databases. It can be started with
    lsnrctl dbsnmp_start
    and stopped with
    lsnrctl dbsnmp_stop
    Oracle 8.1.7 will probably include the OEM management console and DBA studio!
    Marcus
    null

  • 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 PM

    The_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+".

  • Lsnrctl start/stop "message not found" errors

    When I installed 10g I selected a global database name of 'orcl.clearbean.com' and a sid of 'dev1'. Below are my environment variables, tnsnames.ora file and listener.ora file. I can connect and use the database, but I am getting errors messages when I do a lsnrctl stop/start. I am running Oracle and Apache together on a server running Fedora Core 4 (linux). Any help would be greatly appreciated.
    Supporting information:
    [oracle@emerson ~]$ env | grep ORA
    ORACLE_SID=dev1
    ORACLE_BASE=/u01/app/oracle
    ORACLE_TERM=xterm
    ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1
    [oracle@emerson ~]$ cat $ORACLE_HOME/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = emerson.clearbean.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.clearbean.com)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    [oracle@emerson ~]$ cat $ORACLE_HOME/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = emerson.clearbean.com)(PORT = 1521))
    [oracle@emerson ~]$ lsnrctl stop
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 07-OCT-2005 01:19:22
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Message 1053 not found; No message file for product=network, facility=TNSTNS-12541: Message 12541 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    TNS-00511: Message 511 not found; No message file for product=network, facility=TNS
    Linux Error: 2: No such file or directory
    Message 1053 not found; No message file for product=network, facility=TNSTNS-12541: Message 12541 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    TNS-00511: Message 511 not found; No message file for product=network, facility=TNS
    Linux Error: 111: Connection refused
    [oracle@emerson ~]$ lsnrctl start
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 07-OCT-2005 01:19:30
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Message 1070 not found; No message file for product=network, facility=TNSTNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Message 459 not found; No message file for product=network, facility=NL
    Message 279 not found; No message file for product=network, facility=NL
    Message 1073 not found; No message file for product=network, facility=TNSMessage 1073 not found; No message file for product=network, facility=TNS
    Message 1053 not found; No message file for product=network, facility=TNSMessage 1020 not found; No message file for product=network, facility=TNSMessage 1021 not found; No message file for product=network, facility=TNSMessage 1022 not found; No message file for product=network, facility=TNSMessage 1023 not found; No message file for product=network, facility=TNSMessage 1026 not found; No message file for product=network, facility=TNSMessage 1034 not found; No message file for product=network, facility=TNSMessage 1024 not found; No message file for product=network, facility=TNSMessage 1025 not found; No message file for product=network, facility=TNSMessage 1040 not found; No message file for product=network, facility=TNSMessage 1033 not found; No message file for product=network, facility=TNSMessage 1028 not found; No message file for product=network, facility=TNSMessage 1415 not found; No message file for product=network, facility=TNS Message 1050 not found; No message file for product=network, facility=TNS
    Message 1050 not found; No message file for product=network, facility=TNS
    Message 1029 not found; No message file for product=network, facility=TNSMessage 1411 not found; No message file for product=network, facility=TNS
    Message 1408 not found; No message file for product=network, facility=TNS
    Message 1052 not found; No message file for product=network, facility=TNS[oracle@emerson ~]$

    Thx for the feedback; however after defining TNS_ADMIN and turning of the firewall I am still getting the message errors. Any other suggestions?
    [oracle@emerson ~]$ ls $ORACLE_HOME
    admin emerson.clearbean.com_dev1 ldap oraInst.loc sqlj
    assistants flash_recovery_area lib ord sqlplus
    bin has md oui srvm
    cdata hs mesg owm sysman
    cfgtoollogs install mgw perl uix
    config install.platform network plsql ultrasearch
    css inventory nls precomp wwg
    ctx javavm oc4j racg xdk
    dbs jdbc olap rdbms
    demo jdk OPatch relnotes
    diagnostics jlib opmn root.sh
    dm jre oracore slax
    [oracle@emerson ~]$ ls $TNS_ADMIN
    listener.ora samples sqlnet.ora tnsnames.ora.orig
    listener.ora.orig shrept.lst tnsnames.ora
    [oracle@emerson ~]$ lsnrctl stop
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 07-OCT-2005 22:43:44
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Message 1053 not found; No message file for product=network, facility=TNSMessage 1052 not found; No message file for product=network, facility=TNS[oracle@emerson ~]$ lsnrctl start
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 07-OCT-2005 22:43:51
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Message 1070 not found; No message file for product=network, facility=TNSTNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Message 459 not found; No message file for product=network, facility=NL
    Message 279 not found; No message file for product=network, facility=NL
    Message 1073 not found; No message file for product=network, facility=TNSMessage 1073 not found; No message file for product=network, facility=TNS
    Message 1053 not found; No message file for product=network, facility=TNSMessage 1020 not found; No message file for product=network, facility=TNSMessage 1021 not found; No message file for product=network, facility=TNSMessage 1022 not found; No message file for product=network, facility=TNSMessage 1023 not found; No message file for product=network, facility=TNSMessage 1026 not found; No message file for product=network, facility=TNSMessage 1034 not found; No message file for product=network, facility=TNSMessage 1024 not found; No message file for product=network, facility=TNSMessage 1025 not found; No message file for product=network, facility=TNSMessage 1040 not found; No message file for product=network, facility=TNSMessage 1033 not found; No message file for product=network, facility=TNSMessage 1028 not found; No message file for product=network, facility=TNSMessage 1415 not found; No message file for product=network, facility=TNS Message 1050 not found; No message file for product=network, facility=TNS
    Message 1050 not found; No message file for product=network, facility=TNS
    Message 1029 not found; No message file for product=network, facility=TNSMessage 1411 not found; No message file for product=network, facility=TNS
    Message 1408 not found; No message file for product=network, facility=TNS
    Message 1052 not found; No message file for product=network, facility=TNS[oracle@emerson ~]$

  • Install SOA Suite On Unbreakable Linux

    I'm trying to install the latest SOA Suite on Unbreakable Linux. The installation halts due to Unbreakable not being the correct OS version. Is there a workaround for this?
    Thanks
    Andrew

    Please accept my apologies. I've missed a single letter in the command line option (see below)
    [oracle@htbv5 soa_101310_1]$ ./runInstaller -ignoreSysPrereqs
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-Red Hat Enterprise Linux AS release 3, redhat-Red Hat Enterprise Linux AS release 4, redhat-Red Hat Enterprise Linux ES release 3, redhat-Red Hat Enterprise Linux ES release 4 or SuSE-9
    Failed <<<<
    Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-07-03_07-56-51AM. Please wait ...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Privileges to Start/Stop OAS

    Anyone know the proper privileges to set to allow a Grid user to Start/Stop OAS instances. I've create a role that gives target privs to a group that contains all the OAS instances and given that role operator privs to that target group. I then set preferred credentials to the OAS user and Os password that OAS runs as on Linux. When attempting to stop and OC4J instance within OAS (home specifically), I get "You do not have the privileges perform this operation". I wanted to create a role that would only allow our developers to start/stop the development instances OAS, but there doesn't seem to be any docs on what privs are required for what actions. Thanks.

    Seems to be a bug. If I assign the OAS targets with Operator privileges to a user, it works, but if I assign those same OAS targets to a group and I assign that group to a user with Operator privileges, it fails with the "you do not have the privileges perform this operation" error, even though the group contains the same targets. I've put in a TAR.

Maybe you are looking for