Session history information - oracle 10g

Hi,
is there any way to tell how many DB connection being made to database either from application or tools daily basis using any SQL queries?
thanks in advance.

You can get this information, if you had the statspack/AWR running at regular intervals (query PERFSTAT schema).
SELECT trunc (b.snap_time) day, max(value)
  FROM stats$sysstat a, stats$snapshot b
WHERE a.name = 'logons cumulative' AND a.snap_id = b.snap_id
group by trunc (b.snap_time)
order by 1;@Jafar: DBA_HIST_ACTIVE_SESS_HISTORY contains information about the sessions that were "ACTIVE" when the sample was collected. It does not store information of all the sessions that were connected.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1007.htm#I1030299
<quote>
V$ACTIVE_SESSION_HISTORY displays sampled session activity in the database. It contains snapshots of active database sessions taken once a second. A database session is considered active if it was on the CPU or was waiting for an event that didn't belong to the Idle wait class
<quote>
V$ACTIVE_SESSION_HISTORY is the base for DBA_HIST_ACTIVE_SESS_HISTORY.

Similar Messages

  • Get All sql history in oracle 10g

    How to get all select and insert statement from the beginning in the oracle? I tried, "select * from v$sqlarea;" but it's giving only today results, but i need all select and insert statement from the beginning where oracle installed or before particular month. Thanks in advance.

    Thanks Sir for sharing this pause feature with query output
    col stmtid 
    heading 'Stmt Id'          
    format
    9999999999
    col dr     
    heading 'PIO blks'         
    format   999,999,999
    col bg     
    heading 'LIOs'             
    format   999,999,999
    col sr     
    heading 'Sorts'            
    format  
    999,999
    col exe    
    heading 'Runs'             
    format   999,999,999
    col rp     
    heading 'Rows'             
    format 9,999,999,999
    col rpr    
    heading 'LIOs|per Row'     
    format   999,999,999
    col rpe    
    heading 'LIOs|per Run'     
    format   999,999,999
    col sqltxt    heading 'SQL Statement'  
    format A25 word_wrapped
    set pause
    on
    set pagesize  30
    set pause
    'More: '
    set linesize  120
    select  s.hash_value stmtid
    ,t.sql_text sqltxt
    ,sum(s.disk_reads) dr
    ,sum(s.buffer_gets) bg
    ,sum(s.rows_processed) rp
    ,sum(s.buffer_gets)/greatest(sum(s.rows_processed),1) rpr
    ,sum(s.executions) exe
    ,sum(s.buffer_gets)/greatest(sum(s.executions),1) rpe
    from v$sql s, v$sqltext t
    where s.command_type in ( 2,3,6,7 )
      and s.hash_value = t.hash_value
    group by s.hash_value, t.sql_text
    order by 5 desc

  • Where i can fing chancges log of Oracle 10g database

    Hi.
    I need changes history of Oracle 10g database. Where i can find this?
    Thanks.

    I think you are asking "how do I set up and look at audits"
    Best to ask in a Database forum. This forum is for discussing problems with Oracle Software Download (and Oracle has several hundred different software)

  • Oracle Blocking Session History

    Hi Folks,
    This morning the database server machine CPU hits 100% - i found a blocking session but didnt killed it as it was of the flashback session.
    The only option i thought was to restart the database.
    Now, i want to investigate the problem - any idea, how to find the cause of tht problem???
    regards,
    OraGuy

    1) Session A holding a lock that Session B is waiting on, causing session B to be temporarily blocked, assuming that's what you saw when you're talking about a "blocking session", is not particularly unusual in Oracle (or any relational database for that matter). That shouldn't cause a spike in CPU and it shouldn't require a database restart to clear the problem (at worst, you might kill the session that holds the lock, but it would normally resolve itself automatically), though. And that definitely doesn't explain a hung database if that's truly what you had.
    2) Since you mentioned AWR, can we assume that you are using the enterprise edition with the performance & tuning packs? If so, assuming you rebooted before the AWR snapshot captured information about the state of the system, you could potentially go through the ASH data (active session history) for the various sessions that were blocking and waiting to see what they were waiting on.
    Justin

  • How to block Sql Plus sessions in Oracle 10g

    Hi,
    I want to block all sql plus sessions in oracle 10g, as we have a application and we need each and every one to use this application not the sql plus session.
    Kindly update us as soon as possible. and also thanks in advanced.

    Understand the concept Karl, but a layered defense seldom works in the IP world. If I manage to get through the firewall, then how can you prevent me access, at IP level, at any other ISO stack layer? If you manage to get through, then your firewall policies could just be too weak :) at least you must have some kind of an IDS infrastructure in place..
    what I mean is, you can have infinite number of threats.. and this will be part of your Risk Analysis. Determining all possible threats to the assets, what are being protected and their associated value, and predicting the rate of occurrence.... with all of these you could probably come up with contingency plans and incident response.. And most of all, you should not ignore the fact that people are creative, ingenious, and curious, and they'll prove this to you by testing your security implementations. So you'll have to periodically evaluate your security.. that's why there are audits.. Also, you must balance Security, Performance, Usability, and your Budget.
    Yes, you can argue that if the entire firewall goes down (thus no IP defense), then something like DBV (or even denying IPs in sqlnet) can provide some defense. But is that not then a case of too little too late? It's better too little too late, than no protection at all... Imagine if there's no DBV, or if you have not implemented the concept of "Least Privilege"? or if the backups and exports are not encrypted? That would be more devastating.. that's the importance of database security options and features in providing "defense in depth"
    I question just what purpose and how effective IP packet security is at higher layers. It can never substitute doing this instead at firewall level. Well, it's not all about network security. All facets must be considered and the inter-relationships should be understand. Like the core information security and access management, physical and personnel security, training them, etc... And all of these are equally important in providing a secure ecosystem
    As for security that relies on the client to pass secure data (like executable name or o/s user name)... all this can easily be spoofed. Even if the app and Oracle driver are somehow digitally signed and these signatures can be verified on the server side, we only need to look at Vista to see how secure this really would be. Microsoft attempted to encrypt every single h/w and s/w layer from the physical DVD track to the pixel on the monitor.. and this was defeated. And this was done as o/s kernel level. It is less complex to hack at driver level and even trivial to do it at application level.Security is about risk management. Blocking SQL*Plus does not negate the risk of SQL from the wild being run on a production server. For example, the client is a VB client using ODBC. It is easy to create a proxy that accepts the ODBC connection from the VB client and proxy the OCI packets to the real Oracle server. Now you have a man-in-the-middle than can inspect every single SQL call made to Oracle, and inject any PL/SQL or SQL code it wants.
    Security is far beyond writing a login trigger to deny SQL*Plus sessions and calling that a defense. >
    Yes I agree with you. That's why there are independent organizations and regulating bodies that provides security best practices, to give us a headstart on comming up of strong security policies.
    And one of my favorites is the one provided by IASE (sponsored by Defense Information Systems Agency) where there's lot of content regarding hardening and policies
    http://iase.disa.mil/stigs/stig/index.html
    http://iase.disa.mil/stigs/checklist/index.html
    http://iase.disa.mil/stigs/SRR/index.html
    - Karl Arao
    http://karlarao.wordpress.com

  • Can I disable logging for session in Oracle 10g?

    I use a procedure to delete a lot of row for an application repeatedly. Because the DELETE statement is time consuming and the data don't need to be archived, I decide to use the nologging option.
    How to do it?
    What is the best choice? Can I disable logging from session in Oracle 10g?
    Thank you
    Edited by: jetq on Jul 23, 2009 9:46 AM

    Hi,
    "Delete" without generating redo-log is not possible.
    If you are on 10g, one way of making this thing efficiant is partition the table, with range-list partitioning. Partitioning existing table will be an excercise in itself, but that will be one time activity.
    In partitioned (or sub-partitioned) tables, you can truncate a partition (or subpartition). That won't generate any redo log (or very very less redo log) and that runs in seconds.
    In your case if you range partition INCOMING table by datetime (1 partition per day) and list sub-partition it by STATUS, that would help.
    Another approach is, if you are deleteing, say 80% records every day and leaving 20% (or very less) records. What you can do is, partition the table only by range on datetime. Then, every time you want to delete data, copy the rows you want to keep in some other table (or temporary table), truncate partition for that day and insert rows back (which you want to keep).
    I have done a similar thing and it works very quickly and generates very less redo log. Redo log generated in case of truncating partition or creating new partitions is just for Oracle internal commands (like data dictionary update etc).
    Have fun.

  • Oracle 10g server sizing information

    We are planning to implement WEBMTHODS and METAMATRIX tool. These apps require Oracle database. We are planning 3 HP rp4410 servers running HP-UX 11i. One foe WEBMETHODS APP, ONE FOR METAMATRIX. BOTH APPS are using one ORACLE DB server.
    I am looking some type of ORACLE 10g server sizing information to support ny hardware configuration. Can someone help me where to find this information?
    Thanks.

    Hi
    What is AFAIK? As Far As I Know
    Can you send the contact info?Unless you're not living in the same country (please see my profile), I don't think it would make any sense. I do know that hp.at offers sizing information.
    If you are refering to Just HP support I did contact
    them. They asked me to contact Oracle. I am looking
    for some guideline documentation.So thing are a bit different in your country ...
    C.

  • How many sessions can run simultaneously in oracle 10g database

    Dear Experts,
    Please tell me .
    Thanks

    Going into further details, if you are asking about number of concurrent sessions >that can access a block then it is defined by the INITRANS and MAXTRANS >parameters for the segment (which defaults to 2 for table segment, 1 for index >segment). There is more to say about that ITL slots: for Oracle 9i at least there can only be a maximum of 255 ITL slots whatever the data block size: for small block size, the maximum of ITL slots is about 50% of the data block size and and can be lower than 255.
    See Metalink note:
    Subject: INITRANS relationship with DB_BLOCK_SIZE.
    Doc ID: Note:151473.1 Type: BULLETIN
    Last Revision Date: 27-SEP-2006 Status: PUBLISHED
    I don't know if this is still valid for Oracle 10g.

  • Lots of Inactive perl sessions in Oracle 10g r2 on Debian Linux 64 bit

    Hi,
    There are lots of Inactive perl session in Oracle 10g release 2 10.2.0.3.0 on Debian Linux 64 bit, is it normal
    ps aux|grep oracle is showing following in processes of perl
    /home/u01/app/oracle/product/10.2.0/database1/perl/bin/perl /home/u01/app/oracle/product/10.2.0/database1 /sysman/admin/scripts/db/dbarchfull.pl

    Hi,
    There are lots of Inactive perl session in Oracle 10g release 2 10.2.0.3.0 on Debian Linux 64 bit, is it normal
    ps aux|grep oracle is showing following in processes of perl
    /home/u01/app/oracle/product/10.2.0/database1/perl/bin/perl /home/u01/app/oracle/product/10.2.0/database1 /sysman/admin/scripts/db/dbarchfull.pl

  • Kill Session in Oracle 10g

    Oracle 10g r2
    I killed a session after fetching the sid and serial from the v$session as under
    select * from v$session where username='SAM';
    alter system kill session '530,7420'
    Now the status showed killed.
    But again after some time one i query the v$session the status turn to inactive.
    Why so?

    Yeah Madrid....
    Thanks for that.. at the developer side.. they did get session killed.
    But actually my doubt here was. that once i killed the session then i go the status as "killed" in the v$session
    but less then a minute when i again query the v$session then i see the status aa inactive. This is what is not clear to me.

  • Find deleted information from user_jobs in Oracle 10g

    Hello All,
    I had scheduled a job in oracle 10g to run only once using dbms_jobs.
    I wanted to find out how long the job took ( total_time) and what SQL it was running ( user_job.what) but the information about the job seem to get deleted from user_jobs once the job is completed.
    Is there any other table/ view I can use to find these information?
    Also, will it be possible to query the user_job as of previous time when the data was there? if yes, please also let me know what privilidges and setting is required. Currently, I just have basic developer priviledge.
    Many thanks in advance for any help.

    Information about how long a job took and what SQL it was running is not stored anywhere when you use DBMS_JOB. Once of the nice things about using DBMS_SCHEDULER rather than DBMS_JOB for job scheduling is that DBMS_SCHEDULER automatically logs timing information.
    How long ago do you want to look at the data in USER_JOBS? If you are just trying to look back an hour or two ago, you may be able to use a flashback query. How far back you can go depends on your UNDO_RETENTION setting, the size of your UNDO tablespace, and the amount of UNDO that is generated by your system. The theoretical maximum you could flashback is 5 days, realistically, not many production databases can flashback more than a few hours unless someone has specifically identified the need to do longer-term flashback queries. The default UNDO_RETENTION is only 15 minutes. Plus, you're not guaranteed that you'll be able to flashback (that can be changed, but it's a pretty dangerous change because it will cause the database to stop if you run out of UNDO space).
    Justin

  • Create huge Waited-Session in a particular moment in Oracle 10g

    Friends,
    I m new in Oracle 10g database . I m working in a bank and Our production server runs in Oracle 10g in AIX server . We also running an application server with Oracle 10g database . Recently I got a strange problem in my production server .I have a schema called 'schemafe' which contains all of our users who are using the application mainly. They connect into my database via this schema .
    Now recently , the users of this schema increase the "WAITED-SESSION" in our production server . And at that moment another users are hanged on . And after 10/15 minutes it becomes normal .
    In this situation, can anybody plz help me to give a suggestion that how can I tune my database and remove this type of problem ? And for this situation , which things I need to tune or monitor .
    Waiting for ur kind reply .. ..

    Friends,
    I m new in Oracle 10g database . I m working in a bank and Our production server runs in Oracle 10g in AIX server . We also running an application server with Oracle 10g database . Recently I got a strange problem in my production server .I have a schema called 'schemafe' which contains all of our users who are using the application mainly. They connect into my database via this schema .
    Now recently , the users of this schema increase the "WAITED-SESSION" in our production server . And at that moment another users are hanged on . And after 10/15 minutes it becomes normal .
    In this situation, can anybody plz help me to give a suggestion that how can I tune my database and remove this type of problem ? And for this situation , which things I need to tune or monitor .
    Waiting for ur kind reply .. ..

  • Maximim Number of process and session can set in oracle 10g

    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g database

    mithun wrote:
    my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g databaseThe maximum number of sessions is controlled by your database's SESSIONS parameter. This value is most derived from the PROCESSES parameter. You cannot exceed this number of sessions unless you raise the parameter value.
    If your database is configured to handle enough sessions, then Oracle can literally handle thousands of simultaneous connections, provided your database server also has enough resources to handle this number of connections. You will want to implement Oracle's Shared Server connections so that multiple connections share a pool of processes on the database server. This minimizes the resource consumption used by the connections.
    Read the following document as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm
    Thanks

  • Need information related to oracle 10g standard / enterprise edition (diff)

    Hi,
    I had developed my application using oracle 10g enterprise edition and now i wanna to shift the entire thing to oracle 10g standard edition.
    i Ha ve query on thiis point.
    1) Is it safe to do so.
    2) what are the difference between both the edition.
    3) what are the restriction i can face if i am moving form 10g enterprise to 10g standard.
    4) what are the steps i have to do to do the same.
    5) risk,efficency,restriction and all the major difference.
    If you can suggest me something, then it will be very helpful for me.
    Thanks,
    Anit
    Edited by: Anit A. on Sep 5, 2008 12:24 AM

    Hi Anit,
    Is it safe to do so.ALWAYS check with your CSR for licensing deals, things change constantlt.
    what are the difference between both the edition.EE has all the goodies! Here is my list of differences in SE and EE: http://www.dba-oracle.com/art_so_oracle_standard_enterprise_edition.htm
    what are the restriction i can face if i am moving form 10g enterprise to 10g standard.No replication, no Data Guard, no stored outlines, no MV's . . . .
    what are the steps i have to do to do the same.Just install SE, point your $ORACLE_HOME to it and bounce
    Hope this answers your question . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Oracle 10g Lite Product Information

    Hi all !
    I just need a help regarding the Oracle 10g Lite product from Oracle.
    I need to work on a Java/J2EE project that requires an Oracle DB as backend. I recently came to know about Oracle Lite and want some suggesstions.
    My requirements:
    1. I need a local Database in my "laptop". Can this software be used for that purpose.
    2. I should be able to create a new schema with some tables and procedures (I thnk this is possible in Oracle Lite).
    3. I have a Windows XP Home Edition. I read in many threads that Oracle Products do not work on Windows XP Home Edition. How true is this ?
    4. Is Oracle Lite appropriate for my requirement.
    I am reading the Oracle Lite white pages to find out more info. Please share your thoughts on this.
    Thanks.
    P

    Hey Robert,
    Dont think I can use Oracle Express Edition. :((
    Look at the system specs !
    Requirement
    System architecture : Intel (x86)
    Operating system: One of the following 32-bit Windows operating systems:
    * Windows \\      2000 Service Pack 4 or later
    * Windows \\      Server 2003
    * Windows \\      XP Professional Service Pack 1 or later
    The OS is my prob. I got Windows XP Home Edition !
    Thanks
    P
    Edited by: Drink Up on Sep 8, 2008 4:14 PM
    Edited by: Drink Up on Sep 8, 2008 4:14 PM

Maybe you are looking for

  • Goods Receipt and Accounting Documents

    Hello, I have two doubts, 1) When we create PO with Material Without  A/ C assignment, After the GR system will Generate A/C documents, G/L a/c will came from Material master's Valuation class. 2) When we create PO with Material and with a/c assignme

  • Help with a 2wire connection

    Hi i have one of those 2WIRE dsl boxes and i am wondering what how to connect to one because Airport finds it and i have never ever set up wireless with it an i am wondering if there is a default password for it to work and then i can change it or so

  • Create Directory Dialog box without specifying file name

    Hi all Programmers/Developers/JDC memebers I would like to know in java is there any method or class which helps to give directory dialog box without specifying filename. I mean to say if u have c,d,e drives and some directories under them c:\dir1 c:

  • I want to run 2 displays........ one on Macair, other on display unit

    Wish to run Mac air with two different diplays, One on Mac, other on disply. Am only able to get mirror. How do I get 2 displays?

  • OPMN: OC4J_SECURITY won't start - SSO problems

    Hi, After restoring our infrastructure database and oracle home from backups I am unable to get the OC4J_SECURITY to start. I had to really fiddle around with the restoration and it's possible I mucked something up there. Here are relevant parts of t