Sessions are in blocked state

Hi Gurus,
we are inserting data into one table and using append and parallel hints...but that query is not completed yet and those sessions are in blocked list.
can you please let me know how to overcome this issue and below is the query:
INSERT /*+ APPEND PARALLEL(emp 8) */ INTO emp_temp
  (empno,empname,dateofjoining,deptno,sal)
  SELECT /*+ PARALLEL(empn 8) */
         empno,empname,dateofjoining,deptno,sum(sal) sal
  FROM emp_V;
is it correct usage or anyother best way for improving performance.

Thanks for the response.
Below is the issue details more detailed:
We have created table with parallel degree 8 and I am not able to insert data into that table and the sessions are blocked state.
I am seeing event names in blocked state are px deq: parse reply px deq: execution msg
Temp_table -- parallel degree8
I am selecting the data from multiple tables as per my requirement and trying to insert that data into the temp table.
Below is the query:
Insert into /*+PARALLEL(Temp_table)*/ Temp_table(report_date,quantity,revenue)
select  /*+PARALLEL(Temp_table_v)*/ report_date,quantity,revenue from Temp_table_v;
In Temp_table_v we are joined the multiple tables and those tables are having millions of records and in that view also we have added parallel hints.
Please help.

Similar Messages

  • Why user sessions are frequently blocked?

    from the time that we did a database migration from oracle 8i to oracle 9i, and the application to developer 6i we have faced a new problem, ' the user sessions are frequently blocked'
    anybody have any idea? it is a database parameter that must be changed?...
    thnx,

    Hi,
    Since it was a migration from oracle 8i to oracle 9i, your performance is suppose to increase rather than decrease given condition that hardware and oracle configuration does not change.
    How did you figure out that user sessions are frequently blocked?
    You can query v$session_wait and check why it is blocked/waiting?
    You can query v$locked_object to check if it is blocked for lock on some other objects?
    Regards

  • Two sessions are blocked each other in

    Hi All,
    My database is Exadata machine. 11.2
    These days we encountered one case, that is two sessions are always blocked by each other. I get this info from v$session blocking_session.
    For examle, the information looks like
    sid blocking_session event
    1 2 libarary cache lock
    2 1 row cache lock
    and as you know there are many other sessions are blocked by sid 1.
    By lookiing up v$sql, I got the sql for these 2 sessions.
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILE
    Both of these 2 MV share some underlying objects. And both of the 2 sessions started at the same time roughly.
    If the compilation incurs the lock on the object, why the 2 sessions block each other?
    Can someone give me some tips,please?
    Best regards,
    Leon

    Leon,
    sid blocking_session event
    1 2 libarary cache lock
    2 1 row cache lockYou are saying that above situation does not cause a deadlock error to be generated in either one of those two sessions?
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_TEMP_MV" COMPILE
    /* QSMQ VALIDATION */ ALTER SUMMARY "XXXXX"."Gxxx_CP_CAL_TIME_MV" COMPILEThese to me look like programmed 'ALTER SUMMARY' commands (the comment in front of the statement seems to indicate so). It's the application that's doing this right?
    - Can you reproduce this with two sqlplus sessions?
    - Why is the application compiling the MV's? Are underlying objects being altered frequently?
    - Should the application not just be 'refreshing' the MV's instead of compiling them?
    Just some thoughts.
    Toon
    Edit:
    Dom's right. The alter summary statements seem to be Oracle internal calls generated by DBMS_MVIEW.REFRESH executions.
    Edited by: Toon Koppelaars on Nov 24, 2011 10:41 AM

  • Messages are in Scheduled State

    Hi
       some of my messages are in scheduled state. i  verified   SMQ1,SMQ2 . no queues are in block state. also  i  executed  register queues in sxmb-adm still they are  same state. how can i make them as successful state. only by restarting the messages or is there any other way? also tell me why these messages went to scheduled state

    Reddy,
    Can you please check this threads for possible solutions:
    Problem with scheduled message in SXMB_MONI
    SXMB_MONI - Message scheduled on outbound side (no queues)
    Regards,
    ---Satish

  • JSF sessions are mixing

    Hello everybody!
    I have this serious problem:
    We have a pretty big jsf application which has been put to a stress test of 300 users. Not only the test failed because of a special critical section in the UIComponentBase class, because of which we had to change our jsf implementation but we experienced the following problem:
    Some of the users claimed to be unable to start an action or to try to do one thing and to get a different result. More specifically trying to go to one page and to get another or trying to start an action which fails and the user gets the same page as a result.
    Can anyone tell what could be the reason?
    Best regards,
    IL

    Thanks for the response.
    Below is the issue details more detailed:
    We have created table with parallel degree 8 and I am not able to insert data into that table and the sessions are blocked state.
    I am seeing event names in blocked state are px deq: parse reply px deq: execution msg
    Temp_table -- parallel degree8
    I am selecting the data from multiple tables as per my requirement and trying to insert that data into the temp table.
    Below is the query:
    Insert into /*+PARALLEL(Temp_table)*/ Temp_table(report_date,quantity,revenue)
    select  /*+PARALLEL(Temp_table_v)*/ report_date,quantity,revenue from Temp_table_v;
    In Temp_table_v we are joined the multiple tables and those tables are having millions of records and in that view also we have added parallel hints.
    Please help.

  • Content Switching Module (CSM): Sessions stuck in closing state

    Hi guys,
    I'm troubleshooting a CSM with 4.3(1).
    We migrated a real server from windows to linux, since then lot's of sessions stuck in closing state until the idle timer expires.
    I traced the traffic from the client to the csm and from the csm to the real server what I saw is the following behaviour at the end of a session:
    windows real server: client sends FIN -> real server acks the FIN -> real server sends FIN -> client sends RST -> real server sends RST -> CSM deletes session from session table
    The linux real server mostly behaves like the windows real server but sometimes behaves as follows:
    client sends FIN -> real server sends  FIN, but does not ack the FIN sequence number of the client -> real server sends RST -> client sends RST -> CSM does not delete  session from session table, it stucks in closing state
    Does anybody know how I can solve this problem of half-closed sessions other than decreasing the idle timeout?
    Is it possible to configure CSM to close and delete sessions not only on FIN-ACK packets but also on RST packets?
    Or to use a different fast idle timeout when sessions are half-closed?
    Many thanks in advance,
    Thorsten

    Hi Fabrizio,
    CSM_FAST_FIN_TIMEOUT is already set to 10 seconds.
    What I found out while testing is that CSM_FAST_FIN_TIMEOUT works with configurations where idle timeout is configured > 0.
    But when idle timeout is configured to 0 (what meas no idle timeout) the csm seems not to use CSM_FAST_FIN_TIMEOUT: Half closed sessions will stuck in closing state.
    Any idea why cms behaves this way?
    Regards,
    Thorsten

  • Session 1648 is blocking 2 other sessions

    Hi,
    We are getting this Warning from the EM very frequently.
    How can I know Which user process is blocking which session?
    We are using 10.2.0.1.0 db in linux environment.
    Can you please provide me the query or quide me to get which process is blocking by which process?
    Thanks a lot in advance.
    Thanks
    Pathan

    >
    Can you please provide me the query or quide me to get which process is blocking by which process?There are two ways to do it,
    1) In the EM, in the performance tab,there is a link called Blocking Sessions. This would show you in the tree like structure that which session is bloking others and which are the blocked sessions. You can killl the blocking one from here itself.
    2) The same interface is given in CLI from ORacle supplied script under $OH/rdbms/admin/utlockt.sql. This would show the same results but in the sql prompt.
    2a) There are three views that you can use to create your own script,
    DBA_Blockers, DBA_waiters and V$locked_object ( already mentioned by last poster) .
    HTH
    Aman....

  • One of the users on my Mac book pro, running Mountain lion finds that no changes made in last session are there next time they log on

    One of the users on my Mac book pro running mountain lion finds that no changes made in last session are there next time they log on.
    For instance, the Macintosh HD icon, is always moved so that it is almost off the screen to top left hand side of the desktop.
    None of my changes to the sidebar in the finder are there.
    My changes to the dock have reverted.
    Despite unticking the box when logging out, even though i have quit all applications, iphoto and safari are always re-opened.
    iphoto always says the library needs to be upgraded... even though i did that the last time.
    I have tried deleting ALL the files in the "Saved application state" folder in the library folder, but that doesn't seem to make any difference.
    This is on a second admin user account.
    The main user account seems to be fine.
    This account used to be in the filevault on Lion, but is not now in Mountain Lion.
    Can anyone help?
    Thanks

    The same tragic thing happened to me, not even a full two days after I bought it. I immediately powered it off, wiped it as best I could, and put it in front of a fan. I tried valiantly to get the back off, but couldn't remove all the screws. I was basically inconsolable until I realized that no matter what, my credit card insurance would cover it, since it had been less than 90 days. Fast forward 48 hours, and it seemed to run just fine. Some of the keys and the track pad were sticky, and I figured since it was covered, I might as well get it fixed. My only concern at this point was had I voided the Apple Care. I brought it in, told them what happened, said what I needed to satisfy the credit card, and they said, "We'll just swap it out for you, no problem." I was thrilled, and the Genius said they appreciated my honesty, and it was easier for all parties to just do it this way. And my Apple Care was transferred to the new machine. This was my first Mac and, needless to say, I am now an Apple devotee.

  • CJQ0 process session is in idel stat

    Session Idel
    Hi,
    Version 10204.
    All my database jobs are running using dbms_scheduler as you can see :
    select count(*) from dba_jobs;
      COUNT(*)
             0
    SELECT COUNT(*) FROM DBA_SCHEDULER_JOBS;
      COUNT(*)
            20
    show parameter job_q
    NAME                                 TYPE        VALUE
    job_queue_processes                  integer     10        I am using the following statment to get a list of all session that in "idel" stat more than 10 hours.
    I found that the oracle process: CJQ0 is in idel stat about 12 hour :
    SELECT sess.username,proc.program,round(last_call_et/3600) idel_hr
      2  from v$session sess, v$sesstat stat, v$statname name , v$process proc
      3  where sess.sid = stat.sid and stat.statistic# = name.statistic#
      4  and sess.username is not null
      5  and name.name =  'recursive calls'
      6  and sess.paddr=proc.addr
      7  and sess.USERNAME NOT IN ('TIBCO','ONG')
      8  and sess.osuser NOT IN ('Tuxedo','psoft','appl11i','wmc')
      9  and sess.last_call_et/3600 >= 10
    10  and machine !='xyz';
    USERNAME                       PROGRAM                                             IDEL_HR
    SYS                            oracle@xxx (CJQ0)                                      12Oracle documentation : http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1602
    say :
    "The coordinator process, named CJQ0, periodically selects jobs that need to be run from the system JOB$ table"
    But my JOB$ is empty :
    select count(*) from sys.job$;
      COUNT(*)
             0Whey the process is in this stat ?
    Thanks

    Hi,
    Does someone can help on this issue ?
    I did not get any feedback in the last few days.
    Best Regards

  • Having trouble with put_line function in block statement..

    Am a student, and the request does not appear to be in my book anywhere... Nothing on put_line, or block statements that I can see..
    Need to write a block which will bring back via put_line for department 110: the department_id (departments table), the department_name (departments table), and the city in which the department is located (which must be pulled from locations table... can be joined by department_id). I can write the select statement with join, just not sure how to turn it into a block with put_line function..
    any advice appreciated.. Thanks.

    Hi,
    You need to format your code, so that it's easy to see what statements are in each section (DECLARE, BEGIN, etc.).
    The compiler doesn't care about this, but it will help anyone who tries to read your code, including yourself.
    Type {code} before and after formatted sections when posting messages on this site.
    All statements, including each individual variable declaration) end with a semicolon.
    If a query will return no more than one row, you can capture the results using an INTO-clause, right after the SELECT-clause. For every column in the SELECT-clause, there will be one variable in the INTO-clause.
    Lists, including lists of table names in a query's FROM-clause, are delimited by commas.
    In a query's FROM-clause, the real name of the table comes first, optionally followed by the alias you're using in the query.
    I think this is what you're trying to do:
    SET   SERVEROUTPUT  ON  SIZE 50000
    Declare
        dep_id    NUMBER;
        Dep_string VarChar (100);
    Begin
        select  d.department_id, d.department_name -- , l.city
          into  dep_id,          dep_string
          from  departments  d
             ,  locations    l
          where d.location_id = l.location_id
            and d.location_id = 110;
        DBMS_OUTPUT.PUT_LINE (Dep_string);
    END;
    /No one should ever have this many errors at one time. Write code in much smaller increments, and test after each one. For example, you know you'll be using dbms_output.put_line, so start with something like:
    SET   SERVEROUTPUT  ON  SIZE 50000
    BEGIN
        dbms_output.put_line ('Hello, world!');
    END;You may have problems if you forget semicolons, or SET SERVEROUTPUT. Solve those before you go any further.
    Once the program above is working, add a little (and I mean a little) to it.
    For example, you know you'll be printing a varibale, not a literal, so change it to a variable:
    SET   SERVEROUTPUT  ON  SIZE 50000
    DECLARE
        dep_string  VARCHAR2 (100) := 'Hello, world!';
    BEGIN
        dbms_output.put_line (dep_string);
    END;And so on.
    Edited by: Frank Kulash on Dec 15, 2008 12:36 PM

  • JDBC Sessions Are Left Open

    I am having a problem where the JDBC sessions are not being closed. We are using the NCR Teradata JDBC driver talking to a Teradata Data warehouse. I am not aware of any way to explicitly close the JDBC sessions using JDeveloper, since I don’t directly issue any JDBC statements for selecting data. Is there a way for me to close the sessions in code?

    The following is the Data Source that I am using:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    name="jdev-connection-Teradata"
    class="com.evermind.sql.DriverManagerDataSource"
    location="jdbc/TeradataCoreDS"
    xa-location="jdbc/xa/TeradataXADS"
    ejb-location="jdbc/TeradataDS"
    pooled-location="jdbc/TeradataPooledDS"
    connection-driver="com.ncr.teradata.TeraDriver"
    username="GavinLDCHBull"
    password="xxxxxx"
    url="jdbc:teradata://FONEBONE/DATABASE=HABWaiver"
    inactivity-timeout="30">
    </data-source>
    </data-sources>
    We are using the ADF framework (i.e. entities and simple views) for accessing all Teradata data. I do not explicitly issue any JDBC calls for accessing the data. When I update the data, I use JDBC calls to initiate stored procedures. However, the problem (not closing the statements) happens almost immediately after starting the application, and prior to issuing any stored procedures.
    I have not tried to duplicate the problem using a simple java program because I am using ADF for data access (again, I don't explicitly issue any JDBC statements).

  • Credit card Orders are getting blocked with credit check

    Hi All
    In our system, If customer's credit exposure is greater then 100 % then all the credit card orders are getting blocked with credit check even though it has valid authorization. Is this sap standard behaviour?....is there any setting that will always exclude credit card orders when it has valid authorization
    Thanks in advance for looking into this

    Hi,
    In OVA8- under document controlling- check the existing routinue 1 for orders etc., else modify as per your requirement
    Thanks
    Chidamabram

  • I have disabled pop ups in my iphone but still i could n't connect to my college wifi.. It shows the error message  as ensure whether the pop ups are not blocked.. pls help

    Hai..
    I have disabled block pop up in my iphone 5s.. but still i couldn't connect my mobile with my college wifi.. it shows the error message as "ensure all the pop ups are not blocked"....

    You might want to talk to the IT dept. at your school to see if they know of a solution.

  • Data of different session are not getting refreshed.

    We used select one choice and it is bind to the iterator. Data of different session are not getting reflected.
    Problem Scenario : Two browsers are open with same screen . In browser-1, I am adding new item which display on drop down of same screen. But drop down of browser-2 is not displaying the new added value.
    Please let me know how to refresh the data of browser-2 if I added data on different session.
    //JSFF entry
    <af:selectOneChoice binding="#{backingBeanScope.Product.ICTCSTName}"
    id="iCTCSTName" simple="true"
    label="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.label}"
    required="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.hints.mandatory}"
    value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.inputValue}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.tpCrudeSuperTypeFindAllPopulatedCT.items}"
    binding="#{backingBeanScope.Product.si2}"
    id="si2"/>
    </af:selectOneChoice>
    //Pagedef entry
    <list IterBinding="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    ListOperMode="navigation"
    ListIter="tpCrudeSuperTypeFindAllPopulatedCTIterator"
    id="tpCrudeSuperTypeFindAllPopulatedCT" DTSupportsMRU="true">
    <AttrNames>
    <Item Value="superTypeName"/>
    </AttrNames>
    </list>

    Are you sure backingBeanScope is the correct scope for your scenario?
    Session scope sound more appropriate to me.
    binding="#{backingBeanScope.Product.si2}"

  • Business Area wise finacial statements - P&L, Balance Sheet

    Hi,
    My client has a requirement to have business area wise Trail Balance. In OBY6, business area financial statements tick has been done. So it is asking business area in cost objects. Plants are assigned to business areas. But still, I am able to post Balance sheet account to Balance sheet accounts without business area. I thought making business area mandatory for all G/Ls in OBC4. Then I have to write many substitutions  and  I may lose advantage of F.5D which gives business area basing on other P&L line item.
    What needs to be done?
    Can someone help me to suggest what exactly needs to be done to get Business Area wise Trail Balance.
    We have not activated document splitting functionality. Please suggest the way without document splitting and New G/L functionalities.
    Regards,
    Saidarao
    Edited by: saidarao G on Nov 22, 2011 7:47 AM

    Hi,
    You if want business area wise finanancial statements go to the this tranction code F.01
    Regards
    Mastan Reddy N

Maybe you are looking for

  • Problem opening PDFs within an App-V session of Internet Explorer

    I've seen similar post to this problem but no solution. Problem is I am delivering a web based application using App-V.  This works fine except when the User tries to open PDFs.  This fails with the following error - "Adobe PDF Document" "There is a

  • Soft Proofing: may not work on my screen

    First of all: Thanks so much for implementing soft proofing! Especially in such an easy way! I was really hoping you'd do it exactly like that. Anyway, I've got a wide gamut monitor (Thinkpad W520 laptop screen). And I've got an image with a lot of s

  • Fail to handle document numbering

    Dear all, I had a problem with  SAP 8.82 User Defined Objects  screen. While adding document  Fail to handle document numbering:.error but the documents is added because of this post transaction is not working

  • Pdf view : jumping back problem ?

    Hello. I've been having an issue lately where i view pdfs on Acrobat.com, and when i drag the sliders up, the page first jumps to its top, then slides normally from where it should be. Correct behaviour while dragging sliders to the bottom : pages fl

  • Is crossword puzzle scoring possible in captivate??

    How can I apply scoring in a crossword puzzle. Because I want to score every letter in a box with 1. The total score will depend on the number of correct letters/words in a puzzle. And how can I add it to the total score in the module if the crosswor