Automatically start db/listener on solaris startup

I'm sure this is a simple one but I've very little experience of on Solaris. I've installed 10g on my Solaris box. When I reboot I've to manually start the db and the listener. How can I get the OS to automatically start both on start up?
Thanks
Paul

You don't need to create a shell script.
1- modify the oratab. In fact you have to add an entry line for your instance name.
2- create a symbolic link to /etc/rc0 like S99dbora and K10dbora
"2" will make a soft link from dbstart and dbshut to /rc0 and /rc3 directories.
Make sure you don't have multiple S??dbora or k??dbora links in the directories.
Insrtruction on how to create a symbolic link:
connect as superuser:
#ln -s /etc/init.d/dbora etc/rc0.d/K10dbora
#ln -s /etc/init.d/dbora etc/rc3.d/S99dbora
Amir

Similar Messages

  • Automatic start of listener

    Can anyone advise me how to configure the listener on a Solaris platform to start automatically at reboot?

    Add lsnrctl start in the startup script. If you add the database startup script to the boot script then the database and the listerner will be up automatically.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by elma:
    Can anyone advise me how to configure the listener on a Solaris platform to start automatically at reboot?<HR></BLOCKQUOTE>
    null

  • Start the Listener Automatically

    OS is Solaris
    Data base is 9i
    I shutdown database (shutdown immediate) and after that Solaris server (shutdown now).
    When I start solaris server database started but
    listener didn't start.
    How to start the listener automatically when OS reeboots?
    Thankx in Advance....

    You work with your system administrators to find which directory the script currently resides. The posting above gave the possible locations for the Sun OS.
    etc/rc0.d/ or /etc/rc2.d/ and so on
    Usually it is the normal dbstart script that is executed. You will need to work with the system administrators to either include the command line for stating the listener or include it in the dbstart script (which in not advisable since it could change with upgrades to the database version).
    Regards
    Tim

  • Listener & DB automatic start

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

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

  • Webdynpro application automatic start after j2ee startup

    Hi ,
    Is there a way to automatically start any specific webdynpro applications after j2ee startup
    Oren

    I guess you can write batch file for that.
    Example
    suppose you have a bat file which starts J2EE engine, startJ2EE.
    You can write a new bat file with following commands.
    startJ2EE.bat
    explorer http://<server>:<port>/webdynpro/<URL as application>
    Let me know if you need more help
    Ashutosh

  • OSX 10.6 .8 -- Firefox automatically starts when I boot up (MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options. Don't know where else to look.

    How do I keep Firefox automatically starts when I boot up (OSX 10.6 .8 -- MacBook Pro Intel). It is not in the Startup Items in System Preferences, and automatic startup is not checked in Firefox Options.

    Hi fullrun-
    Once Firefox is open, you should be able to open the Right click context menu on the icon. From there you select 'Options' and then de-select 'Open at Login'. Hope that helps.

  • Agent Startup Failure - Failed to start HTTP listener.

    1) When trying to start the agent I get this error:
    ./emctl start agent
    Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    Starting agent ........ failed.
    Failed to start HTTP listener.
    2) Any advice on what to look for?

    As sim said,look at the log files.Any changes were made on the host before you started the agent?
    FYI
    I had the same problem the other day when a new HBA card was added and I had to follow the doc 422296.1
    BTW first post the errors from the logs may be its due to port conflict also.
    Thanks!!!

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

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

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

  • Unable to auto start database/listener/EM on Oracle Enterprise Linux 5

    All Experts
    I have install oracle 11g on Oracle Enterprize Linux 5 successfully.
    done all post installating steps, but when i restart server oracle listener/database/EM not automatically start.
    Please guide what is wron (server dbora error: /bin/sh: :No such file or directory).
    1. Log in as the root user
    2. Edit the oratab file (SID=Y)
    3. Create a file called dbora
    4.Run chmod and chgrp on the dbor file
    # chgrp dba dbora
    # chmod 750 dbora
    6.Creat symbolic links to the dbora script
    # ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora
    # ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora
    # ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
    7. add service
    # chkconfig --add dbora
    # chkconfig –list dbora
    0:off 1:off 2:off 3:on 4:off 5:on 6:off
    # ls -l /etc/rc*.d/*dbora
    # !/bin/sh -X
    # chkconfig: 35 99 10
    # description: Start and stop the Oracle database, listener, EM, and iSQLPlus
    # Change the value of ORACLE_HOMe to specify the correct Oracle Home Firectory for your installation.
    # Change the value of ORACLE to the login name of the oracle owner at your site
    ORACLE_HOME=/oradisk/app/oracle/product/11.1.0/db
    ORACLE=oracle
    PATH=${PATH}:$ORACLE_HOME/bin
    HOST="hostname"
    PLATFORM="uname"
    export ORACLE_HOME PATH
    if [ ! -f $ORACLE_HOME/bin/dbstart ]
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case $1 in
    'start')
    su - $ORACLE -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
    'stop')
    su - $ORACLE -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
    echo "usage: $0 {start|stop}"
    exit
    esac
    exit

    does the script work when you log on to your freshly started system, logon as root and execute /etc/init.d/dbora start?
    the script does not have to have group membership of the dba group.
    also, do not create symlinks yourself.
    by adding the service using chkconfig the script is started and stopped as indicated by chkconfig --list, no need to do additional steps like creating symlinks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Equivalent of sessionetc to "automatically" start applications on login ...

    JDS fans and experts:
    I'm in the process of getting our user community to move from CDE to JDS on our Solaris 10 machines.
    Because we have an environment where anyone logging into our machine is likely to want to run a particular application, we "automatically" start it for them in CDE by putting the command uses to start this application in the file named:
    /etc/skel/.dt/sessions/sessionetc
    When we create a new user, then all of the /etc/skel stuff gets copied into their home directory ... and, as a result, they all have a file named ~/.dt/sessions/sessionetc that starts the desired application for them each time they login.
    Is there an equivalent way to do this using JDS? Note: if it matters, we are using the latest JDS3 on Solaris 10u4 on an x86_64 platform.
    Thanks for your help,
    John

    JDS community:
    Well, I think that I'm close to being able to answer my own question as to how to set up an application to start automatically.
    As root, I've opened the file browser and pointed it to:
    preferences-all-users:///
    Then I double-clicked the Desktop Preferences icon followed by double-clicking the Sessions icon.
    That opens up a window with 3 tabs .... one being named: "Startup programs". That allows me to add additional programs to be started and assign it an order.
    Great! I added the program that I wanted ... and it starts automatically
    when I login again as root.
    Unfortunately, however, despite having done this in the preferences-all-users:/// section, it seems to only start the application
    when I login as root .... but doesn't seem to start it when I login as a normal user.
    Is there something that I need to restart in order for this to take effect for all users? Or do I have something else messed up that would prevent something that seemed to be added a a startup application for all users from starting for anyone but root?
    Thanks for any additional insights,
    John

  • Database not automatically starting after reboot of RedHat ES4 Linux

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

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

  • ITunes automatically starts playing when iPhone 5 (w iOS 7.0.2) is connected to car radio via an Apple cable

    I'm using an iPhone 5 with iOS 7.0.2, regardless it is the most recent update
    When I plug my phone into my car radio's USB port (Apple cable, not knock off) iTunes starts to play the very first song in my large iTunes library.
    I plug into the USB port to charge it and to connect the phone to radio in order to use hands free audio.
    I have tried two or three different cables, it happens with all cables and again all are actual Apple cables.
    I do not recall this happening with iOs 6 or at least as much.
    With iOs 7 it happens every f***ing time. Extremely annoying and dangerous (I may get so frustrated by this that one day I might just smash the phone or the car radio :-) to the equipment.
    I have to unlock my phone, go to iTunes and pause or stop the song/iTunes.
    The app does not show as being open, that is why I have to go iTunes itself, the old fashioned way, so to speak.
    It sometimes happens when I plug my headset in (also Apple brand, the basic ones that come with the iPad and iPhones) to phone and have tried the two different ones I have. It only seems to happen if my phone is not in use (i.e. I am on a call and switch to the headset it does not happen)
    Interestingly this issue with the headphones and iTunes automatically starting happened more with iOS 6  and than with iOS 7. Ironically the opposite is true with the car radio, USB port cable, charging and iPhone — it rarely happened with iOS 6.0 but with iOS 7.0 it always happens.
    I cannot seem to find a fix here but I do see I am not the only one with this annoying issue.
    Please someone (APPLE!)  figure out a fix.
    PS I have even considered NOT having any of my music on my phone — none at all —  which not only would solve the problem (I would hope!)  but be extremely inconvenient and defeating the purpose of only having an iPhone vs an iPhone and an iPod.
    PPS -  I probably left out something really relevant, like what color is my car , so if I did, please let me know.

    I have an iPhone 5 and every time I get into my car, as soon as my iPhone connects to the bluetooth or if I connect the USB cable, the music starts blaring through the car stereo, even if the radio was off. If I am using any of the navigation apps on my phone (google maps, waze, apple maps), and I happen to be lucky enough to have the voice directions working (that's consistently inconsistent), the music will frequently start by itself during navigation, even if I didn't turn the music on. Sometimes the music and navigation voice over will compete with each other at the same time. Sometimes they both go totally silent. Sometimes I'll hear only music. Sometimes only the voice directions. And if make or receive a phone call while the navigation is working, as soon as the phone call ends, the music will always take over again, even if I didn't have the music on prior to. I've checked and re-checked every setting on my phone, in my apps, in my car, and followed all of the suggestions I've found online (note to Apple - there are tons of posts on this topic), and nothing works.
    It seems like there should be an easy software fix for this, or at the very least, options to:
    prevent the music from starting automatically every time you connect with a cable or bluetooth (insanely annoying)
    allow voice directions to temporarily mute music, should one choose to be listenting to music and navigating at the same time
    just listen to voice direction - no music!
    Better yet, how about just provide options to let the end-user decide when to listen to music. 
    For a product that is supposed to be "intuitively easly" and/or "just works", this level of dysfunction shouldn't be acceptable. Come on Apple - what are you doing to fix this???

  • Error after starting up listener

    Hi all,
    Im not a db operator and im quite new with oracle and solaris but we got a problem after rebooting this server, the listener fails to start
    with the following error:
    LSNRCTL for Solaris: Version 8.1.7.0.0 - Production on 03-DEC-2007 20:01:30
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Message 850 not found; No message file for product=network, facility=NL
    LSNRCTL>
    If i try to start the listening process it gives 2 other errors
    LSNRCTL> start
    Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
    Solaris Error: 2: No such file or directory
    LSNRCTL>
    I also can not start the SQLPLUS program =S
    I read some other posts that these errors may be a path problem but im not sure if this is, and ifso how to correct it =o)
    The database version is 8.1.7 and is running on solaris.
    anyone has an idea how i can solve this problem?
    Thanks in advance!
    Message was edited by:
    user608640

    Hi again,
    Thanks for the reply but, how can i set the variable $ORACLE_HOME?
    and to what directory it has to point? does it need to point to the oracle db or to the oracle bin dir?
    thanks in advance!

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

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

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

  • ITunes automatically starts playing when I get in my car

    I drive a Ford with Sync. I have my iPhone 3GS set to automatically connect to the bluetooth in the car when the car is started. In the past few weeks, I noticed my iTunes was automatically starting when it connected with the Bluetooth. It doesn't play through the car, so I don't know its happening unless I look at the phone and see iTunes playing music.
    Is there a way to stop it from doing that? Its draining my battery.

    I too have this problem, though not with bluetooth. For me the auto-play starts as soon as I connect my iPhone 4S to the radio with a cable I connect to the AV 1/8" port in the center console of my 2007 Honda Accord. Not only does it start auto-playing as soon as I connect the cable, it also immediately starts playing the first music file in my phone as soon as whatever podcast I am listening to has ended
    Like others, I find this really annoying, but also a little dangerous. Because some engineer thought that auto-playing the first music file on a device was what most people would want to have happen, I now have to either (1) think ahead to select and pause my podcast or song prior to connecting the cable, or (2) scramble around to stop the auto-playing file while I am driving. This is hampered by the fact that the auto=play does not instantiate Music when it auto-plays, so I have to locate and start up Music and go to Now Playing before I can stop the file from playing.
    I do not believe, however, that this is Apple's fault. On no other device anywhere does this auto-play occur except in my Accord. On the other hand, I see people in this thread with the same problem driving cars other than the Accord. This could just be something I need to work around. A bummer, but definitely a First World problem.

Maybe you are looking for

  • N9 after PR 1.2 update - Mail for Exchange is sync...

    I have a problem with my N9 Meego after 1.2 update. I have mail for exchange account talking with exchange 2010 server and sync works just just fine with calendar and e-mail. Contacts on otherhand doens`t work. It says its bringing contact like 78 fr

  • IPod not playing music correctly

    Hello, I have recently purchased a new 4th generation iPod Touch. I have synced it with my computer for the first time. The problem is, some songs are starting midway through (the time says 1 second in, but its 25s into the audio), and others wont pl

  • Sum based on Number values in a Char string..

    i have a requirement i have a field on my form, designed in form6i (oracle 10g) my tables are; with t1 as (             select 101 t1_code,'it101' t1_itcode, 10 t1_qty, 5.5 t1_prc from dual union all             select 101,'it102',  5 , 3 from dual u

  • Report / FM-To create/update email address from Personal detail infotype105

    Hi All Any standard report or FM is available to update the SU01 email id by using personal details PA30 infotype 105 email ID. Regards K.Gunasekar

  • Vendor compliance codes fail to write off - can any please reply ASAP

    Hi All, Vendor compliance reason codes are failing to write off. Changes were made to the GL's and material. Codes involved in change-VCA,VCB,VCP, WVC. Does anyone know why this is happening and if you do let me know what has to be done about it. Tha