Total number of active, last login, inactive etc.

Hello
Need to know some way or script which will display the number of connection of users, inactive, the total number of users and their details on Oracle 10 g.
Thanks in advance.

Richa,

Check this box if this works for you

  col sql_text for a80
set pages 200
set line 900
col PROGRAM for a20
col MACHINE for a20
alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
col event for a40
select *
  from (select /*+ RULE  */sa.sql_id, s.sid "SID", s.serial# "SERIAL",
         s.program "PROGRAM",
         s.machine "MACHINE",
         sa.SQL_TEXT "SQL_TEXT",
         s.logon_time,
         round(s.last_call_et / 60,0) "Inact_Min",
         s.username,
         s.osuser,
         s.status
          from v$sqlarea sa, v$session s, v$process vp
         where sa.address = s.sql_address
                      and s.paddr = vp.addr
         order by CPU_TIME desc);
 

Thank you
Ajay more
http://www.moreajays.com

Tags: Database

Similar Questions

  • Total number of active and inactive users

    Hi all

    I have to rely

    The total number of users.
    Total number of active and inactive users.
    Total number of users after 90 days of inactivity:

    I went through the thread below, but it shows the modules. but not taken into account.
    http://download.Oracle.com/docs/CD/E10530_01/doc/EPM.931/html_esb_techref/MAXL/DDL/statements/dispuser.htm

    Please let me know how to write MaxL command or another way to count users.

    Thank you
    Alain

    A possible solution is to load the file in excel and then use formulas to work the numbers you need.
    If this isn't the case, excel then you could use a scripting language to run the file and the desired output number.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Total number of active users

    When I see the spotlight to get the total number of sessions active saying 20
    but when I use the sql server script
    Select count (*) in the session $ v where status = 'ACTIVE ';
    its 40 giving.

    The difference is always there.


    Can someone help me with the query using spotllight or any means to check the query in the spotlight.

    What is "spot"? It is probable that filter out RDBMS Oracle background processes. Try adding "and username is not null" to your query and see if the numbers are closer.

    HTH - Mark D Powell.

  • My computer is dead, had to get the new computer. Installed PS CS2 and tried to activate it. Cannot call the online help desk, they sent me to you to activate my software. I have the serial number and the last activation number. T

    My computer is dead, had to get the new computer. Installed PS CS2 and tried to activate it. Cannot call the online help desk, they sent me to you to activate my software. I have the serial number and the last activation number. Thank you. Or to intervene in the forum.



    [address removed by email.. mod]


    Hi carlkent,

    Your serial for Photoshop CS2 key would not work as the activation for CS2 servers were closed.

    You must visit this link to download the version CS2 and use the key to series mentioned in this link: https://helpx.adobe.com/creative-suite/kb/cs2-product-downloads.html

  • I'm sure that my problem is common, my computer is slow. I tried a number of things to clean, defragment, etc, etc. Any suggestions?

    Hello: My question is not uncommon, I hope there is a simple solution. My computer has slowed down over a period of time and want to get the speed. I have tried Microsoft downloads (my computer would not accept them), System Tools, disk cleanup and defragmentation, bought "Fixcleaner" to aid, etc.. Nothing seems to speed it up. Simple suggestions for a non-expert user?

    Simple? Probably not. In addition, programs such as Fixcleaner and Advanced SystemCare 4 are almost always doomed to failure in cases like yours. However, it shouldn't be so hard to speed up your PC.

    Do you have XP Home, XP Pro or XP MCE?

    What is the brand and model of your PC?

    What is the status of malware from your PC?

    What security programs are you running? (For example, Norton or McAfee?)

    You all post-SP3 installed security update?

    How much RAM do you have?

    What is your hard drive and the amount of free space is left on it?

    If you need help answering these questions, let know us.

    Here are the usual causes of slow:

    1. malware (malware). You need to rule out first! This page has excellent information:

    http://Web.archive.org/Web/20080610163247/http :// www.elephantboycomputers.com/page2.html#Removing_Malware

    2. some programs aimed at combating malware (for example, Norton and McAfee). Ironically, they can slow things down because they use simply much too many resources. Sometimes they cause conflicts with other programs. And their default mode is to scan your entire hard drive whenever you start. Fortunately, there are other programs of anti-malware software available that use much less resources (p. ex., NOD32, Avast and Avira).

    3. too much of certain types of programs still running in background - with or without your consent. (Then again, a lot of programs running in the background of the consequences trivial.)

    To determine each program and process, you are running, use the task (Ctrl + Alt + Delete) Manager and click the processes tab. You should be able to sort by CPU usage or memory usage for a good ideas that are resource/memory hogs. You must write the names of all the processes for future detective work (or take a snapshot and print it).

    Use these sites to determine what these programs are, and learn how configure them to not always run when starting:

    http://www.PACS-portal.co.UK/startup_content.php#THE_PROGRAMS
    http://www.bleepingcomputer.com/startups/
    http://www.AnswersThatWork.com/Tasklist_pages/Tasklist.htm

    Sometimes, it is recommended to use msconfig to configure programs to run at startup. A better, more thorough program is Autoruns:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    But before that, you must use the settings preference of the program in question. Otherwise, for some programs, they will return to the list of startup anyway!

    If you do not want to use msconfig, it can be accessed in this way:

    Start | Run | Type "msconfig" (without the quotes). Enter (or OK)

    4. not enough RAM, causing the PC too rely on the pagefile. A quick way to determine if what is happening is to open (Ctrl + Alt + Delete) Task Manager, and then click the performance tab. Then the three values under Commit Charge (k) Note: in the lower left corner: Total, limit and peak.

    The Total number represents the amount of memory you are using right now. The vertex figure represents the maximum amount of memory you made since the last boot. If these figures are lower than the value of the amount of physical memory (K), then you probably have lots of RAM. In case you want to study it more, you can run the Page queue Monitor for Windows XP:

    http://www.dougknox.com/XP/utils/xp_pagefilemon.htm

    5. you can also verify that the access mode of your hard drive has not changed from DMA to PIO:

    http://www.technize.com/2007/08/02/is-your-hard-disk-CDDVD-drives-too-slow-while-copying/

    and

    http://winhlp.com/node/10

  • Total number of concurrent VPN connections.

    Hey guys,.

    Is it possible to display or not even connect to the total number of simultaneous in one month vpn connection?

    THX

    On the SAA, you can enter the command "Show vpn-sessiondb", it shows the info.

    Demo - asa vpn-sessiondb # HS

    Summary of the current Session

    Sessions:

    Active principles: Cumulative: simultaneous peak: inactive

    SSL VPN               :       0 :        145 :               7

    Clientless only: 0: 30: 2

    Client: 0: 0: 3: 115

    E-mail Proxy: 0: 0: 0

    IPsec LAN-to-LAN: 0: 0: 0

    IPsec remote access: 0: 0: 0

    VPN load balancing: 0: 0: 0

    Totals: 0: 145

    Information about the license:

    IPsec: 750 configured: 750 Active: 0 load: 0%

    SSL VPN: 50 configured: 50 Active: 0 load: 0%

    Active principles: Cumulative: simultaneous peak

    IPsec               :          0 :          0 :               0

    SSL VPN             :          0 :        145 :               7

    AnyConnect Mobile: 61: 61: 61

    Linksys Phone: 0: 0: 0

    Totals: 0: 145

    I'm sure that there are much better alternatives such as Cisco ACS including the quality of the production.

    But I have recently installed Microsoft IAS on my Windows 2003 server and then configured accounting for my VPN group policy. I then used a free 'IAS log viewer"software which is able to provide the use of my VPN.

    See the article below for configuring Microsoft IAS on Win2k3:

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2284/products_configuration_example09186a0080094700.shtml

    The whole process took me less than an hour. Nice report generated by the IAS log viewer.

    Thank you

    Kiran

  • In 12.4.1.6, where do you see the total number of songs in your iTunes library?

    In 12.4.1.6, where do you see the total number of songs in your iTunes library?

    In my case (iTunes on OS X 10.9.5 12.4.1), in the library section of the box I choose songs and the number appears in the status bar at the bottom of the iTunes window.  If you do not have the visible status bar, it can be activated from the iTunes menu bar, display > show status bar.

    Good luck

    SRB

  • How to calculate pay many times a total number of hours

    Hi people,

    I'm using the last update of the numbers.

    I'm trying to find a way to calculate a sum.

    I got the total number of hours per week, but I want the formula to calculate the total number of hours per week by people price / hour?

    How can I do this?

    Any suggestions?

    I recommend having a look at the model of timetable for the employee to File > New.

    SG

  • Where is the total number of pages printed on Laserjet P2055DN?

    Hello

    We recently bought a P2055dn LJ, which works very well. We are now on the second ink cartridge.

    I would like to know how many pages was printed completely. If I go to the page /hp/device/supply_status.htm I can see how many pages have been printed using the LAST cartridge. How can I see the total number of pages printed?

    Thanks for the good help on that.

    Calle2012

    At the front of the printer, you will need access the MENU via the LCD screen. Scroll to REPORTS and click ok, then scroll down to the configuration page and click ok. At this point, it should display a page of test/config auto with detailed info printer including the number of pages since its installation.
  • Show a total number of emails in Windows Live Mail, not only the total number in each file.

    Windows Live Mail on Windows 7-

    Is there a way to display the total number of emails you have? as opposed to simply show how many e-mail messages are in each file?

    In the section filters, it is customary to say: email unread (12).

    I did what you say.

    Now, in the views section fast, he added another line, so he said:

    Unread mail (12)

    All emails (12)

    But I know a have a few thousand emails into different folders, so, over 12 emails.

    I remember for a long time with a program called Eudora, I think, and he had a page that listed all of your files, with the number of emails in each file, and a total of all THE emails at the bottom.

    Of course, I can add them by hand, but just thought it might be something that, for me, added.

    cranberrymix,

    In my WLM 2011, category "All electronic" shows only not reading the mails for all accounts. Once the emails are read, the figure in brackets will be gone too.
    I think that it is applicable to your case.

    One last thing, if you left click all emails, you will see a long list of e-mails.

  • HP laserjet m1212nf: Total number of printer pages

    I would like to get the total number of pages for the printer. Not only since the last cartridge. Display and not on the config page. The number of pages in 'a way' is not total.

    Hi @jrreedlady,

    I see by your post that you want to know the total number of pages the printer has printed. I want to help you.

    The Configuration page should show the total number of pages printed since the new printer setting. Approximate toner toner is about 1600 pages.

    What is the amount of your list?

    Here is a screenshot of the different page counts, which keeps track of the printer.

    If you appreciate my efforts, please click on the "Thumbs up" button below.

    If there is anything else I can help you, let me know. Thank you.

  • ASM: determine the total number of bytes read/written & Ops / s

    Hello

    My environment:

    • Oracle 11.2.0.3 EE
    • SuSE Enterprise Linux 11 SP1, 64-bit
    • ASM starts on RAW LUNS (2 per group) Hitachi disk storage
    • DB-server: HP DL380 G7

    I want to disc ASM ssd drive switch, direct attach to via HP DS2700 attachment:

    • DiskGroup + DATA
      5x400GB Enterprise SSD, RAID 5, 1.6 TB of raw capacity
      used to redo, data files
    • DiskGroup + ARCH
      4x400GB Enterprise SSD, RAID0 + 1, capacity of 800GBraw
      used to redo, Archives, Flash Recovery Area

    As I understand until this SSD technology, SSD have a livetime, indicating that there is a guaranteed amount of data that can be read/written on this subject. My goal is to design a system that has no point of two ssd failure in the same RAID group.

    1. How can I determine the total number of bytes read/written in ASM starts so far?
      My idea was to dermine ASM block size (select block_size from v$ asm_diskgroup) and then look at total reads and writes columns via iostat command in asmcmd. I guess that these values are since the last start of the DSO.
    2. Is it possible to determine the IOPS / sec per diskgroup?

    Thank you
    SCSI

    Casimir wrote:

    Do the calculation for 1. gives me an odd result:

    ASMCMD disk group management controls said that the default view is the amount of bytes and that the -io parameter must be used to display the number of e/s instead.

  • Calculate the total number of the schema rowset.

    Hi all

    I use the oracle 10g database on windows server 2003.

    I want to calculate the total number of lines in a pattern.
    I have only one method to select just count (*) from each table within each schema.
    because it doesn't matter what possible query that could calculate the total number of lines in a pattern?


    Thank you.

    Published by: Maahjoor on May 13, 2013 23:21

    Hello

    Well, if you keep your cool failry statistics, you can get a very good grip on the number of lines through the NUM_ROWS in dba_tables column and then summarize the owner, on the top of my head:

    select sum(NUM_ROWS) from dba_tables where owner like 'SCHEMA';
    

    Do not forget that the number of lines shown this way will be the number of lines at the time of the last crawl (dbms_stats) has been run on the segment, so it may not always be equal to the number of the schema rowset did when running.

  • How to display the current page and the total number of pages for a group

    Hi all
    I have a requirement to indicate the current page number and the total number of pages for a group. For example:

    < A >
    < 1 >
    Row1
    row2
    ....
    Clotilde
    < / 1 >
    < 2 >
    Row1
    row2
    ....
    Clotilde
    < / 2 >
    < 3 >
    Row1
    row2
    ....
    Clotilde
    < / 3 >
    < /A >

    Now my requirement is Group 1 can have lines going into several pages say x, so I need to show with in the Group 1 x and on the next page page 1 page 2 x etc.
    Although Group 2 spans several pages, I need to see page 1 of y... etc.

    Can someone help me please how to do this?


    Thank you
    Sunny

    Try if@section

  • How to get the total number of pages have been printed using the pl/sql

    Dear all,

    I want to store the total number of physical pages printed in a database table, how could retrieve the value of the total number of pages.


    I am using Oracle 6i report

    thnxxx in advance :)

    At the end of your report (i.e. After all the images from your data model), place a dummy field. You can get the page number with srw.get_page_num in the trigger of the format of this field. Since it is the last field of your report, it is also the last page number.

Maybe you are looking for

  • iTunes 12 'add to library' simply does not work

    I am running iTunes 12 (12.3.2.35, to be exact). I am trying to add a file AAC from my office to my iTunes library so I can sync it with my phone.  When I go to 'Add to library', select the file and click "Open", nothing happens.  The song is not loa

  • Did you come out ssh and now cannot use ssh - this had to happen one day

    Pro2 OS6 v 6.4.0 SSH I logged in ssh [email protected] No files were open, but before I "exit" the session that the unit did a stop/delayed. I had completely lost track of time. Now, I can't ssh in. I've disabled the ssh, rebooted, activated the ssh a

  • HP Probook 4530 s fingerprint reader does not.

    I just bought HP Probook 4530 s Ci5 6 GB of RAM 740 GB hard 1 Gb Radeon graphics card Win7 64 bit operating system I downloaded the driver and digital persona software from the HP Web site, my system Device Manager shows that the driver is correctly

  • Microsoft Security Client\msseces.exe ist ungultig

    ICH habe Update specification (10) am Nr. 3 blieb der PC 'hangen '. ALS ich einen Neustart durachfuhrte, war Anzeige display von Micorsoft Cecurity Essentials weiss abgebildent und beim Versuch sie zu öffnen kam message, dass "messeces. exe, RA is od

  • Unnecessary services in Windows 7

    As the title suggests, the Windows 7 Services safely disable? Some examples of those I currently already disabled are: Windows Search Remote Access Auto Connection Manager Remote Access Connection Manager Configuration of remote desktop Remote Deskto