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

Similar Messages

  • 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

  • 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

  • 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

  • I want to query oracle database from sql server can anyone tell steps 2 fo

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • I want to query oracle database from sql server can anyone tell steps 2 fol

    i want to query oracle database from sql server can anyone tell steps 2 followed
    i tried with linked servers but it is throwing errors can anyone hepl in this regard
    The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
    OLE DB error trace [OLE/DB Provider 'MSDAORA' ITransactionJoin::JoinTransaction returned 0x8004d01b].

    First of all - you are in the wrong forum.
    Look either for the Database general or search for Transparant / Heterogenous Gateways.
    cu
    Andreas

  • 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

  • Connect to a oracle database in another server

    Hi people,
    I have to read some tables on a oracle database in another server.
    I know that I will have to use EXEC SQL command, but how can I make the connection between SAP and that oracle database.
    I have seen something about the DBCON table, but I am not sure if I can connect on another server from ther and how...
    Thanks...

    Dear,
    Check the below links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/connection-between-sap-system-with-external-oracle-database-with-tcode-dbco-1178583
    http://help.sap.com/saphelp_nwpi71/helpdata/en/df/455ec9747111d6b25100508b6b8a93/content.htm
    Hope it will help you.
    Regards,
    Alok Tiwari

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

  • Migrating OBIEE Repfrom Oracle database to SQL server database in Solaris.

    Hi,
    I need inputs in how we would migrate our connections in Repository from Oracle database to SQL server database in Sloaris server.
    Is there a complication here.
    Regards,
    Bhavik

    Well that makes more sense, you probably have phrased your question better. Microsoft SQL Server Connectivity Components are not supported in any other operating system than Windows. So you will not be able to use the SQL Server native drivers to connect to your SQL Server. ODBC it's an option but there aren't many ODBC drivers for Unix systems. Luckily for you OBIEE includes the DataDirect ODBC drivers and supports using them to connect to a SQL Server. Check [the documentation|http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/general_101331.htm#sthref9] on how to use them. Having said that I would say that whoever is pushing to move your DWH to SQL Server should consider also moving OBIEE to a Windows server to be able to use the SQL Server native drivers to connect to SQL Server.
    PS: No needs to post 3 times. :-)

  • Migrating Oracle Databases to SQL Server 2000

    Hi friends,
    I wanna to Migrating Oracle Databases to SQL Server 2000.
    But i don have idea abt that.
    could u plz help how to start and procced.
    Neeraj Goel

    Hi Neeraj,
    This forum is dedicated to Migrating from SQLServer and other third party databases to Oracle.
    Not the other way round.
    The Oracle Migration Workbench facilitates migrations to Oracle.
    Regards,
    Dermot.

  • General Oracle Database Performance trouble solving best practice Steps

    We use  Oracle 11g DB on Windows2008R2 as web application backend DB.
    We have peformance trouble in that DB.
    I would like to know General Oracle Database Performance trouble solving best practice Steps.
    Is there any good general best practice document for performace trouble solving in the internet ?

    @Girish Sharma:  I disagree with this. Many people say things like your phrase "..first identify the root cause and then move forward" but that is not the first step. Any such technique is nothing more than looking at some report, finding a number that you don't like, and attempting to "fix" it. Some people use that supposedly funny term "compulsive tuning disorder" (first used by Gaja Krishna Vaidyanatha) to describe this approach (also advocated in this topic by @Supriyo Dey). The first step must be to determine what the problem is. Until you know that, all those reports you mentioned (which, remember, require EE plus pack licences) are useless.
    @teradata0802, your best practice starts by finding the problem. Is it, for example, that the overnight batch jobs don't finish until lunchtime? A screen takes 10 seconds to refresh, and your target is one second? A report takes half an hour, but you need to run it every five minutes? Determine what business function is causing your client to lose money because it is too slow. Then investigate what it is doing, how, and why. You have to begin by focussing on the problem, not by running database-wide reports..

  • Oracle database Performance testing

    What are the procedure to dp Oracle performance Testing???
    Is there any tools to do Oracle database Performance or load testing??

    insa wrote:
    OS- windows
    DB-Oracle11gr2
    Just i want check if 100 of users using my Application at a time what will be the performance of my database??Database performance is dependent on a number of factors - where application design, application code and data model, are critical components.
    And these components need to be designed, written, and implemented with performance and scalability as primary requirements. From design issues like using 3NF correctly, to coding issues like using bind variables correctly.
    You cannot simply slap design and code together, run that against the database, and then tune database performance. That is not the correct approach. Oracle database technology performs very well. It is the application that does not perform. It is the design that does not perform. It is the architecture that does not perform.
    When I see the comment that someone wants to test database performance, I see someone not understanding what determines performance - and incorrectly thinking that the database is a black box, and that this black box's performance can be tuned and set, irrespective of the data model, application code and architecture used.

  • Oracle databases to MySQL server

    Hi!
    Can anybody suggest a program to move Oracle databases to MySQL server.
    Thanks.
    Abdulkadir Muhammed

    > If the point is cost ... move it to Application Express
    .. on Oracle XE (eXpress Edition).
    Both products are free. This software stack rivals LAMP. Without as many software layers. Using the core of the best commercial database on the market - thus allowing you future growth and scalability. Something that LAMP does quite poorly.

Maybe you are looking for

  • Retrieve members of group in Active Directory

    Anyone who knows how to retrieve all the members of a group in AD? We have a single sign on using AD accounts but I want to specify users that will be given access using security group if AD. I've tried to list all the groups and determine the member

  • Is there anyone who can help me in alv

    hi frns, i have a problem in alv. i have 4 columns in alv and the requirments is such that the 4th column is empty but as soon as i selcet an item in 2nd column with f4(which i have defined in catalog) help its corresponding description should come i

  • Why is my samsung monitor quality is so poor after the lastest os update?

    I recently updated my mac pro and the monitor qulity just turned very poor on me all the options seems to be gone now the text qulity is very poor and the colour is also very poor. everything was fine before the update what happened?

  • How to use Progress Tracking for PO

    Dear SAP gurus, I have requirement to track the progress of goods in the PO. I recently bump into tcode EXPD and want to use this functionality. My detailed requirement is like this: a. We have status of:     - Leaving Factory     - Arrive Port     -

  • Control indicators for controlling area IBM1 do not exist

    hi, Can any one tell me abt this plz-- Control indicators for controlling area IBM1 do not exist Message no. KI102 Role VN not defined in master record for vendor SITA Effective price is 802.01 INR, material price is 1,000.00 INR Please help me Thank