Auto startup script in 10g rel2

According to the Grid Control release 2 documentation, the out-of-the-box installation is supposed to configure and startup the database, OMS, listener and agent automatically when the server reboots. This is not the case when I reboot my server (RHEL 3 and 4). None of the processes were started automatically. I do not see any entries in rc*.d either. Where are these scripts located?
Installation type - Enterprise Manager Using new database
Anyone experience similar issue? Are there any further configurations that I may have missed?
thanks.

Mine are in /etc/rc.d/init.d/gcstartup.
Basically a bunch of shell calls like:
if [ -f  /opt/app/oracle/product/agent10g/install/unix/scripts/agentstup ]; the
n
. /opt/app/oracle/product/agent10g/install/unix/scripts/agentstup
fi
if [ -f  /opt/app/oracle/product/agent10g/install/unix/scripts/agentstup ]; the
n
. /opt/app/oracle/product/agent10g/install/unix/scripts/agentstup

Similar Messages

  • Database auto-startup script

    Hi Team,
    How can I check whether the auto startup script is scheduled for the database after the server reboot
    OS version:Linux server1 2.6.18-194.11.1.el5 #1 SMP Tue Jul 24 05:45:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    DB version :11.2.0.2
    /etc/oratab entry is set to Y.
    But the database did not startup after the server reboot. How to verify that the auto startup script is available?

    http://www.oracle-base.com/articles/linux/automating-database-startup-and-shutdown-on-linux.php
    HTH
    Anand

  • Auto-startup EM for Solaris 10

    Hi all,
    I'd like to put the Enterprise Manager to auto-startup when rebooting the server.
    The database version are 10g and 11g, and the OS is Solaris 10.
    Basically the manual command is: emctl start dbconsole
    I'd like to setup automatically to execute the same command.
    Thanks in advance everybody.
    Alex

    Hi,
    I checked the Note 222813.1 you mentioned, but it says about to restart the database, also it's already done this setup, but it's not included the Enterprise Manager.
    Furthermore, I checked the oratab and its fine.
    Any other clue to proceed on that?
    Thanks.
    Alex

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

  • **SOLVED** TrueCrypt - Why would you add it to startup script?

    Hi Guys,
    This might be a stupid question, but...
    I read the wiki entry on TrueCrypt (http://wiki.archlinux.org/index.php/TrueCrypt). I'm assuming the use-case for TrueCrypt would be if someone management to get hold of the hard-disk, the contents would be encrypted, so they stil couldn't be read?
    However the tutorial mentions you can add the mount procedure to your startup scripts so it will auto-mount if the machine is rebooted.
    My question is; if someone has your hard disk (say they plugged it in as a second drive on their laptop, which they did have root access to); wouldn't they be able to read the startup script file and then they would know the password to decrypt the fs?
    Am I missing something..? :S
    --Solved--
    Last edited by tommed (2010-06-04 09:13:57)

    that is true, but if your password is actually a keyfile, and that keyfile is stored on a usb, whenever you boot up with the usb connected, you can automout your encrypted volume.
    this is also a matter of comfort vs security, since if you believe your machine can be compromised, you can remove it from begin auto mounted or leave it when you know your system is currently safe.

  • DB startup & shutdown in 10g DB on Linux

    Hi all,
    I have installed Oracle 19g DB. Now i don't know how to start that database when linux boots up. when i switch to oracle user by [ su oracle ] and start sqlplus, it starts but asks for a username / pwd and since db is not started so it doesn't let me login and says Oracle Not Available ! I have heard that after Oracle 9i Oracle has stopped Server Manager and all admin is done through sql*plus. Now if i can't start sqlplus then how can i start databse ? tell me if i can start the DB at system bootup or some other way through which i can start database ! I need the urgently ! thanx in advance !
    Ahmed.

    sorry, links are:
    # cd /etc/init.d/rc5.d
    # ln -sf ../dbora S97oracle
    # ln -sf ../dbora K03oracle
    # ln -sf ../misc_stuff S03misc_stuff
    The contents (copy-paste from the script). Put this someway in the 'dbora' file, values are default for 10g:
    #!/bin/sh
    # Original scripts from http://otn.oracle.com/
    # 10-08-2001 MiKu Oracle8i (8.1.6r2) startup script
    # 15-11-2002 MiKu Oracle9i (v9.1) startup sctip
    # 14-02-2004 MiKu Oracle10g (v10.1.0.2) startup script
    # Set ORA_HOME to the equivalent off $ORACLE_HOME
    # (from which you wish to execute dbstart and dbshut)
    # Set ORA_OWNER to the user id of the owner of the
    # Oracle database in ORA_HOME
    ORA_HOME=/u01/app/oracle/product/10.1.0/db_1
    ORA_OWNER=oracle
    ORA_GROUP=oinstall
    ORA_LOG=/home/oracle/log/startup.log
    ORA_LASTLOG=/home/oracle/log/last_startup.log
    case "$1" in
    'start')
    :>$ORA_LOG
    echo "Starting Oracle"
    echo "Starting Oracle `date +%d-%m-%Y_%H:%M:%S`" >> $ORA_LOG
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start LISTENER" >> $ORA_LOG 2>&1
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart" >> $ORA_LOG 2>&1
    chown $ORA_OWNER:$ORA_GROUP $ORA_LOG
    'stop')
    echo "Shutting down Oracle"
    echo "Shutting down Oracle `date +%d-%m-%Y_%H:%M:%S`" >> $ORA_LOG
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop LISTENER" >> $ORA_LOG 2>&1
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut" >> $ORA_LOG 2>&1
    rm -f $ORA_LASTLOG >/dev/null 2>&1
    cp $ORA_LOG $ORA_LASTLOG
    chown $ORA_OWNER:$ORA_GROUP $ORA_LASTLOG
    esac
    # end of script
    The contents for misc_stuff [cont]

  • Wicd works, network startup scripts don't

    Title tells the story.  Using wicd-1.7 I can connect to wireless networks and the connection remains stable.  Using various combinations of rc.conf settings, netcfg, /etc/conf.d/wireless getting a connection is impossible at boot time and problematic after boot.  The problem occurs on every system I've tested arch on.  Wicd works, network startup scripts don't or only occasionally if some magic spell is properly cast.  I'm positive I've configured the settings in rc.conf correctly as I've been able to connect using those by some combination of rmmod WLAN_MODULE, modprobe WLAN_MODULE, /etc/rc.d/network restart or netcfg ESSID.  The requirement is that I am willing to go through the sequence multiple times. 
    I have just started testing arch and don't know if the network scripts worked before, but I assume they must have.  Were there changes in the network startup scripts recently?  I'm seeing many topics in the forums related to wireless problems.

    When I say that netcfg ESSID works after startup, I mean that it  works sometimes and that net-auto-wireless failed along with all other options that had the wireless start during boot.  I'm not sure which version I tried but this was a new install in December or January and I was ready to remove arch by the end of February.  A new version of wicd was released with some bug fixes that kept arch on the systems.  Had that failed this laptop would likely have a BSD on it.  Probably OpenBSD as I haven't tested that yet.
    My current settings are configured for wicd and not causing any significant issues, other than having to reload the wireless driver when resuming from suspend.

  • AIX Startup Scripts

    Dear All
    Can I have a IBM AIX DB Startup Scripts ?
    Regards
    Lakmal

    put
    Orastart:2:wait:/usr/local/bin/changedbstatus_ora start all FORCE> /dev/console 2>&1
    at the end of /etc/inittab
    and
    /usr/local/bin/changedbstatus_ora stop all FORCE
    in /etc/rc.shutdown
    where changedbstatus is similar to the following
    [haiti]/db_masters $ cat changedbstatus_ora
    #!/bin/sh
    # usage: changedbstatus_ora start|stop
    # This script is used to start or stop ORACLE
    # $1 = Start, Stop, or reset_logs
    # $2 = SID to start or stop (can be all)
    # $3 = FORCE Force a shutdown or startup
    # if $2 is not specified it defaults to all. this allows autostart/stop during
    # system startup/shutdown
    # Written by Graham Myers, Coda plc, (c) 2001
    # fn_determine_version
    # returns VERSION (7.3.4, 8.1.7, 9.2.0 etc)
    fn_determine_version() {
    set +x
    if [ -f ${ORACLE_HOME}/bin/sqldba ]
    then
    VERSION=`sqldba command=exit | \
    awk '/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ; print V[1]}'`
    elif [ -f ${ORACLE_HOME}/bin/svrmgrl ]
    then
    VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk '
    /PL\/SQL (Release|Version)/ { print substr($3,1,5); exit }
    /Oracle7 Server (Release|Version)/ { print substr($4,1,5); exit }
    /Oracle8i Enterprise Edition (Release|Version)/ { print substr($5,1,5); exit }
    /Oracle8i (Release|Version)/ { print substr($3,1,5); exit }'`
    else
    VERSION=`$ORACLE_HOME/bin/sqlplus -? | awk '/SQL\*Plus: Release/ {print substr($3,1,5); exit }'`
    fi
    VERSION_MAJOR=`echo ${VERSION} | cut -d. -f1`
    # fn_determine_os - determine whioh operating system we're using, returns:
    # BITS - no of processor bits 32 or 64
    # ORATAB - set to correct path of oratab file
    fn_determine_os() {
    set +x
    ORATAB=/etc/oratab
    case `uname` in
    SunOS)
    BITS=`isainfo -kv | cut -d"-" -f 1`
    ORATAB=/var/opt/oracle/oratab;;
    HP-UX)
    BITS=`/bin/getconf KERNEL_BITS`;;
    AIX)
    BITS=`/usr/sbin/bootinfo -K`;;
    OSF1)
    BITS=64;;
    esac
    # fn_check_status - check instance status
    # Returns STATUS (1=running, 0=not running)
    fn_check_status() {
    set +x
    #Check to see if instance shutdown cleanly (or is still running)
    STATUS=0
    if [ ${VERSION_MAJOR} -ge 8 ]
    then
    [ "`ps -ef | egrep pmon_${ORACLE_SID} | grep -v grep`" != "" ] && STATUS=1
    else
    [ -f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.dbf -o \
    -f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.ora ] && STATUS=1
    fi
    # fn_cmd_file - Create a UNIX command script
    # inputs $1 command - begin create a new command file
    # begin_agent start an angent comamnd file
    # command actual comamnds to place in command file
    # start_sql run up the relevent SQL processor
    # stop_sql exit out of SQL processor
    # end finish off command file
    fn_cmd_file() {
    set +x
    case $1 in
    begin | begin_agent)
    CMD_FILE=/tmp/changedbstatus.tmp$$
    RDBMS_HOME=`grep oracle /etc/passwd | awk -F: '{print $6}'`
    # Make sure the correct verion of Oracle is defined at login
    if [ "$1" = "begin" ]
    then
    echo "Oracle_${VERSION}(${ORACLE_SID})" > ${RDBMS_HOME}/.rdbms_defaults
    else
    echo "Oracle_10.1.0(agent)" > ${RDBMS_HOME}/.rdbms_defaults
    fi
    echo "unset TWO_TASK" >> ${CMD_FILE};;
    start_sql)
    case "${VERSION}" in
    "7") SQL_COMMAND="sqldba";;
    "7.3.4"|"8.0.5") SQL_COMMAND="svrmgrl";;
    *) SQL_COMMAND="sqlplus /nolog";;
    esac
    echo "${SQL_COMMAND}<<EOF" >> ${CMD_FILE}
    echo "connect / as sysdba" >> ${CMD_FILE};;
    command)
    shift
    echo "$*" >> ${CMD_FILE};;
    end_sql)
    echo "EOF" >> ${CMD_FILE};;
    end)
    chmod 755 ${CMD_FILE};;
    esac
    # fn_execute_cmd_file
    # PLEASE NOTE the strange way of eching the session to the display rather than
    # using tee. For some reason agentctl does not "let go" of the session and
    # tee hangs. This is a documented "non-bug" for tnslsnr on 8i but nobody has
    # has reported it for agentctl for 9i
    # $1 should be a message to write to the screen prior to execution so the user
    # has an indication something is happening
    fn_execute_cmd_file() {
    set +x
    echo $1
    su - oracle -c ${CMD_FILE} > ${CMD_FILE}.log 2>&1
    RETURN_STATUS=$?
    cat ${CMD_FILE}.log
    # Scrap the defaults file after the command script has run
    rm ${RDBMS_HOME}/.rdbms_defaults ${CMD_FILE}
    # fn_reset_logs - rename existing log, create a new one, and purge old ones
    # if $1 is non blank then it is assumed to be embedded in another command
    # and so will not start a new command file (or execute it)
    fn_reset_logs() {
    set +x
    if [ "$1" = "" ]
    then
    fn_cmd_file begin
    fn_cmd_file command set +x
    fi
    if [ ${VERSION_MAJOR} -ge 9 ]
    then
    fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk -F\"'\" '{print \$2}'\`"
    else
    fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk '{print \$3}'\`"
    fi
    fn_cmd_file command "cd \${dmp_dest}"
    fn_cmd_file command "dmp=alert_\${ORACLE_SID}.log"
    fn_cmd_file command "new_dmp=\${dmp}.\`date +%y%m%d\`"
    fn_cmd_file command "if [ -f \${new_dmp}.Z ]"
    fn_cmd_file command "then"
    fn_cmd_file command " zcat \${dmp} >> \${new_dmp}"
    fn_cmd_file command " rm \${dmp} \${new_dmp}.Z"
    fn_cmd_file command "else"
    fn_cmd_file command " mv \${dmp} \${new_dmp}"
    fn_cmd_file command "fi"
    fn_cmd_file command "compress \${new_dmp}"
    fn_cmd_file command "find ./ -name "\${dmp}.*" -mtime +30 -print -exec rm {} \\\+"
    fn_cmd_file command "find ./ -name "/tmp/changdbstatus*" -mtime +2 -print -exec rm {} \\\+"
    if [ "$1" = "" ]
    then
    fn_cmd_file end
    fn_execute_cmd_file "reseting log files..."
    fi
    # fn_start_agent - Start the 10g intelligent agent
    # This is only done once and only if a 64-bit server
    fn_start_agent() {
    set +x
    fn_cmd_file begin_agent
    fn_cmd_file command emctl start agent
    fn_cmd_file end
    fn_execute_cmd_file "Starting Intelligent Agent..."
    # fn_stop_agent - Stop the 9i intelligent agent
    # This is only done once and only if 64-bit server
    fn_stop_agent() {
    set +x
    fn_cmd_file begin_agent
    fn_cmd_file command emctl stop agent
    fn_cmd_file end
    fn_execute_cmd_file "Stopping Intelligent Agent..."
    # fn_start_database - Start database
    fn_start_database() {
    set +x
    fn_cmd_file begin
    fn_cmd_file command set +x
    fn_reset_logs include
    fn_determine_listener
    [ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" = "" ] && fn_cmd_file command lsnrctl start ${LISTENER_NAME}
    fn_cmd_file start_sql
    fn_cmd_file command startup
    fn_cmd_file end_sql
    #We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so don't start them
    # if [ ${VERSION_MAJOR} -lt 9 ]
    # then
    # # start the intelligent agent and data gatherer
    # fn_cmd_file command vppcntl -start
    # fn_cmd_file command lsnrctl dbsnmp_start
    # fi
    fn_cmd_file end
    fn_execute_cmd_file "Starting instance ${ORACLE_SID}..."
    # fn_stop_database - Stop database $1 passed as abort if required
    fn_stop_database() {
    set +x
    fn_cmd_file begin
    if [ "${ALL_DATABASES}" = "Y" ]
    then
    #We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so they haven't been started
    # if [ ${VERSION_MAJOR} -lt 9 ]
    # then
    # # stop the data gatherer and agent
    # fn_cmd_file command vppcntl -stop
    # fn_cmd_file command lsnrctl dbsnmp_stop
    # fi
    fn_determine_listener
    [ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" != "" ] && fn_cmd_file command lsnrctl stop ${LISTENER_NAME}
    fi
    fn_cmd_file start_sql
    fn_cmd_file command shutdown $1
    fn_cmd_file end_sql
    fn_cmd_file end
    fn_execute_cmd_file "Stopping instance ${ORACLE_SID}..."
    # fn_determine_listener - work out listener name
    # For 8i it will be listener_817
    # For 9i it will be listener_<hostname> as we use MTS
    # on 9i and only need the listener for OEM.
    fn_determine_listener() {
    set +x
    LISTENER_NAME=`grep "SID_LIST_" ${TNS_ADMIN:-$ORACLE_HOME/network/admin}/listener.ora | \
    cut -d "_" -f 3- | cut -d "=" -f 1`
    (trap 'exit' 1 2 3
    set +x
    fn_determine_os
    ORIGINAL_ORACLE_HOME=${ORACLE_HOME}
    ORIGINAL_ORACLE_PATH=${ORACLE_PATH}
    ORIGINAL_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
    ORIGINAL_PATH=${PATH}
    if [ "$3" = "FORCE" ]
    then
    FORCE=Y
    else
    FORCE=N
    fi
    if [ "$2" = "all" -o "$2" = "" ]
    then
    FILTER="tee /dev/null"
    ALL_DATABASES=Y
    #if $2 is null then we are in system startup/shutdown - so force db start/stop
    # this will get around any rogue files maybe due to a previous crash
    [ "$2" = "" ] && FORCE=Y
    #if we are starting all databases then assume we are starting everthing fresh
    # so start the intelligent agent
    if [ \( "$1" = "start" -o "$1" = "START" \) -a "${BITS}" = "64" ]
    then
    fn_start_agent
    fi
    else
    FILTER="grep ^$2:" #Only apply filter if not all
    ALL_DATABASES=N
    fi
    grep -v "^#" ${ORATAB} | ${FILTER} | awk -F: '{print $1,$2,$3}' | \
    while read ORATAB_SID ORATAB_HOME ORATAB_START
    do
    ORACLE_SID=${ORATAB_SID} ;export ORACLE_SID
    ORACLE_HOME=${ORATAB_HOME} ;export ORACLE_HOME
    PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc ;export PATH
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib ;export LD_LIBRARY_PATH
    fn_determine_version #Work out which version of Oracle is required
    if [ ${VERSION_MAJOR} -ge 9 ]
    then
    PFILE=${ORACLE_HOME}/dbs/spfile${ORACLE_SID}.ora
    else
    PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora
    fi
    if [ -f ${PFILE} ]
    then
    fn_check_status #See if instance is already running
    case $1 in
    start | START )
    if [ ${STATUS} -eq 1 ]
    then
    if [ "${FORCE}" = "Y" ]
    then
    echo Instance ${ORACLE_SID} already running - forcing shutdown
    fn_stop_database abort
    else
    echo Instance ${ORACLE_SID} already running
    continue
    fi
    fi
    if [ "${ALL_DATABASES}" = "Y" -o \( "${ORATAB_START}" = "Y" -a "${ALL_DATABASES}" = "N" \) ]
    then
    fn_start_database
    if [ ${RETURN_STATUS} -eq 0 ]
    then
    echo "Instance ${ORACLE_SID} started."
    else
    echo "Instance ${ORACLE_SID} NOT started."
    fi
    else
    echo "Instance ${ORACLE_SID} NOT started."
    fi;;
    stop | STOP)
    if [ ${STATUS} -eq 0 ]
    then
    if [ "${FORCE}" = "Y" ]
    then
    echo Instance ${ORACLE_SID} already shutdown - forcing shutdown
    fn_stop_database abort
    else
    echo Instance ${ORACLE_SID} already shutdown
    continue
    fi
    else
    fn_stop_database IMMEDIATE
    if [ ${RETURN_STATUS} -eq 0 ]
    then
    echo "Instance ${ORACLE_SID} shutdown."
    else
    echo "Instance ${ORACLE_SID} NOT shutdown."
    fi
    fi;;
    reset_logs)
    fn_reset_logs;;
    esac
    else
    echo ""
    echo "Cant find init file for instance ${ORACLE_SID}."
    fi
    done
    #if we are shutting down eveything then close down the agents too
    if [ "${ALL_DATABASES}" = "Y" -a \( "$1" = "stop" -o "$1" = "STOP" \) -a ${BITS} = 64 ]
    then
    fn_stop_agent
    fi
    ORACLE_HOME=${ORIGINAL_ORACLE_HOME};export ORACLE_HOME
    ORACLE_SID=${ORIGINAL_ORACLE_PATH};export ORACLE_SID
    LD_LIBRARY_PATH=${ORIGINAL_LD_LIBRARY_PATH};export LD_LIBRARY_PATH
    PATH=${ORIGINAL_PATH};export PATH
    for VARIABLE in FILTER ORATAB_HOME ORATAB_SID ORATAB_START STATUS ORATAB \
    PFILE SQL_COMMAND VERSION RETURN_STATUS RDBMS_HOME \
    LISTENER_NAME FORCE ALL_DATABASES VERSION_MAJOR \
    BITS LISTENER
    do
    unset ${VARIABLE}
    done
    unset VARIABLE) 2>&1 | tee /tmp/changedbstatus_ora.log
    regards
    Graham

  • Linux Startup script for Forms Services 11g with Weblogic

    Hi,
    Does anybody know where I can find info about the startup script process for Forms Service 11g under linux? I can't find it googling it... I think I have to startup weblogic first... isnt it ? or opmnctl works alone ?
    In 10g we just need to set env vars and then "opmnctl startall" and if we need enterprise manager "emctl start iasconsole" ... what about on 11g?
    Regards
    Ricardo

    You can start directly the WLS_FORMS without starting the Admin and Node manager ..
    I think if you go through this link , you will get more information ..
    Re: Forms 11g - Installation steps for a developer machine

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

  • GPO with a startup script is not working.

    I have a GPO that I have added a ".bat" script to the "Computer Configuration\Windows Settings\scripts\startup/shutdown" section. The batch file is located in the netlogon folder. This script was part of another Old GPO
    that I want to consolidate into this new GPO. So I am taking the exact settings from the old GPO and  applying it to the new GPO.
    The script does not run at startup and when I go into Group Policy Management, highlight the GPO then on the right pane click the settings tab it doesn't display the startup script as being set. It's just not there. If I select edit and go to the
    "Computer Configuration\Windows Settings\scripts\startup/shutdown\startup" section the .bat script is present though.
    Also if I do a gpresult it also shows that it isn't running the script but all other settings in the GPO are being applied.
    This GPO has the User Config. side disabled
    Why isn't the GPO applying the script or even acknowledging that it is present in the settings tab?

    Hi,
    I could not see any report in the above link. I would like to know that did you follow the below path:
    http://technet.microsoft.com/en-us/magazine/dd630947.aspx
    In addition, logon script could only be applied to users. If want to apply to computers, we should use startup script.
    Regards,
    Yan Li
    If you have any feedback on our support, please click
    here
    Cataleya Li
    TechNet Community Support

  • Dont work startup script after update windows7 of wsus

    hi
    i have a domain controller 2008
    my clients is windows7 ultimate
    i have a file .exe and  i create a policy and this file .exe in start up script
    this policy is correct
    but when update clients. this policy not work .and in task manager, this file .exe  with username system show
    what happend
    please help me

    hi
    i test a way,
    i install a windows 7
    then in gpedit.msc, in startup script, add this file, when restart windows , this policy ok
    now ,i update this windows7, and about get 160 update of microsoft, now when restart windows, this policy not work and in task manager, this file .exe  with username system show
    this error not happend to my domain
    please help me

  • How to specify the webLogic server startup script to use different config.xml  file ??

    Hi,
    I have 2 weblogic startup scripts (startWebLogic.sh and
    startWebLogic_recovery.sh) for the same domain.
    startWebLogic.sh uses config.xml file.
    I would like to use config_recovery.xml as the configuration file for startWebLogic_recovery.sh
    How would I do this ?
    I am using WebLogic Server 6.1 on SunOS 5.8 / HP-UX 11.0.
    Appreciate any help.
    Regards
    Gunaseelan Venkateswaran

    I guess you're using Weblogic 6.1 with WLCS 3.5. I think you're supposed to work with one config.xml for the same domain, and not have a different config.xml.
    To start up different applications or EJBs, use the "target" property to control which applications to start up for the particular instance.
    YY

  • Check for libraries with a startup script

    Is it possible to check for open libraries with a startup script?  Currently, i'm trying like this:
    try{
         app.libraries.item("Marks.indl").name
    catch(e){
         app.open(File("/Support/InDesign/Lib/Marks.indl"))
    If InDesign is already open, this code works correctly (that is, if the library is open, nothing happens, otherwise it opens the library).  However, if I place this in the startup script folder, it will open a second (third, fourth, etc.) copy of the library, even if the library is already open.
    I think this happens because the library files are opened later in the startup sequence then the startup scripts are run.  Is there any way to work around this?
    Thanks,
    /dan

    Is your script supposed to work in ID CS3, or later?
    Anyway, InDesign CS4 seems to reopen the libraries before launching startup scripts, so the following code works for me:
    // Startup Script
    const libName = "Marks.indl",
      libPath = "/Support/InDesign/Lib/";
    var libFile = libPath + libName;
    if( !app.libraries.itemByName(libName).isValid )
      try {app.open(File(libFile))}
      catch(_){alert("Unable to open the library:\r"+libFile);}
    @+
    Marc

  • Need to write a startup script for TunTap

    Dear community,
    I am using 10.10.1, 13" MBPr Late 2013 and I need to be able to access my Work VPN. From what i have been told, the OS X client can't work and that I have been advised to use Shrew Soft VPN. (We initially tried to get the WatchGuard Firewall to build a Mac .dmg and that didn't work). To get ShrewSoft to work, I have had to follow these steps:
    http://ulaptech.blogspot.co.uk/2012/11/shrew-soft-vpn-client-for-mac-os-x.html
    ·         Install the qt-mac-opensource-4.7.1.dmg file first
    ·         Install the tuntap20111101.tar.gz file second
    ·         Install the shrew soft client.
    But the TunTap download that is above will not work as it is unsigned and Yosemite has now killed off unsigned kexts.I tried turning off the requirement for OS X for signed kexts by using this command:
    sudo nvram boot-args="kext-dev-mode=1"
    Then rebooting, but it didnt work.
    I can get the VPN to work if I open up terminal and enter these two commands:
    sudo kextload /library/extensions/tap.kext
    sudo kextload /library/extensions/tun.kext
    But I have to do this everytime i turn my Mac on.
    Could somebody please help me write those two lines into a startup script? As I really have no idea how to do it.
    Your help and guidance would be appreciated

    Choose Utilities from the Finder’s Go menu, open the AppleScript Editor, and paste in the following:
    set thepassword to text returned of (display dialog "Your administrator password is required." default answer "" with hidden answer)
    do shell script "kextload /Library/Extensions/tap.kext" with administrator privileges password thepassword
    do shell script "kextload /Library/Extensions/tun.kext" with administrator privileges password thepassword
    Save it as an application and set it as a login item.
    (120186)

Maybe you are looking for

  • HOW TO SEND NOTIFICATION THRO. MAIL

    I have installed workflow 2.6.4 on oracle 10.2. 1) How to send notification thro mail? 2) what kind of setting I need to do? 3) Do I need to include all users email address in Microsoft Outlook contact or in WF_LOCAL_ROLES? Regards, Jitendra

  • Can you generate separate audio tracks from a Multi-Output Instrument?

    Is there a way to use the "export all tracks as audio files" function and have the multi-output assignments generate separate audio tracks? There doesn't appear to be a way to do this. Ideas?

  • One of my 4 Gmail accounts has stopped being able to send mail

    I have 4 gmail accounts.  I can send and receive on all 4 but 1.  This just started a couple of days ago.  I get an error message that pops up but it goes away so fast I cannot see what it is.  I have tried to screenshot it but I cant seem to get it.

  • How to monitor Opportunity Processing

    Hi all, I have created Opprtunity & assigned different phases in Sales Cycle. When Opportunity processing thru different phases like quoatation, order or close, how i can maintained record of it. Do i need to create a new opportunity or transaction a

  • How to get rid of right click menu?

    I like to mouse over a hyperlink in a web page and select "open in a new tab". The right click menu jumps in the way. I don't like or use the right click menu. How do I stop it from stopping me? As a side note, the reason I like "open in a new tab" i