Shutdown abort

whats the worst thing that can happen when you kill oracle procee kill -9 or do shutdown abort ?
will oracle always get away with instance recovery ?
or it could corrupt redo log?
will there be need for recovery or restore?

whats the worst thing that can happen when you kill oracle procee kill -9 or do shutdown abort ?Database will shut down in inconsistent state and in next startup it need the instance recovery which is done automatically by SMON process.
will oracle always get away with instance recovery ?
or it could corrupt redo log? What you do mean by this line? Not clear to me what you want to ask
will there be need for recovery or restore?No need to restore and recovery is required in case of instance crash.
--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Loss of all controlfile,database is automatic shutdown abort?

    Your database is configured in NOARCHIVELOG mode. All the control files have been lost due to a hard disk failure but the data files are not lost. You have the closed whole database backup available to you. Which two statements are true in this scenario? (Choose two.)
    A) The instance aborts.
    B) The database cannot be recovered.
    C) The database can be recovered by restoring the control files from the backup.
    D) The database remains opened and you have to shut it down with the ABORT option.
    E) The database can be restored till the point of the last closed whole database backup.
    noarchivelog mode , before open database i had rman backup full database;
    idle> conn / as sysdba
    Connected.
    idle> alter database open;
    Database altered.
    idle> conn anbob/anbob
    Connected.
    anbob@ANBOB> create table testdelctl(id int);
    Table created.
    anbob@ANBOB> insert into testdelctl values(999);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn system/oracle
    Connected.
    system@ANBOB> select * from v$controlfile;
    STATUS
    NAME
    IS_ BLOCK_SIZE FILE_SIZE_BLKS
    /oracle/oradata/anbob/control01.ctl
    NO 16384 430
    /oracle/oradata/anbob/control02.ctl
    NO 16384 430
    /oracle/oradata/anbob/control03.ctl
    NO 16384 430
    system@ANBOB> !rm /oracle/oradata/anbob/control*.ctl
    system@ANBOB> !ls /oracle/oradata/anbob/
    redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbf
    redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    system@ANBOB> select open_mode from v$database;
    select open_mode from v$database
    ERROR at line 1:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    system@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> conn anbob/anbob
    Connected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    anbob@ANBOB> insert into testdelctl values(0);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn / as sysdba
    Connected.
    sys@ANBOB> alter systme checkpoint;
    alter systme checkpoint
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    sys@ANBOB> alter system checkpoint;
    System altered.
    sys@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> select * from v$version where rownum=1
    2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    sys@ANBOB> shutdown immediate
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    sys@ANBOB> shutdown abort
    ORACLE instance shut down.
    sys@ANBOB> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 96471284 bytes
    Database Buffers 67108864 bytes
    Redo Buffers 2973696 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    sys@ANBOB> select status from v$instance;
    STATUS
    STARTED
    [oracle@aix ~]$ rman target/
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Jul 14 22:32:12 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: anbob (not mounted)
    RMAN> restore controlfile;
    Starting restore at 14-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/14/2011 22:32:27
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    RMAN> restore controlfile from autobackup;
    Starting restore at 14-JUL-11
    using channel ORA_DISK_1
    recovery area destination: /oracle/flash_recovery_area
    database name (or database unique name) used for search: ANBOB
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=/oracle/oradata/anbob/control01.ctl
    output filename=/oracle/oradata/anbob/control02.ctl
    output filename=/oracle/oradata/anbob/control03.ctl
    Finished restore at 14-JUL-11
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:32:52
    ORA-01507: database not mounted
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:12
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:19
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/oradata/anbob/system01.dbf'
    RMAN> recover database;
    Starting recover at 14-JUL-11
    Starting implicit crosscheck backup at 14-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 14-JUL-11
    Starting implicit crosscheck copy at 14-JUL-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 14-JUL-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 19 is already on disk as file /oracle/oradata/anbob/redo03.log
    archive log thread 1 sequence 20 is already on disk as file /oracle/oradata/anbob/redo01.log
    archive log filename=/oracle/oradata/anbob/redo03.log thread=1 sequence=19
    archive log filename=/oracle/oradata/anbob/redo01.log thread=1 sequence=20
    media recovery complete, elapsed time: 00:00:03
    Finished recover at 14-JUL-11
    RMAN> alter database open resetlogs;
    database opened
    RMAN> exit
    Recovery Manager complete.
    o[oracle@aix ~]$ ora
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 14 22:34:23 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    sys@ANBOB> !ls /oracle/oradata/anbob/
    control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbfconn anbob
    sys@ANBOB> conn anbob
    Enter password:
    Connected.
    anbob@ANBOB> select * from tab;
    TNAME TABTYPE CLUSTERID
    TESTCHAR TABLE
    TT TABLE
    TESTTRUN TABLE
    TESTADDM TABLE
    TEST TABLE
    TESTFUNIDX TABLE
    TEAM TABLE
    MEMB TABLE
    TESTENC TABLE
    TESTREC TABLE
    BIN$p/SuvHy7sn7gQKjA9QF/dQ==$0 TABLE
    DETP TABLE
    TESTDELCTL TABLE
    DEPT TABLE
    TESTFLS TABLE
    15 rows selected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    0
    why,loss of all controlfile,the database not abort?

    Satish Kandi wrote:
    The files, which are in use by a process, are not actually deleted when one issues rm command.
    Its only when the process terminates that the locks are released and file is actually deleted at operating system level.I concur!
    This behavior is *NIX only.
    Windows explicitly prevents open files from being deleted.
    Edited by: sb92075 on Jul 14, 2011 9:18 PM

  • SHUTDOWN ABORT in ORACLE 10g

    Hi,
    I wrote a procedure to be run before reinstalling a database. As I am not interested in rolling back, or waiting for transactions to finish, I am using SHUTDOWN ABORT to drop users. Everything works well in ORACLE 9i but it cannot restart in 10g - error:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor.
    The procedure looks like:
    SHUTDOWN ABORT
    STARTUP RESTRICT
    declare
    cursor cnt_usr is
    Select username from dba_users where username in (....some user names);
    str_cmd varchar2(400):='';
    begin
    FOR usr IN cnt_usr LOOP
    BEGIN
    str_cmd := 'DROP USER '|| usr.username || ' CASCADE ' ;
    dbms_output.put_line ('Executing: '|| str_cmd);
    EXECUTE IMMEDIATE str_cmd;
    EXCEPTION
    WHEN OTHERS THEN str_cmd := ' ';
    END;
    END LOOP;
    end;
    ALTER SYSTEM DISABLE RESTRICTED SESSION;
    exit;
    Any idea what may cause the error?
    Thank you
    Dan

    > You do know that Abort means to kill the database.
    Incorrect. It simply means that the database is shutdown in an inconsistent state - i.e. with "open" transactions and thus "dirty" data.
    However, Oracle is designed as a very robust database and this is not a problem. It simply gets the database into a consistent state again on the next startup.
    The risk is that something or someone interferes (mucks up) Oracle data files before the next db start - without the redo logs for example, the instance will have a hard time trying to recover the database and get it into a consistent state.
    The danger is thus not Oracle, but the Idiot Factor one tends to get with cowboy-type administrators.
    What is questionable though is the OP's script that requires the database to be shutdown and started up for a series of drop schemas. That is using a Very Large Hammer to drive in a Very Small Nail. It is a total overkill - not too mention impacting database availability.. And I do not think that our environment is so special/unique that it the exception to measure Oracle instance uptime in 1000's of hours.

  • How to startup database after shutdown abort

    Hi.
    I had a havy load transaction, coudn't kill, so I run shutdown abort,
    now I can't open database, that is massage I get:
    "ORA-16038: log 3 sequence# 52 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 3 thread 1:
    '/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_3_48fpv6q1_.log'
    ORA-00312: online log 3 thread 1:
    '/u01/app/oracle/flash_recovery_area/ORCL/onlinelog/o1_mf_3_48fpv95v_.log'
    What to do?

    Upss sorry:
    Check your flashrecovery area directory, it's full and your redo logs cannot be archived
    release the space..
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    Edited by: Kamran Agayev A. on Mar 5, 2009 8:27 PM

  • Can a "shutdown abort" cause a fractured block?

    Hey there, simple question: Can a "shutdown abort" cause a fractured block?
    I'm currently doing some postmortem work on an old DB (EBS R12 OBA) installation and what might lead to a fractured block. It appears that once a fractured block is detected, Oracle Support automatically shuffles the issue off as a "serious issue within the OS/HW layer". I suppose as a DBA this means they can wash their hands of the issue and pass it on to someone else.
    So far it appears that an OS level app could compromise the write of logical blocks to OS blocks. It also appears that logical volume configuration (pertaining to an older AIX install) could lead to fractured blocks. Yet another article indicates that an HBA I/O error could lead to this issue. And of course file-system corruption.
    But...going back to the original question, can a shutdown abort on a database introduce a fractured block?

    It cannot. A shutdown abort or any abnormal termination means that active transactions are terminated without COMMIT or ROLLBACK. When you start the database after a SHUTDOWN ABORT or any other abnormal termination, Oracle says the active transactions failed and rolls them back. You will be left with the database in a consistent state as if those active transactions never occurred. I suppose you could say that until recovery is complete the block could be in a fractured state meaning that the contents could be inconsistent. But once the database is opened, the block is consistent and not fractured.
    HTH,
    Brian

  • Shutdown abort during switch over?

    Hello,
    I seem to notice a different behaviour between 11.2.0.1 and 11.2.0.2 during switchover on Linux 64 bit.
    On primary I'm connected in sqlplus
    ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;
    Database altered.
    exit
    In alert.log:
    Fri Dec 03 11:52:50 2010
    Process (ospid 15296) is suspended due to switchover to physical standby operation.
    Enter again in sqlplus
    SQL> SHUTDOWN IMMEDIATE;
    ORA-01092: ORACLE instance terminated. Disconnection forced
    in alert.log
    Fri Dec 03 11:53:23 2010
    Performing implicit shutdown abort due to switchover to physical standby
    Shutting down instance (abort)
    License high water mark = 811
    USER (ospid: 16022): terminating the instance
    Instance terminated by USER, pid = 16022
    Fri Dec 03 11:53:25 2010
    Instance shutdown complete
    ORA-1092 : opitsk aborting process
    remaining inside sql session:
    SQL> STARTUP MOUNT;
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    exit and restart sqlplus
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 2739171328 bytes
    Fixed Size          2229640 bytes
    Variable Size          1207962232 bytes
    Database Buffers     1509949440 bytes
    Redo Buffers          19030016 bytes
    in alert.log
    Fri Dec 03 11:55:02 2010
    Starting ORACLE instance (normal)
    ****************** Huge Pages Information *****************
    Huge Pages memory pool detected (total: 1500 free: 1500)
    DFLT Huge Pages allocation successful (allocated: 1313)
    And then normal election to primary for the dr RDBMS.
    But I didn't notice this "shutdown abort" when using 11.2.0.1.
    The same happens if at the beginning I remain in sqlplus sesison and try to run "startup mount"
    Is this expected?
    Thanks in advance,
    Gianluca

    If you use IMMEDIATE, an ABORT will be performed anyway as of 11.2.0.2 and you would see the following in the alert
    Performing implicit shutdown abort due to switchover to physical standby
    Shutting down instance (abort)
    So the answer is Yes.
    You can confirm this yourself by reviewing :
    11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus [ID 1304939.1]
    Best Regards
    mseberg
    Wow, this question is way old! Please open your own question user user11311455, you caught me before I had coffee.
    Edited by: mseberg on Aug 17, 2011 8:09 AM

  • Database is hang during shutdown abort (Urgent Production Issue)

    Hi Gurus
    In my production system while shutdown immediate , database was hang.
    When we logged in system and gave shutdown abort its again hang.
    Pls suggest me what could be the reason and how it can be solved
    Thanks

    Tue Oct 21 05:01:09 2008
    Shutting down instance: further logons disabled
    Tue Oct 21 05:45:19 2008
    ksvcreate: Process(q005) creation failed
    Tue Oct 21 05:45:30 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:45:42 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:45:54 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:46:06 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:46:18 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:46:30 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:46:42 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:46:54 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:47:06 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:47:18 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:47:30 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:47:42 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:47:54 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:48:06 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:48:18 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:48:30 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:48:42 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:48:54 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:49:06 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:49:18 2008
    ksvcreate: Process(q000) creation failed
    Tue Oct 21 05:49:24 2008
    Shutting down instance (abort)
    License high water mark = 26
    Termination issued to instance processes. Waiting for the processes to exit
    Tue Oct 21 05:49:35 2008
    Instance termination failed to kill one or more processes
    Tue Oct 21 06:06:43 2008
    Instance terminated by USER, pid = 20613

  • If shutdown immediate hangs database waits one hour for shutdown abort

    we have schedules cold backup for our 11g database on redhat 5.3.
    there is a shell script written with shutdown immediate command.
    If database hangs during shutdown immediate database waits one hour for auto shutdown abort.
    but this happens once or twice in a month
    can we do this auto shutdown abort earlier than one hour ??

    user13376823 wrote:
    we have schedules cold backup for our 11g database on redhat 5.3.
    Since you're shutting down the database for cold backup so ensure it should be shutdown properly by shutdown or shutdown immediate cmd not by abort cmd.
    Consistent backup:-
    A backup taken when the database is mounted (but not open) after a normal shutdown. The checkpoint SCNs in the datafile headers match the header information in the control file. None of the datafiles has changes beyond its checkpoint. Consistent backups can be restored without recovery.
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1007616

  • ASM instance shutdown abort automatic on 10gr2 RAC

    Hi all, I have a oracle 10gR2 RAC on solaris9 with three nodes.the node2 and node3 work right,but the ASM instance on node1 often shutdown abort automatic and no any erros in alertlog file.
    why ?
    Fri Nov 3 10:17:39 2006
    Shutting down instance (abort)
    License high water mark = 6
    Instance terminated by USER, pid = 15327

    Does anyone know ?

  • Running shutdown abort

    When calling shutdown immediate and it lasts long
    because of rolling back some transaction, I call
    shutdown abort and start the instance, the crash recovery
    succeeds, is there any reason for shutting down normal
    again to last long too (there are no transactions to roll back)?

    Hi,
    any reason for shutting down normal do you mean shutdown normalWhen shutting down normal, Oracle waits for connected users to willingly disconnect (you can kill the sessions too though). Check if you've gor jobs running (DBA_JOBS_RUNNING) because they 'connect' to the database in order to run. This could be the reason why it takes a long time.
    For example if I bounce one of my main DBs, once it's open, at least 5 jobs will start running. If I issue shutdown normal it'll wait for these job to finish their tasks.
    Regards,
    Yoann.

  • I get a popup window on shutdown: abort installation?

    I get a popup window on shutdown asking if I want to abort installation. I don't know what program is trying to install. But that generally stops the shutdown from completing. How do I find what application is being installed, and eliminate it?
    Running 10.10.2 on Macbook pro

    This has been going on for a while, I have no idea what it might be. The window does not state what is trying to be installed. Aborting the installation sometimes results in a shutdown, but also can block the shutdown, so I get a blank screen with the cursor - no spinning wheel.
    I just looked at the activity monitor, but have no idea how to read that. The following is just an example of part of what it shows.
    Activity Monitor    4.0    1.16    9    2    2139    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Firefox    0.9    16:19.59    52    14    466    janstittleburg    70 KB    280 KB    70    216    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    FMCore    0.4    1:18.61    15    25    353    janstittleburg    13 KB    79 KB    716    717    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    distnoted    0.2    33.55    7    0    216    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Mail    0.2    2:07.01    14    7    621    janstittleburg    11 KB    39 KB    90    109    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Photoshop    0.1    6:56.10    22    2    1066    janstittleburg    40 KB    12 KB    317    317    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Logitech Control Center Daemon    0.0    1.00    3    0    335    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Suitcase Fusion 5    0.0    7.01    18    1    224    janstittleburg    39 KB    396 bytes    396    396    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    32 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    NETserver    0.0    1.29    2    0    382    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    32 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    AdobeCrashDaemon    0.0    0.19    1    0    1068    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    mdworker    0.0    1.00    4    0    2059    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Notification Center    0.0    1.36    3    0    337    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    mdworker    0.0    0.11    3    0    2062    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    DataDetectorsDynamicData    0.0    0.14    2    0    435    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Preview    0.0    4.30    3    0    1538    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    iCloud Photos    0.0    0.67    7    0    343    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    TabletDriver    0.0    0.10    3    0    392    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    CalNCService    0.0    0.56    2    0    297    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    storelegacy    0.0    0.04    2    0    441    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.hiservices-xpcservice    0.0    0.01    2    0    1351    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.BKAgentService    0.0    0.03    2    0    1541    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    accountsd    0.0    0.54    2    0    300    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    storedownloadd    0.0    0.05    2    0    444    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    diagnostics_agent    0.0    0.31    2    0    349    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    mdworker    0.0    0.15    3    0    1832    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    IMDPersistenceAgent    0.0    0.06    2    0    303    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    mdworker    0.0    14.86    4    0    447    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.ColorSyncXPCAgent    0.0    0.01    2    0    1069    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    CoreServicesUIAgent    0.0    0.40    3    0    306    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    loginwindow    0.0    1.60    2    0    70    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    UserEventAgent    0.0    2.04    3    0    214    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.audio.SandboxHelper    0.0    0.01    2    0    1602    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    tccd    0.0    0.77    2    0    263    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    ContainerMetadataExtractor    0.0    0.08    2    0    407    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    storeaccountd    0.0    0.30    4    0    312    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Alert Detector    0.0    0.32    3    0    410    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Adobe Acrobat Pro    0.0    0.00    1    0    220    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    32 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.iCloudHelper    0.0    0.07    3    0    2135    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    secd    0.0    0.77    2    0    269    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    com.apple.wifi.proxy    0.0    0.26    2    0    318    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Calculator    0.0    0.65    3    0    223    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    helpd    0.0    0.02    2    0    1228    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    iconservicesagent    0.0    0.28    2    0    272    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    ScopedBookmarkAgent    0.0    0.42    2    0    560    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    CalendarAgent    0.0    6.77    4    0    275    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    SystemUIServer    0.0    7.08    4    0    229    janstittleburg    3 KB    0 bytes    719    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    lsuseractivityd    0.0    0.77    3    0    284    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    cloudd    0.0    5.44    9    0    293    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    Yes  
    No    -    0 bytes    0 bytes    0 bytes    No   
    Dock    0.0    3.29    7    0    228    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    nsurlstoraged    0.0    1.26    2    0    289    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    fontd    0.0    4.99    3    0    249    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    No    No  
    No    -    0 bytes    0 bytes    0 bytes    No   
    cfprefsd    0.0    4.97    5    0    218    janstittleburg    0 bytes    0 bytes    0    0    0 bytes    0 bytes  
    0 bytes    0 bytes    0 bytes    64 bit    Yes    No  
    No    -    0 bytes    0 bytes    0 bytes    No   

  • Detect and Prevent SHUTDOWN ABORT

    Hello all,
    Is there any way to pre-detect the database when (for some reason) it is about to shutdown with the abort option?
    My concern, is whether there exist any way that can be used to notify the user (even the sysdba) that such event happened

    Hello back,
    This is what I've found the day the db went down, and the trigger was not fired
    Wed Jul 27 04:32:38 2011
    Errors in file d:\oracle\admin\db_name\bdump\db_name_lgwr_1988.trc:
    ORA-00345: redo log write error block 180877 count 2
    ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\db_name\REDO01.LOG'
    ORA-27072: skgfdisp: I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    Wed Jul 27 04:32:40 2011
    Errors in file d:\oracle\admin\db_name\bdump\db_name_lgwr_1988.trc:
    ORA-00340: IO error processing online log 1 of thread 1
    ORA-00345: redo log write error block 180877 count 2
    ORA-00312: online log 1 thread 1: 'D:\ORACLE\ORADATA\db_name\REDO01.LOG'
    ORA-27072: skgfdisp: I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    LGWR: terminating instance due to error 340
    Wed Jul 27 04:32:43 2011
    Errors in file d:\oracle\admin\db_name\bdump\db_name_pmon_7312.trc:
    ORA-00340: IO error processing online log  of threadI do not know what the real reason could be.
    I just thought, that "ringing a bell" when the db goes down would have been a solution while looking at the source
    cousing the error.

  • Abort 옵션으로 shutdown 했는데요...

    어떤 사용자가 대용량 DB작업을 걸고 있었는데..
    DB를 내릴필요가 있어 shutdown immediate명령을 내렸는데.. 도무지 내려가질 않더군요.
    그래서 할수 없이 shutdown abort로 내리고 다시 startup 시켰는데..
    여러개의 oracle 프로세스가 엄청난 양의 disk io를 발생시켜 전체 DB속도가 매우 느려졌습니다.
    도대체 오라클이 무슨 일을 하고 있는거죠?
    그리고 이런 현상을 방지하는 방법은 없는가요?
    - 사용환경 -
    IBM AIX 5.3
    Oracle 10g (10.2.0.2)

    shutdown immediate는 세션을 클리어시키고 트랜잭션을 rollback 시키고
    redo log에 있는 commit했으나 datafile에 쓰지 못한 데이터를 datafile에
    다시 쓰는 작업을 합니다. checkpoint도 찍고 내리겠죠.
    그런데 그 량이 많다면 내릴 때에 오래 걸립니다.
    하지만 shutdown abort로 내렸다고 할지라도 메모리를 빠르게 클리어시키기는
    하나 open을 시키면 instance recovery를 수행해야 하기 때문에 트랜잭션이
    있던 테이블은 undo에서 원본 데이터를 datafile에 적용하는 rollback을 해야
    하므로 lock이 걸립니다.
    오라클 데이터베이스에서 disk i/o가 일어났다는 것은 사용자의 쿼리가
    수행되어야만 일어나겠죠. 그러므로 사용자 쿼리가 어떤 것인지를
    wait event는 어떤 것인지를 알 필요가 있습니다.
    그렇다면 세션이 무슨 일을 하는지 알고자 하려면 아래 제가 정리한 것을
    참고하시길 바랍니다.
    10.2.0.2 버젼이군요.
    ADDM의 snapsoht을 수행하셨는지요?
    아니면 statspack 이라두요. 만약 그것이 있다면
    abort로 내리기 전에 문제가 생겼던 쿼리를 알 수
    있습니다.
    1. 단순히 어떤 작업을 하는지에 대해서 확인
    (1) A창에서 sh유저에 접속해서 조회
    SQL> select count(*) from sales, sales, products;
    (2) 아래 쿼리를 수행해서 ACTIVE SESSION을 확인
    ## s.sql ==> Active 유저에 대한 점검
    col machine for a15 trunc
    col username for a10
    col program for a15 trunc
    col status for a10
    col action format a10
    set lines 150
    select b.spid as unixpid, a.sid, a.serial#,a.username,a.program,a.machine,a.action,
    a.status,to_char(a.logon_time,'yyyymmdd hh24miss') as CONN_TIME, a.sql_hash_value
    from v$session a,v$process b
    where a.paddr = b.addr
    and a.status = 'ACTIVE'
    and a.type <> 'BACKGROUND'
    order by CONN_TIME;
    col machine for a15 trunc
    col username for a10
    col program for a15 trunc
    col status for a10
    col action format a10
    set lines 150
    select b.spid as unixpid, a.sid, a.serial#,a.username,a.program,a.machine,a.action,
    a.status,to_char(a.logon_time,'yyyymmdd hh24miss') as CONN_TIME, a.sql_hash_value
    from v$session a,v$process b
    where a.paddr = b.addr
    and a.status = 'ACTIVE'
    and a.type <> 'BACKGROUND'
    order by CONN_TIME;
    UNIXPID SID SERIAL# USERNAME PROGRAM MACHINE ACTION STATUS CONN_TIME SQL_HASH_VALUE
    2083 9 23 SH sqlplus@rac2 (T rac2 ACTIVE 20060929 210556 3635133102
    2127 10 103 SYS sqlplus@rac2 (T rac2 ACTIVE 20060929 210821 1484184969
    (3) sidsql.sql 을 수행해서 현재 active session이 어떤 작업을 하는지 확인
    해당 쿼리가 나옵니다.
    ## sidsql.sql ==> sid 별 유저가 수행하는 쿼리문 추출
    set pages 40
    col program for a25
    col username for a10
    col machine for a15
    col module for a25
    col spid for a6
    col sid for 99999
    select a.username,a.program,a.machine,a.module,b.spid,a.sid,a.serial#,a.status,
    c.sql_text
    from v$session a,
    v$process b,
    v$sql c
    where a.sid = '&sid'
    and b.addr = a.paddr
    and a.sql_hash_value = c.hash_value(+)
    and a.sql_address = c.address(+);
    Enter value for sid: 9
    old 6: where a.sid = '&sid'
    new 6: where a.sid = '9'
    USERNAME PROGRAM MACHINE MODULE SPID SID SERIAL# STATUS
    SQL_TEXT
    SH sqlplus@rac2 (TNS V1-V3) rac2 SQL*Plus 2083 9 23 ACTIVE
    select count(*) from sales, sales, products
    2. wait event를 조사해서 waiting을 하고 있는 세션의 쿼리확인
    (1) wait event를 조회하는 쿼리 수행
    # wait.sql
    set timing off
    col user format a8
    col event format a20
    col sid_serial format a10
    col wait format 99999
    col program format a8 trunc
    col machine format a8
    set linesize 250
    col p1_val format a15 heading 'P1'
    col p2_val format a15 heading 'P2'
    col p3_val format a15 heading 'P3'
    prompt Session Informatiln
    select /*+ no_merge */ b.username "user", p.spid, a.sid||':'||b.serial# sid_serial, a.event,a.p1text||':'||a.p1 p1_val,
    a.p2text||':'||a.p2 p2_val , a.p3text||':'||a.p3 p3_val,
    -- a.seconds_in_wait wait,
    b.program, b.sql_hash_value
    from v$session_wait a, v$session b, v$process p
    where a.sid > 6 and a.event not like '%Net%'
    and p.ADDR=b.paddr
    and a.event not like '%timer%'
    and a.event not like '%ipc%'
    and a.event not like '%virtual%'
    and a.event not like '%slave wait%'
    and a.event not like '%wakeup time manager%'
    and a.sid = b.sid
    order by logon_time
    user SPID SID_SERIAL EVENT P1 P2 P3 PROGRAM SQL_HASH_VALUE
    SH 2083 9:23 direct path read file number:52 first dba:9418 block cnt:1 sqlplus@ 3635133102
    (2) sql_hash_value값을 통해서 쿼리점검
    - 위 결과에서 sql_hash_value값을 넣어주면 해당 세션이 어떤 작업을 하는지
    보여줌
    ## sidhashsql.sql
    set pages 1000
    col sql_text format a120
    select sql_text from v$sqltext_with_newlines
    where hash_value=&hash_value order by piece;
    Enter value for hash_value: 3635133102
    old 2: where hash_value=&hash_value order by piece
    new 2: where hash_value=3635133102 order by piece
    SQL_TEXT
    select count(*) from sales, sales, products
    3. oradebug를 이용해서 해당 세션에 대한 10046 trace event걸기..
    (1) active session을 위에서 제시했던 s.sql을 통해서 확인
    - 위에 있으므로 생략
    (2) oradebug로 세션에 대한 10046 트레이스 이벤트를 걸음
    - 아래에서 UNIXPID가 2083 으로 나왔음. 즉 ps -ef|grep ora 를 수행했을 때에
    ora9i 2083 2052 92 21:05 ? 00:07:52 oraclePROD (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    로 나오는 OS프로세스 ID인 2083을 말함
    만악 OS에서 top을 통해서 오라클 프로세스가 top에 있다면 그 세션에 대해서
    아래와 같이 oradebug를 수행하면 그 세션이 무엇을 하는지 알아내기 편합니다.
    SQL> @s
    UNIXPID SID SERIAL# USERNAME PROGRAM MACHINE ACTION STATUS CONN_TIME SQL_HASH_VALUE
    2083 9 23 SH sqlplus@rac2 (T rac2 ACTIVE 20060929 210556 3635133102
    2131 10 105 SYS sqlplus@rac2 (T rac2 ACTIVE 20060929 211232 1932056097
    10 rows selected.
    - 2083 서버프로세스에게 oradebug 셋팅
    SQL> oradebug setospid 2083
    Oracle pid: 10, Unix process pid: 2083, image: oracle@rac2 (TNS V1-V3)
    - max_dump_file_size 로 제한이 되어 있을 수 있으므로 unlimit로 변경
    SQL> oradebug unlimit
    Statement processed.
    - 10046 세션트레이스 이벤트를 걸음, level 12가 최고
    SQL> oradebug event 10046 trace name context forever, level 12;
    Statement processed.
    - 떨구어지는 트레이스 파일의 경로를 확인
    SQL> oradebug tracefile_name
    /data/admin/PROD/udump/prod_ora_2083.trc
    (3) 트레이스 확인 및 tkprof를 통해서 결과 추출
    PROD@/data/admin/PROD/udump $ls -al /data/admin/PROD/udump/prod_ora_2083.trc
    -rw-r----- 1 ora9i dba 7836512 Sep 29 21:18 /data/admin/PROD/udump/prod_ora_2083.trc
    PROD@/data/admin/PROD/udump $tkprof prod_ora_2083.trc trace_result.txt sys=no explain=sh/sh
    TKPROF: Release 9.2.0.7.0 - Production on Fri Sep 29 21:19:01 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    PROD@/data/admin/PROD/udump $more trace_result.out
    trace_result.out: No such file or directory
    PROD@/data/admin/PROD/udump $more trace_result.txt
    TKPROF: Release 9.2.0.7.0 - Production on Fri Sep 29 21:19:01 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Trace file: prod_ora_2083.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    select count(*)
    from
    sales, sales, products
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.01 0.00 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 24 (SH)
    Rows Execution Plan
    0 SELECT STATEMENT GOAL: CHOOSE
    0 SORT (AGGREGATE)
    0 MERGE JOIN (CARTESIAN)
    0 MERGE JOIN (CARTESIAN)
    0 BITMAP CONVERSION (TO ROWIDS)
    0 BITMAP INDEX (FAST FULL SCAN) OF
    'PRODUCTS_PROD_STATUS_BIX'
    0 BUFFER (SORT)
    0 PARTITION RANGE (ALL) PARTITION: START=1 STOP=16
    0 BITMAP CONVERSION (TO ROWIDS)
    0 BITMAP INDEX (FAST FULL SCAN) OF 'SALES_TIME_BIX'
    PARTITION: START=1 STOP=16
    0 BUFFER (SORT)
    0 PARTITION RANGE (ALL) PARTITION: START=1 STOP=16
    0 BITMAP CONVERSION (TO ROWIDS)
    0 BITMAP INDEX (FAST FULL SCAN) OF 'SALES_TIME_BIX'
    PARTITION: START=1 STOP=16
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    direct path read 146558 0.00 0.66
    SQL*Net break/reset to client 1 0.00 0.00
    SQL*Net message to client 2 0.00 0.00
    SQL*Net message from client 1 1.65 1.65
    direct path write 4 0.00 0.00
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.01 0.00 0 0 0 0
    Misses in library cache during parse: 1
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    direct path read 146558 0.00 0.66
    SQL*Net break/reset to client 1 0.00 0.00
    SQL*Net message to client 2 0.00 0.00
    SQL*Net message from client 1 1.65 1.65
    direct path write 4 0.00 0.00
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 0 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 0 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 0
    1 user SQL statements in session.
    0 internal SQL statements in session.
    1 SQL statements in session.
    1 statement EXPLAINed in this session.
    Trace file: prod_ora_2083.trc
    Trace file compatibility: 9.02.00
    Sort options: default
    1 session in tracefile.
    1 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    1 SQL statements in trace file.
    1 unique SQL statements in trace file.
    1 SQL statements EXPLAINed using schema:
    SH.prof$plan_table
    Default table was used.
    Table was created.
    Table was dropped.
    146591 lines in trace file.
    마지막으로
    SQL> oradebug event 10046 trace name context off; 를 꼭해서
    10046 event를 종료합니다.
    글 수정:
    민천사 (민연홍)

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Shutdown hangs after drop column

    Hi,
    We were trying to drop column on a very big table, after that we cancelled that operation, and given shutdown immediate command.
    Now shutdown is taking too much time, going on from last 9 hours.....
    We want to start the database, what can be the best possible solution.
    Shutdown abort and startup will help ?
    Thanks
    Dilipkumar Patel.

    We were trying to drop column on a very big table, after that we cancelled that operation, and given shutdown immediate command.I guess SMON was doing rollback the transaction when you cancelled the operation. Since it was a big table, it was taking lot of time.
    Can you check the alter log is there any error or info msg in it?
    I am afraid if you give shutdown abort, may cause serious issues.
    Before you execute 'shutdown abort', make sure you have good backup, in case of recovery.
    Jaffar

Maybe you are looking for

  • Upload text file to oracle table with checking and aggregation

    Hi Friends, I am new to ODI.  I have encountered a problem which is specific to ODI 11G (11.1.1.6.3) to upload text file to oracle table with checking and aggregation.  Would you please teach me how to implement the following requirement in ODI 11G?

  • How to detect system date Format?

    Could some one help to find out how to detect local system is in MM/DD/YYYY or DD/MM/YYYY format? Thanks.

  • RE:Consolidation

    Dear Friends, Can anybody tell me what is the meaning of consolidation and if there is any material regarding this follow mail to me. [email protected] Thanks & Regards, KIRAN.

  • Importar PSD para AI mantendo as camadas

    Bom dia! É possível importar um arquivo em psd para um arquivo ai mantendo as camadas existentes no arquivo psd? Explicando, eu tenho uma arte totalmente feita em psd, porém gostaria de trabalhar no illustrator, quando eu vou em arquivo e depois em i

  • To be unable to discover a Nexus 5548 wirth DCNM 5.2(2e)

    Hello, I am unable to discover 2 Nexus 5548 with the SAN client of DCNM 5.2(2e) These Nexus are used like LAN and SAN switch. Each Nexus is a SAN fabric. I would want to use DCNM in order to configurate the zone/zoneset via GUI. These Nexus 5548 run