Automatic statrup & shutdown

below are the stapes to startup and shutdown oracle 9i database ... but what if i have multiple oracle home and i want to do startup and shutdown automatic for both oracle 9i and 10g databases...?
============================================================================================
In the /etc/init.d directory, create a dbora script similar to the following, if it does not already exist. Be sure to give the full path of the dbstart utility.
#!/bin/sh
# 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/9.2.0.1.0
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 &
'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 &
esac
Create symbolic links to the dbora script in the appropriate run-level script directories, as follows:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
# ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
====================================================================

It depends how You modified dbshut script.
For example mine is like this and it is checking /etc/oratab for all sids there is parameter Y and shutdowns them.
cat $ORATAB | while read LINE
do
case $LINE in
\#*) ;; #comment-line in oratab
if [ "`echo $LINE | awk -F: '{print $NF}' -`" = "Y" ] ; then
ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
if [ "$ORACLE_SID" = '*' ] ; then
ORACLE_SID=""
fi
export ORACLE_SID
STATUS=1
pmon=`ps -ef | egrep pmon_$ORACLE_SID | grep -v grep`
if [ "$pmon" = "" ];
then
STATUS="-1"
echo "Database \"${ORACLE_SID}\" was down."
fi
if [ $STATUS = "1" ] ; then
$ORACLE_HOME/bin/sqlplus<<EOF
conn / as sysdba
shut immediate
EOF
echo " "
echo " "
echo "Database \"${ORACLE_SID}\" downed."
echo " "
echo " "
fi
fi
esac
done

Similar Messages

  • 8.1.5.-automate database shutdown:hepl needed

    I have tried to setup the automate database shutdown by following Oracle Manual. When rebooting the Unix system(sun solaris 2.6), nothing could be recorded in the alert logfile. After manually starting up the database, alert logfile indicated always a crash recovery during the process.
    Any suggestion will be appreciated on above problem!
    Felix

    Hi,
    Below is the information from orclALRT.log:
    There's a write/open error. At July 21, 21:00PM our backup is start to run.
    Is it because the backup software locked some oracle's files ?
    But after the error, the next morning July 22 the ORACLE instance is started with no error, even though user can't connect to the database.
    TIA
    Andi
    Thread 1 advanced to log sequence 46212
    Current log# 4 seq# 46212 mem# 0: E:\ORANT\ORADATA\ORACLE\REDO01.LOG
    Sun Jul 21 21:38:26 2002
    KCF: write/open error block=0x11072 online=1
    file=1 E:\ORANT\ORADATA\ORACLE\SYSTEM01.DBF
    error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because
    another process has locked a portion of the file.'
    DBW0: terminating instance due to error 1242
    Instance terminated by DBW0, pid = 248
    Mon Jul 22 03:00:04 2002
    Starting ORACLE instance (normal)
    Dump file E:\orant\admin\oracle\bdump\orclALRT.LOG
    ---------

  • ORACLE DATABASE의 AUTOMATIC STARTUP/SHUTDOWN

    제품 : ORACLE SERVER
    작성날짜 : 1995-11-21
    오라클 database의 AUTOMATIC STARTUP/SHUTDOWN
    ============================================
    시스템이 startup 하면서 오라클도 함께 startup하거나 시스템을 shutdown
    할 때 오라클도 같이 shutdown 하는 것이 가능하다. 그 방법은 OS마다 차이가
    있는데 여기서는 UNIX 에 기반한 여러 플랫폼에 대해서 알아보기로 한다.
    본 내용에서 가장 많이 사용되는 화일은 다음과 같다.
    $ORACLE_HOME/bin/dbstart
    $ORACLE_HOME/bin/dbshut
    /etc/oratab 또는 /var/opt/oracle/oratab
    dbstart 와 dbshut 은 오라클을 startup/shutdown 시키는 스크립트인데
    이것은 automatic startup/shutdown 시에만 사용하도록 하고 평상 시의
    경우에는 사용하지 않도록 한다.
    oratab 화일은 일반 텍스트 화일로서 시스템에 설치된 오라클 인스턴스에
    대한 정보를 가지고 있는데 보통 3개의 필드로 이루어져 있으며 첫번재
    필드는 ORACLE_SID, 두번째 필드는 ORACLE_HOME, 세번째 필드는 Y 또는 N
    으로 구성되어 있다. 해당 인스턴스를 autostartup 시키려면 꼭 Y로
    세팅되어 있어야 한다.
    SYSTEM V
    System V 에 기반한 시스템은 /etc/rc<n>.d 디렉토리에 초기화 스크립트를
    가지고 있다. 여기서 <n> 은 해당 스크립트의 run-level 을 의미한다.
    일반적으로 run-level 0은 power shutdown mode 이고 run-level 2는 multi-user
    mode 이다. 각각의 디렉토리에 들어있는 초기화 스크립트는 다음과 같은 형태의
    이름을 갖고 있다.
    K{two-digit number][descriptive filename]
    예를 들면 S75cron, K30tcp 등이 있을 수 있다.
    S로 시작되는 스크립트는 startup 시에 실행되는 것이고 K 로 시작하는 것은
    shutdown 시에 실행된다.
    two-digit number가 의미하는 것은 스크립트가 실행되는 순서인데 숫자가 작은
    것부터 먼저 실행된다. 따라서 오라클 스크립트는 보통 다음과 같은 이름을 갖게 된다.
    S99oracle, K01oracle
    이와 같이 설정하면 시스템이 startup 될 때 모든 초기화가 끝난 후 마지막으로
    오라클이 startup 되며 시스템을 shutdown 할 때에는 오라클을 가장 먼저 shutdown
    하게 된다.
    BSD UNIX
    BSD 에 기반한 시스템은 시스템이 startup 될 때 초기화 화일로
    /etc/rc*(예를 들면, /etc/rc, /etc/rc.local) 를 사용한다.
    시스템을 shutdown 할 때에는 보통은 /etc/shutdown 만 실행하게 되므로
    특별히 실행되는 스크립트가 없지만 /etc/rc.shutdown 이 실행되는
    플랫폼도 있다.
    이제 각 플랫폼별로 자세히 알아보기로 한다.
    주의 : <oracle_owner> 는 oracle owner id 로 대체
    <$ORACLE_HOME> 은 oracle home directory 명으로 대체
    (1)SunOS 4.1.3
    SunOS 4.1.3 에서는 /etc/rc.local 을 startup 스크립트로 사용한다. 즉
    시스템이 startup 되면서 /etc/rc.local 이 실행된다. 따라서 이 화일의 끝에
    다음과 같은 라인을 추가하면 된다.
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    예를 들어 oracle owner 가 oracle7 이고 $ORACLE_HOME 이 /home/oracle
    이라면 다음과 같이 해주면 된다.
    su oracle7 -c /home/oracle/bin/dbstart
    여기서 /home/oracle 대신에 $ORACLE_HOME 과 같은 환경변수를 이용하여
    세팅하면 안된다.
    SunOS 에서는 시스템이 shutdown 될 때 실행되는 스크립트는 따로 없다.
    따라서 dbshut 을 실행시키는 방법은 다음과 같은 스크립트를 만들어서
    시스템을 shutdown 시킬 때 /etc/shutdown 을 실행시키지 말고 대신
    이것을 실행시켜야 한다.
    #!/bin/csh
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    /etc/shutdown $*
    만약 오라클을 shutdown 하지 않고 시스템을 shutdown 하면 다음에
    오라클을 startup 하려고 할 때 startup이 되지 않는다. 이 경우에는
    $ORACLE_HOME/dbs/sgadef<SID>.dbf 화일을 지우고 startup 시키면 된다.
    (2)OSF/1(DIGITAL UNIX)
    /etc/inittab : 초기화 과정을 콘트롤
    /sbin/rc3 : run-level 3 에서 사용되는 script
    /sbin/rc0 : run-level 0 에서 사용되는 script
    /sbin/rc3.d/S99oracle : /sbin/init.d/oracle 로 link
    /sbin/rc0.d/K01oracle : /sbin/init.d/oracle 로 link
    /etc/initab 화일에는 초기화 과정에 대한 정보가 들어 있다.
    예를 들면 다음과 같다.
    s3:3:wait:/sbin/rc3 < /dev/console > /dev/console 2>&1
    이렇게 설정하면 run-level 3 일 경우 /sbin/rc3 스크립트가 실행된다.
    /sbin/rc3 은 /sbin/rc3.d 디렉토리에 들어있는 스크립트를 실행한다. 만약
    스크립트 이름이 K 로 시작하면 이것은 stop 파라미터를 갖고 실행되어서 이
    스크립트에 지정된 프로세스를 정지시킨다. 한편, 스크립트가 S 로 시작하면
    /sbin/rc3 는 이 스크립트에 startup 파라미터를 부여하고 여기서 지정된
    프로세스를 실행시킨다. 따라서 /sbin/rc3.d/S99oracle 을 사용하여
    dbstart를 실행한다.
    shutdown 과정도 거의 비슷하다. /etc/inittab 에 다음과 같은 라인을 추가
    한다.
    s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1
    이것은 /sbin/rc0 를 실행시키는데 /sbin/rc0 는 /sbin/rc0.d 디렉토리에
    들어있는 스크립트를 실행시킨다. 스크립트의 이름이 S 로 시작하면 run
    time parameter 로 start 를 사용하게 되고 K 로 시작하면 stop 을
    사용한다.
    따라서 /sbin/rc0.d/K01oracle 스크립트는 stop 파라미터를 갖고
    실행되며 이 스크립트는 $ORACLE_HOME/bin/dbshut 스크립트를 실행시켜서
    오라클을 shutdown 시킨다.
    /sbin/rc3.d/S99oracle과 /sbin/rc0.d/K01oracle은 모두 /sbin/init.d/oracle
    에 대한 symbolic link 이다. /sbin/init.d/oracle 에 대한 symbolic link 는
    이들 외에 더 있을 수 있다.
    (3)Solaris 2.3 & SCO UNIX
    /etc/inittab : 초기화 과정을 콘트롤
    /etc/rc2 : run-level 2 에서 사용되는 스크립트
    /etc/rc0 : run-level 0 에서 사용되는 스크립트
    /etc/rc2.d/S99dbstart : /etc/init.d/dbstart 에 대한 link
    /etc/rc0.d/K01dbshut : /etc/init.d/dbshut 에 대한 link
    /var/opt/oracle/oratab
    Solaris 의 경우는 OSF/1 과 매우 유사하다. 차이점이라고 한다면 /sbin
    디렉토리 대신에 /etc 디렉토리에 필요한 스크립트가 들어있다는 것이다.
    rc0.d, rc2.d 같은 디렉토리는 실제로 /etc 디렉토리에 위치하고 있으며
    rc0, rc2 와 같은 스크립트는 /etc/init.d 에 존재하는 같은 이름의 스크립트에
    대한 symbolic link이다.
    /etc/init.d/dbstart 와 /etc/init.d/dbshut 스크립트의 내용은 각각 다음과
    같이 한줄로 구성되어 있다.
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    Solaris 에서는 start, stop 같은 파라미터는 /etc/init.d/dbstart,
    /etc/init.d/dbshut 에서는 무시된다.
    /etc/init.d/dbstart, /etc/init.d/dbshut 화일은 owner가 oracle owner id
    이여야 한다.
    /etc/init.d/README 를 읽어보면 좀 더 자세한 내용이 설명되어 있으니 참조하기
    바란다.
    (4)AIX
    /etc/inittab : 시스템 초기화 화일
    /etc/rc : 시스템 초기화 스크립트
    /etc/mkitab : /etc/inittab 을 수정하는 유틸리티
    /etc/shutdown : 시스템 shutdown 스크립트
    AIX 에서는 오라클 autostartup 방법은 여러가지가 가능하지만 shutdown 은
    한가지만 가능하다. 우선 autostartup 은 다음과 같은 방법 가운데 하나를
    사용하면 된다.
    a)/etc/mkitab 를 사용하여 /etc/inittab 에 entry 를 추가한다. 즉,
    /etc/mkitab "<oracle_owner>:2:wait:/bin/su <oracle_owner> -c
    <$ORACLE_HOME>/bin/dbstart > /dev/console 2>&1"
    이렇게 하면 /etc/inittab 화일에 dbstart 기능이 추가된다. 이렇게 하면
    시스템이 뜨면서 run-level 2일 경우 오라클이 자동으로 startup 된다.
    b)다음과 같은 방법도 가능하다.
    /etc/mkitab "rcoracle:2:wait:/etc/rc.oracle > /dev/console 2>&1"
    그리고, root 소유의 /etc/rc.oracle 스크립트를 다음과 같이 작성한다.
    su <oracle_owner> <<EOF
    <$ORACLE_HOME>/bin/dbstart
    EOF
    c)/etc/rc 스크립트의 마지막에 다음을 추가한다.
    /bin/su <oracle_owner> - c <$ORACLE_HOME>/bin/dbstart
    AIX 에서 시스템 shutdown 은 /etc/shutdown 에 의한다. 시스템을 내릴 때
    오라클을 shutdown 하려면 별도의 시스템 shutdown 스크립트(root 소유로)를
    다음과 같이 만들어서 /etc/shutdown 을 사용하지 말고 이것을 사용해야 한다.
    #!/bin/sh
    /bin/su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    /etc/shutdown $*
    (5)HP/UX
    /etc/rc : 시스템 startup 화일
    /etc/shutdown : 시스템 shutdown 실행 화일
    /etc/shutdown.d : 시스템 shutdown 디렉토리
    HP/UX 에서는 시스템 startup 시에 /etc/rc 가 실행된다. 따라서 다음 라인을
    /etc/rc 스크립트의 마지막에 추가하면 auto startup 이 가능해진다.
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    시스템의 shutdown 은 /etc/shutdown 화일을 실행하여 수행된다. 이 프로그램은
    /etc/shutdown.d 디렉토리에 들어있는 스크립트를 실행시키는데 다음과 같은
    세 가지 방법 가운데 하나로 auto shutdown 을 세팅할 수 있다.
    a)$ORACLE_HOME/bin/dbshut 화일을 /etc/shutdown.d 디렉토리 아래에 copy
    b)/etc/shutdown.d/dbshut 을 $ORACLE_HOME/bin/dbshut 으로 symbolic link 지정
    c)다음과 같은 스크립트 작성
    #!/bin/sh
    su <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    단,이 스크립트는 root의 소유이고 root에 의해서만 실행 가능해야 한다.
    만약 V6 와 V7 을 동시에 사용하는 경우라면 V7 에서 제공하는 dbshut을
    사용하도록 한다.

    Dear Alexdelarg,
    First launch the "Services" applet from the Windows NT Control Panel. Double-click on the "OracleService<SID>" service and verify that "Startup Type" is set to "Automatic", "Log On As" is set to "System Account", and that the "Allow Service to Interact with Desktop" check box is disabled.
    Then launch REGEDIT and check that the Value String ORA_<SID>AUTOSTART within the key My Computer\HKEYLOCAL_MACHINE\SOFTWARE\ORACLE is set to "TRUE".
    If the above does not rectify your startup problem, try issuing the following command from the Command Prompt:
    <ORACLE_HOME>\bin\oradim -edit -sid <SID> -startmode auto
    where <ORACLE_HOME> is the full path of your Oracle8i Server software and <SID> is the Service Identifier of your database.
    Hope this helps!

  • Oracle 8i Automatic Startup/shutdown on NT

    After installing Oracle 8.1.6 on Win NT/2000 and creating a database a new service is created too (OracleServiceSID). My problem is that this new service (which works like oradim starting srvc,inst) does not startup the db when rebooting the machine. I need always manual startup/shutdown with a script that uses svrmgrl while in Oracle guides it seems that would be enough to start the service. Every parameter in the registry is set according to these guides to permit automatic startup/shutdown but only the service, not the db, starts and stops automatically. Where is my error?
    Thanks
    Alex
    null

    Dear Alexdelarg,
    First launch the "Services" applet from the Windows NT Control Panel. Double-click on the "OracleService<SID>" service and verify that "Startup Type" is set to "Automatic", "Log On As" is set to "System Account", and that the "Allow Service to Interact with Desktop" check box is disabled.
    Then launch REGEDIT and check that the Value String ORA_<SID>AUTOSTART within the key My Computer\HKEYLOCAL_MACHINE\SOFTWARE\ORACLE is set to "TRUE".
    If the above does not rectify your startup problem, try issuing the following command from the Command Prompt:
    <ORACLE_HOME>\bin\oradim -edit -sid <SID> -startmode auto
    where <ORACLE_HOME> is the full path of your Oracle8i Server software and <SID> is the Service Identifier of your database.
    Hope this helps!

  • Automatic startup/shutdown script - 3 Oracle Home

    Hi All,
    We have a server which has 3 Oracle Home - 8i/9i/10g.
    So i am confused about configuring automatic startup/shutdown scripts.
    Can you guys please let me know how to setup automatic startup/shutdown for these multiple Oracle Homes.
    Thanks,
    Kumar.

    Bellow is a HP-UX script that can help. Create three scripts like oracle8, oracle9, oracle10 with correct path values. and than decide the runlevels and create soft links for the scripts you created, for example;
    Under /sbin/rc3.d
    ln -s /sbin/init.d/oracle10 S999oracle10
    Under /sbin/rc1.d and /sbin/rc2.d
    ln -s /sbin/init.d/oracle10 C9oracle10
    AUTOMATIC STARTUP/SHUTDOWN SCRIPT
    $vi /sbin/init.d/oracle10
    #!/sbin/sh
    # NOTE: This script is not configurable! Any changes made to this
    # scipt will be overwritten when you upgrade to the next
    # release of HP-UX.
    # WARNING: Changing this script in any way may lead to a system that
    # is unbootable. Do not modify this script.
    # NOTE:
    # For ORACLE:
    PATH=/usr/sbin:/usr/bin:/sbin
    export PATH
    ORA_HOME="/oracle/app/oracle/product/10.2.0"
    ORA_OWNR="oracle"
    rval=0
    set_return() {
    x=$?
    if [ $x -ne 0 ]; then
    echo "EXIT CODE: $x"
    rval=1
    fi
    case $1 in
    start)
    # Oracle listener and instance startup
    echo -n "Starting Oracle: "
    su - $ORA_OWNR -c "$ORA_HOME/bin/dbstart /oracle/app/oracle/product/10.2.0"
    echo "OK DB started"
    stop)
    # Oracle listener and instance shutdown
    echo -n "Shutdown Oracle: "
    su - $ORA_OWNR -c "$ORA_HOME/bin/dbshut /oracle/app/oracle/product/10.2.0"
    echo "OK DB shutdown"
    reload|restart)
    $0 stop
    $0 start
    echo "usage: $0 {start|stop}"
    esac
    exit $rval

  • Automatic sleep/shutdown does not work.

    I work for Micro Center's Apple Department, and we have 12 Macs on display. To aid with shutting down our store, each computer is set to automatic shutdown or sleep. When the dialog box opens "This Mac will shut down in 60 seconds," the counter does not go down, and the computer stays on indefinitely. This happens with all of our Macs. With 10.5 Leopard, this did not happen. Since upgrading to 10.6, this has ceased to function, including each sequential update.
    My theory is it has something to do with the Guest Account, though this is not likely since we've had it this way before in 10.5 and it worked fine.
    Any thoughts?

    Ha! No answer to your question. I have the same problem. Computer simply doesn't go int sleep mode as set in the energy saving prefs. Seems to be a real bug! Why does Apple not react?

  • Server switches on automatically after shutdown

    We always shutdown our server for some electrical problem. but now We are facing a problem in our server which is automatically switched on after two hours.

    Hi ettene,
    Please first confirm you doesn’t setting some auto Power on option in your server BIOS and if you are using SCCM please confirm the Wake On Lan option has disabled.
    The related KB:
    How to Enable or Disable Wake On LAN for a Site
    https://technet.microsoft.com/en-us/library/bb680723.aspx
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Automatic Startup/shutdown

    Hi All
    Please I am trying to enable this feature, startup automatically with the system startup
    I am using Oracle enterprise linux, the user with it we startup weblogic is root
    it's impossible to add something in .profile_bash of oracle user (oracle user exists)
    either in /etc/rc.local , nothing occured when I add the startup command on the bottom of the file
    Any idea please?
    Thanks

    Hi,
      Follow the below procedure,
    1. Create a startup script like startWebLogicAdmin which would contain the below
           su - wlsadmin -c "<DOMAIN_HOME>/bin/startWebLogic.sh"
          Remember to replace the <DOMAIN_HOME> directory with the actual directory
    2. Now place the script in /etc/init.d/ and make sure to give the full execute permission to this file
    3. Now create a soft link point to the run level of your system
        ln -s /etc/init.d/startWebLogicAdmin /etc/rc2.d/S28startWebLogicAdmin
    Remember S is used for startup and K is used during shutdown
    4. You can then check if the startup service is properly configured using corresponding unix level flavor
    chkconfig --list startWebLogicAdmin
    Regards
    Rosario

  • Oracle Automatic Startup & Shutdown

    My automatic Database startup/Shutdown script won't work while system reboot. I have Oracle 8.1.7/Sun solaris. When I ran the script by hand it works fine both for startup and shutdown but not while system reboot. I am putting the script in the proper run levels rc0.d and rc3.d.
    even /etc/rc0.d/K01oracle and /etc/rc3.d/S90oracle is working fine.
    Could someone please tell me what am i missing.
    Appreciate your help
    -Jay

    Hi,
    Have you settled your issue? I would think the problem was caused by the environment under which the script was run. Normally the rc scripts are run as root and the PATH will not be set to run Oracle executables. So inside the script if you run the startup script as the user who has execute permission to the Oracle executables and whose path is SET in .profile then it should work.

  • Possible to automate db shutdown(8i)

    Env: 8.1.5 on solaris 2.6
    to do: automate db startup/shutdown
    procedure: Follow Oracle Manual for Install;
    Result: Startup worked but shutdown failed.
    Help needed: Yes! appreciated!
    Priority Question? Anybody successful on it?

    Spookie,
    You can update an order or CRM form (attached to order) via the webservices API, you can send any and all the data you need. You'll have to setup a system a middle man server (or use your existing backend) to download the order and match it to the BC order and on a timer or when the data is available from your other system update the order on BC. I've done this with for a customer and Fedex to give real time tracking numbers within 1 min of the order placed.

  • Mac automatically prompts shutdown and shutdown :(

    My mac automatically prompiting to "shutdown, restart, sleep etc." Like i push the power button. However, i did not push the power button and whatever I do.mac will shut down and I lose my work.
    OOOOh....My mac shut down four times when I write this..
    I think this is hardware problem. What can I do ? Go apple store and ask for repair/change?
    Thanks for help.
    2012 late macbook air 11/128g/8g ram   all apps fresh

    i run the apple hardware test. error number is
    Error: 4hdd/11/40000000 SATA (0.0)
    I think i need to go to apple store.

  • Automatic startup/shutdown failed. Running the script manual..works...

    Hi,
    DB: Oracle9i
    Os: solaris 9
    /etc/rc0.d K05oracle -> /etc/init.d/oracledb
    /etc/rc3.d SS85oracle -> /etc/init.d/oracledb
    Oratab: i have put yes.
    Please help to resolve this issue...where can i check the startup log?
    what else i need to check?
    Thanks,
    Siva.

    Thanks for your reply....
    Script:
    #!/bin/sh
    case "$1" in
    'start')
    # Sets ORACLE_HOME to latest version on machine
    # ORACLE_HOME="`cut -d ":" -f 2 /var/opt/oracle/oratab | sort | tail -1`"
    ORACLE_HOME=`grep -v "^#" /var/opt/oracle/oratab|grep -v "^$"|cut -d ":" -f 2 | sort | tail -1`
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME:$ORACLE_HOME/bin
    # If you are running Oracle's Multi-Threaded Server, the SQL*Net
    # listener service must be started before the database is started.
    # If it is not, your dispatcher(s) will not start.
    if [ -f $ORACLE_HOME/bin/dbstart ]
    then
    echo "Starting up Oracle databases."
    su oracle -c "LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH;$ORACLE_HOME/bin/lsnrctl start"
    su oracle -c "LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH;$ORACLE_HOME/bin/dbstart"
    else
    echo "Can't find Oracle startup file."
    fi
    'stop')
    # Sets ORACLE_HOME to latest version on machine
    ORACLE_HOME="`cut -d ":" -f 2 /var/opt/oracle/oratab | sort | tail -1`"
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME:$ORACLE_HOME/bin
    if [ -f $ORACLE_HOME/bin/dbshut ]
    then
    echo "Shutting down Oracle databases."
    su oracle -c "LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH;$ORACLE_HOME/bin/dbshut"
    su oracle -c "LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH;$ORACLE_HOME/bin/lsnrctl stop"
    else
    echo "Can't find Oracle shutdown file."
    fi
    echo "Usage: /etc/init.d/database { start | stop }"
    esac

  • Satellite Pro L40 PSL4BE restarts automatically after shutdown

    Hi,
    I have an issue where my laptop starts up automatically after seemingly going into hibernation and shutting down by closing the lid. (I have it configured so it goes into hibernation when i close the lid.)
    The strange thing is that this only happens when it's hooked up to the power supply. If i close the lid when it's on battery power it goes into hibernation and remains shut down as it should.
    This all started when i changed my power scheme from "Balanced" to "Performance". Setting it back to "Balanced" did not help, nor did setting it to the lowest setting. Also, it used to come back out of hibernation automatically after i opened the lid, this no longer happens either.
    I am unsure of whether this is a software or hardware issue.
    Over the weekend i've reinstalled the laptop using the supplied recovery discs and applied all updates and patches for Vista but the problem remains, so now i am leaning more towards it being a hardware issue even though i have no idea what kind of hardware malfunction could be causing this.
    Does anyone have an idea of what could be causing this behavior?

    Hello,
    Thanks for the replies. I'm afraid i haven't found any solution yet.
    Over the weekend I installed Ubuntu on this laptop and tried to hibernate but it demonstrated the exact same behaviour as under Vista. it shuts down and like 10 seconds after it boots back up. this leads me to believe that the problem is hardware related in some way. it would surprise me that both vista and a linux distro would have the exact same issues. So now i'm back on the Vista i restored using the restore discs.
    I haven't tried installing a windows xp yet though i suspect i'll have the same issues.
    @Sasha
    The thing is that the problem isn't in windows hibernating or not shutting down when the lid closes. It does that part just fine. What it shouldn't do however is restarting by itself whithout my intervention several seconds after it shut down. no matter the setting, that can't be normal behaviour.
    @borge & Jonnie
    Have any of you already had contact with the toshiba helpdesk on this issue? if so, what did they say? i haven't had the time to call them yet.
    I'll update as i find out more.

  • Mac Mini restarts automatically after shutdown

    This has been happening for a few months. (I have to run older Macs for Rosetta.) After the reboot, when I hit shutdown, it shuts down.
    I looked at other forums and no one has an answer. The Mini otherwise runs fine. It's most annoying as I want to shut down and leave the office but have to wait for the reboot and then shut down a second time. Any ideas?

    Try unplugging all USB and Firewire accessories (except for your mouse) from the Mac Mini and see if it will shut down properly.
    If it does, plug one back in at a time and see which one is interfering with the shutdown!
    What apps do you continue to run that need Rosetta?

  • Automate startup/shutdown thru script on windows

    WIndows 2003
    oracle 9.2.0.7
    I am new to oracle on windows.
    Is there way to automated startup/shutdown database thru script on windows?
    I want to schedule this task at perticuler time.
    Thanks

    You have to come up with your own script to shutdown.
    There's a sample here
    [Start / Shut Oracle with a Click (Windows Script) |http://it.toolbox.com/wiki/index.php/Start_/_Shut_Oracle_with_a_Click_(Windows_Script)]
    Edited by: yingkuan on Oct 9, 2008 5:05 PM

Maybe you are looking for

  • There is an error on this page....

    I keep getting this error in various pdf files created from Word. The files are created in a workflow that has several people making changes to the files. We change header and footer information, change logos, make the file print ready (rgb to cmyk,

  • More than one Invoice based on one sales

    Hi, We have following case which is not implemented in B1: for example: A customer of our cusotmer ist placing a sales order. The order has an amount of 10.000 EUR. The commitment between our customer and his customer is, that 40% should have been pa

  • Logical flat file in SAP

    Can anybody help me with documents regarding logical flat file in SAP? I want to create a logical flat file . Moreover I want to load data which is stored in logical flat file path .Lastly if I want to make changes in that flat file .. How should I p

  • Is this a bug in Jaas ?

    Hi I am not sure if this is a bug or expected behaviour in Jaas. I have two implemeted two LoginModules. I called logincontext.login() ( Both the login modules have the control flag as "SUFFICIENT". The login() method of FirstLoginModule is successfu

  • BW BPS vs SEM BPS

    Hi Everyone, can anyone guide me one the diffrence between the BW BPS and SEM BPS . Please do guide me if there is any site /link that provide the above information