How to automate database startup/shutdown in RHEL4

Dear All
I have Oracle 10gR2 database on RHEL4.
If i want to automate database startup/shutdown with OS startup/shutdown,
Then where i need to update about dbstart.sh & dbshut.sh
I have already made entry in /etc/oratab as Y for database SID.
I am using Bourn Shell.
Thanks

You can refer to my post in my Blog
[Automatically StartUp and Shutdown an Oracle Database in Linux OS|http://kamranagayev.wordpress.com/2008/12/22/automatically-startup-and-shutdown-database-in-linux-os/]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Similar Messages

  • Automate BIP Startup/Shutdown with OMS

    Is there any way to automate the startup/shutdown of BI Publisher when the OMS is started/stopped? This would really come in handy instead of manually having to start/stop these components.
    Thanks,
    Leighton

    Current release does not have auto stop/start of BIP when OMS is bounced.

  • 11gR2 database startup/shutdown sequences..

    Hi All,
    I would like to know how can we startup/shutdown the 11gr2 rac/standalone database in production environment,bcoz in 11gr2 the ocr and voting disk
    are resides in ASM.In general we follow some sequence to start/stop the database like below.
    SHutdown DB
    +++++++++++
    1.stop the application
    2.stop the listener
    3.stop the database
    4.stop the asm and cluster services
    Startup
    +++++++++
    1.startt the clusterservices and asm
    2.start the db
    3.start the listener
    4.start the application
    SO in 11gr2 how can we stop/start the database?
    Regards,
    Mugunth

    Correct
    Stop on each node :
    emctl stop dbconsole
    srvctl stop database -d db_name
    srvctl stop asm -n node_name
    srvctl stop nodeapps -n node_name --> in 11.2 stops only ONS and eONS because of some dependencies.
    crsctl stop crs --root
    Or stop csr on all nodes of clusterware:
    crsctl stop cluster -all
    Start : start from bottom to up

  • Automatic Database Startup

    After we used the Net8 Assistant to configure in the Oracle Advance Security option to have data encryption for the data flowing bewteen the client and server connection, we are not unable to start up the database automatically.
    The services are started but we now have to manually go to DB studio to open the database. Where do we have to configure to have the database automatically started up?
    Thank you
    Oo

    We are using Windows 2000. How do you use the oradim to startup the database automatically everytime the PC is reboot?
    What we have done is to create a batch file with the command to start up the database automatically.
    This works okay if we do not reboot the PC. We shut down the database and then execute the batch file to start up the database.
    However, if we reboot the PC, then the batch file with the startup commands will not work unless we delay executing the batch file for about 2-3 minutes for all the OS and the Oracle Services to startup properly.
    How do you use the oradim to do this?
    Thank you
    Oo

  • Problem with automatic database startup (dbora)

    I'm running Linux RHEL5 with 10g v2 database. For some reason the script fails to start the database. But when I logon as user Oracle, I can run dbstart ORCL and the database starts up fine. Below is what I see when the script runs. Not sure why the connection is refused. Thanks in advance for your help.
    Starting dbora: + ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    + ORACLE=oracle
    + PATH=/sbin:/usr/sbin:/bin:/usr/bin:/u01/app/oracle/product/10.2.0/db_1/bin
    ++ hostname
    + HOST=Linux10gVM.norris.intra
    ++ uname
    + PLATFORM=Linux
    + export ORACLE_HOME PATH
    + rsh Linux10gVM.norris.intra -l oracle /etc/rc5.d/S99dbora start ORCL
    Linux10gVM.norris.intra: Connection refused
    + pause ‘Press any key to continue...’
    + read ‘~p’ ‘Press any key to continue...’

    AHA...just as I expected!!!
    My automatic 11g1 start up and shutdown quit working in 3/2009
    after working for months!
    I suspected pam.d
    Here it is : http://blog.fourthirty.org/?cat=45
    #%PAM-1.0
    # For root login to succeed here with pam_securetty, "rsh" must be
    # listed in /etc/securetty.
    auth required pam_nologin.so
    auth required pam_securetty.so
    auth required pam_env.so
    # auth sufficient pam_rhosts.so
    auth sufficient pam_rhosts_auth.so
    account include system-auth
    session optional pam_keyinit.so force revoke
    session include system-auth
    session required pam_loginuid.so
    more www.ask.com search for "dbstart pam.d"
    LMKIII (root) ~ [999]>cd /var/log
    LMKIII (root) /var/log [1000]>cat secure
    Apr 17 18:43:57 LMKIII sshd[2176]: Server listening on 0.0.0.0 port 22.
    Apr 16 18:44:10 LMKIII rshd[2473]: PAM unable to dlopen(/lib/security/pam_rhosts_auth.so): /lib/security/pam_rhosts_auth.so: cannot open shared object file: No such file or directory
    Apr 16 18:44:10 LMKIII rshd[2473]: PAM adding faulty module: /lib/security/pam_rhosts_auth.so
    Apr 16 18:44:11 LMKIII rshd[2473]: pam_rhosts(rsh:auth): denied access to [email protected] as oracle
    Apr 16 18:44:11 LMKIII rshd[2473]: pam_unix(rsh:session): session opened for user oracle by (uid=0)
    Apr 16 18:45:11 LMKIII rshd[2473]: pam_unix(rsh:session): session closed for user oracle
    Apr 16 18:49:07 LMKIII kdm: :0[2881]: pam_unix(kdm:session): session opened for user oracle by (uid=0)
    Apr 16 18:50:41 LMKIII su: pam_unix(su-l:session): session opened for user root by oracle(uid=503)
    Apr 16 18:54:46 LMKIII su: pam_unix(su-l:session): session closed for user root
    Apr 16 18:54:49 LMKIII kdm: :0[2881]: pam_unix(kdm:session): session closed for user oracle
    Apr 16 18:55:01 LMKIII sshd[2176]: Received signal 15; terminating.
    Apr 16 18:56:55 LMKIII sshd[2171]: Server listening on 0.0.0.0 port 22.
    Apr 16 18:57:08 LMKIII rshd[2473]: PAM unable to dlopen(/lib/security/pam_rhosts_auth.so): /lib/security/pam_rhosts_auth.so: cannot open shared object file: No such file or directory
    Apr 16 18:57:08 LMKIII rshd[2473]: PAM adding faulty module: /lib/security/pam_rhosts_auth.so
    Apr 16 18:57:09 LMKIII rshd[2473]: pam_unix(rsh:session): session opened for user oracle by (uid=0)
    Apr 16 18:58:09 LMKIII rshd[2473]: pam_unix(rsh:session): session closed for user oracle
    Apr 16 18:59:26 LMKIII kdm: :0[2880]: pam_unix(kdm:session): session opened for user oracle by (uid=0)
    Apr 16 19:00:31 LMKIII su: pam_unix(su-l:session): session opened for user root by oracle(uid=503)
    Apr 16 19:01:50 LMKIII su: pam_unix(su-l:session): session closed for user root
    Apr 16 19:02:23 LMKIII su: pam_unix(su-l:session): session opened for user root by oracle(uid=503)
    Apr 16 20:48:14 LMKIII sshd[4117]: Address 194.80.134.6 maps to no-reverse-defined.ja.net, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
    Apr 16 20:48:14 LMKIII sshd[4117]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=194.80.134.6 user=root
    Apr 16 20:48:16 LMKIII sshd[4117]: Failed password for root from 194.80.134.6 port 51090 ssh2
    Apr 16 20:48:16 LMKIII sshd[4120]: Connection closed by 194.80.134.6
    Apr 16 21:11:12 LMKIII sshd[4287]: Address 194.80.134.6 maps to no-reverse-defined.ja.net, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
    Apr 16 21:11:12 LMKIII sshd[4287]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=194.80.134.6 user=root
    Apr 16 21:11:14 LMKIII sshd[4287]: Failed password for root from 194.80.134.6 port 53791 ssh2
    Apr 16 21:11:15 LMKIII sshd[4290]: Connection closed by 194.80.134.6
    Apr 16 21:28:54 LMKIII sshd[4383]: Address 194.80.134.6 maps to no-reverse-defined.ja.net, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
    Apr 16 21:28:54 LMKIII sshd[4383]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=194.80.134.6 user=root
    Apr 16 21:28:55 LMKIII sshd[4383]: Failed password for root from 194.80.134.6 port 44904 ssh2
    Apr 16 21:28:56 LMKIII sshd[4386]: Connection closed by 194.80.134.6

  • Reg: Automatic Database Startup

    Sir,
    I would like to get my datbase Open automatically when the Machine where the database resides get restarted.
    Now , What happens is that , I need to manually startup the database in the machine where database resides. I would like this to be automatic (i.e) the database should go up when the machine is restarted.
    Kindly do provide me the solution for the same.
    Regards,
    Santhosh

    Sir,
    I would like to get my datbase Open automatically when the Machine where the database resides get restarted.
    Now , What happens is that , I need to manually startup the database in the machine where database resides. I would like this to be automatic (i.e) the database should go up when the machine is restarted.
    Kindly do provide me the solution for the same.
    Regards,
    Santhosh

  • Automatic. database startup timeout

    I am using single intance database ASM oracle 10g
    on reboot css daemon takes long time to start.
    dbstart scripts waits for 5 minutes to start ASM and oracle DB instance and timeouts. How can I fix the issue.
    ORACLE_HOME/log/<hostname>/client
    -rw-r--r-- 1 root root 191 2007-12-17 17:59 css340.log
    -rw-r--r-- 1 oracle dba 191 2007-12-17 18:06 css341.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:06 clsc13.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:17 clsc14.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:17 clsc15.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:03 css342.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:04 css343.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:04 css344.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:04 css345.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css346.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css347.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css348.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:06 css349.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:06 css350.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:06 css351.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:07 css352.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:07 css353.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:08 css354.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:08 css355.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:08 css356.log
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css341.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-17 18:06:24.493: [ CSSCLNT][3159591216]clsssInitNative: connect failed, rc 9
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat clsc13.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-17 18:06:24.496: [ COMMCRS][3159591216]clsc_connect: (0x61a3f0) no listener at (ADDRESS=(PROTOCOL=IPC)(KEY=CRSD_UI_SOCKET))
    2007-12-17 18:06:24.497: [ COMMCRS][3159591216]clsc_connect: (0x63efe0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=SYSTEM.evm.acceptor.auth))
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css342.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-18 19:03:43.812: [ CSSCLNT][3560413488]clsssInitNative: connect failed, rc 9
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css351.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-18 19:06:59.680: [ CSSCLNT][488974640]clsssInitNative: connect failed, rc 9

    I am using single intance database ASM oracle 10g
    on reboot css daemon takes long time to start.
    dbstart scripts waits for 5 minutes to start ASM and oracle DB instance and timeouts. How can I fix the issue.
    ORACLE_HOME/log/<hostname>/client
    -rw-r--r-- 1 root root 191 2007-12-17 17:59 css340.log
    -rw-r--r-- 1 oracle dba 191 2007-12-17 18:06 css341.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:06 clsc13.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:17 clsc14.log
    -rw-r--r-- 1 oracle dba 381 2007-12-17 18:17 clsc15.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:03 css342.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:04 css343.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:04 css344.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:04 css345.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css346.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css347.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:05 css348.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:06 css349.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:06 css350.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:06 css351.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:07 css352.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:07 css353.log
    -rw-r--r-- 1 oracle dba 190 2007-12-18 19:08 css354.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:08 css355.log
    -rw-r--r-- 1 oracle dba 191 2007-12-18 19:08 css356.log
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css341.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-17 18:06:24.493: [ CSSCLNT][3159591216]clsssInitNative: connect failed, rc 9
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat clsc13.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-17 18:06:24.496: [ COMMCRS][3159591216]clsc_connect: (0x61a3f0) no listener at (ADDRESS=(PROTOCOL=IPC)(KEY=CRSD_UI_SOCKET))
    2007-12-17 18:06:24.497: [ COMMCRS][3159591216]clsc_connect: (0x63efe0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=SYSTEM.evm.acceptor.auth))
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css342.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-18 19:03:43.812: [ CSSCLNT][3560413488]clsssInitNative: connect failed, rc 9
    dlonfurdm1:/opt/oracle/DLNMRS01/product/dbms/10.2.0/log/dlonfurdm1/client>>cat css351.log
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
    2007-12-18 19:06:59.680: [ CSSCLNT][488974640]clsssInitNative: connect failed, rc 9

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

  • How to let database(10.2) auto startup when linux reboot?

    Hi all,
    I installed oracle database 10.2 in linux (x86),and created a database.
    I can startup the database manually. But database can not be started up automatic when linux starts up.
    How to let database startup automatic when OS starts up?
    the details shell scripts for auto startup would be appreciated!
    Thanks

    I don't know LINUX but I know Solaris. In Solaris, you have a startup and shutdown script in $ORACLE_HOME/bin. Setting the field to Y in oratab means you startup/shutdown the instance when executing the scripts. However, it does not mean the startup script will be
    executed upon reboot. In solaris, we place a script in /etc/rc3.d. Then the script will be executed upon reboot. Guess you have similar features in Linux.

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

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

  • How do i make the database open automatically at startup in solaris?

    How do i make the database open automatically at startup in solaris?

    need to write a shell script that is invoked from /etc/init.d/ and soft link the following:
    ln -s /etc/init.d/MYoracle /etc/rc3.d/S99oracle
            ln -s /etc/init.d/MYoracle /etc/rc2.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rc1.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rc0.d/K99oracle
            ln -s /etc/init.d/MYoracle /etc/rcS.d/K99oracleThe shell script should be pretty straight forward.
    Cheers,
    Mich

  • How to startup/shutdown bootcamp automatic

    Hi, is it possible to startup/shutdown bootcamped windows7 automatic/ after schedule?

    It's possible but would require scheduling on both operating systems.  You can write the boot drive to NVRAM and issue a reboot.  That would start windows, what happens there would be controlled by windows.  Inside windows you can automate using the control panel to select the mac boot drive and again, issue a reboot.
    I think it would be more robust to have a small winbox running 24/7 than try to cobble together something that complicated on a single mac.  There must be a reason behind your request.  What is the reason, maybe there's another way to achieve the goal.

  • How to set kernel parameter max-shm-memory automatically at startup

    Hi,
    We have a 11.1.0.7 Database on Solaris Sparc 10 64-bit server. We have settings of max-shm-memory as below;
    -bash-3.00# prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    -bash-3.00# prctl -n project.max-shm-memory -i project system
    project: 0: system
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    Whenever we restart the db the second one is lost;
    bash-3.00$ prctl -n project.max-shm-memory -i project default
    project: 3: default
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged      50.0GB      -   deny                                 -
            system          16.0EB    max   deny                                 -
    bash-3.00$ prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    So our sys admin has to configure them again whenever we restart our db. How could I do this automatically at startup without counfiguring again from command prompt?
    Thanks,
    Hatice

    Ok it is clear now. I have one more question.  When I check system I get below error;
    # prctl -n project.max-shm-memory -i project system
    prctl: system: No controllable process found in task, project, or zone.
    Document says; The reason for the message reported above is because there is no active process(es) belong to the project.
    But it is impossible for us because according to our project settings its for root user;
    bash-3.00$ cat /etc/project
    system:0::root::project.max-shm-memory=(priv,53687091200,deny)
    user.root:1::::
    noproject:2::::
    default:3::oracle::project.max-shm-memory=(priv,53687091200,deny)
    group.staff:10::::
    oracle:100::::project.max-shm-memory=(priv,53687091200,deny)
    Is it because I check with oracle user and I don't have sufficient privileges or there is something wrong with it?
    Thanks.

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

Maybe you are looking for

  • Share my iCal wirelessly?

    I just started using iCal for the first time last night and I'm really liking it so far. I've subscribed to several calendars and put in everything I have going on for the month with plenty of alarms (sounds & emails.) In order to ensure a happy home

  • New new iTunes update

    I just opened iTunes 7 and it said there was ANOTHER update! I was thrilled, so I updated. Now it still says 1.2 and my iPod still wont play my purchased stuff. Any help?

  • PI 2.0 - virtual express "setup" Fail - The passwords do not match:

    Hi all, Since my lab is mostly VM, I was going to upgrade my PI 1.3 to 2.0.  Cisco documentation says the inline upgrade is not supported for the small virtual appliance.  Anyhow, I deployed the new 2.0 Express virtual OVA file, allowing to to use al

  • Time is one hour behind

    I am trying to get the time.value of a specified time the specified time is in format hh:mm;ss When it outputs the result the hour is one hour backward for e.g. import java.sql.*; System.out.println(""+Time.valueOf("03:00:00").getTime()); It prints 7

  • Importing existing dimensions into OWB

    Does any body know how to import an existing Dimension, created in an Oracle database into OWB so that the dimension definition appears under the dimension tab.