Number of rows in a GTT for a specific session

Hello
Is it possible to see how many rows are in a global temporary table, with on commit preserve rows set, at any given time for a particular session? I have the feeling that the answer will be a resounding NO! based on what I know of MVCC etc etc but I'm holding out hope that there is some magical view somewhere that will give an indication - even if it is just to see the blocks being used by/assigned to a particular session/transaction for that table.
The situation is that I have a long running process to debug and there is currently insufficient instrumentation in the code so I can't inspect v$session to find out what it is doing or any log tables. I can see from the wait events that it is reading from a GTT but ideally I'd like to know how many more blocks it has to read as I don't really want to kill it and start again - especially if it's only got a relatively small amount of processing to do.
It's a long shot, but any ideas are appreciated.
David

I've used
select * from v_$session_longs_ops where sofar <> totalworkto see how much data it's sorting and what not on global temporary tables. This only helps if it's doing a lot of work on that table and logging it in longops, but you might want to check and see if anything is there.

Similar Messages

  • SQL Logging for a specific session or table

    Hi!
    Don't know if this is the right place to ask, so sorry if it's wrong.
    Is there any possibility to log all SQL activity which a specific session id is producing.
    Using the Instance Manager I can only see the Latest SQL statement but no history.
    Please help my poor soul...
    Thanks in advance
    Greets, Hansi

    Hi Joel and everyone,
    Thanks for your information.
    But I like to say that, I wanted to store the text of these SQL TRACE files which belongs to different session, into my table SQL_TRACE (session_id, username, text).
    As you said that we can use DBMS_SESSION.SET_SQL_TRACE (sql_trace True);
    to enable the tracing of particular session.
    I know TKPROF is the utility via which we can read these sql trace files.
    For Example:
    C:\ tkprof c:\SQL_TRACE\ora012929.trc c:\SQL_text\oratext.txt
    With regards to this, how should we read the trace files for the users who logon to the database using the feature of logon trigger and then store the text of these sqltrace files of different users into the table SQL_TRACE (session_id, username, text).
    I wanted to use my table for getting sqltrace info for Historical purpose.
    It is my requirement.
    Could you please give your suggestion about it?
    Thanks
    Jaffery.

  • Unequal Number of rows for File Content Conversion

    hi xi friends,
    in my idoc to file ..
    please help me in content conversion parameter for unequal number of rows .
    the message type for external system..
    root
    row1
        f1
        f2
        f3
    row2
        f4
        f5
    row3
        f6
    if i send idoc with data for all three rows
    the resultant txt file
    f1-valuef2-value f3-value
    f4-valuef5-value
    if i send idoc with data for row1 and row3
    the resultant txt file
      f1-valuef2-value f3-value
      f6-value
    if i send data for row2 and row3
    the resultant txt file
       f4valuef-5vaue
       f6-value
    in static message mapping ,i eleminated the rows which are not getting the data from idoc
    eg:if the data for row2 does not exist ,then i elimated in message mapping.
    all the fileds are fixed lenths like f1 3char and f2 8char etc..
    and i dont require header names.
    please guide me how to declare in Content Conversion for this unequal number of rows of fixed lenth columns.
    regards
    Munna

    Hi Jai,
    Thanks alot for your responses..
    message mapping look like this,
    IDoc-------------------root
    segment1--------------     row1
      f1------------------- f1
      f2------------------- f2
      f3------------------- f3
    segment2--------------row2
      f4------------------- f4
      f5------------------- f5
    segment3--------------row3
      f6------------------- f6
    (actually the idoc contains no of segments..i provided sample one above)
    test data for f1=1111 f2=AAA f3=ccccc f4=222 f5=BB f6=33
    all fields are fixed lenths
    if idoc contains all three segments data
    then reultant .txt file should be
    1111AAAccccc
    222BB
    33
    if idoc contains segment1 and segment3 data
    then reultant .txt file should be
    1111AAAccccc
    33
    if idoc contains segment2 and segment3 data
    then reultant .txt file should be
    222BB
    33
    in message mapping I eleminated the target message type segments
    if that idoc doent contain data.eg:if the idoc doent contain data for segment2,
    i eleminated in message mapping.
    please guide me how to declare File content conversion parameters for this unequal number of rows
    of rows.
    regards
    Munna

  • How to increase number of rows displayed in Essbase drill-through report?

    Hi
    By default, the maximum number of rows per Essbase drill-through report (via Integration Services) is set to 1000. Could anyone tell me how to change this limit please?
    Regards
    Chandra

    Is this for an EIS drill through report that drills through to get RDBMS data, using spreadsheet add-in for example? If so check and see if "Maximum rows per query" in EIS is currently set at 1000 and try to increase it. (I don't recall hitting a 1000 limit in the past, perhaps your report is set at that? or if this is through Web Analysis maybe WA is governing it)
    To set/change a query governor in EIS:
    1     In the Drill-Through Reports dialog box, select a report name.
    2     Click Edit to open the Report properties dialog box.
    3     In the Report properties dialog box, select the Governors tab.
    4     In the Maximum time per query (in seconds) text box, enter the maximum query time.
    For example, to stop a query that takes longer than 100 seconds, type 100.
    5     In the Maximum rows per query text box, enter the maximum number of rows to retrieve.
    For example, to stop a query that retrieves more than 200 rows, type 200.
    6     Click OK.

  • Number of rows in buckets of a partitioned table

    Hello.
    How can i retrieve the number of rows in a bucket for a partitioned table ?
    Column ENDPOINT_NUMBER is only in DBA_HISTOGRAMS but not in DBA_PART_HISTOGRAMS.

    No, i wanted to know how many different values for a specific column in the buckets of the histograms i created for one partitioned table.
    I had the answer by querying user_part_histograms.

  • BEx Variable Input Help (F4) Maximum Number of Rows

    Hi Experts,
    We using Bex 3.x version. Now, the user is asking to change the maximum number of rows (by default 500, for my case) to 1000. (While executing the workbook, on the variable pop-up screen where we can search for input help (F4) values). For surely, there is some global setting needs to be corrected but not sure. I have checked in T-code: SPRO and some of the threads but not get the apt solution.
    Could you please share us your inputs/experiences as how can we increase maximum number of rows in the input help.
    Many thanks in advance!!!
    Best Regards
    Venkat...

    Hello Venkat,
    Is there is a way to setup that, you will find into this KBA Article (SAP Note):
    > 1565809 - Settings for BW query F4 help   
    This is a really good documentation about how F4 works and how to setup the configurations and where you have to do that.
    Kind Regards,
    Edward John

  • Email Notification for long running session

    Dear All,
    I want to configure email notification for any long running session on my server which can be seen in SM66. Is there any possible way? Please suggest.
    Regards,
    Prem

    Hi Prem,
    I hope you doing good.
    Now, for the above query, I am not sure that we have any such MTE in CCMS for user specific session, however, a small custom code can be used to achieve such functions
    Here, you have to use some f Function Modules using CALL FUNCTION/FM in your abap code.
    These function modules are from TH* family like TH_DISPLAY_USER_LIST and TH_USER_INFO. Now the coder can file out the results based on some 'Threshold', which are in spool generated - convert this into PDF(if you want). Now schedules this custom program in background for every 10 mins, and notification will come through it on email ID or any DL.
    How to send email from job - How to email output from Background Jobs
    Regards,
    Divyanshu

  • How To Restrict Number Of Rows For Multiple Group In Report Output

    Hi ,
    I have a requirement to restrict number of rows in report output.I have three different group , if i use same no of rows to restrict then output is as expected but if i want Deduction group should have 7 rows , earning should have 5 rows and Tax group have 3 rows in report output then XML tag is not working.
    Below is the XML tag i am using -
    First i have declare the variable to restrict the rows -
    <xsl:variable name="lpp" select="number(7)"/>
    <xsl:variable name="lpp1" select="number(5)"/>
    <xsl:variable name="lpp2" select="number(3)"/>
    For Each -
    <?for-each:PAYSLIP?>
    <xsl:variable xdofo:ctx="incontext" name="DedLines" select=".//AC_DEDUCTIONS"/>
    <xsl:variable xdofo:ctx="incontext" name="EarLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION!='Taxable Benefits']"/>
    <xsl:variable xdofo:ctx="incontext" name="EarTaxLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION='Taxable Benefits']>
    <?for-each:$DedLines?><?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    <?if:(position()-1) mod $lpp1=0?><xsl:variable name="start1" xdofo:ctx="incontext" select="position()"/
    <?if:(position()-1) mod $lpp2=0?><xsl:variable name="start2" xdofo:ctx="incontext" select="position()"/>
    Report output is tabular form (one page has two column - Earning and Deduction ) . Tax group comes below earning group.
    Deduction Group -
    <?for-each-group:$DedLines;./REPORTING_NAME?><?if:position()>=$start and position()<$start+$lpp?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Earning Group -
    <?for-each-group:$EarLines;./REPORTING_NAME?><?if:position()>=$start1 and position()<$start1+$lpp1?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Tax Group -
    <?for-each-group:$EarTaxLines;./REPORTING_NAME?><?if:position()>=$start2 and position()<$start2+$lpp2?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Please let me know in case additional detail is require.
    Thanks in Advance.
    Thanks,
    Harsh
    Edited by: Harsh.rkg on Jan 14, 2013 9:43 PM

    variable lpp2 is declare to restrict EarTaxLines -
    <xsl:variable name="lpp2" select="number(2)"/>
    This will help to restrict the no of rows on one page , if we have more then two tax benefits line then layout will roll over to continuation page.
    As part of report output my expectation is if i restrict Earning , Deduction and Tax benefits to same no of line for example - variable lpp ,lpp1 and lpp2 have same value "number(2)" , we can see the layout is continue on next page (restrict every group can have max two lines) .This is the reason we have 4 header grid , deduction and Tax Benefit lines are rolled over to continuation page .But if we restrict different value for each variable then continuation page layout is missing .
    When we tried for <xsl:variable name="lpp2" select="number(3)"/> value continuation page layout is not getting generate for both employee number .

  • Different number of rows for different columns in JTable

    hi
    I need to create a JTable with different number of rows for different columns...
    Also the rowheight should be different in each column...
    say there is a JTable with 2 columns... Col1 having 5 rows and column 2 having 2 rows...
    The rowHeight in Col2 should be an integer multiple of Rowheight in Col1
    how do I do this ??
    can anybody send me some sample code ?????
    thanx in advance

    How about nesting JTables with 1 row and many columns in a JTable with 1 column and many rows.
    Or you could leave the extra columns null/blank.
    You could use a GridBagLayout and put a panel in each group of cells and not use JTable at all.
    It would help if you were more specific about how you wanted it to appear and behave.

  • How to calculate number of rows for perticular characterstic in SAP BI Bex

    Hi experts,
    Please let me know how to calculate  ' number of rows  ' for perticular characterstic in Bex query. 
    Thanks & Regards,
    Babu..

    Hello,
    You can try this
    Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select  'always display'.
    Thanks.
    With regards,
    Anand Kumar

  • How to increase the number of rows for Entry via Excel in SSM ?

    hello
    we are facing a scenario where we need to enter the target data for more than 14000 fields.So when we open the excel ad in and trying to upload, it is accepting data for only 500 fields and the rest are not getting displayed.
    The condition is that we have to enter data via Entry and Approval and not using a procedure and multiple metric sets is not a feasible option since the number of records is large. How can the number of rows in excel be increased ?
    Vijay

    Hi Bob
    I am facing another problem....
    we have designed our model in such a way that we built it using normal procedures but the target values have to be entered using entry and Approval via Excel ad-in..
    the problem we are facing is that if we select both the actual and the target measures to load the data via Excel login then the column TARGET is getting greyed out. When we build the same model using cube builder , the column TARGET is not getting greyed out and we are able to enter data there.
    Is there any setting changes we need to make inorder to make the Entry and Approval process via Excel behave the same way when the model is built using the Cube builder ? Are there any new notes or a newer version of Excel ad in to resolve this ?
    Vijay

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

  • Number of rows returned for a report

    I want to create reports on serveral tables, the number of rows in these tables varies a lot (5, 5000, and the other one can have 10000+ rows).
    In the Reports Attributes page, is there a way to set the max number of rows return to the number of rows of the table? For example, for a table that has 10000 rows now, may grow to 20000 rows in the near future. If I specify the "Max Row Count" to 20000, the number may be outgrown yet again soon. If I can specify "Max Row Count" to "Current number of rows in the table" then this problem will not happen. Can it be done?

    that "Max Row Count" attribute is used to limit the number of rows returned by a htmldb report region. in your case it sounds as if you want to show all available rows all the time. in that case you'd be fine to just put a very large number into that field like 4million. that way you'd always show all your rows.
    hope this helps,
    raj

  • Count number of rows for TWO QUERIES USING MINUS OPERATOR

    I have the following piece of sql, i would like to know how could i programatically using plsql count the number of rows returned by the following statement. I know that %ROWCOUNT returns the rowcount for the last execute INSERT, UPDATE, DELETE and SELECT INTO statement. Any help is much appreciated thanks.
    select *
    from admt1m4.usr@tcprod u
    where u.authoriztion = 'Omf99FullUsage'
    and u.obid in (select right from admt1m4.usrtogrp@TCPROD ug where ug.left in
    (select obid from admt1m4.usrgrp@tcprod g 
    where g.participant not in ('super user grp', 't1_WbsPSAnalystGrp')))
    and u.activeuser = '+'
    MINUS
    select *
    from admt1m4.usr@TCPROD u
    where u.authoriztion = 'Omf99FullUsage'
    and u.obid in (select right from admt1m4.usrtogrp@TCPROD ug
    where ug.usrgrpname in ('super user grp', 't1_WbsPSAnalystGrp'))
    and u.activeuser = '+'

    Hi,
    Have you tried
    SELECT COUNT (1) cnt
      FROM (SELECT *
              FROM admt1m4.usr@tcprod u
             WHERE u.authoriztion = 'Omf99FullUsage'
               AND u.obid IN (
                      SELECT RIGHT
                        FROM admt1m4.usrtogrp@tcprod ug
                       WHERE ug.LEFT IN (
                                SELECT obid
                                  FROM admt1m4.usrgrp@tcprod g
                                 WHERE g.participant NOT IN
                                          ('super user grp', 't1_WbsPSAnalystGrp')))
               AND u.activeuser = '+'
            MINUS
            SELECT *
              FROM admt1m4.usr@tcprod u
             WHERE u.authoriztion = 'Omf99FullUsage'
               AND u.obid IN (
                      SELECT RIGHT
                        FROM admt1m4.usrtogrp@tcprod ug
                       WHERE ug.usrgrpname IN
                                         ('super user grp', 't1_WbsPSAnalystGrp'))
               AND u.activeuser = '+')or your requirement is something else...
    *009*

  • Why is the "Number of Rows" for a report seem to be cached in the session?

    When I change the Number of Rows in any given report that this change doesn't immediately take effect. After much poking around and gnashing of teeth -- I found that I have to go into Manage Session State and Remove State for my session before these changes go into effect.
    Can anyone explain why this setting would be stored in the users' session state and why when I login and get a new session_id this setting seems to persist.
    Thanks,
    Jason

    1. if you login with a new session, the pagination should be reset and the new number of rows should be displayes - which version do you use. I just checked on apex.oracle.com and it worked.
    2. You should try using reset pagination option to see what happens.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • How to View Date time stamp on Video

    I am importing AVHD video into i move 8 and want to have date and time stamp on the video any ideas on how to set this up? I am importing video from a card reader. josh

  • Mic problem & warrenty issue .

    Hiii I have iPhone 4S which is having mic problem i guess.During voice calls the call receiver at other end unable to hear my voice on handset mode but on speaker mode he can hear my voice. Also wanted to know in which country my phones warrenty is v

  • Connect to wifi network with my 5800

    Is there a symbian program that would allow me to use my 5800 as a wifi adaptor. Pls i need this very much someone give me an answer.

  • Where is the JAVA console?

    Hi, i need to tracethe System.out.println() information given from my JAVA applet, but actually the default console of Firefox 25.1 don't show anything... Why?? I need to download an extension separately?

  • I can't resolv a problem, please help me...

    Hi, The problem is in this code, I try create a Text File with bytearray, but the result doesn't expected : The problem is on the part of sale.write(body). I don't received the text correct in the file. The description of the problem is before the co