Automatic start of Database

May I know, how to start my own database when i start the system.
Like, how it happens in the default database with oracle software.

When u install oracle on ur machine, then the services that are
needed to start the database, automatically start when the
server starts, this is called bootstraping the instance.

Similar Messages

  • Automatically start the database

    I could not automatically start the database recently. My OS is windows XP. I set all the OracleServiceSID to be automatic in the windows service and the ora_sid_autostart to be true in the registry. It automatically started before. I have not changed anything except that the network encryption was added recently. Can anybody give me a hint? Thank you very much for your help.
    Xiaoyun

    Thank you for your reply. I can still manually start the database. The only thing uncommon from the alert log is
    Thu Jul 10 16:36:58 2003
    Beginning crash recovery of 1 threads
    Thu Jul 10 16:36:58 2003
    Started first pass scan
    Thu Jul 10 16:36:58 2003
    Completed first pass scan
    3685 redo blocks read, 65 data blocks need recovery
    Thu Jul 10 16:36:58 2003
    Started recovery at
    Thread 1: logseq 302, block 145778, scn 0.0
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 302 Reading mem 0
    Mem# 0 errs 0: C:\ORACLE\ORADATA\SID\REDO01.LOG
    Thu Jul 10 16:36:59 2003
    Ended recovery at
    Thread 1: logseq 302, block 149463, scn 0.75826787
    65 data blocks read, 65 data blocks written, 3685 redo blocks read
    Crash recovery completed successfully
    Thu Jul 10 16:37:00 2003
    Do I have to do the recovery? Thank you for your help.

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services
    before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance
    if Oracle database services need to be started (and start them automatically if necessary)?
    Peter

    Hi,
    This is a familiar issue. I've come up with the following solutions.
    1) On my linux machine, I start the database (EE) and soa suite at boot time using /etc/oratab.
    2) On my windows machine, I start the database (XE) at boot time, as a service that automatically starts. The soa suite is started manually. I could start the suite automatically as a service also, but because it takes up so much memory and I do not always want to run the suite, I prefer to start manually. In any way, the database is started automatically before the soa suite.
    Hope this will help you.
    Kind regards,
    H

  • How to automate the Oracle database start and shutdown process

    How we can automate and oracle database start and stop procees with Linux start/shutdown process.
    I want to automatically start the oracle database at the time linux server and shutdown the database on shutdown linux server.

    Hi,
    I can share my scripts:
    1) /home/oracle/start_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    lsnrctl start
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    startup
    exit
    ENDSQL
    emctl start dbconsole
    isqlplusctl start
    NOTE: emctl and isqlplus are optional
    2) /home/oracle/stop_oracle.sh
    #Script should be ran as Oracle user
    cd /tmp
    export ORACLE_SID=orcl
    export ORACLE_HOME=/oracle/ora9i
    isqlplusctl stop
    emctl stop dbconsole
    sqlplus -S /nolog <<ENDSQL
    connect / as sysdba
    shutdown immediate
    exit
    ENDSQL
    lsnrctl stop
    NOTE: emctl and isqlplus are optional
    Then what you need:
    1) K91oracle_stop (put it in the desired run level)
    #!/bin/bash
    # description: Stop Oracle before reboots
    su - oracle -c "/home/oracle/stop_oracle.sh" >> /home/oracle/stoporacle.log
    2) S91oracle_start (put it in the desired run level)
    #!/bin/bash
    # description: Start Oracle after reboots
    su - oracle -c "/home/oracle/start_oracle.sh" >> /home/oracle/startoracle.log
    Bye.

  • Database not automatically starting after reboot of RedHat ES4 Linux

    Hi,
    I have Oracle database enterprise edition 9.2.0.4 running on RedHat Linux ES release 4. Although the installation went fine and after the installation I was able to see the common processes like ora_pmon started in system, but when I reboot system the database does not comeup.
    I am using dbstart command via a /etc/init.d/oracle file. This is linked to /etc/rc5.d and /etc/rc3.d as well in the Linux server.
    The amazing thing is that tnslistener is started automatically after system reboot but not database. That is, when I check the status of that via the command "lsnrctl status" it shows me the one database instance that I am hoping to see correctly. But no ora_pmon etc processes are there.
    Even interesting thing is that when I manually run the command "/etc/init.d/oracle start" by hand, it does start the database perfectly fine. This is the same command that I am running via the startup scripts in /etc/rc5.d and othe runlevels.
    Please help me finding out why is the database not starting up automatically? I have checked the /u02/app/oracle/product/9.2.0/startup.log which just says reports that Listener has started but after that it does not show anything about database starting up.
    Below I am pasting the chunk of /etc/init.d/oracle script that is supposed to start the listener and database. Please have a look at it and tell me what can I be doing wrong in this case?
    ORACLE=oracle1
    export ORACLE_HOME PATH
    LOG=$ORACLE_HOME/startup.log
    touch $LOG
    chmod a+r $LOG
    case $1 in
    'start')
    echo "$0: starting up" >> $LOG
    date >> $LOG
    # Start Oracle Net
    if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
    echo "starting Oracle Net listener"
    su - oracle1 -c "$ORACLE_HOME/bin/lsnrctl start" >> $LOG 2>&1 &
    fi
    echo "starting Oracle databases"
    su - oracle1 -c "$ORACLE_HOME/bin/dbstart" >> $LOG 2>&1
    Thanks in advance for your urgent help.
    --Smb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks for your reply, actually I have already set the value of $ORACLE_HOME to the correct value as per my installation, sorry that line was cut when I last time pasted the chunk of my /etc/init.d/oracle file because I only wanted to paste the relevant portion of that file.
    But here is the complete /etc/init.d/oracle file that I have below, please suggest what might be wrong?
    thanks.
    #!/bin/sh
    # chkconfig: 235 99 01
    # description: controls Oracle database startup and shutdown
    ORACLE_HOME=/u02/app/oracle/product/9.2.0
    PATH=${PATH}:$ORACLE_HOME/bin
    HOST=`hostname`
    ORACLE=oracle1
    export ORACLE_HOME PATH
    LOG=$ORACLE_HOME/startup.log
    touch $LOG
    chmod a+r $LOG
    case $1 in
    'start')
    echo "$0: starting up" >> $LOG
    date >> $LOG
    # Start Oracle Net
    if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
    echo "Shahid starting Oracle Net listener"
    su - oracle1 -c "$ORACLE_HOME/bin/lsnrctl start" >> $LOG 2>&1 &
    fi
    echo "Shahid starting Oracle databases"
    su - oracle1 -c "$ORACLE_HOME/bin/dbstart" >> $LOG 2>&1
    'stop')
    echo "$0: shutting down" >> $LOG
    date >> $LOG
    # Stop Oracle Net
    if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then
    echo "stopping Oracle Net listener"
    su - oracle1 -c "$ORACLE_HOME/bin/lsnrctl stop" >> $LOG 2>&1
    fi
    echo "stopping Oracle databases"
    su - oracle1 -c "$ORACLE_HOME/bin/dbshut" >> $LOG 2>&1
    echo "usage: $0 {start|stop}"
    exit
    esac
    exit
    ########################################################

  • SAP system doesn't automatically start after restart (but manual start ok)

    Hi,
    We've got a new production line of SAP EP 7.0 systems, which have CI on HP-UX and DIs on windows. The version is NW2004s SPS09.
    What we see is that after a restart of the windows servers (usually because of windows patching), the SAP system doesn't automatically start up. It doesn't start up if I restart the SAP<SID>_<instance> service either. 
    However, I've got no problem starting the system with the MMC.
    Any idea what I am missing here? is it as simple as a profile parameter ?
    As far as I can see the profile used seem ok.
    After a restart of the windows server the following files have log entries in the c:\usr\sap\<SID>\J<instance>\work folder
    sapstartsrv.log
    trc file: "sapstartsrv.log", trc level: 0, release: "700"
    Fri Nov 17 15:51:26 2006
    <<- ERROR: SapSSLInit(read_profile=1)==SSSLERR_LIB_NOT_FOUND
    sapstart.log
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    sapstart.trc
    Starting WebService thread
    SapSSLInit failed => https support disabled
    Webservice named pipe thread started, listening on port
    .\pipe\sapcontrol_97
    Webservice thread started, listening on port 59713
    The windows event log have the application events
    (first)SAP Service SAP<SID>_<instance> successfully started.
    (at the same time)
    Failed to update service environment from user (STATOIL-NET\<sid>adm) environment. [ntservmgr.cpp 201]
    (note that this doesn't happen for all systems which have this problem, for other there is no entry like this)
    I see no failed login attemps in the security event log, but see the that a login is performed for SAPService<SID>.
    Since it also fails to automatically startup when I restart the service, I am able to use filemon to see what happens at a file level. Here I see that it can access the shared file system without any problems, and can read the profile and everything.
    MOM is running on the server and gets some Access denied errors since it doesn't have access to the shared file system, but I don't think that matters.
    Cheers
    Dagfinn

    hi  we are using sap bw 3.5 . database is oracle 9i
    i applied a kernel patch and when i tried to start the services . there was no problem with the oracle services  and saposcol but the service sap<sid>_nr did not start .
    when i went to check the error in work folder ..
    it say " SapSSLinit failed => https support disabled  .
    then i tried to start sap from cmd pmt . din`t work .
    is there a way to statrt this ...
    thanks alot.
    arjun

  • Reporting Services not automatically starting. System event log 7009, Application event: 18456

    For the past month (since Oct 11,2012)  reporting services (SSRS 2008R2) is not starting after the server is rebooted. The service is set to automatically start and starts manually without a problem.  The system event log contains the following error:
    Event ID 7009: A timeout was reached (30000 milliseconds) while waiting for the SQL Server Reporting Services (MSSQLSERVER) service to connect.
    SQL logs :
    The SQL logs has many "Event 18456 Login Failed, State 38" errors when the database engine starts. I assume clients conections are failing because the databases  aren't online yet. None of these 18456 errors coorespond to the account reporting services
    runs under.
    The SQL logs indication Event 7009 occures before the "ReportingServer" database is online so im assuming there is a dependancy but I don't know how to avoid this.
    This problem is occuring on a number of our servers running SSRS (if not all)
    Any ideas?
    Paul

    Hi A141695,
    For Event ID 7009, you can try to do the steps below to resolve it.
        1. Click Start, click Run, type regedit, and then click OK.
        2. Locate and then click the following registry subkey:
            HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
        3. Right-click Control, point to New, and then click DWORD Value.
        4. In the New Value #1 box, type ServicesPipeTimeout, and then press ENTER.
        5. Right-click ServicesPipeTimeout, and then click Modify.
        6. Click Decimal, type the number of milliseconds that you want to wait until the service times out, and then click OK.
    For example, to wait 60 seconds before the service times out, type 60000.
    Quit Registry Editor, and then restart the computer. For more information about it, please see:
    http://www.sqlservercentral.com/Forums/Topic850540-1550-1.aspx#bm851211
    http://myitforum.com/myitforumwp/2012/08/22/configmgr-2012-sms_srs_reporting_point-component-failure/
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.

  • Automatic startup of database in Unix

    I would like my database to startup automatically whenever the server starts up. Where do I put the startup scripts in Unix?

    It depends on which flavor of unix you are using. In Linux you put all start/kill scripts in the /etc/init.d directory and then create a link in the appropriate run level directory (/etc/rd?.d where ? is the run level). Oracle start scripts are usually placed in the run level 3 directory (/etc/rc3.d). Kill scripts are usually placed in the /etc/rc6.d directory.
    To make a long story short, copy the $ORACLE_HOME/bin/dbora script to /etc/init.d, 2) create a symbolic link from that to /etc/rc3.d/S99dbora and /etc/rc6.d/K99dbora. All scripts in the /etc/rc3.d directory that begin with S will be run in alpha order when the OS enters run level 3.
    Don't forget to set your /etc/oratab entry to 'Y' so that it starts your database.

  • Something similar to 'gcstartup'  for automatic  start / stop

    Hi @ll
    Is there any similar to ‘/etc/rc.d/init.d/gcstartup’ script for an automatic start / stop for GoldenGate manager on a Server.
    I use an OBEY command in a start.txt file with start_ogg.sh file, but there are an OEM agent , a listener and the database on this machine and I would like to start all of them automatic at ones.
    Regards
    jfa

    Hi Nic:_W
    Thank for the answer.
    I have just modified the gcstartup like that :
    #!/bin/sh
    #Source Function Library
    SU=/bin/su
    DBST="N"
    if [ -f /etc/oratab ]
    then
    oratab="/etc/oratab"
    else
    if [ -f /var/opt/oracle/oratab ]
    then
    oratab="/var/opt/oracle/oratab"
    fi
    fi
    if [ -f "$oratab" ]
    then
    for i in `cat $oratab | grep -v '^#' | cut -d ":" -f2`;
    do
    if [ -f "$i/start_goldgate.sh" ] ;
    then
    user=`ls -l $i/start_goldgate.sh|awk '{print $3}'`;
    if [ $1 = start ];
    then
    DBST='Y'
    $SU - $user -c "$i/start_goldgate.sh ";
    else
    DBST='N'
    $SU - $user -c "$i/stop_goldgate.sh ";
    fi;
    fi;
    done
    fi
    and it works fine
    the content of start_goldgate.sh
    is
    cd /orasoft/app/ogg
    /orasoft/app/ogg/ggsci << EOF
    OBEY /orasoft/app/ogg/startup_ogg.txt
    EOF
    the content of startup_ogg.txt
    is :
    START MANAGER
    INFO ALL
    exit
    automatic restart of REPLICAT und EXTRACT parameters are in mgr.prm file.
    Analogue for stop*/shutdown* files with 'STOP MANAGER'
    regards
    jfa

  • How to start Oracle database in solaris Machine

    I installed Oracle database in my solaris machine. Everything went fine .. I was able to install it and test the database if it's working or not.
    Something happened that made me shut down and restart the solaris machine, the problem is that Oracle is not running, so I have to start it manually, and I'm not sure how to do that ... Is there a way to start Oracle automatically once the solaris machine is started ...
    I'm using the SSH Secure Shell Client to configure and install everything into the solaris machine ..

    Here is the work around for starting oracle instance automatically.
    1) logon the system as root user.
    2) under /etc/init.d/ directory, create a file name oraclestart(name the file to what you feel comfortable). eg: /etc/init.d/oraclestart.
    with the following content:
    #!/bin/sh
    # Created by Henry Nguyen
    # Date 10/11/2005
    # Script to automatic start and stop oracle instances on server
    ORACLE_HOME=/export/home/oracle/product/9.2.0.1.0 (diffrent on your system)
    if [ ! -f $ORACLE_HOME/bin/dbstart || ! -f $ORACLE_HOME/bin/dbshut ]; then
    echo missing oracle start/stop script
    exit 1
    fi
    case "$1" in
    'start')
    su - oracle -c '$ORACLE_HOME/bin/dbstart'
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl start'
    'stop')
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl stop'
    su - oracle -c '$ORACLE_HOME/bin/dbshut'
    esac
    3) create 2 soft link as following:
    ln -s /etc/init.d/oraclestart /etc/rc2.d/S99oraclestart
    ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
    Note the S99 and K10: that are Solaris priorities to when start and stop an oracle instance and those letter must be capitalized.
    Hope this will help you

  • OWB job is not automatically starting

    I exported the mapping from server and imported into another server. All the mappings are working fine. But the scheduled job is not automatically starting.
    Here is the status.
    SQL> select state,enabled from dba_scheduler_jobs
    where owner='IAEBT_DW' and job_name='PF_JOB';
    2
    STATE ENABLED
    DISABLED FALSE
    SQL>
    SQL> EXEC DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB');
    BEGIN DBMS_SCHEDULER.ENABLE('IAEBT_DW.PF_JOB'); END;
    ERROR at line 1:
    ORA-27457: argument 1 of job "IAEBT_DW.PF_JOB" has no value
    ORA-06512: at "SYS.DBMS_ISCHED", line 3417
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2461
    ORA-06512: at line 1
    SQL>
    My database is oracle11g.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Any help is appreciated.

    Hi Shrinika,
    did you try to "enable" scheduled mapping directly from OWB Design Center (or Control Center Manager)?
    For enabling job from OWB client - rightclick on Control Center name and choose Job Monitor, in opened window select Schedule tab, select your job and "start" it.
    Regards,
    Oleg

  • Dbstart only starting one database?

    Hi,
    When issuing the dbstart command it only seems to be starting one database and not my second one.
    This is whats in my oratab:
    DATABASE1:/data1/oracle/app/oracle/product/11.1.0/db_1:Y
    DATABASE2:/data1/oracle/app/oracle/product/11.1.0/db_1:Y
    Here is my listener.ora:
    LISTENER=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=db2)(PORT=1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = DATABASE1)
    (ORACLE_HOME = /data1/oracle/app/oracle/product/11.1.0/db_1)
    (SID_NAME = DATABASE1)
    (SID_DESC =
    (GLOBAL_DBNAME = DATABASE2)
    (ORACLE_HOME = /data1/oracle/app/oracle/product/11.1.0/db_1)
    (SID_NAME = DATABASE2)
    Can anyone help please?
    Thanks

    Hi,
    What you want exactly.
    database_sid:oracle_home_dir:Y|N
    - database_sid is the system id (SID) of an Oracle instances on the server.
    - Oracle_home_dir is the ORACLE_HOME directory associated with this instance.
    - The Y|N flags indicate if the instance should automatically start at boot time (Y=yes, N=no).
    If DB is down you need to start the DB manually..
    Thanks,
    Deepak

  • DB Instance fails to automatically start on cluster reboot

    Hello -
    I cannot get the instance on node1 to automatically start on a reboot. It starts manually, and it starts automatically when the other node is rebooted. I also unregistered it, and re-registered the instance.
    Here is the errors from $ORA_CRS_HOME/log/ctolinuxpoc01/crsd/crsd.log:
    2009-02-03 15:52:08.496: [  CRSAPP][1494882624] StartResource error for ora.ractest.ractest1.inst error code = 1
    2009-02-03 15:52:10.098: [  CRSRES][1494882624] Start of `ora.ractest.ractest1.inst` on member `ctolinuxpoc01` failed.
    I do see for the DB instance log these errors:
    <txt>ASMB (ospid: 4422): terminating the instance due to error 15064
    </txt>
    </msg>
    <msg time='2009-02-03T15:43:25.399-05:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='4149'>
    <txt>Errors in file /opt/app/oracle/product/11.1.0/diag/rdbms/ractest/ractest1/trace/ractest1_diag_4149.trc:
    ORA-27508: IPC error sending a message
    ORA-27300: OS system dependent operation:sendmsg failed with status: 22
    ORA-27301: OS failure message: Invalid argument
    ORA-27302: failure occurred at: sskgxpsnd1
    </txt>
    </msg>
    <msg time='2009-02-03T15:43:25.399-05:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='4149'>
    <txt>System state dump is made for local instance
    </txt>
    </msg>
    <msg time='2009-02-03T15:43:25.399-05:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='4149'>
    <txt>System State dumped to trace file /opt/app/oracle/product/11.1.0/diag/rdbms/ractest/ractest1/trace/ractest1_diag_4149.trc
    </txt>
    </msg>
    <msg time='2009-02-03T15:43:26.589-05:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='4149'>
    <txt>Trace dumping is performing id=[cdmp_20090203154325]
    </txt>
    </msg>
    <msg time='2009-02-03T15:43:26.727-05:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    module='' pid='4422'>
    <txt>Instance terminated by ASMB, pid = 4422
    </txt>
    </msg>
    The ASM instance was automatically started, and I am able to manually start the instance without any problems.
    Any help is appreciated!
    Thanks,

    ASMB (ospid: 4422): terminating the instance due to error 15064oerr ORA 15064
    15064, 00000, "communication failure with ASM instance"
    // *Cause:  There was a failure to communicate with the ASM instance, most
    // likely because the connection went down.
    // *Action: Check the accompanying error messages for more information on the
    // reason for the failure. Note that database instances will always
    // return this error when the ASM instance is terminated abnormally.
    ORA-27508: IPC error sending a message
    ORA-27300: OS system dependent operation:sendmsg failed with status: 22
    ORA-27301: OS failure message: Invalid argument
    ORA-27302: failure occurred at: sskgxpsnd1What is the output from following command?:
    /sbin/sysctl -a|grep net.core|egrep 'wmem|rmem'

  • Starting the database in standalone installation.

    hello all,
    In my office server I cannot access oracle tables via SQL * plus unless I start the database via the server manager utility, ie, svrmgrl> startup etc.
    However, in my stand alone home machine I have installed oracle 9i. The database, it seems is automatically started when the machine is booting. I have searched for the svrmgrl/svrmgr30/svrmgr80 utilities, but in vain.
    In this scenario, how can i manually start and shutdown the database in my stand alone installation.
    Can any body help me...?
    thanks in advance
    thomaskprakash

    Hi,
    which os and oracle version you are using ? i guess it's windows 2000 server anyway if my guess is right then start - setting - ctlpanel - adminstrative tools - service - open and right click and to the service choose properties and then choose manual in startup mode. you can also create a service for that ..
    first delete the service for your db
    oradim -delete -sid name of the service
    now create the service with the same name
    oradim -new -sid name of the service which you delte -startmode manual.
    thanks
    Alok.

  • Listener & DB automatic start

    Hi everybody.
    For almost a year I've had a lab environment which run suse with Oracle 10gR2. First in SuSE 9, and next in SuSE 10.
    Since a month ago, none of the Oracle services starts automatically when server boots.
    The server has one instance and Apex 2.2.1 (previously had Apex 2.0 and 2.2), and sufficient memory and disk space (1GB / 80 GB)
    I review the "oracle" script and found all ok (but I´am not a Linux expert).
    The case is that if I run rcoracle start in a console as root user, all the services starts ok. This, then is not a big problem, but I'd know why it's happens.
    Somebody can say me where track for a solution?
    Help in advance.

    Ivan, it's a bit large, but I paste below the (/usr/sbin) rcoracle content. I expect that were useful.
    Remember that if I run "rcoracle start" as root user, all the services starts perfectly.
    #! /bin/sh
    # Copyright (c)1995 SuSE GmbH Nuernberg, Germany.
    # Author: SuSE Oracle Team <[email protected]>
    # Homepage: http://www.suse.com/oracle/
    ### BEGIN INIT INFO
    # Provides: oracle
    # Required-Start: $network $syslog $remote_fs raw
    # Required-Stop:
    # Default-Start: 3 5
    # Default-Stop: 0 1 2 6
    # Description: Start the Oracle database
    ### END INIT INFO
    # Shell functions sourced from /etc/rc.status:
    # rc_check check and set local and overall rc status
    # rc_status check and set local and overall rc status
    # rc_status -v ditto but be verbose in local rc status
    # rc_status -v -r ditto and clear the local rc status
    # rc_failed set local and overall rc status to failed
    # rc_reset clear local rc status (overall remains)
    # rc_exit exit appropriate to overall rc status
    . /etc/rc.status
    # catch mis-use right here at the start
    if [  "$1" != "start"  -a  "$1" != "stop"  -a  "$1" !=
    "status" -a "$1" != "restart" ]; then
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    fi
    LOAD_OCFS=/sbin/load_ocfs
    MOUNT=/bin/mount
    UMOUNT=/bin/umount
    MKDIR=/bin/mkdir
    RMMOD=/sbin/rmmod
    CHECKPROC="/sbin/checkproc"
    test -x "$CHECKPROC" || CHECKPROC="test -x "
    # Get settings, if file(s) exist(s). If not, we simply use defaults.
    if test -f /etc/sysconfig/oracle; then
    # new location as of SL 8.0 is directory
    /etc/sysconfig/
    . /etc/sysconfig/oracle
    else
    if test -f /etc/rc.config.d/oracle.rc.config; then
    # location is directory /etc/rc.config.d/
    . /etc/rc.config.d/oracle.rc.config
    else
    if test -f /etc/rc.config; then
    # old SuSE location was to have everything in one
    file
    . /etc/rc.config
    fi
    fi
    fi
    # Determine the base and follow a runlevel link name.
    # DISABLED by default because it's very individual...
    # base=${0##*/}
    # link=${base#*[SK][0-9][0-9]}
    # Force execution if not called by a runlevel directory.
    # test $link = $base && START_ORACLE_DB="yes" &&
    START_ORACLE_DB_LISTENER="yes" &&
    SET_ORACLE_KERNEL_PARAMETERS="yes"
    # First reset status of this service
    rc_reset
    # Get and check environment (e.g. ORACLE_HOME)
    ora_environment()
    test -f /etc/profile.d/oracle.sh && .
    /etc/profile.d/oracle.sh
    if [ ! -z "$ORACLE_HOME" -a ! -d "$ORACLE_HOME" ];
    then
    echo
    echo "${warn}ORACLE_HOME directory $ORACLE_HOME
    does not exist!$norm"
    echo "Unsetting ORACLE_HOME, will try to determine
    it from system..."
    unset ORACLE_HOME
    fi
    # Try /etc/oratab if it's not set in
    /etc/profile.d/oracle.sh
    test -z "$ORACLE_HOME" && test -f /etc/oratab &&
    ORACLE_HOME=`awk -F: '/^[^#].*:.+:[YN]/ {if
    ($2!="") print $2; exit}' </etc/oratab` && \
    echo && echo "ORACLE_HOME not set, but I found
    this in /etc/oratab: $ORACLE_HOME" && echo
    if [ -z "$ORACLE_HOME" ]; then
    echo "${warn}ORACLE_HOME environment variable not
    set.$norm"
    echo "Check /etc/profile.d/oracle.sh and
    /etc/oratab"
    fi
    if [ ! -d "$ORACLE_HOME" ]; then
    echo "${warn}Cannot find ORACLE_HOME directory
    $ORACLE_HOME.$norm"
    echo "Environment settings are wrong! Check
    /etc/profile.d/oracle.sh"
    fi
    test -z "$ORACLE_OWNER" && ORACLE_OWNER="oracle"
    echo
    # Set Intelligent Agent Start/Stop
    AGENT_VERSION="unknown"
    if test -x "$AGENT_HOME/bin/emctl"; then
    # If Oracle Grid Control Agent is installed
    AGENT_VERSION="10gA"
    AGENT_PROG="$AGENT_HOME/bin/emctl"
    AGENT_START="$AGENT_HOME/bin/emctl start agent"
    AGENT_STOP="$AGENT_HOME/bin/emctl stop agent"
    elif test -x "$ORACLE_HOME/bin/agtctl"; then
    # 10g
    AGENT_VERSION="10g"
    AGENT_HOME=$ORACLE_HOME
    AGENT_PROG="$ORACLE_HOME/bin/agtctl"
    AGENT_START="$ORACLE_HOME/bin/agtctl startup"
    AGENT_STOP="$ORACLE_HOME/bin/agtctl stop"
    elif test -x "$ORACLE_HOME/bin/agentctl"; then
    # Oracle 9i
    AGENT_VERSION="9i"
    AGENT_HOME=$ORACLE_HOME
    AGENT_PROG="$ORACLE_HOME/bin/agentctl"
    AGENT_START="$ORACLE_HOME/bin/agentctl start"
    AGENT_STOP="$ORACLE_HOME/bin/agentctl stop"
    else
    # Oracle 8i
    AGENT_VERSION="8i"
    AGENT_HOME=$ORACLE_HOME
    AGENT_PROG="$ORACLE_HOME/bin/lsnrctl"
    AGENT_START="$ORACLE_HOME/bin/lsnrctl
    dbsnmp_start"
    AGENT_STOP="$ORACLE_HOME/bin/lsnrctl dbsnmp_stop"
    if [ `$ORACLE_HOME/bin/lsnrctl help | grep -q
    dbsnmp_start; echo $?` = "0" -a
    ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    echo "${warn}Cannot start agent - Setting
    START_ORACLE_DB_AGENT = no $norm"
    START_ORACLE_DB_AGENT="cannot";
    fi
    fi
    # If Oracle Grid Control Agent is installed
    # if test -x "$AGENT_HOME/bin/emctl"; then
    # AGENT_VERSION="10g"
    # AGENT_HOME=$AGENT_HOME
    # AGENT_PROG="$AGENT_HOME/bin/emctl"
    # AGENT_START="$AGENT_HOME/bin/emctl start agent"
    # AGENT_STOP="$AGENT_HOME/bin/emctl stop agent"
    # fi
    test -d "${TNS_ADMIN}" || TNS_ADMIN="$ORACLE_HOME/network/admin"
    if [ "$1" = "start" ]; then
    echo -n " ${extd}SETTINGS $1 from /etc/sysconfig/oracle$norm"
    if [ ! -f /etc/sysconfig/oracle ]; then
    echo " - ${warn}!!! MISSING !!!$norm"
    else
    echo
    fi
    echo " - Set Kernel Parameters for Oracle:
    ${SET_ORACLE_KERNEL_PARAMETERS:-no}"
    echo " - Start Oracle OCFS:
    ${START_ORACLE_DB_OCFS:-no}"
    echo " - Start Oracle OCM:
    ${START_ORACLE_DB_OCM:-no}"
    echo " - Start Oracle GSD:
    ${START_ORACLE_DB_GSD:-no}"
    echo " - Start Oracle Listener:
    ${START_ORACLE_DB_LISTENER:-no}"
    echo " - Start Oracle Database:
    ${START_ORACLE_DB:-no}"
    echo " - Start Oracle Webserver:
    ${START_ORACLE_DB_APACHE:-no}"
    echo " - Start Oracle Apex:
    ${START_ORACLE_APEX_221:-no}"
    echo " - Start Oracle EManager:
    ${START_ORACLE_DB_EMANAGER:-no}"
    echo " - Start Oracle iSQLPLUS Manager:
    ${START_ORACLE_DB_ISQLPLUS:-no}"
    echo " - Start Oracle Agent:
    ${START_ORACLE_DB_AGENT:-no}"
    echo " - Start Oracle Internet Filesystem:
    ${START_ORACLE_DB_IFS:-no}"
    echo " - Start Oracle Directory Manager:
    ${START_ORACLE_DB_OID:-no}"
    fi
    # Here we finally get to do the real work.
    case "$1" in
    start)
    echo
    echo "#########################################"
    echo "# Inicio de O R A C L E - #"
    echo "#########################################"
    echo
    ora_environment start
    # Check if we really have all the Oracle components we are told to start
    if [ ! -x $ORACLE_HOME/bin/dbstart -a
    ${START_ORACLE_DB:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el dbstart - Poniendo el START_ORACLE_DB = no $norm"
    START_ORACLE_DB="cannot";
    fi
    if [ ! -x $ORACLE_HOME/bin/lsnrctl -a
    ${START_ORACLE_DB_LISTENER:-no} = "yes" ]; then
    echo "${warn}No, man not exist el lsnrctl - Poniendo el START_ORACLE_DB_LISTENER = no $norm"
    START_ORACLE_DB_LISTENER="cannot";
    fi
    if [ ! -x
    /opt/oracle/product/Area/Apache/Apache/bin/httpd -a
    ${START_ORACLE_DB_APACHE:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el httpd -
    Poniendo el START_ORACLE_DB_APACHE = no $norm"
    START_ORACLE_DB_APACHE="cannot";
    fi
    if [ ! -x
    /opt/oracle/product/Area/opmn/bin/opmnctl -a
    ${START_ORACLE_APEX_221:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el opmnctl -
    Poniendo el START_ORACLE_APEX_221 = no $norm"
    START_ORACLE_APEX_221="cannot";
    fi
    if [ ! -x $ORACLE_HOME/bin/emctl -a
    ${START_ORACLE_DB_EMANAGER:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el emctl -
    Poniendo el START_ORACLE_DB_EMANAGER = no $norm"
    START_ORACLE_DB_EMANAGER="cannot";
    fi
    if [ ! -x $ORACLE_HOME/bin/isqlplusctl -a
    ${START_ORACLE_DB_ISQLPLUS:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el isqlplusctl
    - Poniendo el START_ORACLE_DB_ISQLPLUS = no $norm"
    START_ORACLE_DB_ISQLPLUS="cannot";
    fi
    case $AGENT_VERSION in
    10g)
    if [ ! -x $ORACLE_HOME/bin/agtctl -a
    ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el agtctl -
    Poniendo el START_ORACLE_DB_AGENT = no $norm"
    START_ORACLE_DB_AGENT="cannot"
         fi
    10gA)
    if [ ! -x $AGENT_HOME/bin/emctl -a
    ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el emctl -
    Poniendo el START_ORACLE_DB_AGENT = no $norm"
    START_ORACLE_DB_AGENT="cannot"
    fi
    9i)
    if [ ! -x $ORACLE_HOME/bin/agentctl -a
    ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el agentctl
    - Poniendo el START_ORACLE_DB_AGENT = no $norm"
    START_ORACLE_DB_AGENT="cannot"
    fi
    8i)
    if [ ! -x $ORACLE_HOME/bin/lsnrctl -a
    ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el lsnrctl
    - Poniendo el START_ORACLE_DB_AGENT = no $norm"
    START_ORACLE_DB_AGENT="cannot"
    fi
    echo "Oracle Agent undefinied or not properly
    set. Please check."
    esac
    if [ ! -x /sbin/load_ocfs -a
    ${START_ORACLE_DB_OCFS:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el
    /sbin/load_ocfs - Poniendo el START_ORACLE_DB_OCFS =
    no $norm"
    START_ORACLE_DB_OCFS="cannot";
    fi
    if [ ! -x $ORACLE_HOME/oracm/bin/oracm -a
    ${START_ORACLE_DB_OCM:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el oracm -
    Poniendo el START_ORACLE_DB_OCM = no $norm"
    START_ORACLE_DB_OCM="cannot";
    fi
    if [ ! -x $ORACLE_HOME/bin/gsdctl -a
    ${START_ORACLE_DB_GSD:-no} = "yes" ]; then
    echo "${warn}No, macho no existe el gsdctl -
    Poniendo el START_ORACLE_DB_GSD = no $norm"
    START_ORACLE_DB_GSD="cannot";
    fi
    echo
    # Set kernel parameters for Oracle
    if [ "${SET_ORACLE_KERNEL_PARAMETERS:-no}" ==
    "yes" ]; then
    echo
    echo "Setting kernel parameters for Oracle, see
    file"
    if test -f /etc/sysconfig/oracle; then
    echo "/etc/sysconfig/oracle for explanations."
    else
    echo "/etc/rc.config.d/oracle.rc.config for explanations."
    fi
    echo
    if [ ! -d /proc/sys/kernel ]; then
    echo; echo "No sysctl kernel interface - cannot set kernel parameters."; echo
    rc_failed
    else
    # Set shared memory parameters
    echo -n "${extd}Shared memory:$norm "
    test -f /proc/sys/kernel/shmmax && echo -n "
    SHMMAX=${SHMMAX:-3294967296}"
    test -f /proc/sys/kernel/shmmax && echo
    ${SHMMAX:-3294967296} > /proc/sys/kernel/shmmax
    test -f /proc/sys/kernel/shmmni && echo -n "
    SHMMNI=${SHMMNI:-4096}"
    test -f /proc/sys/kernel/shmmni && echo
    ${SHMMNI:-4096} > /proc/sys/kernel/shmmni
    test -f /proc/sys/kernel/shmall && echo "
    SHMALL=${SHMALL:-2097152}"
    test -f /proc/sys/kernel/shmall && echo
    ${SHMALL:-2097152} > /proc/sys/kernel/shmall
    test -f /proc/sys/kernel/shmall || echo
    # Set the semaphore parameters:
    # see Oracle release notes for Linux for how
    to set these values
    # SEMMSL, SEMMNS, SEMOPM, SEMMNI
    echo -n "${extd}Semaphore values:$norm "
    test -f /proc/sys/kernel/sem && echo -n "
    SEMMSL=${SEMMSL:-1250}"
    test -f /proc/sys/kernel/sem && echo -n "
    SEMMNS=${SEMMNS:-32000}"
    test -f /proc/sys/kernel/sem && echo -n "
    SEMOPM=${SEMOPM:-100}"
    test -f /proc/sys/kernel/sem && echo "
    SEMMNI=${SEMMNI:-256}"
    test -f /proc/sys/kernel/sem && echo
    ${SEMMSL:-1250} ${SEMMNS:-32000} ${SEMOPM:-100}
    ${SEMMNI:-128} > /proc/sys/kernel/sem
    test -f /proc/sys/kernel/sem || echo
    echo -n "${extd}Other values:$norm "
    test -f /proc/sys/fs/file-max && echo -n "
    FILE_MAX_KERNEL=${FILE_MAX_KERNEL:-131072}"
    test -f /proc/sys/fs/file-max && echo
    ${FILE_MAX_KERNEL:-131072} > /proc/sys/fs/file-max
    test -f /proc/sys/net/ipv4/ip_local_port_range
    && echo "
    IP_LOCAL_PORT_RANGE=${IP_LOCAL_PORT_RANGE:-"1024
    65000"}"
    test -f /proc/sys/net/ipv4/ip_local_port_range
    && echo ${IP_LOCAL_PORT_RANGE:-"1024 65000"} >
    /proc/sys/net/ipv4/ip_local_port_range
    test -f /proc/sys/net/core/rmem_default &&
    echo -n " RMEM_DEFAULT=${RMEM_DEFAULT:-262144}"
    test -f /proc/sys/net/core/rmem_default &&
    echo ${RMEM_DEFAULT:-262144} >
    /proc/sys/net/core/rmem_default
    test -f /proc/sys/net/core/wmem_default &&
    echo -n " WMEM_DEFAULT=${WMEM_DEFAULT:-262144}"
    test -f /proc/sys/net/core/wmem_default &&
    echo ${WMEM_DEFAULT:-262144} >
    /proc/sys/net/core/wmem_default
    test -f /proc/sys/net/core/rmem_max && echo -n
    " RMEM_MAX=${RMEM_MAX:-262144}"
    test -f /proc/sys/net/core/rmem_max && echo
    ${RMEM_MAX:-262144} > /proc/sys/net/core/rmem_max
    test -f /proc/sys/net/core/wmem_max && echo -n
    " WMEM_MAX=${WMEM_MAX:-262144}"
    test -f /proc/sys/net/core/wmem_max && echo
    ${WMEM_MAX:-262144} > /proc/sys/net/core/wmem_max
    test -f /proc/sys/vm/vm_mapped_ratio && echo
    -n " VM_MAPPED_RATIO=${VM_MAPPED_RATIO:-100}"
    test -f /proc/sys/vm/vm_mapped_ratio && echo
    ${VM_MAPPED_RATIO:-250} > /proc/sys/vm/vm_mapped_ratio
    test -f /proc/sys/fs/aio-max-size && echo "
    AIO_MAX_SIZE=${AIO_MAX_SIZE:-262144}"
    test -f /proc/sys/fs/aio-max-size && echo
    ${AIO_MAX_SIZE:-262144} > /proc/sys/fs/aio-max-size
    test -f /proc/sys/fs/aio-max-size || echo
    # HUGEPAGES
    echo -n "${extd}Huge Pages:$norm "
         # on SLES9
    test -f /proc/sys/vm/disable_cap_mlock && echo
    1 > /proc/sys/vm/disable_cap_mlock
         # on SLES10
    test -f /proc/sys/vm/hugetlb_shm_group && echo
    -n " SHM_GROUP=${SHM_GROUP}"
         SHM_GROUP_GID=`cat /etc/group | grep -w ${SHM_GROUP}
    |awk -F: '{ print $3 }'`
    test -f /proc/sys/vm/hugetlb_shm_group && echo
    ${SHM_GROUP_GID} > /proc/sys/vm/hugetlb_shm_group
    test -f /proc/sys/vm/nr_hugepages && echo -n "
    NR_HUGE_PAGES=${NR_HUGE_PAGES:-0}"
    test -f /proc/sys/vm/nr_hugepages && echo
    ${NR_HUGE_PAGES:-0} > /proc/sys/vm/nr_hugepages
    echo
    echo -n "${extd}ULIMIT values:$norm "
    echo "
    MAX_CORE_FILE_SIZE_SHELL=${MAX_CORE_FILE_SIZE_SHELL:-0}"
    ulimit -c ${MAX_CORE_FILE_SIZE_SHELL:-0}
    echo -n "
    FILE_MAX_SHELL=${FILE_MAX_SHELL:-65536}"
    ulimit -n ${FILE_MAX_SHELL:-65536}
    echo "
    PROCESSES_MAX_SHELL=${PROCESSES_MAX_SHELL:-16384}"
    ulimit -u ${PROCESSES_MAX_SHELL:-16384}
    # Check if shmmax is really set to what we
    want - on some systems and
    # certain settings the result could be
    shmmax=0 if you set it to e.g. 4GB!
    if [ `cat /proc/sys/kernel/shmmax` !=
    "${SHMMAX:-3294967296}" ]; then
    echo "${warn}---- WARNING - SHMMAX could not
    be set properly ----$norm"
    echo " Tried to set it to:
    ${SHMMAX:-3294967296}"
    echo " Value is now: `cat
    /proc/sys/kernel/shmmax`"
    echo " You might try again with a lower
    value."
    fi
    fi
    echo
    echo -n "Kernel parameters set for Oracle: "
    rc_status -v
    echo
    echo
    fi
    rc_reset
    echo -n " - Starting Oracle Cluster
    Filesystem..."
    if [ "${START_ORACLE_DB_OCFS:-no}" = "yes" ]; then
    $RMMOD ocfs >& /dev/null
    $LOAD_OCFS >& /dev/null
    rc_status -v -r
    echo -n " - Mounting Oracle Cluster
    Filesystem(s)..."
    $MOUNT -a -t ocfs >& /dev/null
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_OCFS:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Oracle Cluster Manager..."
    if [ "${START_ORACLE_DB_OCM:-no}" = "yes" ]; then
    # Fix log directories: 9iR2 RAC installation
    forgets these directories on the nodes
    su - oracle -c "$MKDIR -p
    $ORACLE_HOME/oracm/log"
    # Startup oracm
    cat <<EOF > /etc/rac_on
    This file is created by /etc/rc.d/oracle when
    START_ORACLE_DB_OCM="yes"
    in /etc/sysconfig/oracle. This is a dirty hack from
    Oracle - their
    $ORACLE_HOME/bin/dbca script uses the presence of this
    file to select
    one of two ways to start the JRE and when this file
    you are looking at
    right now does not exist it uses a method that lets
    the JRE crash.
    EOF
    test -x $ORACLE_HOME/oracm/bin/oracm &&
    PATH=${ORACLE_HOME}/oracm/bin:${PATH} oracm
    $ORACLE_DB_OCM_PARAMETERS </dev/null 2>&1
    $ORACLE_HOME/oracm/log/cm.out &sleep 7
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_OCM:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    if [ -x /etc/init.d/init.cssd -a ! -x
    /etc/init.d/init.crs ]
    then
    echo -n " - Starting css daemon..."
    /etc/init.d/init.cssd start
    rc_status -v -r
    kill -1 1
    sleep 5
    fi
    echo -n " - Starting Oracle GSD..."
    if [ "${START_ORACLE_DB_GSD:-no}" = "yes" ]; then
    test -x $ORACLE_HOME/bin/gsdctl && su - oracle
    -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; unset JAVA_BINDIR; unset
    JAVA_HOME; $ORACLE_HOME/bin/gsdctl start > /dev/null"
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_GSD:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Cargando Listener..."
    if [ "${START_ORACLE_DB_LISTENER:-no}" = "yes" ];
    then
    su - oracle -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/lsnrctl start >
    /dev/null"
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_LISTENER:-no} = "cannot"
    ]; then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo
    echo " Databases start..."
    if [ "${START_ORACLE_DB:-no}" = "yes" ]; then
    # Fix log directories: 9iR2 RAC installation
    forgets these directories on the nodes
    su - oracle -c "$MKDIR -p
    $ORACLE_HOME/rdbms/audit $ORACLE_HOME/rdbms/log
    $ORACLE_HOME/network/log 2>/dev/null"
    # The database will not start if the entry in
    /etc/oratab is "N"
    cat /etc/oratab | while read LINE
    do
    case $LINE in
    \#*) # skip over comment-line in oratab
    # Proceed only if third field is 'Y'.
    if [ "`echo $LINE | awk -F: '{print $3}' -`"
    = "N" ] ; then
    ORACLE_SID=`echo $LINE | awk -F: '{print
    $1}' -`
    ORACLE_HOME=`echo $LINE | awk -F: '{print
    $2}' -`
    echo; echo -n "No start entry for SID
    $ORACLE_SID at $ORACLE_HOME in /etc/oratab"
    rc_status -s
    fi
    # Check if CRS is up before starting ASM
    if [ "`echo $LINE | awk -F: '{print $1}' -`"
    = "+ASM" ] ; then
    if [ "`echo $LINE | awk -F: '{print
    $3}' -`" = "Y" ] ; then
    false
    while (($?)) ; do
    echo "Waiting 20
    seconds for CRS daemon"
    sleep 20
    ps -fe|grep -v
    grep|grep cssd
    done
    fi
    fi
    esac
    done
    echo -n " "
    su - oracle -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/dbstart"
    rc_status
    echo -n " Status of Oracle database(s)
    start:"
    rc_status -v -r
    echo
    else
    if [ ${START_ORACLE_DB:-no} = "cannot" ]; then
    rc_status -s
    else
    rc_status -u
    fi
    echo
    fi
    rc_reset
    echo -n " - Lanzando Application Express
    2.2.1..."
    if [ "${START_ORACLE_APEX_221:-no}" = "yes" ];
    then
    su - oracle -c "export
    ORACLE_HOME=$ORACLE_HOME;
    /opt/oracle/product/Area/opmn/bin/opmnctl startall >
    /dev/null"
    if [ "$?" != "0" ]; then rc_failed; else
    rc_failed 0; fi
    rc_status -v -r
    else
    if [ ${START_ORACLE_APEX_221:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Apache..."
    if [ "${START_ORACLE_DB_APACHE:-no}" = "yes" ];
    then
    SSL=""
    if [ ${ORACLE_DB_APACHE_USE_SSL} = "yes" ];
    then
    SSL="ssl"
    fi
    export DISPLAY=:42.0;
    /opt/oracle/product/Area/Apache/Apache/bin/apache$SSL>&
    /dev/null
    if [ "$?" != "0" ]; then rc_failed; else
    rc_failed 0; fi
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_APACHE:-no} = "cannot"
    ]; then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Lanzando Apache server..."
    if [ "${START_ORACLE_AS_ALL:-no}" = "yes" ]; then
    su - oracle -c "export
    ORACLE_HOME=$ORACLE_HOME;
    /opt/oracle/product/Area/Apache/Apache/bin/httpd
    startall > /dev/null"
    if [ "$?" != "0" ]; then rc_failed; else
    rc_failed 0; fi
    rc_status -v -r
    else
    if [ ${START_ORACLE_AS_ALL:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Application Server
    Console..."
    if [ "${START_ORACLE_AS_CONSOLE:-no}" = "yes" ];
    then
    su - oracle -c "export
    ORACLE_HOME=$ORACLE_HOME; $ORACLE_HOME/bin/emmctl
    start iasconsole > /dev/null"
    if [ "$?" != "0" ]; then rc_failed; else
    rc_failed 0; fi
    rc_status -v -r
    else
    if [ ${START_ORACLE_AS_CONSOLE:-no} = "cannot"
    ]; then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Agent..."
    if [ "${START_ORACLE_DB_AGENT:-no}" = "yes" ];
    then
    su - oracle -c "export ORACLE_HOME=$AGENT_HOME
    TNS_ADMIN=$TNS_ADMIN; $AGENT_START > /dev/null"
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_AGENT:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Enterprise Manager..."
    if [ "${START_ORACLE_DB_EMANAGER:-no}" = "yes" ];
    then
    for SID in `sed -n
    's/^\([^#+]*\):.*:Y/\1/p' /etc/oratab`
    do
    echo "Starting DB Console for $SID"
    su - oracle -c "export ORACLE_SID=$SID
    ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $ORACLE_HOME/bin/emctl start dbconsole > /dev/null"
    sleep 10
    done
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_EMANAGER:-no} = "cannot"
    ]; then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting iSQLPLUS Manager..."
    if [ "${START_ORACLE_DB_ISQLPLUS:-no}" = "yes" ];
    then
    su - $oracle -c "export
    ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $ORACLE_HOME/bin/isqlplusctl start > /dev/null"
    rc_status -v -r
    else
    if [ ${START_ORACLE_DB_ISQLPLUS:-no} = "cannot"
    ]; then
    rc_status -s
    else rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Oracle Internet
    Filesystem..."
    if [ "${START_ORACLE_DB_IFS:-no}" = "yes" ];
    then
    echo -n " ${extd}Not yet implemented.$norm"
    rc_status -s
    else
    if [ ${START_ORACLE_DB_IFS:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    rc_reset
    echo -n " - Starting Oracle Internet
    Directory..."
    if [ "${START_ORACLE_DB_OID:-no}" = "yes" ]; then
    echo -n " ${extd}Not yet implemented.$norm"
    rc_status -s
    else
    if [ ${START_ORACLE_DB_OID:-no} = "cannot" ];
    then
    rc_status -s
    else
    rc_status -u
    fi
    fi
    stop)
    echo
    echo "#######################################"
    echo "# Fin de O R A C L E #"
    echo "######################################"
    echo
    ora_environment stop
    echo "Shutting down Oracle services (only those
    running)"; echo
    test -x
    /opt/oracle/product/Area/Apache/Apache/bin/httpd &&
    $CHECKPROC
    /opt/oracle/product/Area/Apache/Apache/bin/httpd &&
    echo -n "Shutting down Apache: " && (export
    ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    /opt/oracle/product/Area/Apache/Apache/bin/httpd
    stopall > /dev/null; rc_status -v -r)
    # Shutting Down Agent
    if [ ${START_ORACLE_DB_AGENT:-no} = "yes" ]; then
    case $AGENT_VERSION in
    10g)
    test -x $AGENT_PROG && $CHECKPROC $AGENT_PROG &&
    echo -n "Shutting down Agent: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $AGENT_STOP > /dev/null"; rc_status -v -r)
    10gA)
    test -x $AGENT_PROG && $CHECKPROC $AGENT_PROG &&
    echo -n "Shutting down Agent: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $AGENT_STOP > /dev/null"; rc_status -v -r)
    9i)
    test -x $AGENT_PROG && $CHECKPROC $AGENT_PROG &&
    echo -n "Shutting down Agent: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $AGENT_STOP > /dev/null"; rc_status -v -r)
    8i)
    test -x $AGENT_PROG && $CHECKPROC $AGENT_PROG &&
    echo -n "Shutting down Agent: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    $AGENT_STOP > /dev/null"; rc_status -v -r)
    echo "Oracle Agent undefinied or not properly
    set. Please check."
    esac
    fi
    test -x /opt/oracle/product/Area/opmn/bin/opmnctl
    && test "${START_ORACLE_APEX_221:-no}" = "yes"
    && echo -n "Shutting down Apex: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    /opt/oracle/product/Area/opmn/bin/opmnctl stopall >
    /dev/null"; rc_status -v -r)
    test -x $ORACLE_HOME/bin/isqlplusctl
    && test "${START_ORACLE_DB_ISQLPLUS:-no}" = "yes"
    && echo -n "Shutting down iSQLPLUS Manager: " && (su
    - oracle -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/isqlplusctl
    stop > /dev/null"; rc_status -v -r)
    test -x $ORACLE_HOME/bin/emctl
    && test "${START_ORACLE_DB_EMANAGER:-no}" = "yes"
    && echo -n "Shutting down Enterprise Manager: " &&
    (su - oracle -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/emctl stop
    dbconsole > /dev/null"; rc_status -v -r)
    test -x $ORACLE_HOME/bin/lsnrctl
    && $CHECKPROC $ORACLE_HOME/bin/tnslsnr
    && echo -n "Shutting down Listener: " && (su - oracle
    -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/lsnrctl stop >
    /dev/null"; rc_status -v -r)
    test -x $ORACLE_HOME/bin/dbshut
    && $CHECKPROC $ORACLE_HOME/bin/oracle
    && echo -n "Shutting down Database: " && (su - oracle
    -c "export ORACLE_HOME=$ORACLE_HOME
    TNS_ADMIN=$TNS_ADMIN; $ORACLE_HOME/bin/dbshut >
    /dev/null"; rc_status -v -r)
    test -x $ORACLE_HOME/bin/gsdctl
    && test "" != "`ps U oracle|grep 'DPROGRAM=gsd'`"
    && echo -n "Shutting down GSD: " && (su - oracle -c
    "export ORACLE_HOME=$ORACLE_HOME TNS_ADMIN=$TNS_ADMIN;
    unset JAVA_BINDIR; unset JAVA_HOME;
    $ORACLE_HOME/bin/gsdctl stop > /dev/null"; rc_status
    -v -r)
    test -x $ORACLE_HOME/oracm/bin/oracm
    && $CHECKPROC $ORACLE_HOME/oracm/bin/oracm
    && echo -n "Shutting down OCM: " && (killall oracm >
    /dev/null; rm -f /etc/rac_on; rc_status -v -r)
    if [ "`$MOUNT -t ocfs | grep ocfs`" != "" ]; then
    echo -n "Unmounting all OCFS filesystems: "
    && ($UMOUNT -t ocfs -a; rc_status -v -r)
    fi
    if [ -x /etc/init.d/init.cssd -a ! -x
    /etc/init.d/init.crs ]
    then
    echo -n "Shutting down CSSD:"
    /etc/init.d/init.cssd stop >/dev/null
         rc_status -v -r
    kill -1 1
    sleep 5
    fi
    status)
    echo
    echo "#################################"
    echo "# Fin de O R A C L E #"
    echo "#################################"
    echo
    ora_environment status
    echo "${extd}Kernel Parameters$norm"
    echo -n "Shared memory:"
    echo -n " SHMMAX=" `cat /proc/sys/kernel/shmmax`
    echo -n " SHMMNI=" `cat /proc/sys/kernel/shmmni`
    echo " SHMALL=" `cat /proc/sys/kernel/shmall`
    echo -n "Semaphore values:"
    echo " SEMMSL, SEMMNS, SEMOPM, SEMMNI: " `cat
    /proc/sys/kernel/sem`
    echo
    if [ -x $ORACLE_HOME/bin/oracle ]; then
    echo "${extd}Database-Instances$norm"
    # loop over the instances (very simple !!!)
    IFS=:
    grep -v '^\(#\|$\)' /etc/oratab | while read sid
    ohome autostart ; do
    state=up
    su - oracle -c "export ORACLE_SID=$sid;
    sqlplus /nolog" <<-! 2>/dev/null | grep ORA-01034
    /dev/null && state=downconnect / as sysdba
    show sga
    echo "Instance $sid is $state (autostart:
    $autostart)"
    done
    echo
    fi
    if [ -x $ORACLE_HOME/bin/lsnrctl ]; then
    state=up
    su - oracle -c "$ORACLE_HOME/bin/lsnrctl status"
    | grep "[nN]o [lL]istener" >/dev/null && state=down
    echo "${extd}TNS-Listener:$norm $state"
    echo
    fi
    numhttpd=`ps -e | grep httpd | wc -l | sed 's/
    //g'`
    state=up
    if [ "$numhttpd" -lt 1 ] ; then state=down ; fi
    echo "${extd}Web-Server (Apache httpd):$norm
    $state ($numhttpd processes)"
    echo
    if [ -x $ORACLE_HOME/bin/agentctl ]; then
    state=up
    su - oracle -c "agentctl status" | grep "Could
    not contact agent" >/dev/null && state=down
    echo "${extd}Intelligent Agent:$norm $state"
    echo
    fi
    echo "${extd}Process list for user oracle:$norm"
    ps U oracle
    ps ax | grep oracm | grep -v grep
    restart)
    ## Stop the service and regardless of whether it
    was
    ## running or not, start it again.
    $0 stop
    $0 start
    echo "Usage: $0 start"
    exit 1
    esac
    echo
    echo "###################################"
    echo "# Fin de O R A C L E #"
    echo "###################################"
    echo
    # Global return value of this script is "success", always. We have too many
    # individual return values...
    rc_status -r
    rc_exit

Maybe you are looking for