[Oracle 10g] How to show concurrent transactions during a period?

Hello all,
I used Oracle 10g database
I try to select the number of concurrent transactions during a period.
I know how to select the number of transactions executed in one day, but i want to know the concurrent transactions.
Can you help me ?
Thanks in advance
Regards
Mathieu

Which transactions do you wish to track?
Are you referring to transactions that occur against a specific set of tables or all transactions against a schema and/or database instance?

Similar Messages

  • I'm debutante in oracle 10g how to create a database with picture?

    I'm debutante in oracle 10g how to create a database with picture? help please

    d7401ec1-d4d6-4e54-9eb4-2181ac367d0c wrote:
    I'm debutante in oracle 10g how to create a database with picture? help please
    Oracle 10g is obsolete.  Oracle 11g is already at terminal release.
    Have you installed the Oracle rdbms software?
    Installing Oracle and Building the Database
    If you are going to be a professional DBA, you need to learn to
    1) read the documentation
    2) wean yourself from dependence on pictures and GUIs.
    3) read the documentation
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Hi i am using oracle 10g how to view the content of the stored procedure or trigger ?

    Hi i am using oracle 10g .How to edit  the content of the stored procedure or trigger ?

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • Partitioning of table in oracle 10g - How to Add

    Hello Friends ,
    Hope you are all fine and doing great.
    By the way - I have a quick question on oracle 10g Partitioning of tables...
    I have a table with partition as stated below ..
    CREATE TABLE X_ACC_ASSETS_GPC_AGG
    X_ACC_ASSETS_GPC_AGG_RK NUMBER(10) NOT NULL,
    X_AS_OF_DT DATE NOT NULL,
    ACCOUNT_RK NUMBER(10) NOT NULL,
    X_UNIV_ACCOUNT_ID NUMBER(10),
    ACCOUNT_ID VARCHAR2(10 BYTE),
    X_ASSET_TYPE_CD VARCHAR2(6 BYTE),
    X_AUC_AMT NUMBER(18,5),
    X_FIRM_AMT NUMBER(18,5),
    X_ADJ_SRCE_AMT NUMBER(18,5),
    PROCESSED_DTTM DATE
    )PARTITION BY RANGE (X_AS_OF_DT)
    PARTITION P200712 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION P201112
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    PARTITION PMAX
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    )NOPARALLEL;
    My question is :
    1) How to add a partition say P201201 ..
    Since I have already stated PARTITION PMAX can I still add partition?
    2) Can I add partition even though the table has data ?
    ==========================
    I tried to add partition ..say
    ALTER TABLE X_ACC ADD PARTITION P201201 VALUES LESS THAN
    (TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    NOLOGGING
    NOCOMPRESS
    TABLESPACE KAW_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    BUFFER_POOL DEFAULT
    but getting the error ..
    "partition bound must collate higher than that of the last partition"
    Thanks/kumar

    You have partitions
    200712
    200812
    200912
    201012
    201112
    PMAX.
    so your condition for partition p201112 is '201012-01-01' to '201112-01-01' i.e the values between these two dates will be in partition p201112. and then everything else will be in PMAX. So now you are splitting your pmax.
    alter table X_acc split partition pmax at ( to_date('2012-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN') )
    into (partition p201201, partition pmax); The condition you have to change. I just showed as an example. It could be the date range between two dates or it could be greater than a date value. It is upto how you want this new partition.
    how to add partition between two partition
    Edited by: pransuj on Mar 25, 2011 11:13 AM
    Edited by: pransuj on Mar 25, 2011 11:14 AM

  • In Oracle 10g, How to call a report since an option of a menu (*.mmb)

    Hello
    In Oracle 10g, working since the browser, how to call a report since an option of a menu (*.mmb)? I know to call it in a form (*.fmb), therefore uses the fields bean area and the objects reports, but in a menu there is not neither canvas, neither fields, neither reports. Someone would be able to help me with that?
    Kisses. Thanks.
    Annie

    I understand that you had sent me everything,
    I sent for example to you that, no to insert it in your item's menu code,
    then,You have to modify it.
    ... but
    a menu (mmb) doesn't have to define him reports
    objects... then, what parameter I send to the
    function FIND_REPORT_OBJECT:
    This is not true
    Try out this, and then let me know
    You do not need to have a report object defined in the menu. It is enough to have it in forms.
    I tried to call a report from the menu in the folowing way:
    I created a menu and wrote the following code in one item:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := find_report_object('report2');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'reportserver1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'C:\p.pdf');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;Then I created a form with a report object called report2.
    I attached the menu to this form and while running this form, I was able to successfully run the report.
    In your case, you have to make sure that you have the dummy report object in each form that will have this attached menu.
    You can replace by the actual report name as you have written in the code.
    Regards

  • Oracle 10g: How to reduce the select * time

    Hello,
    We have 10 million entries in our database (Oracle 10g in windows 32 bit machine.)
    The execution of 'select * ....' takes 3 to 4 hour. Is there any way to reduce this time.
    Is any tool available which can read the oracle export data and produce the output in text file format.
    or any idea ?
    Thanks
    With Regards
    Hemant.

    hem_kec wrote:
    Hello EdStevens
    Is that 3 to 4 hours scrolling data past your screen?Answer: The Oracle is taking 3-4 hr to produce the output.
    OK, let me try again. Where is the output being directed? To the screen? To a file?
    The reason I ask is that often people will say "It takes n minutes to run this query" when in fact Oracle is producing the result set in a few seconds and what is taking n minutes is to run the results past the screen.
    You should take a statspack report while the query is running and see where it is spending its time.
    >
    That's a different problem. I assume by "export data" you mean a .dmp file created by exp or expdp? If so what do you hope to achieve by outputting it in text format? What is the business problem to be solved?Answer: Since customer want to read all 10 milion entries. so we are think if we can dump (Oracle export) the data and using some tool (not Oracle) to read the data so there is no wait for the customer.As stated, a dmp file is oracle proprietary binary file that exists solely to transport data across platforms/versions. It is not suitable for your purpose. You are far better off finding where the current query is spending its time than looking for some kludge. 10 million rows of data is still 10 million rows of data. Do you think extracting it from the db, storeing it in some other format, and having some other tool read it off of disk in that format is going to be faster than simply selecting it from the db -- asking the db to do what it was designed to do?
    >
    >
    Thanks
    With Regards
    Hemant.

  • How to move pending transactions to next period

    Hi
    i need to close the period but it show's there are 9 pending transactions, how can i sweep them to next period.
    is there any concurrent program to do the process.
    regards
    Arif

    Make sure that every ociexecute call uses OCI_DEFAULT, else the active transaction in the connection will be committed.
    Make sure that your application isn't doing DDL, e.g. CREATE TABLE, since this will commit the active transaction.
    Pending transactions are shown in v$transaction, which may (or should) not be visible to normal users.
    By "list of pending transactions, on that connection" do you means list of SAVEPOINTS, or are you suspending transactions via
    a transaction manager or even by DBMS_XA?
    Use <?php phpinfo(); ?> and check you have a recent version of the PHP OCI8 extension. 1.3 onwards is OK, 1.4 onwards is good.
    You can get the latest source from http://pecl.php.net/package/oci8

  • Oracle 10g, how to determine allocated memory is healthy or sufficient.

    Hi Guys,
    I have a 10.2.0.5 production database.
    Currently my server has 8GB physical RAM.
    3GB is allocated to the SGA and 1GB to the PGA.
    Let's say one day there is a requirement from application (eg, weblogic) to increase connection pool from 20 to 50.
    How are we able to know whether the memory allocated is sufficient for existing load and also the increased load?
    CPU is quite straightfoward as we can generate out the cpu utilization. If utilization is low, i supposed is quite safe to increase the connection.
    Kindly share ur experiences tackling such situation.
    thanks

    Chewy wrote:
    Hi Guys,
    I have a 10.2.0.5 production database.
    Currently my server has 8GB physical RAM.
    3GB is allocated to the SGA and 1GB to the PGA.
    Let's say one day there is a requirement from application (eg, weblogic) to increase connection pool from 20 to 50.
    How are we able to know whether the memory allocated is sufficient for existing load and also the increased load?
    CPU is quite straightfoward as we can generate out the cpu utilization. If utilization is low, i supposed is quite safe to increase the connection.
    Kindly share ur experiences tackling such situation.
    thankswhat OS name & version?
    is OS 32 or 64 bit?
    is Oracle 32 or 64 bit?
    How do you know the current RAM allocation is adequate or optimal?

  • Oracle 10g - How To Find Out If A Forms User An Intranet Or An Internet?

    Is it possible to find out if the login user using intranet or internet (Oracle Form 10g)? If not, can you please advise the workaround solution?
    Thanks,
    TD

    the only thing which differs could be the ip adress from both clients so if the client ip adress is in your internal range its from your intranet and if its mot from your range its from the internet..I didnt try this but I think you can verfy the client ip via a java bean or via webutil...

  • Oracle 10g performance degrades while concurrent inserts into a table

    Hello Team,
    I am trying to insert into single table via multiple threads, Some of these threads perform reasonably well but some will take really longer time, As the time goes on performance drastically degrades (even down by 500 to 600 times). With AWR report i see that there quite huge number of buffer gets there. I am not sure how can i reduce those. If i ran on a single thread this operation is consistent.
    I tried quite a few options like
    1. Increasing SGA Memory
    2. Moving redo logs to another disk drive.
    3. Trying it on a empty table
    4. Trying it on a table which has huge data (4 Million rows)
    5. I have even tried partitioning the table with HASH algoritm
    Note: Each thread i am pupming equal amount of data (let say 25K rows).
    Can any body suggest me a clue what could be the culprit here.
    Thanks in Advance
    Satish Kumar Ballepu

    user11150696 wrote:
    Can you please guide me how do i do that, I am not aware of how to generate explain plan for that query.Since you have the trace file already (and I don't mean the tkprof output), you could do the following:
    Read the trace file to find the statement you're interested id - the line above it will be a +"PARSING"+ line, and will include a reference to the statement hash_value look like +'hv=3838377475845'+.
    Use the hash_value to query v$sql to get the sql_id and child_number;
    Use the sql_id and child number in a call to dbms_xplan.display_cursor:
    PARSING IN CURSOR #7 len=68 dep=0 uid=55 oct=3 lid=55 tim=448839952404 *hv=3413100263* ad='2f6ede48'
    select ... etc.  (the statement I want the plan for)
    SQL> select sql_id , child_number from v$sql where hash_value = *3413100263*;
    SQL_ID        CHILD_NUMBER
    053tyaz5qzjr7            0
    SQL> select * from table(dbms_xplan.display_cursor(*'053tyaz5qzjr7'*,*0*));
    PLAN_TABLE_OUTPUT
    SQL_ID  053tyaz5qzjr7, child number 0
    select  /*+ use_concat */  small_vc from  t1 where  n1 = 1 or n2 = 2
    Plan hash value: 82564388
    | Id  | Operation                    | Name  | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT             |       |       |       |     4 |
    |   1 |  CONCATENATION               |       |       |       |       |
    |   2 |   TABLE ACCESS BY INDEX ROWID| T1    |    10 |   190 |     2 |
    |*  3 |    INDEX RANGE SCAN          | T1_N2 |    10 |       |     1 |
    |*  4 |   TABLE ACCESS BY INDEX ROWID| T1    |    10 |   190 |     2 |
    |*  5 |    INDEX RANGE SCAN          | T1_N1 |    10 |       |     1 |
    Predicate Information (identified by operation id):
       3 - access("N2"=2)
       4 - filter(LNNVL("N2"=2))
       5 - access("N1"=1)
    Note
       - cpu costing is off (consider enabling it)Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "For every expert there is an equal and opposite expert."
    Arthur C. Clarke
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Payroll area locked.How to Stop the workflow during this period ?

    Dear experts,
    In the travel workflows, after all the approvals, there is a standard task(Custom) with a custom method(BUS2089 Enhanced).
    This method updates the infotype 2002 (Attendances). This works fine for the whole month except during the  payroll run which will be for 3-4 days after 20th of every month.
    We have maintained the exception for this when the control record is in the status '1' or '4', by passing a temporary error to the workflow.
    SELECT SINGLE * FROM t569v WHERE abkrs = 'Z0'.
    IF sy-subrc EQ 0 AND ( t569v-state EQ '1' OR
                           t569v-state EQ '4' ).
      return-message_v1 = 'Employee Master data locked for Payroll'.
      exit_return 1001 return-message_v1 return-message_v2
                       return-message_v3 return-message_v4.
    As i understand the workflows can be restarted after solving the temporary errors.But this Temp error will only be solved after the payroll record is becomes 'Exit Payroll'.
    The system attempts for 3 times in the period of 30 minutes and then the tempoarry error becomes a permanent error and this way the workflows goes into a permanent error which cannot be restarted even after the payroll is exit.Due to this may workflows are unable to update the Infotyp 2002 however their trips are approved at all levels.
    This counter of 3 times and 30 minutes, I belive the system is taking from the error monitoring program (RSWWERRE / SWWERRE) in SWU3.
    I am thinking of putting the workflow into 'Wait' state till the period when the Payroll is locked. This way , we can avoid the workflow even from going into temporary error.
    Can anyone help in this regard ? Do we need to add a WAIT step in the WF Definition or control in the method code itself ?
    Does WAIT UNTIL (ABAP Keyword) works for 3-4 days of payroll run if we implement in the method code itself?
    -Anwar
    Edited by: Sameer Anwar on Aug 20, 2011 9:44 AM
    Edited by: Sameer Anwar on Aug 20, 2011 9:45 AM

    Hi Sameer,
    But , Can you pls put some more information on why we need to avoid WAIT UNTIL in Tthe ABAP ?
    Wait Steps are only used where you have 1 event which the workflow would expect ...moreover this would require more effort in terms of implementation...( you will have to create an event manually after your payroll is open).
    I would suggest create an virtual attrubute of the BO  which will populate a whetherr the Payroll is locked or unlocked... then use this attribute as a start condition in the conditions tab of your step. this would stop the workflow until the payrol is open...
    Regards
    Gautam
    Edited by: gautam maini on Aug 20, 2011 2:34 PM
    Edited by: gautam maini on Aug 20, 2011 2:35 PM

  • How to import a .mdb file to oracle 10g

    Hi friend,
    I ve a .mdb file i want to import it in oracle 10g how shud i do..please help me..
    Sonal...

    i guess its MSaccess database file so my dear u cant export directly. what u have to do is use this file with access db once its up and running than use HS services to access that MSaccess database.
    see advance networking chapter or document for HS.(hitrogenious Services)

  • How to avoid:Query returns extra trailing spaces in oracle 10g

    I want to use cursor sharing FORCE, SIMILAR for performance tuning. but i am having some problems like query process will give extra trailing spaces this will throw errors from the java application while reading literals.
    do we have any option in oracle 10g to avoid extra trailing spaces during query processing ?
    alter session set cursor_sharing ='EXACT'
    select 1 from dual;
    '1'
    1
    alter session set curson_sharing='FORCE'
    select 2 from dual;
    '2'
    2
    alter session set curson_sharing='SIMILAR'
    select 3 from dual;
    '3'
    3

    You are right, But we already wrote millions of queries during that time we used cursor sharing is EXACT. so i don't want to take risk in modifying all the existing queries by adding TRIM.
    do we have any option in oracle to trim after/ during processing the query.
    Now we are facing performance issues and suggested us to use SIMILAR as cursor_sharing. but all the selected rows are giving extra tralining spaces.
    I think i am clear now.

  • Oracle 10G query

    I have following queries to be solved please help me out....
    1) Difference / Limitation of Oracle Standard Edition / Enterprise Edition 10..... latest ?
    2) Can Data of Oracle 8. ..... Expo File will be Imported to 10....... latest ?
    If not than what steps we have to take. Basically I would like my current DB of 8 to be moved to 10G
    3) From which AIX Ver Oracle 10 ...... is Supported ?
    4) if the customer has 8... Ver Lic When if goes for New Ver than media will have full Ver or only Upgrade files. ?
    5) If the Customer has Old ver Lic and he goes for upgrade Lic Than we have to first Install Old Lic Ver & than Upgrade or directly we can load Latest Lic Ver on New Server and work. ? What I mean is if I have to go ahead from Oracle 8 to Oracle 10G how should I go about.
    6) Is Oracle Media ver Compatible for Aix ?
    7) Oracle Lic Policy / Product Information Web Link ?
    Thanks & Regards
    Shivanand S S

    This is a perfectly valid way to query the data. Here's an example on my own production tables. This one has about 300 million rows:
    select *
    from   prod.tran_history
    where  tran_date >= to_date(add_months(sysdate, -2))
    | Id  | Operation                   |  Name                        | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT            |                              |    11M|   863M|   146K|
    |   1 |  TABLE ACCESS BY INDEX ROWID| TRAN_HISTORY                 |    11M|   863M|   146K|
    |*  2 |   INDEX RANGE SCAN          | TRAN_HIST_DATE_IDX           |  2144K|       |  2098 |
    --------------------------------------------------------------------------------------------

  • FAST DUAL in Oracle 10g

    Can anybody tell me, What is FAST DUAL in Oracle 10g, How it is different from Oracle 9i DUAL ? with as conceptual example.

    He-he, see what you mean, never thought of that. Maybe because my current problems are in a different ball park.
    Getting slightly off-topic, this is the preferred way of using dual when getting next value from a sequence.
    And I kid you not, if not done exactly like that I won't pass a QA review. (This is just an example, a true implementation would include something like 40-50 lines of headers and comments)
    WARNING when reading this. DON'T ever do the following
    PROCEDURE fetch_next_empno(inout_contentrec IN OUT add_emp_rec_type)
    IS
       k_module CONSTANT VARCHAR2(30) := 'FETCH_NEXT_EMPNO'
       CURSOR c_next_empno
       IS
          SELECT empno_seq.NEXTVAL
            FROM dual;
       v_empno emp.empno%type;
    BEGIN
       logger.prc_start(k_module);
       OPEN c_next_empno;
       FETCH c_next_empno
       INTO v_empno;
       IF c_next_empno%NOTFOUND
       THEN
          raise_application_error(-20000, 'No entries in Dual table');
       END IF;
       CLOSE c_next_empno;
       inout_contentrec.empno := v_empno;
       logger.prc_end(k_module);
    EXCEPTION
      WHEN OTHERS THEN
        IF c_next_empno%ISOPEN
        THEN
           CLOSE c_next_empno
        END IF;
        logger.error(k_module, SQLERRM);
        RAISE;
    END;P.S: This application was started in '95 - Version 7 or something, I guess.
    An upgrade from 10gR2 to 11g is currently planned. So far no coding style has been changed.
    Why not? - Conformity rules!
    Regards
    Peter
    Edited by: Peter on Jan 23, 2011 6:15 AM
    P.S

Maybe you are looking for