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

Similar Messages

  • Listener service not start automatically after reboot in Win2K server Clust

    Hi all,
    I set up a two node Server Cluster with Microsoft Windows 2000 server cluster service. Hardware are two HP DL380 servers and HP MSA500 (the shared storage). The cluster's IP address is 10.1.241.65. When I shut down both servers and restart the primary server, the listener server service will not start automatically. The listener log is:
    Started with pid=1108
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.241.65)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    The service is set up automatically start. I suspect the cluster virtual IP is not available immediately after reboot. So I tried setting the Recovery after first failure and second failure to 3 minitues each, and setting up Dependencies of the listener on the cluster service in the Win2K Service panel. Neither worked.
    The service can be manually start.
    Any suggestion?
    Frank.

    The command to start automatically the listener is :
    lsnrctl start
    check the parameters in : <ORACLE_HOME>/network/admin/listener.ora
    check the IP address or host name
    Joel Pérez

  • Oracle 11g XE listener does not start automatically during boot

    Hi,
    This happened to me recently I just wanted to share it with you.
    For development I was running Standard Edition, at some point I decided to run also XE on the same server for another reasons. Everything was working fine, except that after restart of the server, the XE listener is not starting automatically. Debugging the startup script I found that this happens because of a bug in the code, which assumes that XE listener is running if it finds the word LISTENER within the processes list. I didn't found any obligation in the docs for running XE without any other databases on the same host.
    In file /etc/init.d/oracle-xe, at line 556 the code is failing:
    1     + status='oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit'
    2     + '[' 'oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit' == '' ']'
    As you can see I have another listener(the one for SE) running and because of the XE startup script found the keyword LISTENER it’s supposing that the XE LISTENER is already running.
    To fix this simply change line 556 from:
    1     status=`ps -ef | grep tns | grep oracle`
    To:
    1     status=`ps -ef | grep tns | grep oracle | grep xe`
    Now XE listener is started automatically during boot.
    Sve
    Blog: http://sve.to
    Twitter: sgyurov

    I though the same thing, but XE LISTENER is running on localhost and port 1522. On the other hand XE have local_listener explicitly set to the very same connection descriptor. Even XE installation was second on this server.
    I've could change that yes, but the startup script doesn't seemed to have this mind.
    Regards,
    Sve

  • 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

  • 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

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

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

  • Automatically start oracle after reboot

    Is there a way to automatically start oracle after reboot? Our platform is Soaris 10 and Oracle 10.2.0.1.0

    (1) Don't forget to edit $ORACLE_HOME/bin/dbstart. (Note:337927.1)
    Original line:
    ORATAB=/etc/oratab
    Modified line:
    ORATAB=/var/opt/oracle/oratab
    (2) As per Note:336299.1 use:
    dbstart $ORACLE_HOME
    or
    dbstart /u01/app/oracle/product/10.2.0 (or whatever is your Oracle_Home)
    or you'll get: "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener"
    HTH
    Enrique

  • Listener doesn't start

    Hi
    I´ve configured my listener as automatic in my windows service console but when i restart my server the listener doesn´t start.
    What can i do??
    Thanks.

    the contents of my listener.ora file:
    26-SEP-2005 08:39:06 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCL.WRLD)(CID=(PROGRAM=C:\WINNT\system32\dllhost.exe)(HOST=APLICATIVO)(USER=Administrador))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.80)(PORT=2704)) * establish * ORCL.WRLD * 0
    26-SEP-2005 08:39:12 * service_update * ORCL * 0
    26-SEP-2005 08:39:45 * service_update * ORCL * 0
    26-SEP-2005 08:49:48 * service_update * ORCL * 0
    26-SEP-2005 09:19:57 * service_update * ORCL * 0
    26-SEP-2005 09:35:19 * service_update * ORCL * 0
    Ya no se está recibiendo de: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aplicativo)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Ya no se está recibiendo de: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aplicativo)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    26-SEP-2005 09:35:22 * service_died * ORCL * 12537
    TNSLSNR for 32-bit Windows: Version 10.1.0.3.0 - Production on 26-SEP-2005 10:07:43
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    El archivo de parámetros del sistema es C:\ora10_infra\network\admin\listener.ora
    Mensajes de log escritos en C:\ora10_infra\network\log\listener.log
    Información de rastreo escrita en C:\ora10_infra\network\trace\listener.trc
    El nivel de rastreo actual es 0
    Iniciado con Pid=972
    Recibiendo en: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aplicativo)(PORT=1521)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    26-SEP-2005 10:07:46 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrador))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821504)) * status * 0
    Recibiendo en: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aplicativo)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Recibiendo en: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aplicativo)(PORT=2100))(Presentation=FTP)(Session=RAW))
    26-SEP-2005 10:08:23 * service_register * ORCL * 0
    26-SEP-2005 10:08:44 * service_update * ORCL * 0
    26-SEP-2005 10:09:50 * service_update * ORCL * 0
    26-SEP-2005 10:10:56 * service_update * ORCL * 0
    26-SEP-2005 10:12:02 * service_update * ORCL * 0
    26-SEP-2005 10:12:35 * service_update * ORCL * 0
    26-SEP-2005 10:13:42 * service_update * ORCL * 0
    26-SEP-2005 10:14:15 * service_update * ORCL * 0
    26-SEP-2005 10:15:21 * service_update * ORCL * 0

  • ITunes automatically starts & plays

    iTunes automatically starts &amp; plays every 5 minutes (without connecting any device). Is there a way to stop this without turning off iTunes Helper?

    I agree with/have same problem as vinfromacton.
    I know it's Flash causing the problem:iTunes had been functioning normally until this morning when I downloaded Flashto allow me to listen to archived radio programs on the internet.
    Once I downloaded Flash, iTunes startedopening and playing automatically ~ every 2-3 minutes. Annoying as it playsover audio I am listening to &/or recording.
    Only fix I've found is to turn iTunesvolume down to zero: does not stop iTunes from opening - it continues to do so- but I don't hear the iTunes audio.
    I'm also going to try dr alexander'ssuggestion: Open a blank Playlist > leave iTunes focus there>quit iTunes.
    It reopens but at least it'ssilenced....
    Haven't tried it but I would imagine uninstallingFlash (need to download the uninstaller from the Adobe website) would solve theproblem. This however would lead me back to my original problem: no Flash >cannot listen to audio archived on the internet and other internet audio...
    I'm also going to call Apple: I haveAppleCare. Will re-post after talking to them.

  • Ipod automatically starts when my car connects the bluetooth

    I have a 2010 Mazda and when I go to bluetooth setting on my stereo my iphone automatically starts the ipod, but sometimes i want to play a you tube video or listen to sirus radio. Then i have to exit sirus and open the ipod and close out of it then redo what i was attempting in the first place. Any Suggestions?

    I'm having this problem, too, but I've got a 2009 Ford Fusion with the Sync system. I kept thinking it was something being pushed in my bag, but it's not, it's the bluetooth. It's really annoying!
    If anyone can shed some light on that, I'd appreciate it,too.

  • How can I disable iPhoto from automatically starting when I connect my iPhone?

    Whenever I connect my iPhone to my Mac it automatically starts iPhoto?  How can I make this not happen?

    Go into iPhoto's General preference pane and set the Connecting camera opens to No Application:
    OT

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

  • When I insert an audio CD into my iMac, it automatically starts playing

    When I insert an audio CD into my iMac, it automatically starts playing, and I can't figure out why, nor how to stop this behavior. When I click in the upper right corner of my screen where it says "Finder", it shows the Finder as the only application running, and yet SOMETHING must be causing the CD to play. If it is an Extension that is being loaded, is it possible to terminate the Extensions one by one without restarting the computer to see which one is playing the CD?
    Is the OS9.1 operating system supposed to automatically play audio CD's when they are inserted into the iMac? Or could it be an Extension that is doing it?And if so, why is no means provided to actually CONTROL the playing of the CD (such as a control panel with PLAY, STOP, SKIP, etc. buttons)?
    On a PC, I can press Control/Alt/Delete to bring up the "Task List" that will show me ALL applications and processes currently running, and then terminate apps and processes one by one without having to restart the computer to see which one is playing the CD. Is there an equivalent way to display this information on an iMac that will show me which application or process or extension might be causing the audio CD to play, and allow me to terminate them one by one without restarting the computer until I can see which one is the "problem"?
    Jerry

    Hi, Jerry -
    Welcome to Apple's Discussions.
    Finder uses QuickTime in the background to do that, hence no specific app is shown in the Application menu (the far right item in the main menu bar) in addition to Finder.
    To unset automatic playing of CDs (and DVDs) -
    Open the QuickTime Settings control panel (Apple menu > Control Panels > QuickTime Settings).
    In that control panel, select AutoPlay from the pulldown menu in the control panel. Uncheck both the items shown in the new window. Close the control panel.
    No restart should be needed in order to make the change effective.
    Doing this will also guard against the (now ancient) AutoPlay virus, which could still be lurking somewhere on the net.

Maybe you are looking for