Check if user is connected

Hi,
How can i check if the current user is connected in oracle 10g?
In forms 6i, we used to following check to know if the user is connected or not:
if get_application_property (DATASOURCE) = 'ORACLE' then
p_boolean := true;
else
end if;
In 10g, this check returns "ORACLE" even if not connected !
Thanks in advance

Try it:
FUNCTION NotLoggedOn RETURN boolean IS
  Dummy varchar2(1);
BEGIN
  select 'x' into dummy from dual;
  return FALSE;
EXCEPTION
  when OTHERS then
    if SQLCODE in (-1012, -- Not logged on
                    -28,   -- Your session has been killed
                    -3114  -- Not connected to ORACLE
                    ) then
      return TRUE;
    end if;
    raise;
END;Regards

Similar Messages

  • Trace Users Currently Connected to Application

    Hi,
    I want to see the list of users who are currently connected to Application.
    I had set the Profile Option "Sign-On Audit" at "Form" level.
    Now I am monitoring the database using "Security:Users -> Monitor" option and throuth the sql query mentioned below. I am getting different output from both the ways.
    select distinct fu.user_name User_Name,fr.RESPONSIBILITY_KEY Responsibility
    from fnd_user fu, fnd_responsibility fr, icx_sessions ic
    where fu.user_id = ic.user_id AND
    fr.responsibility_id = ic.responsibility_id AND
    ic.disabled_flag='N' AND
    ic.responsibility_id is not null AND
    ic.last_connect like sysdate;
    Please let me know how to check the users currently connected to the application and their logged in time.
    Thanks and Regards
    Amith

    After successfully completing the request "Purge Signon Audit" i tried to monitor the users, it shows all the users connected to the Application today. It does't display the users who are currently connected to APPS Server. This is an expected behavior since you have "ic.last_connect like sysdate;" in your query. If you want to check the users who are connect in the last in the past (15/30 minutes or 1 hour) please refer to:
    Note: 295206.1 - How to Count Total Number of Users Connected to ORACLE Application
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=295206.1

  • Ldap - how to check how many users are connected?

    Hi Guys,
    Please help me.
    We have iPlanet installed using LDAP. I want to check in ldap console that how many users are connected currently and monitor that.
    please tell me how can i do it
    thanks

    Hi Noor,
    Thank you for posting in Windows Server Forum.
    From your description I can understand that you want the user name with app they have in their session.
    You can achieve with below command.
    Query process User name
    Displays information about processes running on a terminal server. You can use this command to find out which programs a specific user is running, and also which users are running a specific program.
    More information:
    Query process
    http://technet.microsoft.com/en-us/library/bb490798.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • I want to check that how many users are connected to the wifi which i m using at present

    i want to check that how many users are connected to the wifi which i m using at present???

    Go to Utilities > Airport Utillity
    If you click on your router it should show you the "wireless clients" that are connected

  • How to Check when the user is connected to different desktop.

    How to Check when the user is connected to different desktop.Sometimes the user maynot see the theme in the personalize theme list. In that case the person must be using different kind of desktop.How to check, I need a path.And how to apply the theme to that user?
    Thanks,
    Paturi

    Hi,
    you can create the new portal desktop from
    System Administration => Portal display => Desktop and Display Themes
    Select your folder from Portal Content and from its context create new Desktop.
    Add The Framework page and the theme to this desktop page.
    Go to your folder from Portal Content and from the context of the framework page select add framework page to portal desktop.
    Adding Theme to desktop
    From Portal content select Theme folder and select the theme right click it and select Add theme to Portal Desktop.
    Create rule for the Desktop.
    Navigate to System Administration => Portal Display => Desktop and Display Themes Portal Content => Portal Administrators => Super Administrators =>main_rules.
    Click Add IF Expression.
    create the expression if user = xyz then click on apply
    Select the then clause of the if and navigate to your folder where Desktop is created ,Add it and Click Apply.
    Save the Changes to the rule.
    Hope it helps you.
    (reward points if its helpful)
    Thanks,
    Gunjan

  • Backup message error -SAP system is running or SAP user is connected to dat

    Hello ..
    when the backup started i got this message error ..before starting the backup, the shell shutdown the sap system but below message was showed
    BR0262I Enter database user name[/password]:
    BR0055I Start of database backup: bedvugxg.aff 2010-08-08 05.31.48
    BR0484I BRBACKUP log file: /oracle/AAA/sapbackup/bedvugxg.aff
    BR0477I Oracle pfile /oracle/AAA/102_64/dbs/initAAA.ora created from spfile /oracle/AAA/102_64/dbs/spfileAAA.ora
    BR0068E SAP system is running or SAP user is connected to database AAA - database cannot be shut down
    BR1025I Please shut down SAP system first or use the 'offline_force' option
    BR0056I End of database backup: bedvugxg.aff 2010-08-08 05.31.48
    BR0280I BRBACKUP time stamp: 2010-08-08 05.31.49
    BR0054I BRBACKUP terminated with errors
    [Major] From:  "OMNISAP" Time: 08/08/10 05:31:49
    BRBACKUP /usr/sap/AAA/SYS/exe/run/brbackup -t offline -d util_file -c -m all -u hpbkup/******* returned 3
    i am new on this, what should i review into the db?
    Regards and thanks in advance
    Dma.

    Hello Daniela,
    you try to perform an offline backup (which is a very uncommon way nowadays) and your SAP system is not down.
    This is also described in the official documentation:
    http://help.sap.com/saphelp_sm32/helpdata/en/0d/d309664a0c11d182b80000e829fbfe/content.htm
    offline: Database backup in offline mode, in other words, the database is shut down during backup. When you select this parameter, BRBACKUP checks that no SAP system users are connected to the database. If an SAP System is active, the database is not shut down and BRBACKUP terminates the process with an error message (message number BR0068E).
    Regards
    Stefan

  • User named "Connected" logged on to my FTP server

    I was checking out the activity on my server and found that I had a user with the name "Connected" logged into my FTP server as an authenticated user from address 218.188.21.181. I checked the system log and all I can find for entries on this IP address are repeated login failures.
    My question is why does it show an active "Authenticated" connection from that IP address in Server Admin with a bogus name of "Connected", when the system log only shows entries from that IP address as repeated login failures? How can I tell if this person logged in successfully since successful logins are not logged?

    This is all that I can find in the system log for that IP address. From what I can tell (system.log does not show successful FTP connections from what I can see), he has not connected. If he has, he has not done anything over FTP. I have every option selected for FTP logging, so any directory change, or file transfer would be logged. Anonymous access is disabled and I have gone over every share to make sure that none of them have guest access enabled. What bothers me is when looking at the FTP service in Server Admin, under the connections tab, it shows the following connection:
    Name: connected
    Type: Authenticated
    Address: 218.188.21.181
    Activity: IDLE
    Other (known) users are listed as well, and when I look at the activity log, I can see that they are uploading/dowloading files from the server as expected. I just want to know why I have this user named "connected" that appears to be connected to the server.
    System.log:
    Jan 22 18:09:46 minime ftpd[132]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 18:19:52 minime ftpd[689]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 18:30:05 minime ftpd[1138]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 18:40:29 minime ftpd[1652]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 18:51:01 minime ftpd[1853]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:01:43 minime ftpd[2001]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:12:34 minime ftpd[2269]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:23:33 minime ftpd[2452]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:34:41 minime ftpd[2610]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:45:58 minime ftpd[2792]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 19:57:24 minime ftpd[2967]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 20:08:59 minime ftpd[3129]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 20:20:43 minime ftpd[3446]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 20:32:36 minime ftpd[3570]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 20:44:38 minime ftpd[3675]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 20:56:49 minime ftpd[3769]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 21:09:09 minime ftpd[3868]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 21:21:42 minime ftpd[4085]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 21:34:20 minime ftpd[4164]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 21:47:07 minime ftpd[4264]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 22:00:04 minime ftpd[4383]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 22:13:10 minime ftpd[4573]: repeated login failures from 218.188.21.181 [218.188.21.181]
    Jan 22 22:26:24 minime ftpd[4731]: repeated login failures from 218.188.21.181 [218.188.21.181]

  • How to check whether User is alreadylogged in or not

    Hi..I want to check whether Particular User is already logged in or not ?? I had userid,password and status in my database.
    If anybody shows me how to implement it ??
    Reggards
    Chintan

    If you want to prevent multiple logins happening, use a profile on the database server that limits a login to a set number of simultaneous connections.
    If you just ant to check which users are logged in, the v$session table will have that information.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Domain users cannot connect to the network folders when logged in via rds remote apps

    Hi,
    recently I setup an RDS farm for remote apps on server 2012 r2.
    all users can connect to the apps published. no problems there.
    but when users connect via rds they cannot connect to the networkfolders and cannot store the resultance of there work (docx and xlsx files)
    all users are normally connected to the networkfolders using a small login batch file handing down the unc path needed. when I log in as domain admin, also using a login batch, connections are setup correctly. It seems to me to be an security issue on the
    rds session host.
    how to alter this?
    greetz, Fons
    Fons system and network engineer Balie Amsterdam

    Hi,
    Thank you for posting in Windows Server Forum.
    We use WMI to communicate with the RDSH server. Various issues can cause WMI to deny access or return error codes. Here's a few things you can try:
    1.  Check if the "TS Web Access Computers" security group on the RDSH server has incorrect permissions in DCOM and/or WMI:
       For checking DCOM security settings:
       1. Start the Component Services MMC snapin
       2. Navigate to Component Services -> Computers -> My Computer
       3. Right-click on My Computer and select properties
       4. Go to the COM Security tab
       5. Under Access Permissions, click the Edit Limits button
       6. Ensure that TS Web Access Computers is in the list, with all of the permissions set to “allow”.
       7. Under Launch and Activation Permissions, click the Edit Limits button
       8. Ensure that TS Web Access Computers is in the list, with all of the permissions set to “allow”.
       For checking WMI security settings:
       1. Start the WMI Control MMC snapin
       2. Right-click the WMI Control node and select properties
       3. Go to the Security tab
       4. Navigate to Root->CIMV2->TerminalServices
       5. With TerminalServices selected, click the Security button
       6. Ensure that TS Web Access Computers is in the list with Execute Methods, Enable Account, and Remote Enable set to "allow"
    2.  Verify the RD Session Host server's firewall allows WMI calls.
    3. Verify that the RD Connection Broker hasn't lost its trust relationship with the domain.
    4. See if non-RDS related WMI calls can be successfully made to the RDSH server. This can help differentiate between a general WMI issue and an issue calling the RDS WMI provider.
    (Quoted from following thread.)
    RemoteApp Source not working from RDWeb
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/173d4546-e12f-47c1-ac66-8b4f69826892/remoteapp-source-not-working-from-rdweb?forum=winserverTS
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Query Builder to find user in connection of unv

    Hello
    I have a question on checking user in connection. We have recently moved to 4.1 from 3.1. We are usign new ID in our connections in migrated legacy olap universes... but still there are few jobs in our bw ssytem that runs under old 3.1 id.. we want to know which connection is using lets say 'OLDID'.  is that possible to find out.

    When testing the "current user" for group memberships, I prefer to do it locally using the user's logon token rather than having to query the directory. This has the advantage of automatically dealing with nested group memberships, and working
    with local / builtin groups as well. Something along these lines:
    function Test-CurrentUserIsMember
    [CmdletBinding()]
    param (
    [Parameter(Mandatory = $true)]
    $Group
    $sid = $Group -as [System.Security.Principal.SecurityIdentifier]
    if ($null -eq $sid)
    $account = $Group
    if ($account -isnot [System.Security.Principal.IdentityReference])
    $account = [System.Security.Principal.NTAccount][string]$Group
    try
    $sid = $account.Translate([System.Security.Principal.SecurityIdentifier])
    catch
    throw "Group '$Group' could not be resolved to a Security Identifier"
    return ([System.Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains $sid)
    if (Test-CurrentUserIsMember -Group 'DOMAIN1\Group1')
    # User is a member of the group (directly, or via nested group memberships.)
    Write-Host "Is Member"
    else
    # User is not a member of the group.
    Write-Host "Is Not Member"

  • Users cannot connect BPC Excel, Admin Console except bpc_sysadmin

    Hi experts!
    We use MultiServer BPC 7.5 MS sp06 Installation
    Servers
    1. bpcweb - WEB (IIS)  on Windows 2008 R2 x 64 (in AD)
    2. bpcapp - BPC App Server on Windows 2008 R2 x 64 (in AD)
    3. bpcdb - DB/OLAP MS SQL Server 2008 R2 on Windows 2008 R2 x 64 (in AD)
    Installation on AD users and OK, Diagnostic on Server Manager - OK
    We use AD authentification and Local too.
    I have added 2 users to Admin TEAM with full rights on AppShell and on our AppSet: one user from AD another from Local AppServer
    Users can connect into BPC Web, can select AppSets and Applications.
    But when I try connect to BPC Excel or Admin Console - after I enter user login, password and domain - appear message
    "Couldn't authetificate user id or password. Back and check, that entered valid credentials" (translation from Russian).
    And when I try connect by bpc_sysadmin everything OK.
    Thank you for help
    Best regards
    Iaroslav

    Hi!
    All versions of OS, SQL, IIS, BPC and other are  the same versions on all Environments, same AD.
    Our Environmets:
    DEV - Single Server - all connections - OK
    TEST - MultiServer (1: BPC App/WEb; 2: DB/OLAP) - all connections - OK
    PROD - MultiServer (1: BPC App;2: Web;  2: DB/OLAP) - connect to Excel and Admin Console - Error
    Best regards
    Iaroslav

  • How to find out how many users are connected to Exchange 2013 servers in "Online" mode? This is coz, online mode causing server performance issues in our environment

    All, Any script or method to find out how many users are connected to exchange servers in online mode?
    Manju Gowda

    Hi 
    You have to get the "RPC Client Access" log file in your CAS server. There you can see a column called "client-mode" and it has two modes such
    as "classic" and "cached". From there you can get the two different client assess modes and their corresponding users.
    probably take this file openup on excel and filter to see the two modes
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • Cannot connect to abap server, please check your abap server connection

    Installed new NW BPC 7.5 system on windows 2008 server but get the error as follows
    when logon to BPC server:
    "Cannot connect to abap server, please check your abap server connection".
    "define system user group tab" is inactive in server manager also.
    Server Diagnostic errors for SAP Server Connection:
    Database Connection
    Status Connection Error
    as per note 1385864 but this note has not helped get past this status with installation.
    User Type value is either set to Communication Data for all three users (BPC_ADMIN, BPC_SYSADMIN, BPC_USER).
    and these accounts are not locked.
    Any ideas for these errors?
    Regards,
    Aidan

    Hi Aidan,
    "Your logon id (domain\user) does not have SystemAdmin rights; some functionality
    is disabled."
    This is caused by the fact that the user you are logged in as isn't in the UJA_SVR_DEFAULT table, the SYSADMIN field needs to have a value that contains your user id (i.e. DOMAIN\USER)   . You can set this up with the UJA3_WRITE_SYS_USERS program.
    "When I try to install APPshell the following errors occur:
    @8O@ UJA_DATA_CHECK E 006 Application PLANNING's multiprovider /CPMB/ATMKOOE not exist in BW
    @8O@ UJS_EXCEPTION E 003 Errors occured during "after import" method call during activation"
    Aidan, sounds like something went terribly wrong during your activation process. Do this, Clean the appset with the UJS_ACTIVATE_CONTENT program and make sure that everything is completely deleted. Make sure that there is a lot of memory available for the activation and try it again.
    It should work.
    Hopefully this helps you.
    Cheers, Scott

  • Remote Desktop Connection attempted with 2 users already connected no longer gets dialog showing who is connected and option to force user off

    On Windows 2008 Server R2, when the maximum number of users are connected via Remote Desktop (2) and another user attempts to connect via Remote Desktop, the user is prompted with a login dialog. Upon login, a dialog is shown with the User Id's of the
    users who are connected, their current state (active or idle for x minutes) and it gives you the option to request access from a user or to force a user off. Recently our server stopped displaying this message and now only gives an error message that it cannot
    connect. It does not show the login dialog, just an immediate connection error message. So now we don't know who is logged into the server. This presents a problem with many users who need to deploy software or manage server resources. What setting could have
    changed that would stop displaying the login and the current users dialog? Thanks!

    i can't seem to reproduce this, I played around with my server's NLA settings, looked at RDS GPOs, the options in the RDP listener, checked the user account in AD, just can't see what would be blocking this
    would it make a difference if one of the RDP spots is occupying the server's console or not?
    are the users trying to come in when the two sessions are already used up using the /admin or /console switch?
    in the meantime, you can try using tsadmin.msc to kick people off
    you may also want to try testing this with various different OS and RDP client versions to see if that's the issue. win7 with RDP 8.1 client doesn't seem to have any problems for me

  • How to check ABAP and Portal connections

    Hi
    I was told to check ABAP and Portal connections. What does that mean? And what and where to check?
    Thanks
    Annie

    Hi
    Thanks for your reply.
    We are on BI 7. SP16.
    When i run that in se38, i am getting the following information: No default in RSPOR_T_PORTAL and no user parameter RSPOR_DEFAULT_PORTAL" when i clicked on yes(tickmark), view BI_Content of web template 0ANALYSIS_PATTERN(A) is displayed
    There are two options with check box are present 1. 30 template present (Unchecked) 2. BI- Template Present (checked), and a big XML code is displayed.
    When i executed in browser mode, it says Windows cannot find'/irj/servlet/prt/portal............... make sure you typed the name correctly and then try again. to serch for a file, click the start button, and then click search"
    What does that mean?
    Regards
    Annie
    Edited by: Annie on Nov 17, 2008 5:38 AM

Maybe you are looking for

  • Please Help !  Exception in closing resultset,statement.

    In an application developed on , i am closing the resultsets and statements in finally block as finally {      if (resultset != null) resultset .close();      if (statement != null) statement.close(); the above block does not take care of exceptions

  • Any way to get rid of the status bar?

    hey there, i use safari 3.0.4 on my 10.4.11 macbook, and i know it's nothing really, but it bugs me from an aesthetical point of view.. i don't have the status showing ever, but sometimes when i click a link and a new window opens, the status bar wil

  • Can no longer access internet on Wifi, 3g works fine

    For some reason, my iPhone 4 has stopped getting internet access when on wi fi. It gets on the network fine, and all other devices have no problem with this wi-fi connection (Airport Extreme). The phone gets on the web fine w/3G. I've reset everthing

  • Lo cockpit---doubt plz

    Hi All, i have changed a Datasource in Lo cockpit...by adding a field to the extract structure and then i even regenrated the datasource in Dev as well and then activated it now after the change its green and i even checked the datasource in rsa3 now

  • Getting Weird OS Behavior

    I've been setting up my new Mac Pro. I removed the HD that came with the computer since I bought a larger drive (WD6400AAKS, low level formatted writing zeros once). Instead, I cloned over a drive (with SuperDuper) that was in a 1st gen Mac Pro runni