List of users who logged into database

Hi All.
I want to know the list of users who logged in to database and the list of users for whom the password authentication is failed.
I think we can get the logged in users information from v$session but i am trying to find the users list who failed to log in to the database with password authentication failure.
Please help me...
Thanks & Regards,
Rajesh Amathi

Hi,
I suggest use trigger on system logon event. This is for general situation.
Ex:
create table user_log
user_id varchar2(30),
session_id number(8),
host varchar2(30),
last_program varchar2(48),
last_action varchar2(32),
last_module varchar2(32),
logon_day date,
logon_time varchar2(10),
logoff_day date,
logoff_time varchar2(10),
elapsed_minutes number(8)
create or replace trigger logon_audit_trigger
AFTER LOGON ON DATABASE
BEGIN
insert into user_log values(
user,
sys_context('USERENV','SESSIONID'),
sys_context('USERENV','HOST'),
null,
null,
null,
sysdate,
to_char(sysdate, 'hh24:mi:ss'),
null,
null,
null
END;
For unsuccessful logons:
CREATE TABLE connection_audit (login_date DATE, user_name VARCHAR2(30));
-- trigger to trap unsuccessful logons
CREATE OR REPLACE TRIGGER logon_failures
AFTER SERVERERROR
ON DATABASE
BEGIN
IF (IS_SERVERERROR(1017)) THEN
INSERT INTO connection_audit (login_date, user_name) VALUES(SYSDATE, 'ORA-1017');
END IF;
END logon_failures;
Please refer for more several combination: http://psoug.org/reference/system_trigger.html
Edited by: Ulfet Tanriverdiyev on Jul 7, 2010 10:49 PM

Similar Messages

  • Is there an application to monitor users who log into Windows Server 2012 R2?

    I'm looking at Family Safety Feature in Windows 8 and like what they can do.  I have a request to monitor, track users who log into Windows Server 2012 R2 to see how many users login, how long each login is for each user so a monthly report can be generated.  
    1.  I just wonder if Windows Essential 2012 can be used for this purpose or not.  If it can, is Windows Essential 2012 a feature can be added or installed on Windows Server 2012 R2?
    2.  If Window Essential 2012 cannot be used for this purpose, is there any feature in Windows Server 2012 R2 that can be used for this purpose?
    3.  Is there any other suggestions?
    Thank you for your help.
    Thanks and Regards,
    Hien Phan

    Hi Hien,
    Anything updates?
    It seems that there is no feature can do that. I agree with Tim that you can check the event logs. In general, the event 4624 would be created when a user was logged on, and the event 4634 would be created when a user account was logged
    off.
    More information:
    Tracking User Logon Activity Using Logon Events
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to get a List of Users Currently Logged into the portal

    Hi,
    Im trying to get the list of all users logged into the portal to do a web service, but I can't find the way to do this, is there any way to find this info thrugh a java class or some object in the RCU/schema/WCP database?
    Greetings
    Mike

    Try the analytics tables. Before you can use them, you need to setup the analytics server and configure it for your application:
    http://docs.oracle.com/cd/E23943_01/webcenter.1111/e12405/wcadm_analytics.htm#BEIDBHHG
    This gives an overview for building reports: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_analytics.htm#BABFDGEG
    Login metrics: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_analytics.htm#BABFFHGD
    You can use these queries to get the info you want.
    Edited by: Yannick Ongena on Oct 8, 2012 8:00 AM

  • How to getcapabilities of user who logged into IDM?

    Hi All,
    I am having the same problem. I have posted this question earlier also. But some one said forms will always have the refrence of the configurator.
    But in the documentation its is said that <ref>:display.session</ref>, will be a valid Identity Manager Sesssion. More over iam using passing the value ie <ref>:display.session</ref>, to get the resources that logged in user have access. There its getting corretly based on the logged in user. I am giving the two codes below.
    1. <Field name='waveset.resources'>
    <Display class='Label'>
    <Property name='value'>
    <invoke name='getResources' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    </invoke>
    </Property>
    </Display>
    </Field>
    The above code gets the resources the logged in user has access correctly based on who logs in. Its not getting the resources that "Configurator" has access.
    2. <Field name='Capability'>
    <Display class='Label'/>
    <Default>
    <invoke name='getCapabilities' class='com.waveset.ui.FormUtil'>
    <ref>:display.session</ref>
    </invoke>
    </Default>
    </Field>
    The above code gives the capability of the "Configurator", irrespective of who evers logs in.
    can ony one help me to sort out this problem if u have achieved prviously plz post your piece of code that would help me to to proceed furthur...
    Thanks in advance
    Regards,

    Hi,
    When adding to the title:
    The default available on the Insert menu is the full page item list &PageItems.
    However the undocumented way to add a single page item is to type &PageItemName which in this case will be the calculation item for the USER function.
    For example:
    Calculation TheUser defined as USER.
    Place TheUser on pageitems area.
    Add &TheUser to page title (does not require &PageItems to be present)
    regards
    John

  • How can I get users who accessed the database during last one month

    Hi All,
    How can get the list of users who logged on to the database DBProd and made changes to the tables of particular schema during say last month and current month.
    Thanks & Regards.

    DBA_PRIV_AUDIT_OPTS :-Describes current system privileges being audited across the system and by user and who has updated what can be done through trigger which would send the information to a history table. If you have it ready ask your team..
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    no rows selected
    SQL> audit ALTER SYSTEM by scott by access whenever not successful;
    Audit succeeded.
    SQL> audit session by scott by access;
    Audit succeeded.
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    PRIVILEGE SUCCESS FAILURE
    CREATE SESSION BY ACCESS BY ACCESS
    ALTER SYSTEM NOT SET BY ACCESS
    Regards
    Karan
    Edited by: Karan on Aug 2, 2012 7:15 PM

  • How to get a list of users currently logged on to InfoView?

    Post Author: ak004
    CA Forum: Administration
    Hi,
    Is there an option in CMC that gives the list of concurrent users currently logged on into the Infoview? I have CR server XI and Settings in CMC currently just gives the number of users logged in. I am using Enterprise security for the users.How can I get the list of users logged in?
    Appreciate your help.
    Thanks

    Post Author: jsanzone
    CA Forum: Administration
    The quickest way to see who is logged in is to go to the CMC, then click on Servers, then click on the .cms entry (it's the second one down on the list for my system).  When you click on the cms link on the next page should be a list of users currently logged in (including you the administrator).

  • How to capture name of user that logs into Portal?

    Im trying to create a report that returns information from a
    Profile table. The UserId is the key to the Profile table.
    Since this report returns information dependent upon who runs
    it, I would make use of the USER functionality in SQL to isolate
    the row in the Profile table. However, this technique wont
    work through Portal because the user logs into Portal not the
    database.
    What technique (keyword, API, etc.) should I use to capture the
    username of the person who logged into Portal?
    Thanx,
    JE

    Try this:
    PORTAL30.wwctx_api.get_user
    Adam

  • How to get a list of user who is shared with particular workbook

    Hi everyone,
    I have duplicated a workbook and made some changes on the new one. Now I'd like to share the new one with the same list of user as the old one.
    The number of user is great, more than 500.
    I would like to know any SQL that let me get a list of user who have been shared with the old one, such that I won't miss anyone of them.

    Hi,
    I would like to know any SQL that let me get a list of user who have been shared with the old one, such that I won't miss anyone of them.Refer to these documents.
    Note: 293021.1 - How to Find Out the Sharing Information for Discoverer workbooks From the Database
    Note: 375777.1 - How To See Which Discoverer Workbooks Are Owned And Shared By An Existing Or Dropped Database User
    Thanks,
    Hussein

  • Query to find out the list of user who have delete access

    Hi,
    I need a query to find out the list of users who have delete access on perticular folder/universe/ reports  in infoview.
    Please advice.
    Regards,
    Neo.

    orton607 wrote:
    thanks for replying guys. But the thing is i am using dynamic sql execute immediate in my package, so i want those tables also and the schema name.
    thanks,
    ortonThis is not possible. The best you could do is to have a good guess.
    Or how would you parse some dynamic statement as this:
       v_suffix := 'loyees';
       v_sql := 'Select count(*) from (select ''nonsense'' col1 from emp'||v_suffix||') where col1 = ''Y'''';
       execute_immediate(v_sql);
    ...What is the table name? How do you want to parse that?
    Better rewrite all dynamic SQL statements into non dynamic ones. Or do the source control logic for those dynamic parts in an extra module. For example implement your own dependency table and force every developer to add there all dynamic parts.

  • List of users who were granted particular function in oracle apps R12 db?

    Hi
    I need to list all users who were granted particular function (suppliers) from oracle apps R12 database. User -->Resp -->Menu --> Submenu/function. I have two queries like the following
    --Below sql query give all users those
    having Purchasing and Payables application access.
    SELECT UNIQUE u.user_id, SUBSTR (u.user_name, 1, 30) user_name,
    SUBSTR (r.responsibility_name, 1, 60) responsiblity,
    SUBSTR (a.application_name, 1, 50) application
    FROM fnd_user u,
    fnd_user_resp_groups g,
    fnd_application_tl a,
    fnd_responsibility_tl r
    WHERE g.user_id(+) = u.user_id
    AND g.responsibility_application_id = a.application_id
    AND a.application_id = r.application_id
    AND g.responsibility_id = r.responsibility_id
    AND a.application_name in ('Puchasing','Payables')
    ORDER BY SUBSTR (user_name, 1, 30),
    SUBSTR (a.application_name, 1, 50),
    SUBSTR (r.responsibility_name, 1, 60);
    --Below sql  query gives function name.
    SELECT function_id, user_function_name, creation_date, description
    FROM applsys.fnd_form_functions_tl where function_id=1348;
    What other tables to join to get all users having this function (suppliers) granted?
    Regards

    You cannot move a post to another forum.
    You can repost your entire text as another post in the other forum.
    You can then mark this thread as "answered" -- just to close it.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Jan 16, 2011 5:11 PM

  • Need help with log4j logging tool (org.apache.log4j.*) to log into database

    Hi,
    I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
    log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
    log4j: Level token is [debug].
    log4j: Category root set to DEBUG
    log4j: Parsing appender named "stdout".
    log4j: Parsing layout options for "stdout".
    log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "stdout".
    log4j: Parsed "stdout" options.
    log4j: Parsing appender named "Roll".
    log4j: Parsing layout options for "Roll".
    log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "Roll".
    log4j: Setting property [file] to [HelloWorld.log].
    log4j: Setting property [maxBackupIndex] to [10].
    log4j: Setting property [maxFileSize] to [20KB].
    log4j: setFile called: HelloWorld.log, true
    log4j: setFile ended
    log4j: Parsed "Roll" options.
    log4j: Parsing appender named "CRSDBAPPENDER".
    {color:#ff0000}
    Can't find class HelloWorld{color}
    import org.apache.log4j.*;
    public class HelloWorld {
    static Logger log = Logger.getLogger(HelloWorld.class.getName());
    public static void main(String[] args) {
    try{
    // Now, try a few logging methods
    MDC.put("myComputerName", "Ravinder");
    MDC.put("crsServerName", "ARNDEV01");
    log.debug("Start of main()");
    log.info("Just testing a log message with priority set to INFO");
    log.warn("Just testing a log message with priority set to WARN");
    log.error("Just testing a log message with priority set to ERROR");
    log.fatal("Just testing a log message with priority set to FATAL");
    catch(Exception e){
    e.printStackTrace();
    ------------------------- log4j.properties file ------------------------------
    #### Use three appenders - log to console, file and database
    log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
    log4j.debug=true
    # Print only messages of priority WARN or higher for your category
    # log4j.category.your.category.name=WARN
    # Specifically inherit the priority level
    # log4j.category.your.category.name=INHERITED
    #### stdout - First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### Roll - Second appender writes to a file
    log4j.appender.Roll=org.apache.log4j.RollingFileAppender
    ##log4j.appender.Roll.File=${InstanceName}.log
    log4j.appender.Roll.File=HelloWorld.log
    log4j.appender.Roll.MaxFileSize=20KB
    log4j.appender.Roll.MaxBackupIndex=10
    log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
    log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### CRSDBAPPENDER - third appender writes to the database
    log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
    log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
    log4j.appender.CRSDBAPPENDER.USER=sa
    log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
    log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
    log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
    ------------------------------- end of log4j.properties file ------------------------------
    Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
    HelloWorld\bin
    HelloWorld\lib
    HelloWorld\src
    Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
    Thanks
    Ravinder

    try this :
    log4j.appender.PROJECT.Append=false

  • List of user who is going to get locked - OEM

    Hi,
    There there any way in OEM(Enterprise Manager Grid Control) to get the list of user who are going to get expired/locked in 5-6 days.
    Can we set up such alert in OEM.
    Thanks

    Under the home page, under Related links at the bottom, I think you can follow the 'User-Defined Metrics' link.
    This requires the Database Diagnostics pack, of which i do not have, so I cannot show example. More information on this link:
    http://docs.oracle.com/cd/B16240_01/doc/em.102/e10954/udm2.htm
    Edited by: mcarbon on 18-Apr-2013 08:27

  • How to find out list of users who have access to particulat SID

    HI
    How to find out the list of users who has access, to a particular SID?
    Satish.

    jurjen,
    Thanks for replying, actually i was trying to navigate and execute the report using, SUIM...
    could you help me to find out the list of users who has access to a particular system.. using SUIM.
    satish.

  • How to list of Users who are using Crystal XI application?

    Hi all,
    Thanks for your support provided so far.
    I need to get the list of users who are all using the Crystal XI application. I tried to get this info from the Business Objects Enterprise Applications in CMC but it was not there. Where can I find this information?
    kindly help me.
    Thanks,
    Bhuvan R

    There is not such a portlet available out of the box...
    Have you looked at the code share section?
    If you want to develop yourself, I don't think this is achievable using the IDK (remote interface)
    But It is definitely possible to create such a portlet using the server API (drawback: the portlet has to live where a portal component is installed - WS, automation or Portal)

  • How to get list of users who all are having full access in sharepoint site using client object model c#

    Hi,
    I want to fetch the list of users who all are having full access to the sharepoint list using client object model with .Net
    Please let me know if any property for the user object or any other way to get it.
    Thanks in advance.

    Here you are complete code i created from some years it lists all groups and users, you can just add a check in the permissions loop to see if it is equal to Full Control.
    Private void GetData(object obj)
    MyArgs args = obj as MyArgs;
    try
    if (args == null)
    return; // called without parameters or invalid type
    using (ClientContext clientContext = new ClientContext(args.URL))
    // clientContext.AuthenticationMode = ClientAuthenticationMode.;
    NetworkCredential credentials = new NetworkCredential(args.UserName, args.Password, args.Domain);
    clientContext.Credentials = credentials;
    RoleAssignmentCollection roles = clientContext.Web.RoleAssignments;
    ListViewItem lvi;
    ListViewItem.ListViewSubItem lvsi;
    ListViewItem lvigroup;
    ListViewItem.ListViewSubItem lvsigroup;
    clientContext.Load(roles);
    clientContext.ExecuteQuery();
    foreach (RoleAssignment orole in roles)
    clientContext.Load(orole.Member);
    clientContext.ExecuteQuery();
    //name
    //MessageBox.Show(orole.Member.LoginName);
    lvi = new ListViewItem();
    lvi.Text = orole.Member.LoginName;
    lvsi = new ListViewItem.ListViewSubItem();
    lvsi.Text = orole.Member.PrincipalType.ToString();
    lvi.SubItems.Add(lvsi);
    //get the type group or user
    // MessageBox.Show(orole.Member.PrincipalType.ToString());
    if (orole.Member.PrincipalType.ToString() == "SharePointGroup")
    lvigroup = new ListViewItem();
    lvigroup.Text = orole.Member.LoginName;
    // args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    Group group = clientContext.Web.SiteGroups.GetById(orole.Member.Id);
    UserCollection collUser = group.Users;
    clientContext.Load(collUser);
    clientContext.ExecuteQuery();
    foreach (User oUser in collUser)
    lvigroup = new ListViewItem();
    lvigroup.Text = "";
    lvsigroup = new ListViewItem.ListViewSubItem();
    lvsigroup.Text = oUser.LoginName;
    lvigroup.SubItems.Add(lvsigroup);
    //args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    // MessageBox.Show(oUser.LoginName);
    RoleDefinitionBindingCollection roleDefsbindings = null;
    roleDefsbindings = orole.RoleDefinitionBindings;
    clientContext.Load(roleDefsbindings);
    clientContext.ExecuteQuery();
    //permission level
    lvsi = new ListViewItem.ListViewSubItem();
    string permissionsstr = string.Empty;
    for (int i = 0; i < roleDefsbindings.Count; i++)
    if (i == roleDefsbindings.Count - 1)
    permissionsstr = permissionsstr += roleDefsbindings[i].Name;
    else
    permissionsstr = permissionsstr += roleDefsbindings[i].Name + ", ";
    lvsi.Text = permissionsstr;
    lvi.SubItems.Add(lvsi);
    // args.PermissionsList.Items.Add(lvi);
    DoUpdate2(lvi);
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    finally
    DoUpdate3();
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

Maybe you are looking for

  • A wallet needs to be configured for this instance of Application Express

    hi I m very new to APEX. I could create web service client with wsdl. But when service is on https i get message "a wallet needs to be configured for this instance of Application Express". I have created wallet using OWM (10.2.0.1.0) at location c:\d

  • BDC Recording For J1IG with Table Control Scroll bar

    Dear Friends, I am doing BDC program for J1IG Transaction after done recording. As you knows that, In J1IG transaction max. 11 materials are shows in table control at a time and if more records are there, then we have to scroll down manually so after

  • Looking for a convertor from HTML to PDF with J2SE

    Hi all, My current project would generate some XML data and display it on the web. Needless to say I have to prepare a matching set of XSL to transform the XML into HTML. I got that part done. However, my project also requires a PDF output of the sam

  • Issues with Content Query Web Part List Override

    I have modified a Content Query web part to show all checked out documents across my site collection. I used this property to get the checked out documents: <property name="QueryOverride" type="string"><![CDATA[<Where><Geq><FieldRef Name="CheckoutUse

  • Why do I see weird characters when I run javac?

    Here is what I received at my window cmd when I do, javac C:\java>javac MortgageWindow.java ╫?╥Γ?║ MortgageWindow.java ╩╣╙├╗≥╕▓╕╟┴╦╥╤╣?╩▒╡─ API?? ╫?╥Γ?║ ╥?┴╦╜Γ╧Ω╧╕╨┼╧???╟δ╩╣╙├ -Xlint:deprecation ╓╪╨┬▒α╥δ?? It apparently compiled successfully though.