Oracle DB offline after server reboot / hardware failure

Hi,
We have a server that crashed due to hardware failure and although brought back up OK Oracle DB's are no longer mounting. I am not a DBA but it looks bad to me and it seems there are no backups. Can anyone suggest a course of action? This is Oracle 11G XE running on Centos 6. I have put as much detail in as I can and could really do with some advice.
[root@627963 trace]# sqlplus /nolog
SQL*Plus: Release 11.2.0.2.0 Production on Thu Sep 12 23:18:26 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
SQL> connect sys as sysdba;
Enter password:
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size                  2233344 bytes
Variable Size             893389824 bytes
Database Buffers          167772160 bytes
Redo Buffers                5541888 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 10571
Session ID: 62 Serial number: 3
SQL> startup /nomount
SP2-0714: invalid combination of STARTUP options
SQL> startup nomount
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL>
Alert_XE.log:
Thu Sep 12 21:26:18 2013
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =19
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production.
Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/xe/dbs/spfileXE.ora
System parameters with non-default values:
  sessions                 = 180
  memory_target            = 1G
  control_files            = "/u01/app/oracle/oradata/XE/control.dbf"
  compatible               = "11.2.0.0.0"
  db_recovery_file_dest    = "/u01/app/oracle/fast_recovery_area"
  db_recovery_file_dest_size= 20G
  undo_management          = "AUTO"
  undo_tablespace          = "UNDOTBS1"
  remote_login_passwordfile= "EXCLUSIVE"
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=XEXDB)"
  shared_servers           = 4
  job_queue_processes      = 4
  audit_file_dest          = "/u01/app/oracle/admin/XE/adump"
  db_name                  = "XE"
  open_cursors             = 300
  diagnostic_dest          = "/u01/app/oracle"
Thu Sep 12 21:26:20 2013
PMON started with pid=2, OS id=21388
Thu Sep 12 21:26:20 2013
"alert_XE.log" 342L, 17231C
Thu Sep 12 21:26:20 2013
PSP0 started with pid=3, OS id=21390
Thu Sep 12 21:26:21 2013
VKTM started with pid=4, OS id=21392
VKTM running at (100ms) precision
Thu Sep 12 21:26:21 2013
GEN0 started with pid=5, OS id=21396
Thu Sep 12 21:26:21 2013
DIAG started with pid=6, OS id=21398
Thu Sep 12 21:26:21 2013
DBRM started with pid=7, OS id=21400
Thu Sep 12 21:26:21 2013
DIA0 started with pid=8, OS id=21402
Thu Sep 12 21:26:21 2013
MMAN started with pid=9, OS id=21404
Thu Sep 12 21:26:21 2013
DBW0 started with pid=10, OS id=21406
Thu Sep 12 21:26:21 2013
DBW1 started with pid=11, OS id=21408
Thu Sep 12 21:26:21 2013
DBW2 started with pid=12, OS id=21410
Thu Sep 12 21:26:21 2013
LGWR started with pid=13, OS id=21412
Thu Sep 12 21:26:21 2013
CKPT started with pid=14, OS id=21414
Thu Sep 12 21:26:21 2013
SMON started with pid=15, OS id=21416
Thu Sep 12 21:26:21 2013
RECO started with pid=16, OS id=21418
Thu Sep 12 21:26:21 2013
RECO started with pid=16, OS id=21418
Thu Sep 12 21:26:21 2013
MMON started with pid=17, OS id=21420
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Thu Sep 12 21:26:21 2013
MMNL started with pid=18, OS id=21422
starting up 4 shared server(s) ...
ORACLE_BASE not set in environment. It is recommended
that ORACLE_BASE be set in the environment
Reusing ORACLE_BASE from an earlier startup = /u01/app/oracle
Thu Sep 12 21:26:21 2013
ALTER DATABASE   MOUNT
Thu Sep 12 21:26:24 2013
Sweep [inc][21794]: completed
Sweep [inc][21793]: completed
Sweep [inc2][21794]: completed
Successful mount of redo thread 1, with mount id 2707110077
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE   MOUNT
Thu Sep 12 21:26:25 2013
ALTER DATABASE OPEN
Beginning crash recovery of 1 threads
Started redo scan
Completed redo scan
read 93 KB redo, 34 data blocks need recovery
Started redo application at
Thread 1: logseq 241, block 21190
Recovery of Online Redo Log: Thread 1 Group 1 Seq 241 Reading mem 0
  Mem# 0: /u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_1_8kxhwjco_.log
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8, _wordcopy_bwd_dest_aligned()+280] [flags: 0x0, count: 1]
Errors in file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc  (incident=22593):
ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
Incident details in: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Exception [type: SIGSEGV, Address not mapped to object] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70, kcbs_dump_adv_state()+946] [flags: 0x0, count: 2]
Errors in file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc  (incident=22594):
ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
Incident details in: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22594/XE_ora_21440_i22594.trc
Use ADRCI or Support Workbench to package the incident.
See Note 411.1 at My Oracle Support for error and packaging details.
Dumping diagnostic data in directory=[cdmp_20130912212627], requested by (instance=1, osid=21440), summary=[incident=22593].
Errors in file /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc:
ORA-00607: Internal error occurred while making a change to a data block
ORA-00602: internal programming exception
ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
PMON (ospid: 21388): terminating the instance due to error 397
System state dump requested by (instance=1, osid=21388 (PMON)), summary=[abnormal instance termination].
System State dumped to trace file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_diag_21398.trc
Dumping diagnostic data in directory=[cdmp_20130912212628], requested by (instance=1, osid=21388 (PMON)), summary=[abnormal instance termination].
Instance terminated by PMON, pid = 21388
Thu Sep 12 21:39:03 2013
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =19
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production.
Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/xe/dbs/spfileXE.ora
System parameters with non-default values:
  sessions                 = 180
  memory_target            = 1G
  control_files            = "/u01/app/oracle/oradata/XE/control.dbf"
  compatible               = "11.2.0.0.0"
  db_recovery_file_dest    = "/u01/app/oracle/fast_recovery_area"
  db_recovery_file_dest_size= 20G
  undo_management          = "AUTO"
  undo_tablespace          = "UNDOTBS1"
  remote_login_passwordfile= "EXCLUSIVE"
  dispatchers              = "(PROTOCOL=TCP) (SERVICE=XEXDB)"
  shared_servers           = 4
  job_queue_processes      = 4
  audit_file_dest          = "/u01/app/oracle/admin/XE/adump"
  db_name                  = "XE"
  open_cursors             = 300
  diagnostic_dest          = "/u01/app/oracle"
Thu Sep 12 21:39:05 2013
PMON started with pid=2, OS id=2483
Thu Sep 12 21:39:05 2013
PSP0 started with pid=3, OS id=2489
Thu Sep 12 21:39:06 2013
VKTM started with pid=4, OS id=2546
VKTM running at (100ms) precision
Thu Sep 12 21:39:06 2013
GEN0 started with pid=5, OS id=2550
Thu Sep 12 21:39:06 2013
DIAG started with pid=6, OS id=2552
Thu Sep 12 21:39:06 2013
DBRM started with pid=7, OS id=2554
Thu Sep 12 21:39:06 2013
DIA0 started with pid=8, OS id=2556
And the tracefile:
Trace file /u01/app/oracle/diag/rdbms/xe/XE/trace/XE_ora_21440.trc
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe
System name:    Linux
Node name:      <blah>
Release:        2.6.32-358.14.1.el6.x86_64
Version:        #1 SMP Tue Jul 16 23:51:20 UTC 2013
Machine:        x86_64
Instance name: XE
Redo thread mounted by this instance: 1
Oracle process number: 24
Unix process pid: 21440, image: <blah>(TNS V1-V3)
*** 2013-09-12 21:26:25.858
*** SESSION ID:(62.3) 2013-09-12 21:26:25.858
*** CLIENT ID:() 2013-09-12 21:26:25.858
*** SERVICE NAME:() 2013-09-12 21:26:25.858
*** MODULE NAME:(<Blah> (TNS V1-V3)) 2013-09-12 21:26:25.858
*** ACTION NAME:() 2013-09-12 21:26:25.858
Thread 1 checkpoint: logseq 241, block 2, scn 8960531
  cache-low rba: logseq 241, block 21190
    on-disk rba: logseq 241, block 21377, scn 8979221
  start recovery at logseq 241, block 21190, scn 0
*** 2013-09-12 21:26:25.869
Started writing zeroblks thread 1 seq 241 blocks 21377-21384
*** 2013-09-12 21:26:25.870
Completed writing zeroblks thread 1 seq 241
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 93Kb in 0.01s => 9.13 Mb/sec
Longest record: 2Kb, moves: 0/242 (0%)
Change moves: 2/26 (7%), moved: 0Mb
Longest LWN: 8Kb, moves: 0/57 (0%), moved: 0Mb
Last redo scn: 0x0000.00890313 (8979219)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 34/34 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 377/542 = 0.7
*** 2013-09-12 21:26:25.872
KCRA: start recovery claims for 34 data blocks
*** 2013-09-12 21:26:25.873
KCRA: blocks processed = 34/34, claimed = 34, eliminated = 0
*** 2013-09-12 21:26:25.874
Recovery of Online Redo Log: Thread 1 Group 1 Seq 241 Reading mem 0
*** 2013-09-12 21:26:26.055
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8, _wordcopy_bwd_dest_aligned()+280] [flags: 0x0, count: 1]
Incident 22593 created, dump file: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22593/XE_ora_21440_i22593.trc
ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF8] [PC:0x319A88A1B8] [Non-existent physical address] []
Incident 22594 created, dump file: /u01/app/oracle/diag/rdbms/xe/XE/incident/incdir_22594/XE_ora_21440_i22594.trc
ORA-07445: exception encountered: core dump [kcbs_dump_adv_state()+946] [SIGSEGV] [ADDR:0x7C7FD5E7FFEC] [PC:0x444FE70] [Address not mapped to object] []
ORA-07445: exception encountered: core dump [_wordcopy_bwd_dest_aligned()+280] [SIGBUS] [ADDR:0x76FFFFF

Hi Guys,
I have copied a backup script below that it turns out has been running every night at midnight. Where does this go, how do I know if it has worked and how can I use it to restore?
#!/bin/sh
# The script assumes that user can connect using "/ as sysdba" and Flash
# Recovery Area is enabled.
# =================
# Backup procedure
# =================
#    For database in NoArchiveLog mode, database is shutdown and an offline
#    backup is done;
#    For database in Archive log mode, online backup is done.
#    During the backup procedure, the script stores flash recovery area
#    location by saving complete initialization parameter to
#    ?/dbs/spfile2init.ora file. This will be used during restore operation
#    to find Flash Recovery Area location. If this file is lost, then user must
#    enter Flash Recovery Area location during restore operation.
#    Two backups are maintained in Flash Recovery Area and the corresponding
#    log files for last two backup job are saved in
#    $HOME/oxe_backup_current.log and $HOME/oxe_backup_previous.log
user=`/usr/bin/whoami`
group=`/usr/bin/groups $user | grep dba`
if test -z "$group"; then
   if [ -f /usr/bin/zenity ]
   then
        /usr/bin/zenity --error --text="$user must be in the DBA OS group to backup the database."
   elif [ -f /usr/bin/kdialog ]
   then
        /usr/bin/kdialog --error "$user must be in the DBA OS group to backup the database."
   elif [ -f /usr/bin/xterm ]
   then
       echo "Operation failed. $user must be in the DBA OS group to backup the database."
       echo -n "Press any key to exit"
       read userinp
   fi
   exit 0
fi
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_SID=XE
export PATH=$ORACLE_HOME/bin:$PATH
TMPDIR=/tmp
rman_normlog=${TMPDIR}/rman_normlog$$.log
#Fix a logfile for current, previous run and spfile2init.ora
sqlplus /nolog > $rman_normlog << EOF
   connect / as sysdba;
   set echo off;
   set head off;
   set serveroutput on;
   set linesize 515;
   declare
      l1 varchar2(512);
   begin
      l1 := dbms_backup_restore.normalizeFilename('spfile2init.ora');
      dbms_output.put_line('-----------------');
      dbms_output.put_line(l1);
      dbms_output.put_line('-----------------');
   end;
EOF
rman_spfile2init=`grep "spfile2init.ora$" $rman_normlog`
rm -f $rman_normlog
rman_backup_current=$HOME/oxe_backup_current.log
rman_backup_prev=$HOME/oxe_backup_previous.log
#Choose a temporary log for this run
rman_backup=${TMPDIR}/rman_backup$$.log
echo XE Backup Log > $rman_backup
#Check if flash recovery area is enabled
rman_fra=${TMPDIR}/rman_fra$$.log
sqlplus /nolog > $rman_fra << EOF
   connect / as sysdba;
   set head off;
   set echo off;
   set trimspool on;
   set linesize 512;
   select '$' || count(*) || '$' from v\$parameter
    where upper(name)='DB_RECOVERY_FILE_DEST'
      and value is not null;
EOF
fra=`grep "^$.*$" $rman_fra`
rm -f $rman_fra
if [ X$fra = X\$1\$ ]; then
   failed=false;
else
   failed=true
   errstr="flash recovery area is not enabled"
fi;
if [ $failed = 'false' ] ; then
   #Check the mode of database
   rman_log_mode=${TMPDIR}/rman_log_mode$$.log
   sqlplus /nolog > $rman_log_mode << EOF
      connect / as sysdba;
      set head off;
      set echo off;
      set trimspool on;
      set linesize 512;
      select '$' || log_mode || '$' from v\$database;
EOF
   mode=`grep "^$.*$" $rman_log_mode`
   rm -f $rman_log_mode
   case $mode in
      \$ARCHIVELOG\$)
      echo "Doing online backup of the database."
      rman target / >> $rman_backup << EOF
         set echo on;
         configure retention policy to redundancy 2;
         configure controlfile autobackup format for device type disk clear;
         configure controlfile autobackup on;
         sql "create pfile=''$rman_spfile2init'' from spfile";
         backup as backupset device type disk database;
         configure controlfile autobackup off;
         delete noprompt obsolete;
EOF
      if [ $? = 0 ]; then
         failed=false;
      else
         failed=true
         errstr="RMAN error: See log for details"
      fi;
      rman target / >> $rman_backup << EOF
         sql 'alter system archive log current';
EOF
      \$NOARCHIVELOG\$)
      echo "Warning: Log archiving (ARCHIVELOG mode) is currently disabled. If"
      echo "you restore the database from this backup, any transactions that take"
      echo "place between this backup and the next backup will be lost. It is"
      echo "recommended that you enable ARCHIVELOG mode before proceeding so "
      echo "that all transactions can be recovered upon restore. See the section"
      echo "'Enabling ARCHIVELOG Mode...' in the online help for instructions."
      echo "Backup with log archiving disabled will shut down and restart the"
      echo -n "database. Are you sure [Y/N]?"
      gotit=false
      while ! $gotit; do
        read userinp
        if [ "$userinp" = "Y" -o "$userinp" = "y" -o \
             "$userinp" = "n" -o "$userinp" = "N" ]; then
          gotit=true
        fi
      done
      if [ "$userinp" = "n" -o "$userinp" = "N" ]; then
         rm -f $rman_backup
         exit -1;
      fi
      echo "Backup in progress..."
      rman target / >> $rman_backup << EOF
         set echo on;
         shutdown immediate;
         startup mount;
         configure retention policy to redundancy 2;
         configure controlfile autobackup format for device type disk clear;
         configure controlfile autobackup on;
         sql "create pfile=''$rman_spfile2init'' from spfile";
         backup as backupset device type disk database;
         configure controlfile autobackup off;
         alter database open;
         delete noprompt obsolete;
EOF
      if [ $? = 0 ]; then
         failed=false;
      else
         failed=true
         errstr="RMAN error: See log for details"
      fi;
      errstr="Unknown database mode $mode"
      failed=true;
   esac;
fi;
#Save the error string in the log
if [ $failed = 'true' ]; then
   echo ${errstr}. >> $rman_backup
fi;
#Save the last run as previous
if [ -f $rman_backup_current ]; then
   mv -f $rman_backup_current $rman_backup_prev
fi;
#Save the current run
mv -f $rman_backup $rman_backup_current
#Display the result to user
if [ $failed = 'true' ] ; then
   echo '==================== ERROR ========================='
   echo '             Backup of the database failed          '
   echo '==================== ERROR ========================='
   echo ${errstr}.
   echo Log file is at $rman_backup_current.
else
   echo Backup of the database succeeded.
   echo Log file is at $rman_backup_current.
fi
#Wait for user to press any key
echo -n "Press ENTER key to exit"
read userinp

Similar Messages

  • Oracle database performance after server reboot

    hi masters,
    this is not some kind of question, but a discussion. some statements come from our client that after weekly reboot of system, the oracle database performance is low for some time and increase after some time(say 2 days).
    i think it is but obvious, because at reboot oracle flushes all cache, and temporary space, so it need to re parse the sql statements and perform some disc I/O's so it might need some time and hence performance will degrade.
    but at the same time some people claim that after reboot their database performance is better than their normal performance for some days. it seems controversial that's why i am posting it here.
    what might be the reason behind this?? prior can have a valid reason of hard parsing, but what with second case??
    any clarification is highly appreciated...
    thank you
    regadrs
    VD

    Vikrant,
    You should wait for some time buddy, its weekend ;-) .
    this is not some kind of question, but a discussion. some statements come from our client that after weekly reboot of system, the oracle database performance is low for some time and increase after some time(say 2 days).i think it is but obvious, because at reboot oracle flushes all cache, and temporary space, so it need to re parse the sql statements and perform some disc I/O's so it might need some time and hence performance will degrade.
    >
    I would start from saying that checking the performance when the system just started, is a wrong approach. There would be lots of IOs , parsing, calculations(related to memory allocations) happening so there would be a delay/bad performance at that time. Very simple example can be parsing, another can be memory allocation. Oracle doesn't allocate the entire memory in the instance startup that is allocated to the memory areas but allocates just the bare minimum that is needed to start the instance and than after the startup, it keeps on allocating the memory. So surely enough, with the startup and after a while of it, there would be a different performance than that after the instance hsa already been started and the workload informations have started coming up.
    Its correct that Oracle would deallocate all the caches with the reboot as the instance is on the memory(physical) and with the reboot , that would be flushed including the SGA which is allocated over it. Temporary tablespace is now not freed with the reboot. I guess its a rather illogical thing to do but that's what is there now. Oracle keeps the segment allocated even after the reboot is issued, hence the reason for larger temporary tablespaces.
    >
    but at the same time some people claim that after reboot their database performance is better than their normal performance for some days. it seems controversial that's why i am posting it here.
    what might be the reason behind this?? prior can have a valid reason of hard parsing, but what with second case??
    >
    This should not come as a surprise once we understand what might be happening with this process. Assume a situation where you have undersized caches. For example, shared pool . which is very heavily used for database , if this is going to be undersized and you are not using automatic memory management, you won't be enjoying the dynamic management of this parameter. Now, if you do lots of parsing , thanks to your wrongly written queries, you would eventually end up filling up shared pool to its max thus leaving no space for incoming new hard parsed cursors. Here , if you can't manage to add more memory to add to it, the only solution left would be to flush the shared pool( as good as rebooting the db because this would do the same) and than make space for the new cursors. The performance is going to be better becausethe cursors would not be getting flushed out immediately and will be kept in the shared pool as long as its not filled up again.Once you have reached to limit of it, again there would be performance benefit. So there are always odds added to the statements like this that I rebuilt my index , I got better, I rebooted my server, my querie are much faster now. Most of the time when these kind of statements are given, they are based on what we have seen, without understading what actually might have happened. So I would siggest to hear the statement but not take them as a rule of thumb to follow.
    Hope this all makes some sense for you and would help somewhat.
    Aman....

  • Oracle 10G Db Starts-up After Server Reboot, BUT Goes DOWN After Some Time

    Hi All,
    I am really puzzled over this one. I have couple of servers running DB on them and I have used scripts to auto-enable them when server(s) reboot.
    But there is one server where I see this funny behavior.
    The DB comes-up after server reboot.
    I can verify that in the startup logs and some more logs that I created.
    I can see that LISTENER is able to communicate also.
    But after a while, the DB shuts-down....!!
    I have checked all the places I could. I have also tried to see the difference between this server and others (I did not install this one), but can not see any difference.
    Is there anyway to find out (log) what is shutting down the DB??
    Any help will be much appreciated as I am at my wits end.
    Following is snap-shot from my logs:
    Fri Mar 16 20:42:29 EDT 2007
    Running dbstart.
    Done with starting all, let's check status...
    Fri Mar 16 20:42:42 EDT 2007
    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 16-MAR-2007 20:42:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 10.2.0.1.0 - Production
    Start Date 16-MAR-2007 00:46:56
    Uptime 0 days 19 hr. 55 min. 46 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/product/10.2.0/Db_1/network/admin/listener.ora
    Listener Log File /oracle/product/10.2.0/Db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.103.253.50)(PORT=1521)))
    Services Summary...
    Service "orcl" has 2 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Current Status:
    # date
    Fri Mar 16 21:30:40 EDT 2007
    # su - oracle -c "lsnrctl status"
    Sun Microsystems Inc. SunOS 5.10 Generic January 2005
    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:30:53
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Solaris Error: 146: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.103.253.50)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Solaris Error: 146: Connection refused

    I was just looking at that.. Thanks for the tip.
    Following is what I see. But not sure what does it tell me?? Please help......
    From alert_orcl.log:
    <snip>
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Fri Mar 16 20:42:41 2007
    Errors in file /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15
    Fri Mar 16 20:42:42 2007
    Completed: ALTER DATABASE OPEN
    From /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    # cat /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    /oracle/product/10.2.0/Db_1/admin/orcl/udump/orcl_ora_7700.trc
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    ORACLE_HOME = /oracle/product/10.2.0/Db_1
    System name: SunOS
    Node name: gcars0j6
    Release: 5.10
    Version: Generic_118833-24
    Machine: sun4u
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 15
    Unix process pid: 7700, image: oracle@gcars0j6 (TNS V1-V3)
    *** SERVICE NAME:() 2007-03-16 20:42:37.548
    *** SESSION ID:(159.3) 2007-03-16 20:42:37.548
    Thread 1 checkpoint: logseq 255, block 2, scn 8602014
    cache-low rba: logseq 255, block 3
    on-disk rba: logseq 255, block 767, scn 8602399
    start recovery at logseq 255, block 3, scn 0
    ----- Redo read statistics for thread 1 -----
    Read rate (ASYNC): 382Kb in 0.16s => 2.33 Mb/sec
    Total physical reads: 4096Kb
    Longest record: 3Kb, moves: 0/1066 (0%)
    Change moves: 1/8 (12%), moved: 0Mb
    Longest LWN: 308Kb, moves: 0/29 (0%), moved: 0Mb
    Last redo scn: 0x0000.0083431e (8602398)
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 149/149 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 1925/2083 = 0.9
    *** 2007-03-16 20:42:37.702
    KCRA: start recovery claims for 149 data blocks
    *** 2007-03-16 20:42:37.705
    KCRA: blocks processed = 149/149, claimed = 149, eliminated = 0
    *** 2007-03-16 20:42:37.706
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 255 Reading mem 0
    ----- Recovery Hash Table Statistics ---------
    Hash table buckets = 32768
    Longest hash chain = 1
    Average hash chain = 149/149 = 1.0
    Max compares per lookup = 1
    Avg compares per lookup = 2054/2074 = 1.0
    Error in executing triggers on database startup
    *** 2007-03-16 20:42:41.963
    ksedmp: internal or fatal error
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12663: Services required by client not available on the server
    ORA-36961: Oracle OLAP is not available.
    ORA-06512: at "SYS.OLAPIHISTORYRETENTION", line 1
    ORA-06512: at line 15

  • Databases are not coming up after server reboot(sun solaris).

    Hi
    OS - Sun OS 5.10 local zone. RDBMS version - 11.2.0.3
    Databases are not coming up after server reboot.
    We have verified the below points.
    Cat/etc/init.d/oracle
    $ORACLE_HOME/bin/oradism file permissions are 4550.
    lock_sga is parameter set to false.
    cat /var/opt/oracle/oratab entries are set to Y
    Still Databases are not coming up after server reboot.
    Please advise.

    Hi,
    Can you post further information from alert log. Doesn't coming up, means you needs to share the information some thing about your environmente settings about kernel parameter and init$ORACLE_SID parameters details.
    That would be easy for others to look into it further to analyze things.
    - Pavan Kumar N

  • Call park music on hold reverts to default after server reboot

    Hello,
    We are noticing that if you define Music on hold for the Park service, the call park music on hold reverts to default sound after server reboot. (all systems we've tested do this)
    Anyone using park music on hold that can verify one way or the other?
    Thanks, 
    +Say thanks and observe basic forum courtesy:
    +If this post answered your question, Mark As Answer
    +If this post was helpful, Vote as Helpful
    windowspbx blog: my thots/howtos
    see/submit Lync suggestions here: simple and public

    We have tested it and we have the same result. Hope the next update will resolve this problem.

  • Executing 2nd command after server rebooted & related services started

    hi friends
    i am creating a PS script containg two lines:
    the first line executes dcpromo /unattend:c:\answerfile.txt to create a new domain controller
    the second line will disable domain password complexity which is: 
    set-executionPolicy -identity mydomain.lab -complexityenabled $false -minimumpasslength 5
    the problem is i need after first line of the script, executed, server be rebooted & the 2nd line 
    be executed after server rebooted & whey AD services started, this script continue to run the next line.
    is it ossible in powershell?
    thanks in advanced

    You won't be able to do that in the same script.
    You can use a second script that waits for the AD services to start, and then sets the password policies and run that script after the restart using the RunServicesOnce key:
    https://support.microsoft.com/kb/179365?wa=wsignin1.0
    Use the first script to set that key and then do the restart after the DC promo is finished.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    hi again. thanks
    in addition i found that the powershell workflow is better way to that
    regards

  • Unable to run Fortune sample after server reboot

    Hi,
    I have installed Application server 6.5 on Solaris 9. After installation, I am able to run the fortune sample to verify success installation.
    However, after server reboot, I am not able to drun the fortune sample again. Access log on Iplanet web server shows error code 504. Can anyone help me?
    Thanks.

    The above steps resolved the problem - This is posted in case someone else suffers from the same issue.

  • How clusterware restarts on automatically after server reboot in 11g R2

    Hi,
    I would like to know how the cluster restarts on automatically after the server reboot in 11g R2 RAC . The oracle restart feature in 11g R2 help to restart the components like databases, ASM in case of abnormal failure. But how the clusterware starts on own after the server reboot? can you share any documents or notes is really appreciated.
    Thanks,
    Robin.

    At Grid Infrastructure installation time system configuration is modified so that UNIX init daemon restarts OHASD: http://docs.oracle.com/cd/E11882_01/rac.112/e16794/intro.htm#BABIDEFI. For example with Oracle Linux 5 and Oracle RAC 11.2.0.1 you have following line in /etc/inittab:
    h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/nulland:
    [root@rac1 ~]# head /etc/init.d/init.ohasd
    #!/bin/sh
    # Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
    # init.ohasd - Control script for the Oracle HA services daemon
    # This script is invoked by the init system
    ORA_CRS_HOME=/u01/app/11.2.0/grid
    export ORA_CRS_HOMEEdited by: P. Forstmann on 11 févr. 2013 18:45

  • Automatically start VMs after server reboot

    Hello,
    I use a OVM server (3.0.3) without clustering, and I'm doing failure simulations before going to production.
    When the server reboots after a electrical failure, all VM are in "offline" state, and I need to acknowledge all events before be able to start them (thanks the forum for this information).
    I would like to automatically boot the VM after the reboot, is there a way to do this ?
    Thanks,
    TM

    Have you tried to put a symlink to the vm.cfg in /etc/xen/auto? That works independent of VM Manager. I beleive VM Manager will update the machine to running in that situation. If not, at least your machines are running while you sort out the problems with VM Manager.
    ln -s /OVS/Repository/<repositoryUUID>/VirtualMachines/<vmUUID>/vm.cfg /etc/xen/auto/<simplename>
    Where repositoryUUID (hopefully the only one because the manager doesn't display it)
    vmUUID shows as ID on the Info page for the VM
    simplename is any name you like. I chose the name that shows as Name on the machine's Info page.
    Let us know if the Manager figures it out OK or if you have to jump through some hoops to get it to show "running" for these VMs.

  • Database Down after Server Reboot

    Hello
    I am getting a weird problem after I reboot my server (windows 2003) where by my database (10.2) does not automatically start. To get it to start I have to go into administrative tools >> services and then manually restart the OracleASMService+ASM (it says it is already running).
    Thanks in advance for any Idea's/suggestions

    Right;
    After rebooting the server and lauching the OEM Database Control it tells me the following:
    - Database Instance = Down
    - Listener = Up
    - Agent Connection to Instance = Failed ORA-12505: TNS:Listener does not currently know of SID given in connect descriptor(DBD ERROR: OCIServerAttach)
    In response to your troubleshooting suggestions;
    1. alert.log has no new errors logged in the past week
    2. As far as I can tell, yes. It says the service (and other associated oracle services) are running
    3. No I can not connect to the database with sql*plus (before I restart the OracleASMService+ASM). SQL*Plus errors:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    After I restart the service I can connect without any problems.
    4. N/A
    I appreciate any help you can offer on this matter.
    Regards
    Toby

  • Users have to enter licence server name after server reboot

    Hi all,
    After every reboot of their server, every users of my customer have to enter the licence server name to be able to connect to SAP. Any idea why it's happening ? Is their a file where the name of the server is saved which could be deleted ?
    Thanks
    Charles Froment

    Hi
    did you change the IP address?
    did you change any hardware piece in the server?
    In the client you can find a file called b1-current-user.xml in Application Data\SAP\SAP Business One folder.
    Open this file, and if it corrupted delete it. SBO will create another with the right configuration.
    Kind regards
    Agustín Marcos Cividanes

  • Unable to bring up crs on rac node 2 after server reboot

    Hi,
    We have a 2 node rac architecture. We are only able to bring up Node 1 on the cluster, whereas node 2 is failing. Here are some points::
    1. After the server reboot, node 2 crs crs/resources weren't starting up apart from OHAS.
    2. We again stopped both the CRS and tried bringing up CRS on node 2 initially and succeeded. But now node 1 wasn't coming up.
    3. Again brought down both nodes' CRS and tried bringing up CRS on node1 and succeded but asm wasn't showing the Diskgroups. So we changed pfile to include asm_diskstring from ORCL* to /dev/oracleasm/disks and we could lsdg in asm now.So started all the instances from node 1 now. Apart from this, again node 2 CRS wasn't starting. From alertlog I saw "CRS-1714:Unable to discover any voting files, retrying discovery in 15 seconds;". But we were able to query voting disks initially. What has gone wrong now??
    ./crsctl status res -t -init
    NAME           TARGET  STATE        SERVER                   STATE_DETAILS
    Cluster Resources
    ora.asm
          1        OFFLINE OFFLINE
    ora.cluster_interconnect.haip
          1        ONLINE  OFFLINE
    ora.crf
          1        ONLINE  ONLINE       kusmnd0r
    ora.crsd
          1        ONLINE  OFFLINE
    ora.cssd
          1        ONLINE  OFFLINE                               STARTING
    ora.cssdmonitor
          1        ONLINE  ONLINE       kusmnd0r
    ora.ctssd
          1        ONLINE  OFFLINE
    ora.diskmon
          1        OFFLINE OFFLINE
    ora.evmd
          1        ONLINE  OFFLINE
    ora.gipcd
          1        ONLINE  ONLINE       kusmnd0r
    ora.gpnpd
          1        ONLINE  ONLINE       kusmnd0r
    ora.mdnsd
          1        ONLINE  ONLINE       kusmnd0r
    This is the history of activitites. Kindly someone throw light on this please.
    Thanks,
    Anirban.

    It is on a raw device.
    Healthy node::
    ls -ltrh /dev/vote*
    brw-rw---- 1 crsdwqa dbadwqa 120, 1057 Nov  6 11:32 /dev/vote3
    brw-rw---- 1 crsdwqa dbadwqa 120, 1025 Nov  6 11:32 /dev/vote1
    brw-rw---- 1 crsdwqa dbadwqa 120, 1041 Nov  6 11:32 /dev/vote2
    Affected Node::
    ls -ltrh /dev/vote*
    brw-rw-r-- 1 crsdwqa dbadwqa 120, 1025 Nov  4 12:06 /dev/vote1
    brw-rw-r-- 1 crsdwqa dbadwqa 120, 1041 Nov  4 12:06 /dev/vote2
    brw-rw-r-- 1 crsdwqa dbadwqa 120, 1057 Nov  5 04:42 /dev/vote3
    Regards,
    Anirban.

  • AV Agent and OS Collector after server reboot

    We are using Oracle AV Server and AV Agent on version 10.2.0.3.2 with Bundle Patch #1.
    If the target server reboots, both AV agent and OS Aud collector does not come up automatically ?
    Is that a normal behavior ? or we have to do some modifications to get it automatically started.
    Appreciate your guidance.
    Thanks,
    Viral

    You could put it as a startup script, but there isn't anything already written. I call a cron script every hour to make sure that the collectors and agent is up. We had to setup trusted connections from the avagent -> avserver to start the collectors:
    This is on the agent server. We call it every hour from cron.
    #!/bin/ksh
    export ORACLE_HOME=<you set>
    export LD_LIBRARY_PATH_64=<you set>
    export LD_LIBRARY_PATH=<you set>
    export PATH=/bin:/usr/local/bin:/usr/bin:${ORACLE_HOME}/bin
    export collector_info="<yer collector name 1>:<yer source name 1>
    <yer collector name 2>:<yer source name 2>"
    start_av () {
    # See if av agent is running
    avctl show_oc4j_status | grep not
    export exit_status=${?}
    # If it is not running then start it
    if [ ${exit_status} -eq 0 ]; then
      echo "Starting AV agent"
      avctl start_oc4j
    else
      echo "AV agent is already running"
    fi
    start_collector () {
    export collector_name=$1
    export source_name=$2
    # The collector needs to be started from the home av box
    ssh <yer av server ip> /home/oracle/sh/start_collector.sh ${collector_name} ${source_name}
    export exit_status=$?
    if [ ${exit_status} -eq 0 ]; then
      echo "The collector ${collector_name} for ${source_name} was started"
    elif [ ${exit_status} -eq 99 ]; then
      echo "The collector ${collector_name} for ${source_name} was already running"
    else
      echo "The collector ${collector_name} for ${source_name} may have an issue"
    fi
    start_av
    for i in ${collector_info}; do
    collector_name=`echo $i | awk '{ FS=":" }{ print $1 }'`
    source_name=`echo $i | awk '{ FS=":" }{ print $2 }'`
    start_collector ${collector_name} ${source_name}
    doneThis is on your av server start_collector.sh
    export ORACLE_SID=<yer sid>
    export ORAENV_ASK=NO
    . /usr/local/bin/oraenv 1>/dev/null 2>/dev/null
    export collector_name=$1
    export source_name=$2
    export exit_collector_already_running=99
    start_collector () {
    #Check to see if the collector is already running
    avctl show_collector_status     \
          -collname $collector_name \
          -srcname $source_name     \
          | grep not
    export exit_status=$?
    # If the collector is not running then start it
    if [ $exit_status -eq 0 ]; then
      avctl start_collector           \
            -collname $collector_name \
            -srcname $source_name
    else
    # Exit with a status that the collector is already running
      exit $exit_collector_already_running
    fi
    start_collector

  • Node Manager not starting servicess after server reboot

    We have WLS 10.1.3.5 with IDM/OAM(two domains in same server as its TEST environment) on Oracle Linux 5(64bit),when ever server reboots node manger is not starting managed servers.
    I have enabled CrashRecoveryEnabled=true
    Here is nodemanager.properties.
    [oracle@oam nodemanager]$ cat nodemanager.properties
    #Changed NM Listen Port
    #Tue Mar 05 03:12:20 IST 2013
    DomainsFile=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager/nodemanager.domains
    LogLimit=0
    DomainsDirRemoteSharingEnabled=false
    PropertiesVersion=10.3
    AuthenticationEnabled=true
    NodeManagerHome=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager
    javaHome=/u01/Oracle/Middleware/jdk160_24
    JavaHome=/u01/Oracle/Middleware/jdk160_24/jre
    LogLevel=INFO
    DomainsFileEnabled=true
    StartScriptName=startWebLogic.sh
    ListenAddress=
    NativeVersionEnabled=true
    ListenPort=5556
    LogToStderr=true
    SecureListener=false
    LogCount=1
    StopScriptEnabled=false
    DomainRegistrationEnabled=false
    QuitEnabled=false
    LogAppend=true
    StateCheckInterval=500
    CrashRecoveryEnabled=true
    StartScriptEnabled=true
    LogFile=/u01/Oracle/Middleware/wlserver_10.3/common/nodemanager/nodemanager.log
    LogFormatter=weblogic.nodemanager.server.LogFormatter
    ListenBacklog=50
    here is my domain information in server.
    =========================
    [oracle@oam nodemanager]$ cat nodemanager.domains
    #Domains and directories created by Configuration Wizard
    #Tue Mar 05 05:24:37 IST 2013
    OAMDomain=/u01/Oracle/Middleware/user_projects/domains/OAMDomain
    IDMDomain=/u01/Oracle/Middleware/user_projects/domains/IDMDomain

    Hi,
    Entries in nodemanager.properties looks fine, but how are you testing this functionality?
    If you will stop servers monitored by nodemanager, stop nodemanager and then reboot physical server, on startup if nodemanager is configured as daemon it will start nm process but will do nothing to managed server process.
    To test "CrashRecoveryEnabled=true" kill the managed server pid and then stop/kill nodemanager process. Then perform physical server reboot, now if nm is configured as daemon process server reboot will start nodemanager. Once NM is up first thing it check is the server it was monitoring earlier and if under directory $WL_HOME/servers/<server>/data/nodemanager it finds "pid" and "lck" file it checks if that pid exists and if not then go for a restart of weblogic server instance.
    This has worked for me...!
    Thanks,
    Ranjan
    http://www.middlewaresupport.wordpress.com

  • Configuring Oracle to start upon server reboot

    Hi all,
    I have a server running RH 4 with a single instance of Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit running on it.
    I would like to configure the database to start and stop upon server reboot.
    I have configured oratab
    I have placed the following in: /etc/rc.d/rc5.d
    lrwxrwxrwx 1 root root 15 May 4 2010 S99dbora -> ../init.d/dbora
    I've set my ORACLE_HOME in dbora.
    Nothing happened when I rebooted though. Can anyone point me in the right direction? Are their logs I can check to see if the script was even called?
    Thanks very much

    geeter wrote:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/strt_stp.htm#CFAHAHGA
    Linux is one of the OSes listed, but not the distribution.
    Also isn't the sample dbora file supplied an init.d type script?Yes, but it does not conform to specification for init.d on RedHat kernels. The specs on a Debian distro is again different from that RedHat. Which is different from the original SVR4 (System V Release 4) standards.
    I would not expect Oracle documentation to cover all these standards. It provides you with the basic init.d style script - it is up to you to implement that correctly so that it adheres to specs of your o/s for init.d startup and shutdown scripts.
    So the doc is not wrong - merely not "complete" as it does not cover the finer details of differences in init.d implementation across Linux/Unix versions and distros.
    I would also not use that dbora script as is - I would instead make a copy of an existing script and then customise that. This will ensure that the specs are met. For example, displaying the service name with a green OK or a red FAILED status simple needs one to include the default init.d script library. Similarly, you can use default/supplied checks for whether the network is up (required for starting the Oracle Listener) and so on.
    The docs are an excellent start and reference - but it cannot cover every single detail. So it is not that the docs are wrong - but that you are expecting perhaps too much from the docs in this case.

Maybe you are looking for