(Diagnostics) Oracle10g DB 접속 안될때 sqlplus 에서 SYSTEMSTATE DUMP 받기

(Diagnostics) Oracle10g DB 접속 안될때 sqlplus 에서 SYSTEMSTATE DUMP 받기
=========================================================================
PURPOSE
Oracle10g 이상에서는 HANG 발생으로 DB 접속 안될때 OS 디버거 사용안하고도
sqlplus -prelim 옵션으로 간단하게 SYSTEMSTATE DUMP 를 받을 수 있다.
EXPLANATIONS
1. 사용방법
$ sqlplus -prelim / as sysdba
SQL> oradebug setmypid
SQL> oradebug unlimit
SQL> oradebug hanganalyze 1
SQL> oradebug dump systemstate 266
>>> 30 초 WAIT
SQL> oradebug dump systemstate 266
>>> 30 초 WAIT
SQL> oradebug dump systemstate 266
2. 주의사항
(1) 9.2.0.6 이상에서는 SYSTEMSTATE DUMP LEVEL 266 사용을 권장한다.
LEVEL 266 는 프로세스의 short call stack 을 생성하여 blocker 원인 분석에 유용하다.
(2) 오라클 엔지니어들이 사용하는 SYSTEMSTATE DUMP 분석 툴에서 한 트레이스
파일에 있는 여러개의 SYSTEMSTATE DUMP 들을 비교하여 blocker 를 결정하므로
SYSTEMSTATE DUMP 들이 한 트레이스 취합되도록 동일 세션에서 30초 간격으로 3번 수행한다.
(3) -prelim 옵션 사용시 ORA-7445 에러발생하면 PGA 변수 초기화하여 사용한다.
sqlplus -prelim '/ as sysdba'
oradebug setmypid
oradebug unlimit;
oradebug call ksmcpg
oradebug dump systemstate 266
(4) SYSTEMSTATE DUMP LEVEL 266 사용시 OS 에따라 프로세스의 short call stack
생성 속도와 부하가 다르므로 프러덕션에서 사용 전에 꼭 테스트 후 사용 권장한다.
만약 LEVEL 266 이 너무 느리거나 부하가 많다면 LEVEL 10 을 사용한다.
References
Note 121779.1 - Taking Systemstate Dumps when You cannot Connect to Oracle
Note 417879.1 - ORA-07445 [kgllkd] With -prelim Option When Running System State Dump

Similar Messages

  • Redhat 6.0 Webdb 2.2 Server 8.1.5 sqlplus core dump segmentation fault solution

    If anyone else is struggling with this installation, heres a workaround that
    Got things going for me.
    Redhat 6.0
    Oracle 8.1.5
    Webdb 2.2
    The database was up and working fine. Not as many problems as earlier versions but there was still much grief getting it to work. Save yourself some time, dont charge ahead like I did, read the installation notes.
    The installation of Webdb didnt go so well though. Sqlplus would core dump with segmentation fault when a connection to the local instance was attempted. I tried many things, install webdb to 8.1.5 , apply glibc patch, apply 8.0.5 patches to webdb install none of this worked. The workaround I finally found was to use the 8.1.5 listener and the old formatting of a listener.ora and tnsnames.ora file. (i.e. like 7.3.x). Sqlplus would then connect via tcp. Installation still had another problem I could never get past the sys password confirmation. I could connect from the command line with sqlplus s /nolog @passwd.sql sys/mypass@mytnsname but the installer just wouldnt work. An edit of the installation_dir ->webdb-2.2/owa40/owa40.vrf file did the trick. Hard code a location to a dummy pass.sys file.
    After many frustrating hours 160 or so - I think I finally have a working database and a working webdb web site. Hope this info might help others.
    Craig MacPherson
    null

    o Did you end up with 8.1.5 and WebDB2.2 in different Oracle_homes?
    Yes - product/8.1.5
    - product/8.0.5
    o What do you mean that you used the 8.1.5 listener? My database is 8.1.5 so the tnslistener I'm using is from the 8.1.5 install - not the 8.0.5 version.
    o Can you send a sample of the tnsnames.ora file that you used?
    Sure - make sure you set TNS_ADMIN
    # Filename: Listener.ora
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS= (PROTOCOL= TCP)(Host= 139.142.231.213)(Port= 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME= /oracle/product/8.1.5)
    (SID_NAME = cmac)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    # Filename: Tnsnames.ora
    cmac =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= 139.142.231.213)(Port= 1521))
    (CONNECT_DATA = (SID = cmac))
    test =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host= dmac)(Port= 1521))
    (CONNECT_DATA = (SID = cmac))
    null

  • Sqlplus describe dumps core

    The describe command dumps core eg.
    SQL> describe help;
    Name Null? Type
    TOPIC NOT NULL VARCHAR2(50)
    SEQ NOT NULL NUMBER
    Segmentation fault (core dumped)
    Same happens on v$license...
    O/S RH6.0 Oracle 8.1.5 patch level 8.1.5.0.2
    Regards
    Theo

    Seems linesize is the cause ie. linesize
    of 126 or greater causes the core dump.
    SQL> set linesize 125;
    SQL> describe dba_tables; /* works fine */
    SQL> set linesize 126;
    SQL> describe dba_tables; /* dumps core */
    Regards
    Theo

  • Oradebug -g all dump systemstate 266

    Hi All,
    I am trying to create SYSTEMSTATE dump for my RAC database. Recently we had a node crash, due to hanging sessions. When we open a SR with oracle, they suggested us to run following if the same scenario repeats.
    oradebug setmypid
    oradebug unlimit
    oradebug -g all dump systemstate 266
    wait for 2 min
    oradebug -g all dump systemstate 266
    wait for 2 min
    oradebug -g all dump systemstate 266
    I tried running the above without "oradebug unlimit". I got "ORA-02819: Write failed" after generating 30Mb trace file.
    Second time, I did set "oradebug unlimit" and trying to run "oradebug -g all dump systemstate 266".
    But getting the following error.
    Error 2819 encountered by local DIAG [ospid=529126]
    Error 2819 encountered by remote DIAG [ospid=1151684][instance=2]
    Error 2819 encountered by remote DIAG [ospid=1208710][instance=4]
    Error 2819 encountered by remote DIAG [ospid=549384][instance=3]
    Please advice.
    Thanks in advance.

    Hi All,
    I got these instructions from oracle and they worked.
    alter session set max_dump_file_size=unlimited;
    oradebug setmypid     -- Have to do this else you will get ORA-00074 - no process specified on subsequent cmds
    oradebug unlimit
    oradebug setinst all
    oradebug -g all dump systemstate 266
    oradebug tracefile_name
         ( Run from each instance sequentially - starting with hung one - then move on to other non hung instances)

  • Sqlplus crash when connecting to 7.3.2

    I know I'm missing something stupid here.
    sqlplus completely dumps when I put in a connect string to a
    7.3.2 database.
    I know the descriptor is right, and I can tnsping it fine.
    I bet its an env-var or something........
    Any help is appreciated.
    thanx,
    Freddy Wissing
    [email protected]
    null

    I experience the same problem. The attempt to connect to
    7.3.2 on HP-UX from Linux spawns the memory dump.
    Freddy Wissing (guest) wrote:
    : I know I'm missing something stupid here.
    : sqlplus completely dumps when I put in a connect string to a
    : 7.3.2 database.
    : I know the descriptor is right, and I can tnsping it fine.
    : I bet its an env-var or something........
    : Any help is appreciated.
    : thanx,
    : Freddy Wissing
    : [email protected]
    null

  • Importing oracle 9 dump to oracle 8

    I was wondering if dump file from oracle 9 can be imported to oracle 8. If yes, is there anything to be done in creating a dump file in oracle 9?
    Thanks in advance.

    As Justin said, or if the version 8 system is on another platform and the tnsnames.ora entry for the version 9 db is not available and you are not allowed to add it then you can use dbms_metadata to dump the DDL, SQLPlus to dump the data into delimited files, binary ftp the extracts to the version 8 platform, and use sqlldr to re-populate the tables. Exp using version 8 from the version 8 platform via Oranet is obviously easier.
    HTH -- Mark D Powell --

  • RDBMS PROBLEM DIAGNOSTIC

    제품 : ORACLE SERVER
    작성날짜 : 1995-02-06
    Subject: Recommended Diagnostic Practices
    The diagnostic procedures outlined here are intended as guidelines
    to dealing with various categories of errors. This is by no means
    an exhaustive list as the nature of the specific error invariably dictates
    the type and amount of diagnostic tracing that is required.
    Based on the information gathered via these guidelines it may be necessary
    to successively obtain further traces, as required by Oracle Development.
    This may be an iterative process.
    1. DATA CORRUPTIONS
    1.1 Description of Category
    This category includes all block format corruptions, invalid index entries,
    and corruptions of meta-data (eg.data dictionary).
    1.2 Example:
    ORA-600 [3339] on System datafile
    1.3 Typical Diagnostic Actions:
    (a) Get trace file(s), if the corruption reported as an internal error.
    (b) For table corruptions, attempt to use index (if available) to extract
    data from uncorrupted blocks.
    (c) Obtain redo dumps corresponding to the time of corruption.
    (d) If there is reason to suspect vendor OS problem, complete H/W
    diagnostics need to be carried out.
    (e) Where appropriate, determine if generic or port-specific issue.
    2. LOGICAL CORRUPTIONS
    2.1 Description of Category
    This category refers to cases where the data stored or retrieved by
    a query is incorrect although it isn't necessary that an error is returned
    externally.
    It also includes data dictionary inconsistencies without any detectable block corruption.
    2.2 Example:
    Query returns different results with CBO vs. Rule-based
    2.3 Typical Diagnostic Actions:
    (a) Obtain a reproducible test case or dial-in information.
    (b) Record any visible error messages, get trace files.
    (c) Where appropriate, determine if generic or port-specific issue.
    3. SYSTEM HANGS
    3.1 Description of Category
    This category includes the cases where:
    (i) the database hangs on open after media or instance recovery,
    (ii) the system hangs with users unable to logon or execute operations.
    3.2 Example:
    Database spinning in transaction recovery, on attempting to open.
    3.3 Typical Diagnostic Actions:
    (a) Stack and process state dumps of all Oracle processes, including hung
    processes using the ORADBX utility.
    (b) Obtain complete ALERT.log to establish history of events leading to hang.
    (c) In the case of a hang on database open:
    (i) Set events to determine which stage of recovery is stuck.
    (ii) Dumps of the controlfile, datafile headers, logfile headers, buffers, enqueues and latches.
    (iii) Situation-specific dumps of archive/online logfiles.
    (d) In the case of a system hang, take multiple systemstate dumps at
    intervals.
    (e) Monitor CPU and I/O activity during the hang using o/s utilities.
    (f) Obtain a reproducible test case or dial-in information for development.
    4. PERFORMANCE PROBLEMS
    4.1 Description of Category
    This category comprises (i) General cases of deteriorations in response time
    or batch completion times (ii) performance degradtion on increase in concurrent activity.
    4.2 Example
    System hangs if more than 96 concurrent users.
    4.3 Typical Diagnostic Actions:
    (a) Document performance degradation in terms of specific indicators (response
    time, batch completion time, number of concurrent logins supported,
    efficiency of shared pool management).
    (b) Provide a reproducible test case where possible, or document in detail
    the environment and factors leading to poor performance (for example,
    in the cases where reproducibility depends on concurrency in a production
    environment, document circumstances surrounding degradation like #logins,
    average memory usage, typical functionality invoked, IO activity,
    dynamic statistics on Oracle activity.)
    (c) Where appropriate, determine if generic or port-specific issue.
    (d) If not reproducible in-house, but reproducible with reasonable
    frequency on customer site provide dial-in information for development.
    5. SYSTEM CRASHES
    5.1 Description of Category
    This includes all cases where the database crashes, possibly due to
    one of the background processes dying.
    5.2 Example:
    DBWR crashes periodically during heavy activity
    5.3 Typical Diagnostic Actions:
    (a) Request trace files, ALERT.log and information on circumstances
    surrounding the crash.
    (b) Construct reproducible test case where possible.
    (c) Where relevant, determine if generic or port-specific issue.
    6. CRITICAL FUNCTIONALITY NOT AVAILABLE
    6.1 Description of Category
    This refers to all situations where functionality or vital features relied
    on by a production application becomes unavailable, typically because
    of a bug in the feature. This includes cases where Oracle utilities core dump,
    applications error out due to bugs and recovery is stuck.
    6.2 Example:
    ORA-600[3020] during media recovery application of archive log
    6.3 Typical Diagnostic Actions:
    (a) Where an error is reported, get any trace files produced and relevant
    redo log dumps if necessary. Document completely the circumstances
    leading up to the error.
    (b) Provide a reproducible test case or dial-in information to development.
    (d) Where relevant, determine if generic or port-specific issue.
    7. MEMORY CORRUPTIONS
    7.1 Description of Category
    This includes internal errors signalling memory leaks, corruptions of memory
    data strutures and cache corruptions.
    7.2 Example:
    ORA-600[17271][INSTANTION SPACE LEAK] during pl/sql execution
    7.3 Typical Diagnostic Actions:
    (a) Request trace files when error causes a trace file to be produced.
    (b) Provide reproducible test case where possible; else document circumstances
    of error including (i) Details of OCI or Oracle tool, utility or pre-compiler
    used in application (ii) OS tools or third-party tools used in conjunction
    with the application (iii) Triggers fired by application
    (iv) Packages or procedures executed.

    It is most likely the panel, since your machine has integrated graphics. If you haven't done this kind of repair, replacing the panel out of the lid can be difficult. It can be done if you are careful. Here is the manual:
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles_pdf/e520_e525_hmm_en_0a60536_05.pdf
    If you want to replace the entire lid assembly, it might be easier. I actually have one from an E520 in stock. (It looks like it has a built-in webcam.) Since I don't work on many of this model, I can give you a good price. Send me a pm if interested.

  • Oracle数据库实用脚本

    <p>&#20197;&#19979;&#26159;Maclean.Liu&#25152;&#32534;&#20889;&#25110;&#25910;&#38598;&#30340;Oracle&#25968;&#25454;&#24211;&#23454;&#29992;&#33050;&#26412;&#30340;&#21015;&#34920;&#65292;&#22312;&#36825;&#37324;&#20998;&#20139;&#19968;&#19979;&#65306;</p>
    <p> </p>
    <p><a title="Script:&#25910;&#38598;Enterprise Manager Grid Control/Agent/Database Control&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-grid-control-agent-db-console-diag.html" target="_blank">Script:&#25910;&#38598;Enterprise Manager Grid Control/Agent/Database Control&#35786;&#26029;&#20449;&#24687;<br>
    </a><a title="Script:&#25910;&#38598;Exadata&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86exadata%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Exadata&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;RAC&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-rac-diag.html" target="_blank">Script:&#25910;&#38598;RAC&#35786;&#26029;&#20449;&#24687;<br>
    </a><a title="Script:&#25910;&#38598;&#33258;&#21160;SGA&#20869;&#23384;&#31649;&#29702;ASMM&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-collect-sga-asmm-diag.html" target="_blank">Script:&#25910;&#38598;&#33258;&#21160;SGA&#20869;&#23384;&#31649;&#29702;ASMM&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:Collect vip resource Diagnostic Information" href="http://www.oracledatabase12g.com/archives/script-collect-vip-resource-diagnostic-information.html" target="_blank">Script:Collect vip resource Diagnostic Information</a><br>
    <a title="11g&#26032;&#29305;&#24615;:hangdiag.sql&#23454;&#20363;hang&#35786;&#26029;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/11g%e6%96%b0%e7%89%b9%e6%80%a7hangdiag-sql%e5%ae%9e%e4%be%8bhang%e8%af%8a%e6%96%ad%e8%84%9a%e6%9c%ac.html" target="_blank">11g&#26032;&#29305;&#24615;:hangdiag.sql&#23454;&#20363;hang&#35786;&#26029;&#33050;&#26412;</a><br>
    <a title="Script:verify Oracle Object timestamp discrepancy" href="http://www.oracledatabase12g.com/archives/script-verify-oracle-object-timestamp-discrepancy.html" target="_blank">Script:verify Oracle Object timestamp discrepancy</a><br>
    <a title="Script:SQL&#35843;&#20248;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/sql-tuning-health-check-script.html" target="_blank">Script:SQL&#35843;&#20248;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;</a><br>
    <a title="Script:&#21015;&#20986;&#26412;&#20250;&#35805;&#30340;&#32454;&#33410;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-list-session-details.html" target="_blank">Script:&#21015;&#20986;&#26412;&#20250;&#35805;&#30340;&#32454;&#33410;&#20449;&#24687;</a><br>
    <a title="&#21033;&#29992;rowid&#20998;&#22359;&#23454;&#29616;&#38750;&#20998;&#21306;&#34920;&#30340;&#24182;&#34892;update&#19982;delete" href="http://www.oracledatabase12g.com/archives/%e5%88%a9%e7%94%a8rowid%e5%88%86%e5%9d%97%e5%ae%9e%e7%8e%b0%e9%9d%9e%e5%88%86%e5%8c%ba%e8%a1%a8%e7%9a%84%e5%b9%b6%e8%a1%8cupdate%e4%b8%8edelete.html" target="_blank">&#21033;&#29992;rowid&#20998;&#22359;&#23454;&#29616;&#38750;&#20998;&#21306;&#34920;&#30340;&#24182;&#34892;update&#19982;delete</a><br>
    <a title="Script:&#35745;&#31639;Oracle Streams&#36827;&#31243;&#25152;&#21344;&#29992;&#30340;&#20869;&#23384;&#22823;&#23567;" href="http://www.oracledatabase12g.com/archives/script%e8%ae%a1%e7%ae%97oracle-streams%e8%bf%9b%e7%a8%8b%e6%89%80%e5%8d%a0%e7%94%a8%e7%9a%84%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html" target="_blank">Script:&#35745;&#31639;Oracle Streams&#36827;&#31243;&#25152;&#21344;&#29992;&#30340;&#20869;&#23384;&#22823;&#23567;</a><br>
    <a title="&#21033;&#29992;RMAN&#26816;&#27979;&#25968;&#25454;&#24211;&#22351;&#22359;&#30340;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/rman-validate-check-logical-database-corrupted-block.html" target="_blank">&#21033;&#29992;RMAN&#26816;&#27979;&#25968;&#25454;&#24211;&#22351;&#22359;&#30340;&#33050;&#26412;</a><br>
    <a title="Script:&#21033;&#29992;&#22806;&#37096;&#34920;&#23454;&#29616;SQL&#26597;&#35810;Oracle&#21578;&#35686;&#26085;&#24535;Alert.log" href="http://www.oracledatabase12g.com/archives/%e5%88%a9%e7%94%a8%e5%a4%96%e9%83%a8%e8%a1%a8%e5%ae%9e%e7%8e%b0sql%e6%9f%a5%e8%af%a2oracle%e5%91%8a%e8%ad%a6%e6%97%a5%e5%bf%97alert-log.html" target="_blank">Script:&#21033;&#29992;&#22806;&#37096;&#34920;&#23454;&#29616;SQL&#26597;&#35810;Oracle&#21578;&#35686;&#26085;&#24535;Alert.log</a><br>
    <a title="Script: &#25910;&#38598;RAC DRM &#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-%e6%94%b6%e9%9b%86rac-drm-%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script: &#25910;&#38598;RAC DRM &#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:10g&#20013;&#19981;&#29992;EM&#26174;&#31034;Active Session Count by Wait Class" href="http://www.oracledatabase12g.com/archives/script-10g-show-active-session-count-wait-class.html" target="_blank">Script:10g&#20013;&#19981;&#29992;EM&#26174;&#31034;Active Session Count by Wait Class</a><br>
    <a title="Script:&#25968;&#25454;&#24211;&#26368;&#36817;&#30340;&#24615;&#33021;&#24230;&#37327;" href="http://www.oracledatabase12g.com/archives/script-show-instance-recent-performance-metric.html" target="_blank">Script:&#25968;&#25454;&#24211;&#26368;&#36817;&#30340;&#24615;&#33021;&#24230;&#37327;</a><br>
    <a title="Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#20013;&#29992;&#25143;&#30340;&#35282;&#33394;&#21644;&#34920;&#31354;&#38388;&#31561;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-gather-user-role-tablespace-profile-info.html" target="_blank">Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#20013;&#29992;&#25143;&#30340;&#35282;&#33394;&#21644;&#34920;&#31354;&#38388;&#31561;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;&#20171;&#36136;&#24674;&#22797;&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script-media-recovery-diag-info.html" target="_blank">Script:&#25910;&#38598;&#20171;&#36136;&#24674;&#22797;&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;Flashback Database Log&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86flashback-database-log%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Flashback Database Log&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#21015;&#20986;Oracle&#27599;&#23567;&#26102;&#30340;redo&#37325;&#20570;&#26085;&#24535;&#20135;&#29983;&#37327;" href="http://www.oracledatabase12g.com/archives/script%e5%88%97%e5%87%baoracle%e6%af%8f%e5%b0%8f%e6%97%b6%e7%9a%84redo%e9%87%8d%e5%81%9a%e6%97%a5%e5%bf%97%e4%ba%a7%e7%94%9f%e9%87%8f.html" target="_blank">Script:&#21015;&#20986;Oracle&#27599;&#23567;&#26102;&#30340;redo&#37325;&#20570;&#26085;&#24535;&#20135;&#29983;&#37327;</a><br>
    <a title="Script:&#25910;&#38598;11g Oracle&#23454;&#20363;IO&#24615;&#33021;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%8611g-oracle%e5%ae%9e%e4%be%8bio%e6%80%a7%e8%83%bd%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;11g Oracle&#23454;&#20363;IO&#24615;&#33021;&#20449;&#24687;</a><br>
    <a title="Script:&#26816;&#26597;&#25968;&#25454;&#24211;&#24403;&#21069;&#26159;&#21542;&#26377;&#22791;&#20221;&#25805;&#20316;&#22312;&#25191;&#34892;&#20013;" href="http://www.oracledatabase12g.com/archives/script%e6%a3%80%e6%9f%a5%e6%95%b0%e6%8d%ae%e5%ba%93%e5%bd%93%e5%89%8d%e6%98%af%e5%90%a6%e6%9c%89%e5%a4%87%e4%bb%bd%e6%93%8d%e4%bd%9c%e5%9c%a8%e6%89%a7%e8%a1%8c%e4%b8%ad.html" target="_blank">Script:&#26816;&#26597;&#25968;&#25454;&#24211;&#24403;&#21069;&#26159;&#21542;&#26377;&#22791;&#20221;&#25805;&#20316;&#22312;&#25191;&#34892;&#20013;</a><br>
    Script:List Schema/Table Constraints<br>
    <a title="Script:RAC Failover&#26816;&#39564;&#33050;&#26412;loop.sh" href="http://www.oracledatabase12g.com/archives/script-rac-failover%e6%a3%80%e9%aa%8c%e8%84%9a%e6%9c%acloop-sh.html" target="_blank">Script:RAC Failover&#26816;&#39564;&#33050;&#26412;loop.sh</a><br>
    <a title="Script:Diagnostic Resource Manager" href="http://www.oracledatabase12g.com/archives/script-diagnostic-resource-manager.html" target="_blank">Script:Diagnostic Resource Manager</a><br>
    <a title="Script:List Grid Control Jobs" href="http://www.oracledatabase12g.com/archives/script-list-grid-control-jobs.html" target="_blank">Script:List Grid Control Jobs</a><br>
    <a title="Script:GridControl Repository Health Check" href="http://www.oracledatabase12g.com/archives/script-grid-control-repository-health-check.html" target="_blank">Script:GridControl Repository Health Check</a><br>
    <a title="Script:&#35786;&#26029;Scheduler&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e8%af%8a%e6%96%adscheduler%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#35786;&#26029;Scheduler&#20449;&#24687;</a><br>
    <a title="Script:&#20248;&#21270;crs_stat&#21629;&#20196;&#30340;&#36755;&#20986;" href="http://www.oracledatabase12g.com/archives/script%e4%bc%98%e5%8c%96crs_stat%e5%91%bd%e4%bb%a4%e7%9a%84%e8%be%93%e5%87%ba.html" target="_blank">Script:&#20248;&#21270;crs_stat&#21629;&#20196;&#30340;&#36755;&#20986;</a><br>
    <a title="Script:Diagnostic Oracle Locks" href="http://www.oracledatabase12g.com/archives/script-diagnostic-oracle-locks.html" target="_blank">Script:Diagnostic Oracle Locks</a><br>
    <a title="Script:&#21015;&#20986;&#29992;&#25143;&#34920;&#31354;&#38388;&#30340;&#23450;&#39069;" href="http://www.oracledatabase12g.com/archives/script-list-user-tablespace-quotas.html" target="_blank">Script:&#21015;&#20986;&#29992;&#25143;&#34920;&#31354;&#38388;&#30340;&#23450;&#39069;</a><br>
    <a title="Backup Script:Expdp Schema to ASM Storage" href="http://www.oracledatabase12g.com/archives/backup-script-expdp-schema-to-asm-storage.html" target="_blank">Backup Script:Expdp Schema to ASM Storage</a><br>
    <a title="Script:Speed Up Large Index Create or Rebuild" href="http://www.oracledatabase12g.com/archives/script-speed-up-large-index-create-rebuild.html" target="_blank">Script:Speed Up Large Index Create or Rebuild</a><br>
    <a title="Script:&#21015;&#20986;&#22833;&#25928;&#32034;&#24341;&#25110;&#32034;&#24341;&#20998;&#21306;" href="http://www.oracledatabase12g.com/archives/list-unusable-index-partition-subpartition.html" target="_blank">Script:&#21015;&#20986;&#22833;&#25928;&#32034;&#24341;&#25110;&#32034;&#24341;&#20998;&#21306;</a><br>
    <a title="Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;5%&#20197;&#19978;&#38142;&#24335;&#34892;&#30340;&#34920;" href="http://www.oracledatabase12g.com/archives/list-tables-with-5-chained-rows.html" target="_blank">Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;5%&#20197;&#19978;&#38142;&#24335;&#34892;&#30340;&#34920;</a><br>
    <a title="Script:&#21015;&#20986;&#27809;&#26377;&#20027;&#38190;&#25110;&#21807;&#19968;&#32034;&#24341;&#30340;&#34920;" href="http://www.oracledatabase12g.com/archives/list-tables-with-no-primary-key-no-unique-key-or-index.html" target="_blank">Script:&#21015;&#20986;&#27809;&#26377;&#20027;&#38190;&#25110;&#21807;&#19968;&#32034;&#24341;&#30340;&#34920;</a><br>
    <a title="Script:&#25910;&#38598;ASM&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86asm%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;ASM&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;Oracle&#22791;&#20221;&#24674;&#22797;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86oracle%e5%a4%87%e4%bb%bd%e6%81%a2%e5%a4%8d%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;Oracle&#22791;&#20221;&#24674;&#22797;&#20449;&#24687;</a><br>
    <a title="&#30417;&#25511;&#19968;&#20010;&#22823;&#20107;&#21153;&#30340;&#22238;&#28378;" href="http://www.oracledatabase12g.com/archives/%e7%9b%91%e6%8e%a7%e4%b8%80%e4%b8%aa%e5%a4%a7%e4%ba%8b%e5%8a%a1%e7%9a%84%e5%9b%9e%e6%bb%9a.html" target="_blank">&#30417;&#25511;&#19968;&#20010;&#22823;&#20107;&#21153;&#30340;&#22238;&#28378;</a><br>
    <a title="Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)" href="http://www.oracledatabase12g.com/archives/script-to-collect-db-upgrademigrate-diagnostic-information-dbupgdiag-sql.html" target="_blank">Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)</a><br>
    <a title="Script:partition table into rowid extent chunks" href="http://www.oracledatabase12g.com/archives/script-partition-table-into-rowid-extent-chunks.html" target="_blank">Script:partition table into rowid extent chunks</a><br>
    <a title="Script:Oracle EBS&#25968;&#25454;&#24211;&#21021;&#22987;&#21270;&#21442;&#25968;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;" href="http://www.oracledatabase12g.com/archives/script-oracle-ebs%e6%95%b0%e6%8d%ae%e5%ba%93%e5%88%9d%e5%a7%8b%e5%8c%96%e5%8f%82%e6%95%b0%e5%81%a5%e5%ba%b7%e6%a3%80%e6%9f%a5%e8%84%9a%e6%9c%ac.html" target="_blank">Script:Oracle EBS&#25968;&#25454;&#24211;&#21021;&#22987;&#21270;&#21442;&#25968;&#20581;&#24247;&#26816;&#26597;&#33050;&#26412;</a><br>
    <a title="Script:Monitoring Memory and Swap Usage to Avoid A Solaris Hang" href="http://www.oracledatabase12g.com/archives/script-monitoring-memory-and-swap-usage-to-avoid-a-solaris-hang.html" target="_blank">Script:Monitoring Memory and Swap Usage to Avoid A Solaris Hang</a><br>
    <a title="SQL&#33050;&#26412;:&#30417;&#25511;&#24403;&#21069;&#37325;&#20570;&#26085;&#24535;&#25991;&#20214;&#20351;&#29992;&#24773;&#20917;" href="http://www.oracledatabase12g.com/archives/sql%e8%84%9a%e6%9c%ac%e7%9b%91%e6%8e%a7%e5%bd%93%e5%89%8d%e9%87%8d%e5%81%9a%e6%97%a5%e5%bf%97%e6%96%87%e4%bb%b6%e4%bd%bf%e7%94%a8%e6%83%85%e5%86%b5.html" target="_blank">SQL&#33050;&#26412;:&#30417;&#25511;&#24403;&#21069;&#37325;&#20570;&#26085;&#24535;&#25991;&#20214;&#20351;&#29992;&#24773;&#20917;</a><br>
    <a title="Streams Health Check on 10g Release 2" href="http://www.oracledatabase12g.com/archives/streams-health-check-on-10g-release-2.html" target="_blank">Streams Health Check on 10g Release 2</a><br>
    <a title="&#20174;&#35270;&#22270;&#26597;&#35810;&#34920;&#20998;&#21306;&#30340;&#30456;&#20851;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/%e4%bb%8e%e8%a7%86%e5%9b%be%e6%9f%a5%e8%af%a2%e8%a1%a8%e5%88%86%e5%8c%ba%e7%9a%84%e7%9b%b8%e5%85%b3%e4%bf%a1%e6%81%af.html" target="_blank">&#20174;&#35270;&#22270;&#26597;&#35810;&#34920;&#20998;&#21306;&#30340;&#30456;&#20851;&#20449;&#24687;</a><br>
    <a title="Script To Monitor RDBMS Session UGA and PGA Current And Maximum Usage Over Time" href="http://www.oracledatabase12g.com/archives/script-to-monitor-rdbms-session-uga-and-pga-current-and-maximum-usage-over-time.html" target="_blank">Script To Monitor RDBMS Session UGA and PGA Current And Maximum Usage Over Time</a><br>
    <a title="Script:&#25910;&#38598;RAC&#24615;&#33021;&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/script%e6%94%b6%e9%9b%86rac%e6%80%a7%e8%83%bd%e8%af%8a%e6%96%ad%e4%bf%a1%e6%81%af.html" target="_blank">Script:&#25910;&#38598;RAC&#24615;&#33021;&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#25910;&#38598;UNDO&#35786;&#26029;&#20449;&#24687;" href="http://www.oracledatabase12g.com/archives/automatic-undo-management-common-analysis-diagnostic-scripts.html" target="_blank">Script:&#25910;&#38598;UNDO&#35786;&#26029;&#20449;&#24687;</a><br>
    <a title="Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;&#23376;&#34920;&#19978;&#27809;&#26377;&#23545;&#24212;&#32034;&#24341;&#30340;&#22806;&#38190;" href="http://www.oracledatabase12g.com/archives/list-foreign-keys-with-no-matching-index-on-child-table-causes-locks.html" target="_blank">Script:&#21015;&#20986;&#25968;&#25454;&#24211;&#20013;&#23376;&#34920;&#19978;&#27809;&#26377;&#23545;&#24212;&#32034;&#24341;&#30340;&#22806;&#38190;</a><br>
    <a title="Script: Listing Memory Used By All Sessions" href="http://www.oracledatabase12g.com/archives/script-listing-memory-used-by-all-sessions.html" target="_blank">Script: Listing Memory Used By All Sessions</a><br>
    <a title="Collecting Diagnostic Data for OCFS2 Issues" href="http://www.oracledatabase12g.com/archives/collecting-diagnostic-data-for-ocfs2-issues.html" target="_blank">Collecting Diagnostic Data for OCFS2 Issues</a><br>
    <a title="Script to Identify Objects and Amount of Blocks in the Buffer Pools &ndash; Default, Keep, Recycle, nK Cache" href="http://www.oracledatabase12g.com/archives/script-to-identify-objects-and-amount-of-blocks-in-the-buffer-pools-default-keep-recycle-nk-cache.html" target="_blank">Script to Identify Objects and Amount of Blocks in the Buffer Pools &ndash; Default, Keep, Recycle, nK Cache</a><br>
    <a title="Script:Generate A DDL Script For A Table" href="http://www.oracledatabase12g.com/archives/script-generate-ddl-script-for-table.html" target="_blank">Script:Generate A DDL Script For A Table</a><br>
    <a title="SCRIPT TO CHECK FOR FOREIGN KEY LOCKING ISSUES" href="http://www.oracledatabase12g.com/archives/script-to-check-for-foreign-key-locking-issues.html" target="_blank">SCRIPT TO CHECK FOR FOREIGN KEY LOCKING ISSUES</a><br>
    <a title="&#22914;&#20309;&#25214;&#20986;Oracle&#20013;&#38656;&#35201;&#25110;&#20540;&#24471;&#37325;&#24314;&#30340;&#32034;&#24341;" href="http://www.oracledatabase12g.com/archives/script-lists-all-indexes-that-benefit-from-a-rebuild.html" target="_blank">&#22914;&#20309;&#25214;&#20986;Oracle&#20013;&#38656;&#35201;&#25110;&#20540;&#24471;&#37325;&#24314;&#30340;&#32034;&#24341;</a><br>
    Script:Diagnostic ORA-01000 maximum open cursors exceeded<br>
    ORA-4030 PGA Usage Diagnostic Script<br>
    Script:Tune Very Large Hash Join<br>
    Script to Collect Log File Sync Diagnostic Information (lfsdiag.sql)<br>
    Script:List Buffer Cache Details<br>
    Script:List NLS Parameters and Timezone<br>
    Script:List SORT ACTIVITY<br>
    Script:List OBJECT DEPENDENT<br>
    Script:Logfile Switch Frequency Map<br>
    Script:Tablespace Report<br>
    Script:&#25910;&#38598;&#25968;&#25454;&#24211;&#23433;&#20840;&#39118;&#38505;&#35780;&#20272;&#20449;&#24687;<br>
    &#33050;&#26412;:&#26684;&#24335;&#21270;&#30340;V$SQL_SHARED_CURSOR&#25253;&#21578;<br>
    &#33050;&#26412;:&#30417;&#25511;&#24182;&#34892;&#36827;&#31243;&#29366;&#24577;<br>
    &#33050;&#26412;:&#30417;&#25511;&#25968;&#25454;&#24211;&#20013;&#30340;&#27963;&#36291;&#29992;&#25143;&#21450;&#20854;&#36816;&#34892;&#30340;SQL<br>
    &#33050;&#26412;:&#30417;&#25511;&#20020;&#26102;&#34920;&#31354;&#38388;&#20351;&#29992;&#29575;<br>
    Script to show Active Distributed Transactions<br>
    Gather DBMS_STATS Default parameter<br>
    Script:Datafile Report<br>
    Script to Collect Data Guard Diagnostic Information<br>
    Script:To Report Information on Indexes<br>
    ORA-4031 Common Analysis/Diagnostic Scripts<br>
    Script:when transaction will finish rollback<br>
    Script: Computing Table Size<br>
    Script to Detect Tablespace Fragmentation<br>
    &ldquo;hcheck.sql&rdquo; script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g<br>
    Script to Prevent Excessive Spill of Message From the Streams Buffer Queue To Disk<br>
    Oracle Systemstate dump analytic tool: ASS.AWK V1.09<br>
    SCRIPT TO GENERATE SQL*LOADER CONTROL FILE</p>
    Edited by: Maclean Liu on Jan 22, 2012 1:23 AM

    谢谢大家支持! :)

  • Data-guard conceptual help needed

    Hello Experts,
    We have 2-node RAC Physical standby DG. I got the following doubts in my mind just to clear my concept:-
    1. Can we perform Hang analyze on the DG site, when it is on managed recovery and of-course in read-only mode? if not then Q2?
    2. If both of my DG nodes (in a 2-node RAC DG) are in a hung state while the managed recovery was active, can I do sqlplus sql> set _prelim on and enable oradebug hanganalyze or do I have any other option apart from restarting the DB
    3. IF the Primary RAC (2-node) hangs then if we take systemstate dump / Hanganalyze from the DG site
    I guess, we will not get meaningful results as Hanganalyze will use Kernel system calls of the Server on the DG site and systemstatsdump will dump the SGA of the secondary site instance's SGA
    4. I am using a non-RAC primary and Secondary site and non-ASM disk
    I have my Primary mount -points as /Oradata/Prim1 = 1 TB and Physical standby DG - real time apply mount-point as /Oradata/Seco1 =.8 TB & /Oradata/Seco2 = .2TB and my Primary DB is now on size expansion from .79 TB to .95 TB overnight. I am not intending not to take any down-time nor am I able to extend the disks on the Primary for any reason. what can be done wisely to keep the DR site in close sync?
    Regards,
    Syvalli
    Edited by: user4566776 on Dec 12, 2012 6:04 AM

    We have 2-node RAC Physical standby DG. I got the following doubts in my mind just to clear my concept:-
    1. Can we perform Hang analyze on the DG site, when it is on managed recovery and of-course in read-only mode? if not then Q2?
    2. If both of my DG nodes (in a 2-node RAC DG) are in a hung state while the managed recovery was active, can I do sqlplus sql> set _prelim on and enable oradebug hanganalyze or do I have any other option apart from restarting the DBYes you can perform hang analyze and even you can generate active session history report if DR is on read-only mode.
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    SQL>
    SQL> oradebug setmypid;
    Statement processed.
    SQL> oradebug unlimit;
    Statement processed.
    SQL>
    SQL> oradebug hanganalyze 3;
    Hang Analysis in /u02/app/oracle/diag/rdbms/CKPT_un/CKPT/trace/CKPT_ora_5113.trc
    SQL>
    SQL> oradebug dump systemstate 266;
    Statement processed.
    SQL>
    [oracle@oracle-stby ~]$ tail -10 /u02/app/oracle/diag/rdbms/CKPT_un/CKPT/trace/CKPT_ora_5113.trc
      Holder:
      SO: 0x8ca2c8b8, type: 83, owner: 0x6000c478, flag: INIT/-/-/0x00 if: 0x3 c: 0x3
       proc=0x90488f50, name=circuit holder, file=kmc.h LINE:2615, pg=0
      (circuit holder) disp = 0x8ca2c830 (0, 1), proc = (0x90488f50, 1)
    END DISPATCHER DUMPS
    END OF SYSTEM STATE
    *** 2012-12-12 20:03:44.100
    Oradebug command 'dump systemstate 266' console output: <none>
    [oracle@oracle-stby ~]$
    3. IF the Primary RAC (2-node) hangs then if we take systemstate dump / Hanganalyze from the DG site
    I guess, we will not get meaningful results as Hanganalyze will use Kernel system calls of the Server on the DG site and systemstatsdump will dump the SGA of the secondary site instance's SGAYes, the hang analysis we should perform from the instance where you have problem. you can use OS level trace if database not accessible by using How to interpret OS system traces [ID 1429678.1]
    4. I am using a non-RAC primary and Secondary site and non-ASM disk
    I have my Primary mount -points as /Oradata/Prim1 = 1 TB and Physical standby DG - real time apply mount-point as /Oradata/Seco1 =.8 TB & /Oradata/Seco2 = .2TB and my Primary DB is now on size expansion from .79 TB to .95 TB overnight. I am not intending not to take any down-time nor am I able to extend the disks on the Primary for any reason. what can be done wisely to keep the DR site in close sync?Can you tell me one thing? After size expanded in primary from .79 TB to .95 TB does your standby is out of SYNC?
    If you do not have space, then you should add some space to the disk to avoid any interruption to production. Or check whether you can adjust HWM on primary database using below method. http://www.oracle-ckpt.com/how-to-shrink-datafiles-adjusting-hwm/
    Hope this helps

  • Drop user command hangs on 10.2.0.1

    Hi,
    db version: 10.2.0.1 64 bit
    os : sun 5.9
    I created a sample user
    $. sqlplus / as sysdba
    sql> create user 'test' identified by test default tablespace tools;
    granted connect and resource to the user
    sql> created sample table and inserted few values in the table.
    now when i try to drop the user the session hangs for ever.
    sql> drop user test cascade;
    is this a bug? or am I missing something?
    Thanks

    Get SYSTEMSTATE and HANGANALYZE Dumps
    This creates a large trace file in the user_dump_dest (30M or more is not unusual).
    Note: the init<sid>.ora parameter MAX_DUMP_FILE_SIZE controls the maximum trace file size. Using Oradebug and setting unlimit will allow a complete dump which we will need.
    Do this step for sure if the entire database is frozen or nearly frozen and if this condition came on suddenly and there are no archive errors in the alert log. Please note: As systemstate dumps are instance specific, they tend to be inconclusive with hanging problems involving Oracle Parallel Server (OPS) unless you get them from each node. You will need 3 system state dumps from each node for OPS.
    NOTE: Do systemstate dump 3 times in a row, so we can determine whether
    the processes are hung or active.
    For Oracle 9.2.0.1 or higher
    $ sqlplus /nolog
    connect / as sysdba
    oradebug setmypid
    oradebug unlimit
    oradebug hanganalyze 3
    wait 90 seconds
    oradebug hanganalyze 3
    oradebug dump systemstate 10
    wait 90 seconds
    oradebug dump systemstate 10
    wait 90 seconds
    oradebug dump systemstate 10
    metalink doc Subject:      Diagnosing Database Hanging Issues
         Doc ID:      Note:61552.1

  • Temp space problem

    HI all,
    I receive an error while executing a procedure.
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
    can any one please exlain what is the problem.
    thanks in advance
    baskar k

    hi
    First ORA-01652 may occur because there is simply no space available in the temp tablespace of which is being used. The second cause of ORA-01652 may have to do with the local temp segment not being able to extent space even though there is space in other instances.
    To trouble shoot for ORA-01652, and find out which of the above scenarios are causing ORA-01652 use this query offered by MetaLink:
    select sum(free_blocks)
    from gv$sort_segment
    where tablespace_name = '<TEMP TABLESPACE NAME>'
    You will know that the first scenario is causing ORA-01652 to be thrown if the free block reads '0' because it signifies that there is no free space.
    If there is a good amount of space, you know that there is another cause for ORA-01652, and it is probably the second scenario. It is important to note that in a non-RAC environment, local instances are not able to extend the temp segments, so in the RAC environment, ORA-01652 has to be handled differently. If you are experiencing ORA-01652 in a non-RA environment, be aware that every SQL making use of the tablespace can fail.
    In RAC, more sort segment space can be used from other instances, which can help resolve ORA-01652 more easily. Try using the query below:
    select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks
    from gv$sort_segment;
    Basically, you can then find out how much temp segment space can be used for each instance by viewing the total_blocks, and the used_blocks can reveal the space which has been used so far, and and the free_blocks gives the amount of space allocated to this particular instance. This being, to resolve ORA-01652, you can check out that used_blocks = total_blocks and free_blocks = 0 will probably show for the instance, and ORA-01652 will be shown multiple times within the alert log.
    This basically means that free space from other instances is being requested, and typically signifies that there is instance contention. Instance contention within the temporary space can make the instance take more time to process.
    In sever cases, a slowdown may occur, in which you might want try one of the following work-arounds:
    Increase size of the temp tablespace
    Increase sort_area_size and/or pga_aggregate_target
    However, remember to not use the RAC feature of DEFAULT temp space.
    If ORA-01652 is causing the slowdown, SMON will probably not be able to process the sort segment requests, you you should try to diagnose the contention:
    Output from the following query periodically during the problem:
    select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks
    from gv$sort_segment;
    Global hanganalyze and systemstate dumps
    Hope this helps
    CHeers

  • How does 1 ASM instance in a 10 node RAC cause all 10 ASM instance to hang

    Linux RHEL4
    11.2.0.1.0 GI
    11.2.0.1.0 RDBMS
    11.1.0.7.0 RDBMS
    10.2.0.4.4 RDBMS
    Yesterday we had one of the ASM instance on our 10-node cluster hang with a latch "ASM file allocation latch". Oracle support has stated we are hitting a bug with is fixed in the latest PSU.
    What I am trying to understand is how a latch on one ASM instance caused all 10 ASM instances to hang?
    Oracle Supports explanation still does not answer how all 10 ASM instance were affected other then the faulty code that the patch fixes. Bellow is info out of the SAR.
    Data Guard Site:
    ================
    ARC1 PID 21508 reports ORA-240 'control file enqueue held for more than 120 seconds' at Thu Oct 28 11:35:54 2010. This message means ARC1 PID 21508 was holding the enqueue past the maximum tine limit of 120 seconds.
    Next ARC0 PID 17398 reports ORA-16146: 'control file enqueue unavailable' at Thu Oct 28 11:36:52 2010. This means ARC0 PID 17398 tried to access the controlfile and it could get the lock.
    ARC1 PID 21508 is then killed at Thu Oct 28 11:49:57 2010.
    Killing enqueue blocker (pid=21508) on resource CF-00000000-00000000 by (pid=23078) by killing session 5.3
    We see that RSM has been restarted by Broker. This matches to the alert.log and messages showing RSM being restarted several time. i.e. RSM0 started with pid=84, OS id=27915
    Since this started happening around 11:14, the problem may have really started then instead of w/ the CF enqueue block.
    The primary appears to be shipping redo to the standby using asynchronous mode. Unless there was a gap, I do no know if ARC1 should have been doing any remote network I/O. Because a log switch to thread 1 sequence 5235 had just happened at 11:33am, I suspect it was a local disk I/O that was started at least. The ORA-240 is reported at 11:35, exactly 120 sec (or 2min) from this log switch. Notice also the entry to show the log thread 1 sequence 5234 was registered to the controlfile didn't happen yet.
    ASM Side:
    ============
    From the systemstate dump on ASM, multiple processes are waiting on 'ASM file allocation latch' and we are kind of stuck on stack:
    ksedsts()+461<-ksdxfstk()+32<-ksdxcb()+1782<-sspuser()+112<-0000003218E0C5B0<-kfuhInsert()+175<-kffilCreate()+601<-kfnsUFG()+3691<-kfnsBackground()+4382<-kfnDispatch()+527<-opiodr()+1149<-ttcpip()+1251<-opitsk()+1633<-opiino()+958<-opiodr()+1149<-opidrv()+570<-sou2o()+103<-opimai_real()+133<-ssthrdmain()+214<-main()+201<-__libc_start_main()+219
    This caused the hang on the ASM side and hence ASM was not responding to the database. The CF Enqueue issue on the database was a side effect of this.
    This is a direct <BUG:9232266> which is a duplicate of <BUG:8974548>

    Thanks Murali,
    I was little reluctent to open a tar since my experince says that its better to troubleshoot the issue yourself instead of spending time with the Oracle support :)
    Well, I got some more information on this : the sql for the process id of ASM instance is :
    Alter Diskgroup mount all;
    It looks like it is unable to mount the diskgroup and get hunged at that point , is it due to the new disk added to the system or do we missed something after adding the new disk.
    Also, the ASM process can not be killed from unix box while the ASM is down.
    Will appreciate your time if we can move in any directions from here ..
    Thanks ,
    Ankur

  • PSP0: terminating instance due to error 472

    EBS 12.0.3
    Db 10.2.0.2
    AIX 5.2
    I upgraded database from 10.2.0.2 to 10.2.0.4 and trying perform steps of this document(https://updates.oracle.com/Orion/Services/download?type=readme&aru=10195554#CJGEAFGA).
    When i am trying to run @?/rdbms/admin/utlrp.sql database went crash in 3 or 4 minute, Every time it went crash after running utlrp.sql script and now total invalid objects are 2619 and it is not reducing in numbers. In alert log file I found below please suggest.
    ORA-07445: exception encountered: core dump [kslwlscan+0110] [SIGSEGV] [Address
    not mapped to object] [0xAEB00000010] [] []
    Sat Apr 28 18:04:04 2012
    Errors in file /vol01/oracle/bdump/dev_pmon_479352.trc:
    ORA-07445: exception encountered: core dump [strlen] [SIGSEGV] [Address not mapp
    ed to object] [0x20506172616D6574] [] []
    Sat Apr 28 18:04:47 2012
    PSP0: terminating instance due to error 472
    Termination issued to instance processes. Waiting for the processes to exit
    Instance terminated by PSP0, pid = 454790
    Thanks

    Hello;
    There's a bug for the same version of Oracle that sounds similar.
    Here's the Oracle note :
    Bug 6080041 - Dump [kslwlscan] raised during systemstate dump [ID 6080041.8]
    Best Regards
    mseberg

  • Is ASA integration with ISE and RSA for 2 factor authentication a valid/tested design

    Hi,
    Customer currently uses ASA to directly integrate with RSA kind of solution to provide 2 factor authentication mechanism for VPN user access.  We're considering to introduce ISE to this picture, and to offload posture analysis from ASA to ISE.  And the flow we're thinking is to have ASA interface to ISE and ISE interface to RSA and AD backend infrastructure.  And we still need the 2 factor authentication to work, i.e., customer gets a SMS code in addition to its login username and password.  I'm wondering if ASA/ISE/RSA/AD integrated solution (and with 2 factor authentication to work) is a tested solution or Cisco validate design?  Any potential issue may break the flow?
    Thanks in advance for any input!
    Tina

    Hi,
    I have an update for this quite broad question.
    I have now came a bit further on the path.
    Now the needed Radius Access Attribute are available in ISE after adding them in
    "Policy Elements" -> "Dictionaris" -> "System" -> "Radius" -> "Cisco-VPN3000".
    I added both the attribute 146 Tunnel-Group-Name which I realy need to achive what I want(select diffrent OTP-backends depending on Tunnel Group in ASA) and the other new attribute 150 Client-Type which could be intresting to look at as well.
    Here the "Diagnostics Tools" -> "Generel tools" -> "TCP Dump" and Wireshare helped me understand how this worked.
    With that I could really see the attributes in the radius access requests going in to the ASA.
    Now looking at a request in "Radius Authentication details" I have
    Other Attributes:
    ConfigVersionId=29,Device Port=1025,DestinationPort=1812,RadiusPacketType=AccessRequest,Protocol=Radius,CVPN3000/ASA/PIX7.x-Tunnel-Group-Name=SMHI-TG-RA-ISESMS,CVPN3000/ASA/PIX7.x-Client-Type=,CPMSessionID=ac100865000006294FD60A7F,.....
    Ok, the tunnel group name attribute seems to be understood correct, but Client-Type just say =, no value for that.
    That is strange, I must have defined that wrong(?), but lets leave that for now, I do not really need it for the moment being.
    So now when I have this Tunnel-Group-Name attribute available I want to use it in my Rule-Based Authentication Policy.
    Problem now is that as soon as I in an expression add a criteria containing Cisco-VPN3000:CVPN3000/ASA/PIX7.x-Tunnel-Group-Name matches .* (just anything), then that row does not match any more. It still work matching against NAS-IP and other attributes.
    What could it be I have missed?
    Best regards
    /Mattias

  • CacheDiagnosticsService fills the Windows drive in minutes

    I am running a Cloud Service that contains 4 web roles + 1 worker role. I am using in role caching across the 4 web roles. The worker role then populates the cache in the background.
    I am watching the Windows (D:) disk go from having 15GB free on a fresh spin up to having 0 bytes available. I have been able to run process monitor to see that it is the CacheDiagnosticsService.exe that writes directly into the ASP.NET IsolatedStorage directory.
    (D:\Windows\System32\config\systemprofile\AppData\Local\IsolatedStorage).
    Here's the event viewer message that persists constantly from the service crashing. I
    Application: CacheDiagnosticsService.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.ObjectDisposedException
    Stack:
       at System.IO.Compression.DeflateStream.EnsureNotDisposed()
       at MS.Internal.IO.Packaging.CompressStream.Flush()
       at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
       at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean)
       at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean)
       at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(MS.Internal.IO.Zip.ZipIOLocalFileBlock, Boolean)
       at System.IO.StreamWriter.Dispose(Boolean)
       at System.IO.StreamWriter.Close()
       at System.Xml.XmlTextWriter.Close()
       at System.IO.Packaging.ZipPackage+ContentTypeHelper.SaveToFile()
       at System.IO.Packaging.ZipPackage.Dispose(Boolean)
       at System.IO.Packaging.Package.System.IDisposable.Dispose()
       at Microsoft.ApplicationServer.Caching.AzureServerCommon.DiagnosticConfigHandler.CompressFileWithZipPackage(System.String, System.String)
       at Microsoft.ApplicationServer.Caching.AzureServerCommon.DiagnosticConfigHandler.MoveFiles(Boolean, System.String, System.String, System.String)
       at Microsoft.ApplicationServer.Caching.AzureServerCommon.DiagnosticConfigHandler.MoveFilesForUpload(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.TimerQueueTimer.CallCallback()
       at System.Threading.TimerQueueTimer.Fire()
       at System.Threading.TimerQueue.FireNextTimers()
    The same cloud service deployment was running for weeks when this problem started. 
    If this answer helped you, please vote or Propose as Answer.

    For an unknown reason, the CacheService crash dumped to disk (C:) it's memory contents (12GB)
    CacheDiagnosticsService is responsible for taking these dump files and moving into an upload directory within the same drive
    CacheDiagnosticsService executes as a windows service, and is writing it's temporary memory into the IsolatedStorage directory mentioned above
    I'm speculating that when the diagnostics service is reading the dump files into memory, the server is running out of memory and begins paging it's contents into IsolatedStorage
    Eventually this occurs enough with high resource utilization from cache service & dump file that it continues to happen eventually filling the windows disk
    Temporary fix until I can re-calculate capacity numbers and VM sizes:
    Delete contents within D:\Windows\System32\config\systemprofile\AppData\Local\IsolatedStorage
    Delete the offending file(s) (crash dump or general logs) within C:\Resources\Directory\{guid}.{my role name}.DiagnosticStore\
    If this answer helped you, please vote or Propose as Answer.

Maybe you are looking for

  • Using wildcard in database Connectivity toolkit

    I have a MS Access databese like I want to delete the characters begining with 'abc' but after running it, the characters doesn't be deleted.  Any mistakes in the code? Thank you. Attachments: test_cn2011.zip ‏525 KB

  • Downloading a new version on Surface RT

    Hi, I just got a Microsoft Surface RT and am still getting used to both it and Windows 8, so I apologize if this is a stupid question. I'm trying to download the most recent version of Flash player (currently I have 11.3-something) but whenever I go

  • How to Export Mail RSS feeds to another reader

    How do I go about exporting RSS feeds I have in Mail into another reader like NetNewsWire? Thanks.

  • Can't Split Edit - What Am I Doing Wrong?

    I have placed a clip on the timeline, with space in front and behind (no potential clip colision). From the timeline I double click to open the clip in the viewer. I roll back (or forwards) a few frames from the in-point to set a split, but all the i

  • LSO_PV15

    Hi Guys, When we try to use LSO_PV15, I get the below dump: "MESSAGE_TYPE_X" " "                                                                                "SAPLLSO_FOLLOWUP" or "LLSO_FOLLOWUPU13"