Blocking of RAC sessions

Hello

I had a look at several versions of SQL Developer and none of them seem to handle blocking sessions in the CCR that is questioning the views of $ GV. Am I missing something?

Thank you

Chris.

I would hazard a guess that it refers to:

Reports of data dictionary-> DatabaseAdministration-> locks-> block of the locks by user

If Yes, it is quite right... it uses exclusively the view V$ and therefore an incomplete view of locking in a RAC database.  This is also true of the locks by report the user in the same group, incidentally.

Tags: Database

Similar Questions

  • The user and MMON_SLAVE blocked by LGWR sessions

    Our database server is Oracle 11.2.0.2 on Redhat 5.2, in NONARCHIVE mode. The server is runnint ETL with high transaction rates. The database seems to slow down recently and several user sessions and a session of MMON_SLAVE are blocked by a LGWR session. Check the alert.log and see what follows
    Sun Feb 06 22:14:10 2011
    Thread 1 advanced to log sequence 27035 (LGWR switch)
      Current log# 5 seq# 27035 mem# 0: /u02/app/oracle/oradata/cchbi2/redo05.log
    Thread 1 cannot allocate new log, sequence 27036
    Checkpoint not complete
      Current log# 5 seq# 27035 mem# 0: /u02/app/oracle/oradata/cchbi2/redo05.log
    Sun Feb 06 22:14:48 2011
    Thread 1 advanced to log sequence 27036 (LGWR switch)
      Current log# 6 seq# 27036 mem# 0: /u02/app/oracle/oradata/cchbi2/redo06.log
    Thread 1 cannot allocate new log, sequence 27037
    Checkpoint not complete
      Current log# 6 seq# 27036 mem# 0: /u02/app/oracle/oradata/cchbi2/redo06.log
    Sun Feb 06 22:15:25 2011
    Thread 1 advanced to log sequence 27037 (LGWR switch)
      Current log# 4 seq# 27037 mem# 0: /u02/app/oracle/oradata/cchbi2/redo04.log
    Thread 1 cannot allocate new log, sequence 27038
    Checkpoint not complete
      Current log# 4 seq# 27037 mem# 0: /u02/app/oracle/oradata/cchbi2/redo04.log
    Sun Feb 06 22:15:51 2011
    It seems that the switch log and checkpoint occurs every 30 seconds about

    I research in and on the forum and learned that that means dbw0 takes more time to empty blocks Sales drive as to when a log file is full and no need to turn off. We are talking about approximately 3 solutions
    1)  add more redo groups or enlarge redo log file size
    2) make DBWR more efficient (increase dbwN, or use faster disk)
    3) optimize checkpoint interval
    (1) we are in NONARCHIVE mode, have 3 redo log group each 512 Mr. I have added 3 more groups again. Not improved. I have to multiply more redo group? or redo log size is better?
    (2) cannot change faster disks for the time. Think about increasing the number of DBWR. We have 4 CPU, should I change DB_WRITER_PROCESSES to 4?
    (3) our control point settings are
    -FAST_START_MTTR_TARGET = 0
    -LOG_CHECKPOINT_INTERVAL = 0
    -LOG_CHECKPOINT_TIMEOUT = 1800
    -LOG_CHECKPOINTS_TO_ALERT = FALSE
    Since we are in NONARCHIVE mode, I would like to a 3600 FAST_START_MTTR_TARGET value. But when the checkpoint become less frequent, more dirty then blocks at each checkpoint. It can still make LGWR wait control point. What could be the best balance for a heavy DML database?

    All suggestions and comments are welcome.
    Thank you.

    "Adding more Redo Logs" and "(re) creating Redo Logs of greater size" both answer "Checkpoint is not complete.
    However, the first action does not reduce the frequency of the Redo Log switches. So if you have a switch every 30 seconds with 512 MB Redo Logs, it does not matter if you have 3 or 10 Redo Logs, the switch will occur every 30 seconds. It's the waiting "Checkpoint not completed" which will be reduced. LGWR will however continue introduction forced a log switch, protect key structures, locking and update the controlfile etc every 30 seconds.

    Change FAST_START_MTTR_TARGET additional control points, NOT the switches of journal impact.

    LGWR cannot write a more quickly if it is written on the same disk, even if you add Redo Logs or (re) create the larger Redo Logs.

    Therefore, each "fix" addresses a different aspect of the 'performance '.

    However, I beg you to confirm what you diagnose "multiple user sessions and a session of MMON_SLAVE are blocked by a LGWR session."

    Hemant K Collette

  • Setting of RAC SESSIONS

    We have a node 4 CARS running 10.2.0.4 on Linux (with Oracle Clusterware and ASM) and with the following settings on the instance:
    process = 400
    sessions is 445 (default).

    And we got ORA-00018 with number of processes about 340-instance.
    What would be the right setting for the parameter of sessions? The default seems wrong. I can't find anything in the Oracle documentation or MOS on SESSIONS in the CARS.

    Thank you.

    Hi Forstmann,

    "If we increase the PROCESS, we check the setting of the OS kernel as ' max user process ' but if we increase only the parameters of SESSIONS we need also to increase the OS kernel 'process user max?"

    Max user process: this function allows to control the number of processes a user existing on the server may be allowed to have on the BONE.

    The short answer is: Increasing SESSIONS, you must increase PROCESSES and PROCESS increases, you should check the setting of the operating system kernel.

    It is common, there is a relationship between CONNECTION-> SESSION-> PROCESS, but is not a rule.

    It is easier explained in practice than in theory.

    So, see this example:

    {code}

    ##################################
    # Get the process started at this time:
    $ date
    Sat 16 Apr 13:14:44 BRT 2011

    $ ps - ef | grep LOCAL | grep 13. grep v - grep

    # Nothing here...

    # Then run sqlplus

    sqlplus/nolog
    SQL * more: version 10.2.0.5.0 - Production on sat Apr 16 13:14:53 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    SQL > home

    # Check if there are processes
    $ ps - ef | grep LOCAL | grep 13. grep v - grep
    output of $

    # Notting yet...

    # If we're going to connect to the database

    SQL > conn system/oracle@db10g2
    Connected.
    SQL > select sysdate to double;

    SYSDATE
    ---------
    16 APR 11

    SQL > home

    # Now, I must have a session and a process

    $ ps - ef | grep LOCAL | grep 13. grep v - grep
    Oracle 31689 1 7 13:15? 00:00:00 oracledb10g2 (LOCAL = NO)

    # I have an Oracle process and the session in a single process on OS

    # Allows you to disconnect and check if there are processes...
    SQL > disconnect
    Disconnected from the database to Oracle 10 g Enterprise Edition Release 10.2.0.5.0 - Production
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options

    SQL > select sysdate to double;
    SP2-0640: not connected

    SQL > home

    $ ps - ef | grep LOCAL | grep 13. grep v - grep
    Oracle 31689 1 1 13:15? 00:00:00 oracledb10g2 (LOCAL = NO)

    # If I still have my approach, but no session, I have a connection.
    # Using this connection, I'll connect on db10g1
    SQL > conn system/oracle@db10g1
    Connected.
    SQL > home

    $ ps - ef | grep LOCAL | grep 13. grep v - grep

    # My process no longer exists because I lost the connection with db10g2.
    {code}

    The concept above shows the relationship between process and session, but the process of setting are related to many other resources such as Sessions, jobs, parallel queries and so on.

    I understand that the recursive sessions are based on the same process: is it true?

    Yes... The Oracle documentation explains that the value for sessions must be greater than the value of process allowing recursive sessions. It's average Oracle use same method for recursive sessions.

    Kind regards
    Levi Pereira

  • How to find block sessions on a 2 DB of RAC node?

    Hi DBAs,

    I know that the query that will give me the session that is blocking on a standalone DB as below:

    Select l1.sid, 'BLOCKS', l2.sid from v$ lock l1, l2 of v$ lock

    where l1.block = 1 and l2.request > 0 and l1.id1 = l2.id1 and l1.id2 = l2.id2;

    But now I have a small question that my other DB is a node 2 CARS DB (2 instances that are on 2 different location breaks). And there seems to be some memory problems and I need to find sessions that are open for a long time and I need to kill them. Can anyone help me find the blocking in RAC environment session and also how to kill in RAC environment.

    DB environment:

    version: Oracle 10.2.0.5

    Production

    2 node RAC

    Regads,

    Ritu

    SELECT DECODE (ask, 0,' owner: ',' server: '). ID1, id2, lmode, ask, sid sess, type OF gv$ LOCK (id1, id2, type) WHERE IN(SELECT id1,id2, type FROM gv$LOCK WHERE request>0) ORDER BY id1, ask;

  • Blocking session problem

    Hi all

    I have a stored procedure that is called in specific reports and this report running much different to the user in the application. When this report is by many users running it start blocking the session. Instant Oracle showing locked held by another session and all the beginning of session resource pending, but never published by session, what is the error in this stored procedure

    For the analysis of the functioning and to block queries run the suite of scripts

    1.       Query about sessions that are either blocked or blocking other sessions.

    Select s1.username. '@' || S1.machine | ' (SID =' | s1.sid |) blocking ') ' | S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status

    v $ lock l1, v$ lock l2, v$ session s1 and s2 from v$ session where s1.sid = l1.sid and s2.sid = l2.sid and l1. BLOCK = 1 and l2.request > 0

    and l1.id1 = l2.id1 and l2.id2 = l2.id2;

    BLOCKING_STATUS

    [email protected] (SID = 158) blocks [email protected] (SID = 375)

    [email protected] (SID = 416) blocks [email protected] (SID = 329)

    [email protected] (SID = 416) blocks [email protected] (SID = 369)

    [email protected] (SID = 416) blocks [email protected] (SID = 385)

    [email protected] (SID = 416) blocks [email protected] (SID = 429)

    [email protected] (SID = 416) blocks [email protected] (SID = 443)

    [email protected] (SID = 416) blocks [email protected] (SID = 451)

    2.       Can be found objects that are blocked by above sessions by running the following issue:

    Select do.object_name, row_wait_obj #, row_wait_file #, row_wait_block #, row_wait_row #, dbms_rowid.rowid_create (1, ROW_WAIT_OBJ #, ROW_WAIT_FILE #, ROW_WAIT_BLOCK #, ROW_WAIT_ROW #)

    v $ session s, dba_objects do where sid =: sid and s.ROW_WAIT_OBJ # = do. OBJECT_ID;

    3.       The request for running SQL against SID

    Select sql_text

    de v$ sqlarea

      (address, hash_value) in

    (select sql_address sql_hash_value )

    de session $ v

            where sid like '&sid');

    4.       Next statement is blocking other sessions:

    UPDATE gl_je_lines l

       SET CONTEXT = NULL,

    attribute1 = NULL,

    attribut2 = NULL,

    attribut3 = NULL,

    attribute4 = NULL,

    attribute5 = NULL,

    Description = NULL

    WHERE l. je_header_id = :b2 AND l. je_line_num = :b1


    Here's the code for SPplz help me

    CREATE OR REPLACE PROCEDURE APPS. () LESCO_IOTSSCHQ_UPDATE_DFF

    P_AS_ON VARCHAR2)

    IS

    -TO UDPATE CHECK NUMBER OF DISTRIBUTIONS

    CURSOR CUR_SSCHQ

    IS

    SELECT HELPED SEPARATE. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID,

    AIDA. INVOICE_ID

    OF AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    WHERE CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 = '530103'

    AND AIDA. ACCOUNTING_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AIDA. ATTRIBUT3 IS NULL.

    -ITO FOR CASH

    CURSOR CUR_IOTCASH

    IS

    SELECT HELPED SEPARATE. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID,

    AIDA. INVOICE_ID

    OF AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    WHERE CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 = '530102'

    AND AIDA. ACCOUNTING_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = 'transfer of the letter references '.

    AND AIDA. ATTRIBUTE8 IS NULL.

    CURSOR CUR_INV_DISTD

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AIDA. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AP_AE_LINES_ALL AAELA,

    AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR.GL_SL_LINK_ID = AAELA.GL_SL_LINK_ID

    AND AAELA. SOURCE_TABLE = "AP_INVOICE_DISTRIBUTIONS."

    AND AAELA. SOURCE_ID = AIDA. INVOICE_DISTRIBUTION_ID

    AND CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND NVL(L.DESCRIPTION,'N/A') <>NVL (AIDA. ATTRIBUT3, "N/A")

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND GIR.GL_SL_LINK_TABLE = 'APECL. '

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AIDA. ATTRIBUT2 IS NOT NULL;

    CURSOR CUR_INV_DISTT

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AIDA. INVOICE_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AP_AE_LINES_ALL AAELA,

    AIDA AP_INVOICE_DISTRIBUTIONS_ALL,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR.GL_SL_LINK_ID = AAELA.GL_SL_LINK_ID

    AND AAELA. SOURCE_TABLE = "AP_INVOICE_DISTRIBUTIONS."

    AND AAELA. SOURCE_ID = AIDA. INVOICE_DISTRIBUTION_ID

    AND CC. CODE_COMBINATION_ID = AIDA. DIST_CODE_COMBINATION_ID

    AND CC. SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    AND GIR.GL_SL_LINK_TABLE = 'APECL. '

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND ((L.DESCRIPTION, 'N/a') <>NVL NVL (AIDA. ATTRIBUTE9, "N/A")

    (OR)

    CASE

    WHEN CC. SEGMENT4 = '530102'

    THEN NVL(L.ATTRIBUTE1,'N/A')

    END) <>NVL (AIDA. ATTRIBUTE7, N / 'A'))

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AIDA. ATTRIBUTE_CATEGORY = 'transfer of the letter references '.

    AND AIDA. ATTRIBUTE8 IS NOT NULL;

    CURSOR CUR_TRX_DIST

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    D.CUST_TRX_LINE_GL_DIST_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    GL_IMPORT_REFERENCES RIF,

    AR_AEL_GL_INV_V T,.

    RA_CUST_TRX_LINE_GL_DIST_ALL D,.

    GL_CODE_COMBINATIONS_V CC

    GL_JE_LINES L

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND GIR. JE_HEADER_ID = T.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = T.JE_LINE_NUM

    AND CC. CHART_OF_ACCOUNTS_ID = 50268

    AND D.CUST_TRX_LINE_GL_DIST_ID = T.SOURCE_ID

    AND T.SOURCE_TABLE = 'CTLGD. '

    AND CC. CODE_COMBINATION_ID = D.CODE_COMBINATION_ID

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND GIR. JE_HEADER_ID = L.JE_HEADER_ID

    AND GIR. JE_LINE_NUM = L.JE_LINE_NUM

    AND NVL(L.DESCRIPTION,'N/A') <>NVL(D.ATTRIBUTE3,'N/A')

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND D.ATTRIBUTE_CATEGORY = 'Debitable.

    AND D.ATTRIBUTE2 IS NOT NULL;

    CURSOR CUR_MISC_DIST

    IS

    SELECT THE RIF. JE_HEADER_ID,

    GIR. JE_LINE_NUM,

    AMCDA. MISC_CASH_DISTRIBUTION_ID DISTRIBUTION_ID

    OF GL_JE_HEADERS H,

    AR_DISTRIBUTIONS_ALL ADA,

    AR_MISC_CASH_DISTRIBUTIONS_ALL AMCDA,

    GL_IMPORT_REFERENCES RIF,

    GL_CODE_COMBINATIONS_V CC

    WHERE H.JE_HEADER_ID = RIF. JE_HEADER_ID

    AND TO_CHAR (AMCDA. POSTING_CONTROL_ID) = (RIF. REFERENCE_1)

    AND GIR. REFERENCE_10 = "AR_MISC_CASH_DISTRIBUTIONS".

    AND ADA. SOURCE_TABLE = "MCD".

    AND ADA. SOURCE_ID = AMCDA. MISC_CASH_DISTRIBUTION_ID

    AND AMCDA. CODE_COMBINATION_ID = CC. CODE_COMBINATION_ID

    AND TO_CHAR (ADA. LINE_ID) = (RIF. REFERENCE_3)

    AND (CC.) SEGMENT4 IN ('530101', '530102','530103 ','530104 ')

    OR CC. SEGMENT4 IN

    (SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_REC_CC_V HAS)

    UNION ALL

    SELECT A.SEGMENT4 FROM XX_GL_APAR_COMP_PAY_CC_V HAS

    ))

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND AMCDA. ATTRIBUTE_CATEGORY = "Debitable.

    AND AMCDA. ATTRIBUT2 IS NOT NULL;

    -PROJECTS

    CURSOR CUR_PROJ

    IS

    SELECT L.JE_HEADER_ID,

    L.JE_LINE_NUM,

    H.PERIOD_NAME,

    L.ENTERED_DR,

    L.ENTERED_CR,

    SUM (PCDLA. DIST_AMNT AMOUNT).

    PCDLA.PA_DATE

    OF GL_JE_HEADERS H,

    GL_JE_LINES L,.

    GL_CODE_COMBINATIONS_V CC

    PA_COST_DISTRIBUTION_LINES_ALL PCDLA

    WHERE H.JE_HEADER_ID = L.JE_HEADER_ID

    AND PCDLA. BATCH_NAME = L.REFERENCE_1

    AND L.CODE_COMBINATION_ID = CC. CODE_COMBINATION_ID

    AND L.REFERENCE_3 ('COST', 'Responsibility')

    AND H.PERIOD_NAME = PCDLA.GL_PERIOD_NAME

    AND H.DEFAULT_EFFECTIVE_DATE < = FND_DATE. CANONICAL_TO_DATE (P_AS_ON)

    AND CC. SEGMENT4 IN ('530103')

    AND L.DESCRIPTION = "created log import'

    L.JE_HEADER_ID GROUP,

    L.JE_LINE_NUM,

    H.PERIOD_NAME,

    L.ENTERED_DR,

    L.ENTERED_CR,

    PCDLA.PA_DATE

    SAW (NVL(L.ENTERED_CR,0) = SUM (PCDLA. AMOUNT)

    OR NVL(L.ENTERED_CR,0) = SUM (PCDLA. AMOUNT));

    NUMBER OF CHECK_NUM;

    BEGIN

    C IN CUR_SSCHQ

    LOOP

    BEGIN

    SELECT ACA. CHECK_NUMBER

    IN CHECK_NUM

    OF ACA AP_CHECKS_ALL,.

    AP_INVOICE_PAYMENTS_ALL LAIP

    WHERE ACA. CHECK_ID = AIPA. CHECK_ID

    AND ACA. STATUS_LOOKUP_CODE <>"CANCELLED."

    AND AIPA. INVOICE_ID = C.INVOICE_ID;

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUT2 =

    CASE

    WHAT AMOUNT > 0

    THEN "SS received cheque".

    ELSE "SS cheque".

    END,

    ATTRIBUT3 = CHECK_NUM

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID;

    EXCEPTION

    WHILE OTHERS THEN

    NULL;

    END;

    END LOOP;

    C IN CUR_IOTCASH

    LOOP

    -FOR THE DELIVERY OF INVOICES THAT ARE NOT CANCELED LINES

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUTE9 =

    (SELECT THE AIA. INVOICE_NUM

    OF AP_INVOICES_ALL AIA

    WHERE AIA. INVOICE_ID = AIDA. INVOICE_ID

    ),

    attribute8 =

    CASE

    WHAT AMOUNT > 0

    THEN "ITO issued cash."

    ELSE "IOT receipts."

    END

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID;

    -FOR THE DELIVERY OF INVOICES THAT ARE CANCELLED LINES

    UPDATE AP_INVOICE_DISTRIBUTIONS_ALL AIDA

    SET ATTRIBUTE9 =

    (SELECT THE AIA. INVOICE_NUM

    OF AP_INVOICES_ALL AIA

    WHERE AIA. INVOICE_ID = AIDA. INVOICE_ID

    ),

    attribute8 =

    CASE

    WHEN AMOUNT < 0

    THEN "ITO issued cash."

    ELSE "IOT receipts."

    END

    WHERE AIDA. INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    AND AIDA. CANCELLATION_FLAG = 'Y ';

    END LOOP;

    C IN CUR_INV_DISTD

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "pay."

    ATTRIBUTE5 = (SELECT I.INVOICE_NUM AP_INVOICE_DISTRIBUTIONS_ALL D, AP_INVOICES_ALL I WHERE I.INVOICE_ID = D.INVOICE_ID AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Payable",.

    I.INVOICE_NUM

    AP_INVOICE_DISTRIBUTIONS_ALL D,.

    AP_INVOICES_ALL I

    WHERE I.INVOICE_ID = D.INVOICE_ID

    AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_INV_DISTT

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE7 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE8 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE9 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE9 FROM AP_INVOICE_DISTRIBUTIONS_ALL D WHERE D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "pay."

    ATTRIBUTE5 = (SELECT I.INVOICE_NUM AP_INVOICE_DISTRIBUTIONS_ALL D, AP_INVOICES_ALL I WHERE I.INVOICE_ID = D.INVOICE_ID AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE7,

    D.ATTRIBUTE8,

    D.ATTRIBUTE9,

    D.ATTRIBUTE9,

    "Payable",.

    I.INVOICE_NUM

    AP_INVOICE_DISTRIBUTIONS_ALL D,.

    AP_INVOICES_ALL I

    WHERE I.INVOICE_ID = D.INVOICE_ID

    AND D.INVOICE_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_TRX_DIST

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM RA_CUST_TRX_LINE_GL_DIST_ALL D WHERE D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "receive."

    ATTRIBUTE5 = (SELECT I.TRX_NUMBER RA_CUST_TRX_LINE_GL_DIST_ALL D, RA_CUSTOMER_TRX_ALL I WHERE I.CUSTOMER_TRX_ID = D.CUSTOMER_TRX_ID AND D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Receive."

    I.TRX_NUMBER

    RA_CUST_TRX_LINE_GL_DIST_ALL D,.

    RA_CUSTOMER_TRX_ALL I

    WHERE I.CUSTOMER_TRX_ID = D.CUSTOMER_TRX_ID

    AND D.CUST_TRX_LINE_GL_DIST_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_MISC_DIST

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = (SELECT D.ATTRIBUTE1 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT2 = (SELECT D.ATTRIBUTE2 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUT3 = (SELECT D.ATTRIBUTE3 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    DESCRIPTION = (SELECT D.ATTRIBUTE3 FROM AR_MISC_CASH_DISTRIBUTIONS_ALL D WHERE D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID).

    ATTRIBUTE4 = "receive."

    ATTRIBUTE5 = (SELECT I.RECEIPT_NUMBER AR_MISC_CASH_DISTRIBUTIONS_ALL D, AR_CASH_RECEIPTS_ALL I WHERE I.CASH_RECEIPT_ID = D.CASH_RECEIPT_ID AND D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID)

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    SET

    (

    CONTEXT,

    ATTRIBUTE1,

    ATTRIBUT2,

    ATTRIBUT3,

    DESCRIPTION,

    ATTRIBUTE4,

    ATTRIBUTE5

    )

    =

    (SELECT 'Debitable',

    D.ATTRIBUTE1,

    D.ATTRIBUTE2,

    D.ATTRIBUTE3,

    D.ATTRIBUTE3,

    "Receive."

    I.RECEIPT_NUMBER

    AR_MISC_CASH_DISTRIBUTIONS_ALL D,.

    AR_CASH_RECEIPTS_ALL I

    WHERE I.CASH_RECEIPT_ID = D.CASH_RECEIPT_ID

    AND D.MISC_CASH_DISTRIBUTION_ID = C.DISTRIBUTION_ID

    )

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    C IN CUR_PROJ

    LOOP

    -The Sub statement is commented because of server performance low as indicated by the DBA as dated: 06-MAY-2014

    / * UPDATE GL_JE_LINES L

    SET CONTEXT = NULL,

    ATTRIBUT1 = NULL,

    ATTRIBUT2 = NULL,

    ATTRIBUT3 = NULL,

    ATTRIBUTE4 = NULL,

    ATTRIBUTE5 = NULL,

    DESCRIPTION = NULL

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID AND L.JE_LINE_NUM = C.JE_LINE_NUM; * /.

    UPDATE GL_JE_LINES L

    GAME CONTEXT = "Debitable."

    ATTRIBUT1 = "STORE MATTER."

    Attribut2 = "SS cheque."

    ATTRIBUT3 =

    CASE

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 1 AND 15

    THEN C.PERIOD_NAME

    |' / F.N. IST'

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 16 AND 31

    THEN C.PERIOD_NAME

    |' / F.N. 2 '

    ELSE "Import Journal created"

    END,

    DESCRIPTION =

    CASE

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 1 AND 15

    THEN C.PERIOD_NAME

    |' / F.N. IST'

    WHEN TO_CHAR (C.PA_DATE, 'DD') BETWEEN 16 AND 31

    THEN C.PERIOD_NAME

    |' / F.N. 2 '

    ELSE "Import Journal created"

    END,

    ATTRIBUTE4 = 'projects ', he said.

    ATTRIBUTE5 = L.REFERENCE_1

    WHERE L.JE_HEADER_ID = C.JE_HEADER_ID

    AND L.JE_LINE_NUM = C.JE_LINE_NUM;

    END LOOP;

    COMMIT;

    END;

    /


    The error in the stored procedure, it is that it is badly written - by using the line by line (= slow-by-slow) cursor loops, in the middle of which he

    are updated.

    This causes the locking will be held longer than necessary.

    If rewrite you it with focus on game updates, that will be faster, it will alleviate your problem.

    To completely remove it, you will need to discover why a report made updates and why she strives to update the same rows.

    BTW: also remove this bad Ngen.exe.

  • blocking query session

    What is the query to find this kind of info, blocking the session? for example
    535 blocking another 1962 session, session they are both coming from MS:

    This query will tell you which blocks that...

    select (select username
              from v$session
             where sid = a.sid) blocker
         , a.sid
         , ' is blocking '
         , (select username
              from v$session
             where sid = b.sid) blockee
         , b.sid
      from v$lock a
         , v$lock b
     where a.block = 1
       and b.request 0
       and a.id1 = b.id1
       and a.id2 = b.id2
    

    question by Tom Kyte

  • SlateBookx2: I closed my session with wrong password and I can connect is no longer

    Hey,.

    I blocked my Slatebook session with my usual password before you turn it off. I must have typed wrong twice. Earlier this afternoon, I went from the Tablet, entered the password, and the display shows "wrong password". I've tried dozens of variants (including the cap lock), nothing works.

    Is there a way to reset everything, even if that means reformatting of the Tablet?

    Any suggestion is appreciated.

    Thank you

    Hi Sapiens,

    I would off the tablet of the keyboard if you are only working with the tablet. Try now the power button and selecting "Power Off" when it appears on the screen. Once the unit is off, follow these instructions to reset the unit to the power off state: factory reset instructions.

    Please mark this message as the accepted answer if I solved it your problem.

    Thank you

    hsimo

  • DBMS_STREAMS_ADM. ADD_SCHEMA_RULES is blocked without any error

    I encountered a problem that DBMS_STREAMS_ADM. ADD_SCHEMA_RULES has not returned for too long and I can't do any mistake when I use DBMS_STREAMS_ADM. ADD_SCHEMA_RULES to generate the capture downstream.  All scripts are show in what follows. I'd appreciate if someone can tell me how to solve this problem. Thank you very much!

    ----------------------------------------------------------------------------------------------------------------------------------------------

    Grant connect, resource, s/n, aq_administrator_role to DWESBSTREAMUSER.

    Start

    () dbms_streams_auth.grant_admin_privilege

    dealer = > "DWESBSTREAMUSER"

    grant_privileges = > true);

    end;

    ------------------------------------------------------------------------------------------------------------------------------------------------

    I use user DWESBSTREAMUSER to build downstream to the user 'SK' and I have already created db_links.

    SELECT * FROM DBA_DB_LINKS;

    -IMPLEMENT THE QUEUE

    BEGIN

    DBMS_STREAMS_ADM. () SET_UP_QUEUE

    queue_table = > "CAP_APP_Q_T"

    queue_name = > "CAP_APP_Q"

    queue_user = > 'SK');

    END;

    /

    -CREATE THE RULES AND THE TRIAL

    BEGIN

    DBMS_STREAMS_ADM. () ADD_SCHEMA_RULES

    schema_name = > 'SK ',.

    streams_type = > 'APPLY ',.

    streams_name = > 'DS_APP ',.

    queue_name = > "CAP_APP_Q"

    include_dml = > true,

    include_ddl = > true,

    inclusion_rule = > true,

    include_tagged_lcr = > false,

    source_database = > 'ORCL_176 '.

    );

    END;

    Start

    () dbms_apply_adm.set_parameter

    apply_name = > 'DS_APP ',.

    parameter = > "allow_duplicate_rows"

    value = > 'Y');

    end;

    /

    SELECT * FROM DBA_APPLY;

    -CREATE CAPTURE

    BEGIN

    DBMS_CAPTURE_ADM. () CREATE_CAPTURE

    capture_name = > 'DS_CAPTURE ',.

    queue_name = > "CAP_APP_Q"

    source_database = > "ORCL_176"

    RlDGlDdatabase_link = > true

    ); -See Note below.

    END;


    SELECT * FROM DBA_CAPTURE;

    -ADD CAPTURE RULE

    BEGIN

    DBMS_STREAMS_ADM. ADD_SCHEMA_RULES (-is this block this function.)

    schema_name = > 'SK ',.

    streams_type = > "enter."

    streams_name = > 'DS_CAPTURE ',.

    queue_name = > "CAP_APP_Q"

    include_dml = > true,

    include_ddl = > true,

    include_tagged_lcr = > false,

    inclusion_rule = > TRUE,

    source_database = > 'ORCL_176 '.

    );

    END;

    /

    -Step 14: Start apply process

    -Start to apply it to the destination database.

    Start

    () dbms_apply_adm.start_apply

    apply_name = > 'DS_APP');

    end;

    /

    -Stage 15: Start capture process

    -Start the capture process at the downstream database.

    Start

    () dbms_capture_adm.start_capture

    capture_name = > 'DS_CAPTURE');

    end;

    /

    SELECT * FROM DBA_APPLY;

    SELECT * FROM DBA_CAPTURE;

    SELECT * FROM DBA_APPLY;

    DECLARE

    -Variable to hold the value YVERT instantiation

    ISCN NUMBER;

    BEGIN

    -Get current SCN of the Source

    ISCN: = DBMS_FLASHBACK. GET_SYSTEM_CHANGE_NUMBER@ORCL_176;

    DBMS_APPLY_ADM. () SET_SCHEMA_INSTANTIATION_SCN

    sourceschemasource_schema_name = > 'SK ',.

    source_database_name = > "ORCL_176"

    instantiation_scn = > iscn,.

    recursive = > TRUE);

    END;







    Use the common troubleshooting approach. To start: look at session $ v what is the session making. Is there a wait event? If it is blocked by another session?

    Check the alert.log and trace files if they show related errors.

  • Why the blocks of temporary tables are placed in the buffer cache?

    I read the following statement, which seems quite plausible to me: "Oracle7.3 and generates from close db file sequential reading of the events when a dedicated server process reads data from temporary segment of the disc." Older versions of Oracle would read temporary segment data in the database buffer cache using db file scattered reads. Releases latest exploit heuristics that data of temporary segment is not likely to be shareable or revisited, then reads it directly to a server process programs global (PGA). »

    To verify this statement (and also for the pleasure of seeing one of these rare close db file sequential read events), I ran a little experiment on my Oracle 10.2 Linux (see below). Not only it seems that different this v above, the blocks of temporary tables are placed in the buffer cache, but also$ BH. OBJD for these blocks does not refer to an object in the database's existing (at least not one that is listed in DBA_OBJECTS). Either incidentally, I traced the session and have not seen any file db close sequential read events.

    So, I have the following questions:
    (1) is my experimental set-up and correct my conclusions (i.e. are blocks of temporary tables really placed in the buffer cache)?
    (2) if so, what is the reason for placing blocks of temporary tables in the buffer cache? As these blocks contain private session data, the blocks in the buffer cache can be reused by another session. So why do all cache buffer management fees to the blocks in the buffer cache (and possibly remove) rather than their caching in a private in-memory session?
    (3) what V$ BH. OBJD consult for blocks belonging to temporary tables?

    Thanks for any help and information
    Kind regards
    Martin

    Experience I ran (on 10.2 /Linux)
    =============================
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Oct 24 22:25:07 2010
    
    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
    
    SQL> create global temporary table temp_tab_4 on commit preserve rows as select * from dba_objects;
    
    Table created.
    
    SQL> alter system flush buffer_cache;
    
    System altered.
    
    SQL> select count(*), status from v$bh group by status order by 1 desc;
    
      COUNT(*) STATUS
    ---------- -------
          4208 free
          3 xcur
    
    SQL> select count(*) from temp_tab_4;
    
      COUNT(*)
    ----------
         11417
    
    SQL> -- NOW THE BUFFER CACHE CONTAINS USED BLOCKS, THERE WAS NO OTHER ACTIVITY ON THE DATABASE
    select count(*), status from v$bh group by status order by 1 desc;
    SQL> 
      COUNT(*) STATUS
    ---------- -------
          4060 free
           151 xcur
    
    SQL> -- THE BLOCKS WITH THE "STRANGE" OBJD HAVE BLOCK# THAT CORRESPOND TO THE TEMPORARY SEGMENT DISPLAYED
    -- IN V$TEMPSEG_USAGE
    select count(*), status, objd from v$bh where status != 'free' group by status, objd order by 1 desc;
    SQL> SQL> 
      COUNT(*) STATUS      OBJD
    ---------- ------- ----------
           145 xcur       4220937
          2 xcur        257
          2 xcur        237
          1 xcur        239
          1 xcur    4294967295
    
    SQL> -- THE OBJECT REFERENCED BY THE NEWLY USED BLOCKS IS NOT LISTED IN DBA_OBJECTS
    select * from dba_objects where object_id = 4220937 or data_object_id = 4220937;
    
    SQL> 
    no rows selected
    
    SQL> SQL> -- THE BLOCKS WITH THE "STRANGE" OBJD ARE MARKED AS TEMP IN V$BH
    select distinct temp from v$bh where objd = 4220937;
    SQL> 
    T
    -
    Y
    
    SQL> 
    Edited by: user4530562 the 25.10.2010 01:12

    Edited by: user4530562 the 25.10.2010 04:57

    The reason to put the blocks to the global temporary table in the buffer cache is the same thing why you put ordinary table blocks in the cache buffers-> you want some of them to be in memory.

    If you ask why don't keep us somehow temporary tables in the PGA - well what happens if this temporary table will be 50 GB? 32-bit platforms cannot even handle this and you do not want a process of becoming uncontrollable so great.

    Moreover, TWG will allow you to restore, back to a backup (or savepoint implied when an error occurs during a call DML), and this requires protection by the cancellation. Place lines / revenge in PGA would have complicated the implementation even further... now GTT is almost of the regular tables which just happened to reside in temporary files.

    If you really want to put data in the PGA only, then you can create collections of PL/SQL and even access through the use of SQL (coll CAST AS xyz_type) where xyz_type is a TABLE of an object any.

    --
    Tanel Poder
    New online seminars!
    http://tech.e2sn.com/Oracle-training-seminars

  • collect the session stats

    Hi guys...

    I'm in Oracle Database 10 g Enterprise Edition Release 10.2.0.2.0 - Production on Solaris 64 - bit.

    I'm collecting statistics of schema using DBMS_STATS. GATHER_SCHEMA_STATS ('PLAN', DBMS_STATS. AUTO_SAMPLE_SIZE).

    Now my session is suspended:

    I checked if this session is blocked by another session, and I do not see those that is blocking this session.

    I then checked the v$ session_wait and I found this:

    SQL > /.

    SID EVENT P1 P2
    ---------- ---------------------------------------------------------------- ---------- ----------
    1259 db file sequential read 816568 48


    When I check further I discovered that I have a clue which may contribute to the problem.

    When I check the status of the index it show N/A.

    What does this mean and how I have dealt with this issue?

    Published by: user11979518 on 7 Sep 2010 06:52

    First of all it is unnecessary to type the capital subject to attract more attention.
    Please change the subject and apologize to this forum.

    Other other than the procedure is taken on time, I see no problem. The session is waiting for disk including normal,
    and n/a probably means that the index is being analyzed.
    Only when there is no I/O in this session, there could be a problem.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • Restore the tabs

    Firefox fails, I restarted and I saw 'Restore tab session', but until I clicked 'OK' in this tab has been responsible for new site from one page addons (it is updated, new happy wow) and I can't go back to the tab restore and -> session restore menu item is disabled. How can I restore my previous session? Why FF not block 'Restore tab session?

    If you check your menu history (either using the button "3-bar" menu bar Classic menus, if you view only), restore previous Session are there? You can also check if there is available closed windows to restore.

    Before closing Firefox, please save your session history files to a safe place for potential recovery/recovery operations.

    You can open the settings file (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button.

    In the window that launches, scroll down and double-click on folder sessionstore-backups . Save all the files here to a safe place, such as your Documents folder. We may be able to use to recover your lost tabs.

    The types of files that you can find among your sessionstore files are:

    • Recovery.js: the windows and tabs in your Firefox session currently live (or, if Firefox is closed, your last session)
    • Recovery.bak: a backup copy of recovery.js
    • Previous.js: the windows and tabs in your last session in Firefox
    • Upgrade.js -build_id: windows and tabs in Firefox that was alive at the time of your last update session

    You can also find files that Firefox created if it could not update recovery.js (but since Firefox 33 is so new, I don't know what they would be called).

    Can take you a look at what you have and the date / time of the different files to see if you think that one of them would be the missing window?

    Note: by default, Windows hides the .js extension. To make sure that you look at the files I mentioned, you can disable this feature. This article has the steps: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

  • exceptions list sites authorized to load the images, (permisions.sqlite?) is cleaned out of Firefox, or when I clear recent history. How to prevent this?

    My exception list for sites that are allowed to load images, (permissions.sqlite in the profile folder, I think) is allowed in release of Firefox, or when I clear recent history. These images remain blocked during the session. I never provide exceptions for cookies or pop-ups. I deleted the site preferences box and the other 2 boxes in the data area of the settings menu history, but the list is always cleared out. I've never had this problem until about a week ago and heading FF since 0.8 version.
    It's 12 FF, under Win XP.

    If you use a software like CCleaner cleaning then check the settings in the Firefox application.

    It is also possible that the permissions.sqlite is corrupted, then you can try to delete this file and let Firefox to create a new copy to see if that helps.

    • Do not use 'Clear history of Firefox closing' to clear the 'browsing history '.
    • Do not use "Clear recent history" to delete 'Cookies' and 'Site preferences.

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

  • Win 7 SP1 - deletion of the remote desktop connection

    I have just reinstalled Win7 and now want to remove Remote Desktop connection.
    I had a search on google and put apart from the endless stream of Web sites offering assistance that is not Microsoft or sites "known", all I can find is how to remove the history of connection and other unnecessary things. I click on these "unknown" sites for advice because they are often littered of malware and other.

    The Microsoft.com search just comes up with a TechNet link on how to turn it off via Group Policy or "appblocker.

    There must be a simple way to remove this? I checked in my control panel for a list of windows components and I haven't found it either. For what is such a massive security risk, it should be easy to get rid of. I am again disappointed by Microsoft for this approach.

    Can anyone help?

    Place in 'Other apps Microsoft windows' for lack of a better category.

    Thoughts aside for Member States:

    When the devil Microsoft did start using the team 'apps' for the installed programs or features? A - that Microsoft has decided to 'follow the herd' now, terrible decision. Windows is not a hipster created 'app' it is a level of business o/s and must be treated in these terms, there was a language and jargon created by the software industry professional for decades that was just fine, the need to 'jazz up' or 'trendify' these terms in 'New talk' is a pathetic attempt by a weak marketing team of desperately do not be left behind. DRIVE to Microsoft and are not for God love grow and use good pre-established conditions and language to describe your operating system, not some trend Street Slang that was created by the generation of wordpress - you're better that that, flow not at their level.

    You can block incoming RDP sessions in the control panel system properties, where it has been the same since 1994 with Windows NT:

    In addition, Microsoft called programs 'applications' for many years (decades).  Shortening it to "app" is just a common abbreviation.

    Even Windows 7 said application, but I hope you're smart enough to know that 'app' means 'request', so it should not hurt much.

  • Authentication card smart - authentication certificate user

    I am developing an authentication solution for BlackBerry based on cryptographic SIM cards. I managed to create a pilot smart card reader and a driver of smart card using the RIM Crypto API. The use of these two, I'm able to import a
    certificate stored on the SIM card, enable the authentication of users in two phases that checks the password device and the STEM to the certificate. I can also set up a TLS session using private keys and certificates stored on the card.

    However, when you try to activate the "Authentication certificate" option in the password options panel, I encounter a problem. After selection of the certificate and click on save, the device asks me to enter the password device and the PIN smart card, what I'm doing. Debugging tells me, that the PIN is properly checked with the card. Subsequently, a 'Card access smart' popup appears with information that the 'Options' of RIM application attempts to access the card with the information "the private key will be used to initialize authentication certificate". When I enter PIN code OK, I said: 'failed to initialize authentication certificate. Check that the certificate is not on the smart card used for two-factor authentication. »

    Can someone tell me why this is? Must the certificate be special in some way (content, restriction of the use of the key etc.)? The certificate is obviously present on the map, as there is for example a client certificate for TLS sessions setting. Also, what makes this "initialization" all of the average of certificate?

    Well, I think I'll answer myself that I managed to solve this problem

    After some debugging I realized that:

    • After the second PIN prompt appears, the method of signRSA (net.rim.device.api.crypto.RSACryptoSystem, net.rim.device.api.crypto.CryptoTokenPrivateKeyData, byte [], byte [], int, int, java.lang.Object) in our RSACryptoToken extension is called
    • This method gets a context (last parameter) object, which is a SmartCardSession
    • during the processing of the request of sign (cf. the smart card and examples of smart card of RIM drive) must not create an another smart card session, but instead reuse the provided in the framework.

    Trying to establish a new session of chip due to the demand to block, because the sessions are exclusive, i.e. only can be opened simultaneously.

  • Global index unpartitioned reconstruction shot

    Hi all.

    The rebuild operation global index unpartitioned is hang. Everything down and rebuild this index works correctly (nearly 15-20 secconds).

    Format of the operation:

    ALTER index index-name regeneration;

    Also try

    ALTER index index-name reconstruction nologging;

    Also try

    ALTER index index-name parallel reconstruction n NOLOGGING;

    Trace session has failed the cause of blocking.

    Session block on the operation "sequential reading.

    No other sessions are in time to rebuild indexes, without locks, no session blocking.

    Plan query ranks Rowsource Time (s)

    CREATE the INDEX STATEMENT cost = 13448670
    CREATE the INDEX STATEMENT cost = 13448670
    CREATE the INDEX STATEMENT cost = 13448670
    CREATE the INDEX STATEMENT cost = 13448670
    UNIQUE CONSTRUCTION INDEX NO AGG_EXT_ARPU_MOU_IDX8
    UNIQUE CONSTRUCTION INDEX NO AGG_EXT_ARPU_MOU_IDX8
    UNIQUE CONSTRUCTION INDEX NO AGG_EXT_ARPU_MOU_IDX8
    UNIQUE CONSTRUCTION INDEX NO AGG_EXT_ARPU_MOU_IDX8
    LIKE CREATE INDEX13 M9
    LIKE CREATE INDEX13 M9
    LIKE CREATE INDEX13 M9
    LIKE CREATE INDEX13 M9
    INDEX FULL SCAN AGG_EXT_ARPU_MOU_IDX22
    INDEX FULL SCAN AGG_EXT_ARPU_MOU_IDX22
    INDEX FULL SCAN AGG_EXT_ARPU_MOU_IDX22
    INDEX FULL SCAN AGG_EXT_ARPU_MOU_IDX22

    EVENT                            P1      P2           P3

    db file sequential read1210001


    Partitioned table consists of about 13 million lines.

    Can you help me find the problem or give a workaround solution.

    Kind regards

    Mikhail

    Always go read a CREATE INDEX of the Table.

    An INDEX REBUILD will be:

    (a) if the Index is in a VALID State-read of the Index online

    (b) if the Index is unusable-online read the Table

    You could make the Index UNUSABLE to force RECONSTRUCTION to read from the Table.

    I assume that you do NOT attempt a reconstruction in LINE and are ready to have the table locked for the duration of the reconstruction.

    But WHY YOU REBUILD the INDEX?  What is the reason?   Do you have proof that reconstruction will benefit?

    Hemant K Collette

Maybe you are looking for