Oracle 8.1.6 autimatic startup/shutdown on sparc solaris 8

I tried to setup a script in /etc/init.d that should call dbstart to auto-start my DB when I boot my sparc solaris 8 server. I tried to run it in rc3 and then in rc2 to no avail. I'd like to know how to setup the server to automatically startup oracle on boot and automatically stop it on shutdown... Can anyone help please?

Could you tell us how to do that????
We all met the ORA-01034 problem!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Wile E. Coyote:
Yes, that's no problem
I've installed 8.1.6 on several machines running Solaris 8 without any problem<HR></BLOCKQUOTE>
null

Similar Messages

  • (V7.3 ~ V8.X) ORACLE DB AUTO STARTUP/SHUTDOWN ON SUN SOLARIS 2.6/2.7

    제품 : ORACLE SERVER
    작성날짜 : 2003-06-02
    (V7.3 ~ V8.X) ORACLE DB AUTO STARTUP/SHUTDOWN ON SUN SOLARIS 2.6/2.7
    ====================================================================
    PURPOSE
    이 자료는 O/S startup 시에 Oracle RDBMS 서비스를 자동으로 startup하
    는 방법에 대한 자료이다.
    Explanation
    sun solaris 부팅 시 oracle DB를 auto startup하도록 하는 데 관련된 화일들이다.
    /etc/inittab : o/s의 초기화 과정을 조절하는 화일
    /etc/rc2 : 부팅 run-level 2 에서 사용되는 스크립트
    /etc/rc0 : 부팅 run-level 0 에서 사용되는 스크립트
    /etc/rc2.d/S99dbstart : /etc/init.d/dbstart 에 대한 symbolic link
    /etc/rc0.d/K01dbshut : /etc/init.d/dbshut 에 대한 symbolic link
    /var/opt/oracle/oratab : 시스템에 설치된 오라클 인스턴스에 대한 정보.
    (참고)
    /etc/init.d/dbstart, dbshut 화일은 super user(root)로 생성하시고,
    symbolic link도 super user로 만드시기 바랍니다.
    이 화일들은 super user가 owner가 되도록 하고, super user(root)만이
    실행 가능하도록 해야 합니다.
    1. 먼저 vi /etc/inittab 화일을 열어보십시오.
    ap::sysinit:/sbin/autopush -f /etc/iu.ap
    fs::sysinit:/sbin/rcS >/dev/console 2>&1 </dev/console
    is:3:initdefault:
    p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/console 2>&1
    s0:0:wait:/sbin/rc0 >/dev/console 2>&1 </dev/console
    s1:1:wait:/usr/sbin/shutdown -y -iS -g0 >/dev/console 2>&1 </dev/console
    s2:23:wait:/sbin/rc2 >/dev/console 2>&1 </dev/console
    s3:3:wait:/sbin/rc3 >/dev/console 2>&1 </dev/console
    s5:5:wait:/sbin/rc5 >/dev/console 2>&1 </dev/console
    s6:6:wait:/sbin/rc6 >/dev/console 2>&1 </dev/console
    fw:0:wait:/sbin/uadmin 2 0 >/dev/console 2>&1 </dev/console
    of:5:wait:/sbin/uadmin 2 6 >/dev/console 2>&1 </dev/console
    rb:6:wait:/sbin/uadmin 2 1 >/dev/console 2>&1 </dev/console
    sc:234:respawn:/usr/lib/saf/sac -t 300
    co:234:respawn:/usr/lib/saf/ttymon -g -h -p "`uname -n` console login: " -T
    sun
    -d /dev/console -l console -m ldterm,ttcompat
    s1부터 s6까지 os file들에 대해 위와 같이 device redirection이 연결되어
    있으면 됩니다.
    s2:23:wait:/sbin/rc2 >/dev/console 2>&1 </dev/console
    위와 같이 설정하면 run-level 2일 경우 /sbin/rc2 스크립트가 실행된다.
    /sbin/rc2 는 /etc/rc2.d 디렉토리에 들어있는 스크립트를 실행한다.
    만약 스크립트가 S 로 시작하면 /sbin/rc2 는 이 스크립트에 startup 파라미
    터를 부여하고 여기서 지정된 프로세스를 실행시킨다.
    따라서 /etc/rc2.d/S99dbstart 화일을 사용하여 dbstart를 실행한다.
    shutdown 과정도 거의 비슷하다. /etc/inittab 에 다음과 같은 라인을 보자.
    s0:0:wait:/sbin/rc0 >/dev/console 2>&1 </dev/console
    이것은 /sbin/rc0 를 실행시키는데 /sbin/rc0 는 /etc/rc0.d 디렉토리에
    들어있는 스크립트를 실행시킨다.
    스크립트 이름이 K 로 시작하면 이것은 stop 파라미터를 갖고 실행되어서 이
    스크립트에 지정된 프로세스를 정지시킨다.
    따라서 /etc/rc0.d/K01dbshut 스크립트는 stop 파라미터를 갖고 실행되며
    이 스크립트는 $ORACLE_HOME/bin/dbshut 스크립트를 실행시켜서 오라클을
    shutdown 시킨다.
    2. 그 다음에 vi /etc/rc2 화일을 한번 열어보세요.
    이 스크립트 화일은 run-level 2에서 사용되는 스크립트입니다.
    특별히 수정할 내용은 없으나, 이 화일이 존재하는지 확인해 보십시오.
    PATH=/usr/sbin:/usr/bin
    set `/usr/bin/who -r`
    if [ x$9 = "xS" -o x$9 = "x1" ]
    then
    echo 'The system is coming up. Please wait.'
    BOOT=yes
    3. 그 다음에 vi /etc/rc0 화일을 한번 열어보세요.
    이 스크립트 화일은 run-level 0에서 사용되는 스크립트입니다.
    특별히 수정할 내용은 없으나, 이 화일이 존재하는지 확인해 보십시오.
    PATH=/usr/sbin:/usr/bin
    echo 'The system is coming down. Please wait.'
    # make sure /usr is mounted before proceeding since init scripts
    # and this shell depend on things on /usr file system
    /sbin/mount /usr > /dev/null 2>&1
    # The following segment is for historical purposes.
    # There should be nothing in /etc/shutdown.d.
    if [ -d /etc/shutdown.d ]
    then
    for f in /etc/shutdown.d/*
    if [ -s $f ]
    then
    /sbin/sh ${f}
    fi
    fi
    4. /etc/init.d/dbstart 와 /etc/init.d/dbshut 스크립트를 만들어야 합니다.
    그 내용은 각각 다음과 같이 한 줄로 작성합니다.
    /etc/init.d/dbstart 화일은 다음과 같이 만듭니다.
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbstart
    /etc/init.d/dbshut 화일은 다음과 같이 만듭니다.
    su - <oracle_owner> -c <$ORACLE_HOME>/bin/dbshut
    5. /etc/rc2.d/S99dbstart 화일을 /etc/init.d/dbstart에 대한 link로 생성합니다.
    ln -s /etc/init.d/dbstart /etc/rc2.d/S99dbstart
    6. /etc/rc0.d/K01dbshut 화일을 /etc/init.d/dbshut에 대한 link로 생성합니다.
    ln -s /etc/init.d/dbshut /etc/rc0.d/K01dbshut
    7. /var/opt/oracle/oratab 화일을 엽니다.
    oratab 화일은 일반 텍스트 화일로서 시스템에 설치된 오라클 인스턴스에 대한
    정보를 가지고 있는데 보통 3개의 필드로 이루어져 있으며,
    첫번재 필드는 ORACLE_SID, 두번째 필드는 ORACLE_HOME, 세번째 필드는 Y 또는
    N으로 구성되어 있습니다. 해당 인스턴스를 auto startup 시키려면 세번째
    필드가 반드시 Y로 세팅되어 있어야 합니다.
    아래에 예를 참조하세요.
    ORA805:/oracle4/ora8/app/oracle/product/8.0.5:Y
    ORA815:/oracle4/ora8i/app/oracle/product/8.1.5:Y
    (주)
    만약, <$ORACLE_HOME>/bin/dbstart 수행에 오류가 있으면 기존의 dbstart 화
    일을 다른 path에 rename하고, 아래 내용만 가지고 <$ORACLE_HOME>/bin/ 아래
    에 dbstart 화일을 다음과 같이 만든다.
    svrmgrl <<EOF
    connect internal
    startup
    exit
    EOF
    Example
    none
    Reference Documents
    none

    Hi Frank,
    This is a bug in 9.0.1. It is fixed in 9.2 and
    backported to 9.0.1.2 (rdbms 9.0.1.2 patch). Note that you
    need to specify the sdo_indx_dims=2 in the parameter clause.
    As a workaround in 9.0.1.0 you could do:
    (1) remove the z coordinate (as you mentioned),
    (2) set the srid to null (instead of 8307) both in
    the geometries as well as the index metadata,
    (3) set geodetic=false in the create-index parameters.
    Hope that helps,
    Ravi.

  • STARTUP/SHUTDOWN의 PROCEDURE와 종류

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    STARTUP/SHUTDOWN의 PROCEDURE와 종류
    ===================================
    Purpose
    가장 기본적인 Oracle의 startup/shutdown 각 mode와 그 특징에 대해 알아보자.
    Explanation
    ORACLE을 사용하려면 먼저 데이타베이스를 기동하여야 한다.
    ORACLE의 기동은 startup, 기동 중인 ORACLE을 사용하지 못하도록
    운영을 중지하도록 하는 것은 shutdown command를 이용해 이루어진다.
    여기에서는 startup, shutdown 시의 procedure와 startup, shutdown의
    종류에 대해 설명한다.
    1. STARTUP PROCEDURE
    stratup은 3단계의 procedure로 구성된다.
    1) 인스턴스 start
    ORACLE을 운영하기 위한 background process(dbwr, lgwr, smon, pmon 등)를
    생성하며 또한 init<SID>.ora의 parameter 값들을 읽어 SGA도 allocate한다.
    startup 시 이 procedure까지 수행하기 위하여는 sqldba(v7.2까지) 또는
    svrmgrl(v7.3 이상)에서 startup nomount를 하면 된다.
    2) mount the database
    인스턴스 start 후 데이타베이스를 mount하는 단계로 mount에서는 control
    file을 open한다. 이 단계까지만 start하는 경우에는 특별한 데이타베이스
    유지 보수 작업이 필요시 수행한다. 특별한 데이타베이스 유지 보수 작업이란
    redo log의 add, rename, media recovery의 수행 등의 작업을 의미한다.
    startup 시 mount 단계까지 수행하려면 startup mount를 수행하면 된다.
    1)에서 인스턴스를 start한 후 mount 단계로 넘어가려면 alter database
    mount를 수행하면 된다.
    3) open the database
    데이타베이스의 open은 mount 후 데이타베이스를 사용할 수 있는 환경으로
    만들어 주는 단계로서 모든 online datafile과 online redo log file을 open하고
    사용할 수 있도록 하여 준다. 데이타베이스가 중지된 상태에서 한번에 open까지
    모두 수행하기 위해서는 startup만 하면 된다. 2)에서처럼 데이타베이스를 mount
    후 open 시에는 alter database open을 수행하면 된다. (단, 인스턴스 start에서
    바로 database open을 수행할 수 없다.)
    2. STARTUP의 종류
    startup은 sqldba(v7.2까지) 또는 svrmgrl(v7.3 이상)에서 수행한다.
    1) startup
    이는 일반적인 ORACLE 기동 방법으로 startup이 완료되면 모든 user가
    데이타베이스를 access할 수 있다.
    2) startup restrict
    일반 user의 ORACLE 사용을 제한하기 위하여 startup하는 방법으로
    ORACLE user중 create session+restricted session이라는 system privilege를
    갖고 있는 user만이 데이타베이스를 사용 할 수 있다. 이는 데이타베이스 구조를
    조정하거나 data의 export, import시 등 일반 user의 사용을 제한하는 경우에
    사용한다.
    3) startup force
    shutdown normal 또는 shutdown immediate시 정상적으로 종료되지 않는 경우
    데이타베이스의 인스턴스를 강제로 kill시키고 startup하도록 한다.
    4) startup parallel
    OPS 환경으로 데이타베이스를 운영하는 경우 하나의 데이타베이스를 여러 개의
    node에서 공유한다. 이때 여러 인스턴스에서 데이타베이스를 공유하기 위해서는
    startup parallel로 기동 하여야 한다. 1)의 startup은 exclusive mode로서
    OPS로 데이타베이스 환경이 되어 있더라도 startup만 하면 여러개의 인스턴스가
    하나의 데이타베이스를 공유할 수 없다. 이는 데이타베이스가 exclusive mode로
    기동되었기 때문이다. OPS에서 데이타베이스를 공유하기 위해서는 반드시
    startup parallel로 기동하여야 한다.
    3. SHUTDOWN PROCEDURE
    shutdown은 데이타베이스의 운영을 중단하기 위해 수행하는 것으로 startup
    procedure와는 반대로 작동한다. 즉 먼저 데이타베이스를 close하고 두번째
    데이타베이스를 dismount하며 마지막으로 인스턴스를 shutdown 한다.
    4. SHUTDOWN의 종류
    shutdown도 startup처럼 sqldba(v7.2까지), svrmgrl(v7.3 이상)에서 수행한다.
    1)shutdown
    이는 일반적인 shutdown 방법으로 shutdown이 진행 중에는 새로운 user가
    데이타베이스에 세션을 맺을 수 없으며 또한 기존에 connect되어 있는 user가
    있는지 확인하여 connect된 user가 없다면 데이타베이스를 shutdown하고 user가
    있다면 connect된 user가 disconnect될 때까지 shutdown을 하지 않고 기다린다.
    2) shutdown immediate
    현재 데이타베이스를 사용 중인 user가 있지만 데이타베이스를 shutdown해야
    하는 경우 shutdown immedaite를 수행한다. shutdown immediate를 수행하면
    현재 진행 중인 SQL이 중단되고 commit되지 않은 transaction을 rollback하고
    connect되어 있던 user를 강제로 disconnect시키고 shutdown을 수행하게 된다.
    단, 다량의 data를 update하는 작업을 수행 중 shutdown immediate를 수행하면
    곧바로 database가 shutdown되지 않는다.
    이는 rollback하는 데 많은 시간을 소비하기 때문이다.
    3) shutdown abort
    connect된 user가 long transaction을 수행하고 있지만 급하게 데이타베이스를
    shutdown 하여야 하는 경우 shutdown abort를 하게 된다. shutdown abort를
    수행하면 ORACLE 인스턴스를 바로 shutdown하므로 shutdown immediate와는 달리
    commit되지 않은 transaction들을 rollback하지 않고 데이타베이스를 shutdown
    한다. 그러므로, long transaction이 있더라도 빨리 shutdown 할 수 있다.
    단, shutdown abort는 rollback하지 않고 shutdown하므로 데이타베이스에
    이상 현상을 초래할 가능성을 가지고 있다.

  • 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 Startup/Shutdown with SQLPLUS and ORADIM in Windows...

    I am a newbie to the Windows platform. SQLPLUS will not allow me to issue a STARTUP command. This is what I get when I attempt to SHUTDOWN IMMEDIATE and subsequently issue a STARTUP MOUNT/NOMOUNT or any STARTUP command for that matter. The SHUTDOWN command works successfully but the subsequent startup fails with an ORA-12514: TNS:listener does not currently know of service requested in connect descriptor message.
    D:\>set ORACLE_SID=NMPC00
    D:\>set ORACLE_HOSTNAME=TAX-DEV-ORA-01
    D:\>set ORACLE_HOME=D:\app\oracle\product\11.2.0\dbhome_1
    D:\>sqlplus sys@NMPC00 as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 23 11:41:56 2010
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    SQL>
    When I look at the Windows service, it still reports 'Started' despite the fact that I shutdown the instance. What is the proper protocol for shutting down and starting up an Oracle instance in Windows. Do I have to coordinate these activities with the ORADIM -STARTUP / -SHUTDOWN commands?

    I am also newbie to oracle and running into the similar problem when trying to start oracle database using windows command prompt and getting the below error:
    Command prompt is being run as administrator on windows7 O/S
    C:\ORACLE\product\11.2.0\dbhome_1\BIN>oradim -SHUTDOWN -SID O22BVGI -SHUTTYPE srvc,inst -SHUTMODE nornal
    ORA-01031: insufficient privileges
    The reason behind this to do it is , I need a batch script for stopping and restarting the oracle database instance using a Pfile which will contain the initialization parameters.
    Please can someone help!
    sqlnet.ora is:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    Kind Regards
    Sam
    Edited by: 808116 on Nov 7, 2010 4:21 PM

  • Oracle Startup/Shutdown

    Having trouble with EM in a windows server environment running 10G
    When i startup/shutdown my server do i need to stop the listener, dbconsole and agent?
    Everytime i reboot my TEST server EM stops working. I have checked the windows services start ok - all do with no errors. but i get the listeneer starting sometimes and sometime not. The agent and DB instance connection instances show failed on the http://myserver:1158/em page.
    I have checked tnsnames and listener.ora.
    Is there a process of things to start/stop when rebooting my server?
    Also whe i try to start them manually a page is displayed saying enter logon credential but the credentials i enter .e.g. sys-password123 are not accepted. Does anyone have any idea what the credential i should be inputting here is it oracle-oralce or something?
    Please note i have done loads of reading but can't find a solution to my problem thanks to all who take time to read/reply to what may seem a very basic question

    By default the Oracle services are set to automatically start. When you reboot your server the services start and you should be able to connect. However if you try to connect right after the reboot, most probably this error will show up since the Enterprise Manager requires the database to be already registered against the listener, which may take a while (not more than 60 sec),
    Verify this checklist:
    1. The listener is up and running. LSNRCTL STATUS
    2. The database is registered against the listener. You may issue the command LSNRCTL SERVICES.
    3. You may force the database to be registered against the listener by issuing the ALTER SYSTEM REGISTER; command from a sqlplus prompt.
    One more things you should take care of is the IP assignment method, if you have a dynamic IP address assignment you should configure a loopback adapter and and have the Loopback Adapter's IP address registered at the hosts file along with the hostname. If you fail to do so you may find EM will be requesting you for the logon credentials when you attempt to access the Performance tab or any other administrative task.
    You may read this reference for further Enterprise Manager troubleshooting --> Enterprise Manager DB Control Console.
    ~ Madrid

  • 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

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

  • Automating Weblogic Startup/Shutdown on Linux

    hello and hope you fine
    im using weblogic 10.3 with oracle db 11g on CentoOS 5.5
    everything is working fine
    but my problem is that i want to startup/shutdown weblogic on system start/shutdown
    i defined weblogic as service ( i tried all levels) and it works but the problem is
    when the system is booting it start weblogic but it stops continue system boot!
    i also tries put the start weblogic on the .bash_profile
    the system boot but when im trying to login it stops because the same problem
    (weblogic startup and prevent contitnue the loginin )
    i also tried to add startWeblogic in /etc/rc.d/rc.local
    and the same problem when weblogic start system cant continue booting
    i also tried using nohup
    also the same problem
    so how can i start/shutdown weblogic ?
    and thanks for help
    Edited by: user13113692 on Aug 2, 2010 3:22 AM

    thank you for your replay
    but its the same
    when server is booting
    the weblogic start and goes to the running state
    it stops continue the other services and
    the server boot could not continue
    here is some of my script
    #!/bin/sh
    WEBLOGIC_HOME=/root/Oracle/Middleware/user_projects/domains/mydomain/
    # source function library
    . /etc/rc.d/init.d/functions
    case "$1" in
    start)
    echo "Starting weblogic..."
         cd $WEBLOGIC_HOME
         su root $WEBLOGIC_HOME/bin/startWebLogic.sh &
    stop)
    echo "Stopping weblogic..."
         cd $WEBLOGIC_HOME
         su root $WEBLOGIC_HOME/bin/stopWebLogic.sh &
    i also tried something like this to grape all the output to a log file
    but the problem here is that the weblogic give me a exception about the paths
    case "$1" in
    start)
    echo "Starting weblogic..."
         cd $WEBLOGIC_HOME
         su root $WEBLOGIC_HOME/bin/startWebLogic.sh ALL > ${WEBLOGIC_HOME}/logz/start.log 2>&1 &
    stop)
    echo "Stopping weblogic..."
         cd $WEBLOGIC_HOME
         su root $WEBLOGIC_HOME/bin/stopWebLogic.sh ALL >${WEBLOGIC_HOME}/logz/stops.log 2>&1 &
    i also tried this with the standalone weblogic and its the same
    any help will be appreciated

  • Startup/Shutdown script for OBIEE 11g on Linux

    Hi all,
    as a follow-up to [url http://forums.oracle.com/forums/thread.jspa?messageID=4546010]an earlier thread by some fine gentleman, I have improved the original startup/shutdown script for Linux a bit, making sure that all processes are handled correctly. The script has been tested and works fine on CentOS 5.5 with Oracle BI 11.1.1.3.0 in a clustered configuration. Instructions:
    Manual start/stop:
    > service obiee start
    > service obiee stop
    > service obiee status
    Automatic start/stop during boot sequence:
    > chkconfig --add obiee
    > chkconfig obiee on
    Note that in order for the procedure to go through smoothly, you need to provide the admin credentials (username/password, defaulting to weblogic/weblogic) in three different places:
    1. In configuration file <FMW_HOME>/user_projects/domains/<domain name>/servers/AdminServer/security/boot.properties for the administration server;
    2. In script <FMW_HOME>/user_projects/domains/<domain name>/bin/startManagedWebLogic.sh (variables WLS_USER and WLS_PW) for the managed server;
    3. In the startup script itself (variables BIEE_USER and BIEE_PASSWD) for shutting down the managed server.
    Complete logs are available in /var/log/obiee-start (-stop).log files.
    Please comment as necessary,
    Chris
    #!/bin/bash
    # File:    /etc/init.d/obiee
    # Purpose: Start and stop Oracle Business Intelligence 11g components.
    # chkconfig: 2345 99 10
    # description: Manage OBIEE service.
    # These values must be adapted to your environment.
    ORACLE_OWNR=oracle                  # Local Unix user running OBIEE
    ORACLE_FMW=/home/oracle/biee        # Deployment root directory
    BIEE_USER=<username>                # BIEE administrator name
    BIEE_PASSWD=<password>              # BIEE administrator password              
    BIEE_DOMAIN=<domain name>           # Domain name
    BIEE_INSTANCE=instance1             # Instance name
    BIEE_SERVER=bi_server1              # Server name
    BIEE_MANAGER_URL=<hostname>:7001    # Admin server URL (hostname:port)   
    # These should require no change.
    WL_PATH=$ORACLE_FMW/wlserver_10.3/server/bin
    BIEE_PATH=$ORACLE_FMW/user_projects/domains/$BIEE_DOMAIN/bin
    ORACLE_INSTANCE=$ORACLE_FMW/instances/$BIEE_INSTANCE
    export ORACLE_INSTANCE
    START_LOG=/var/log/obiee-start.log
    STOP_LOG=/var/log/obiee-stop.log
    SUBSYS=obiee
    start() {
        echo "********************************************************************************"
        echo "Starting Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startWebLogic.sh" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting Node Manager on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$WL_PATH/startNodeManager.sh" &
        wait_for "socket listener started on port"
        echo "********************************************************************************"
        echo "Starting Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/startManagedWebLogic.sh $BIEE_SERVER http://$BIEE_MANAGER_URL" &
        wait_for "Server started in RUNNING mode"
        echo "********************************************************************************"
        echo "Starting BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl startall"
        echo "********************************************************************************"
        echo "OBIEE start sequence completed on $(date)"
        echo "********************************************************************************"
    stop() {
        echo "********************************************************************************"
        echo "Stopping BI components on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl stopall"
        echo "********************************************************************************"
        echo "Stopping Managed Server $BIEE_SERVER on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopManagedWebLogic.sh $BIEE_SERVER t3://$BIEE_MANAGER_URL $BIEE_USER $BIEE_PASSWD"
        echo "********************************************************************************"
        echo "Stopping Node Manager on $(date)"
        echo "********************************************************************************"
        pkill -TERM -u $ORACLE_OWNR -f "weblogic\\.NodeManager"
        echo "********************************************************************************"
        echo "Stopping Admin Server on $(date)"
        echo "********************************************************************************"
        su $ORACLE_OWNR -c "$BIEE_PATH/stopWebLogic.sh"
        echo "********************************************************************************"
        echo "OBIEE stop sequence completed on $(date)"
        echo "********************************************************************************"
    wait_for() {
        res=0
        while [[ ! $res -gt 0 ]]
        do
            res=$(tail -5 "$START_LOG" | fgrep -c "$1")
            sleep 5
        done
    case "$1" in
        start)
            echo "********************************************************************************"
            echo "Starting Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $START_LOG"
            echo "********************************************************************************"
            start &> $START_LOG &
            touch /var/lock/subsys/$SUBSYS
        stop)
            echo "********************************************************************************"
            echo "Stopping Oracle Business Intelligence on $(date)"
            echo "Logs are sent to $STOP_LOG"
            echo "********************************************************************************"
            stop &> $STOP_LOG
            rm -f /var/lock/subsys/$SUBSYS
        status)
            echo "********************************************************************************"
            echo "Oracle BIEE components status...."
            echo "********************************************************************************"
            su $ORACLE_OWNR -c "$ORACLE_INSTANCE/bin/opmnctl status"
        restart)
            $0 stop
            $0 start
            echo "Usage: $(basename $0) start|stop|restart|status"
            exit 1
    esac
    exit 0

    You can use WLST to start/stop BI Services and it works on both Linux and Windows.
    Following link has the sample -
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10541/admin_api.htm#CDEFAHDD

  • Grepping for startup/shutdown in the logs

    Hello,
    I've been asked to provide a script that parses the oracle logs and can determine if there were some errors. So far I can find the numerical errors in my script (like ORA-00600) but I also need to be able to tell when a db has been shut down, started or restarted. What can I look for in the logs that would determine that?
    Thanks
    Tim

    EdStevens wrote:
    918944 wrote:
    sb92075 wrote:
    918944 wrote:
    Hello,
    I've been asked to provide a script that parses the oracle logs and can determine if there were some errors. So far I can find the numerical errors in my script (like ORA-00600) but I also need to be able to tell when a db has been shut down, started or restarted. What can I look for in the logs that would determine that?
    Realize that a shutdown may not precede a startup; since the cleaning lady could just unplug the box
    Also you can treat the alert_SID.log file as EXTERNAL TABLE; eliminating the need for grep & similar OS utilities by doing everything in SQL or PL/SQL.Very interesting idea. However we're trying to be alerted to such events using nagios without logging into the box. The idea it if a startup/shutdown occors, or a numerical event such as an ORA-00600 occurs, nagios will detect that via a perl script and shoot off an email to the team and send a page to a pager. So I still need to know what in the logs would indicate a startup or shutdown. We are using oracle 10g by the way.
    That shouldn't be hard at all to do. All I would need to know is what in the logs indicates a startup or a shutdown. I've tried grepping for the terms in the ${SID}_alert.log(s) but found nothing as of yet.
    ThanksWell, as said earlier, a 'shutdown' could be a hard shutdown (the cleaning lady plugged a vacuum cleaner into the ups and blew the circuit, killing the server .... yes, I've seen it happen) so the db does not get an opportunity to log it.
    But for the more common ones, what are you currently grepping for? Looking at one of my alert logs I see likely strings "Shutting down instance" and "Starting ORACLE instance".Thanks found it! Fixed grep.. we're now monitoring for this. Appreciate the advice!

  • How to find history of instance startups/shutdowns?

    Hi,
    how can i find history of instance startups/shutdowns ?
    Thanks in advance.

    hi,
    You can find instance startup/shutdown history in alert log file.
    Follow the below steps.
    1. SQL> show parametr back;
    background_dump_dest string /u02/oracle/admin/test_db/bdump
    This is the location of my bdump folder.
    2. Got to the location.
    3. ls alert*
    alert_test_db.log
    Regards,
    Ranjan

  • 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/]

  • 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