Active users and connections in v$session

How can I write an SQL script or query to find the following :
1. The total number of times a user called BRIGG connects to the database in a day(24 hour period)
2. The STATUS in V$SESSION could be ACTIVE or INACTIVE. I needed to track as to how many times, the user BRIGG was ACTIVE on a given day(24 hour period)
Thanks

1.
You can audit user logons with the database trigger and then run sql over your own audit table (http://www.dba-oracle.com/art_builder_sec_audit.htm)
or
you can use oracle audit trail (http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/audit.htm#1108)
to audit brigg's session using
audit session by brigg;
Check out this article - http://www.securityfocus.com/infocus/1689
2. I don't think there is straightforward way to do it. You can wite the procedure or script to
select sysdate,status,username from v$session where username ='BRIGG' ;
run it at desired interval (i.e every second) and capture the output in the table for the later analysis.
What are you trying to achive by 2? I don't see a lot of sense in monitoring ACTIVE/INACTIVE status of the session - what kind of infromation are you trying to extract from it? May be there is another way ...
Mike

Similar Messages

  • Active users and responsibilities r12

    Is there a query for R12 of oracle EBS to list all active users and the responsibilities they have been assigned to? I only want to data to return the list of responsibilities for active users, i.e. those without an end_date.

    The following query finds all the responsibilities that are assigned to a user. This query can be useful if you want to know if a user has a particular responsibility or any responsibility that has been end dated. However, if you just want to see the current "Active" responsibilities of the user, uncomment the "FURG.END_DATE" condition (very bottom line of the query).
    In the following example, I used "AMOHSIN" as my user name to list all my responsibilities.
    -- Query to find all responsibilities of a user
    SELECT fu.user_name                "User Name",
    frt.responsibility_name "Responsibility Name",
           furg.start_date             "Start Date",
           furg.end_date               "End Date",      
           fr.responsibility_key       "Responsibility Key",
    fa.application_short_name "Application Short Name"
    FROM fnd_user_resp_groups_direct        furg,
           applsys.fnd_user                   fu,
    applsys.fnd_responsibility_tl frt,
    applsys.fnd_responsibility fr,
           applsys.fnd_application_tl         fat,
    applsys.fnd_application fa
    WHERE furg.user_id             = fu.user_id
    AND furg.responsibility_id   =  frt.responsibility_id
    AND fr.responsibility_id     =  frt.responsibility_id
    AND fa.application_id        = fat.application_id
    AND fr.application_id        =  fat.application_id
    AND frt.language             =  USERENV('LANG')
    AND UPPER(fu.user_name)      =  UPPER('AMOHSIN')  -- <change it>
    -- AND (furg.end_date IS NULL OR furg.end_date >= TRUNC(SYSDATE))
      ORDER BY frt.responsibility_name;
    source:- Oracle Apps R12 Help: Query to find all responsibilities of a user
    ApPsMaStI
    sharing is Caring

  • Display Active users and there username

    Hi im really stuck im trying to build a small chat
    application for my website but iv come across somthing which has
    really stumped me i need to be able to display how many active
    users are currently in each chatroom but also there usernames any
    advice would be good as im pulling my hair out

    The following query finds all the responsibilities that are assigned to a user. This query can be useful if you want to know if a user has a particular responsibility or any responsibility that has been end dated. However, if you just want to see the current "Active" responsibilities of the user, uncomment the "FURG.END_DATE" condition (very bottom line of the query).
    In the following example, I used "AMOHSIN" as my user name to list all my responsibilities.
    -- Query to find all responsibilities of a user
    SELECT fu.user_name                "User Name",
    frt.responsibility_name "Responsibility Name",
           furg.start_date             "Start Date",
           furg.end_date               "End Date",      
           fr.responsibility_key       "Responsibility Key",
    fa.application_short_name "Application Short Name"
    FROM fnd_user_resp_groups_direct        furg,
           applsys.fnd_user                   fu,
    applsys.fnd_responsibility_tl frt,
    applsys.fnd_responsibility fr,
           applsys.fnd_application_tl         fat,
    applsys.fnd_application fa
    WHERE furg.user_id             = fu.user_id
    AND furg.responsibility_id   =  frt.responsibility_id
    AND fr.responsibility_id     =  frt.responsibility_id
    AND fa.application_id        = fat.application_id
    AND fr.application_id        =  fat.application_id
    AND frt.language             =  USERENV('LANG')
    AND UPPER(fu.user_name)      =  UPPER('AMOHSIN')  -- <change it>
    -- AND (furg.end_date IS NULL OR furg.end_date >= TRUNC(SYSDATE))
      ORDER BY frt.responsibility_name;
    source:- Oracle Apps R12 Help: Query to find all responsibilities of a user
    ApPsMaStI
    sharing is Caring

  • ITunes stops working when it's not the active window and connected to the internet

    Hi,
    I have a problem with iTunes where it crashes, only when the wifi is on and connected to a network.
    Usually it occurs when I click onto another application outside of iTunes.
    I've tried reinstalling both iTunes and the Apple Application Support but the problem still occurs.
    I'm also on Vista if anyone has any ideas that would help?
    ~Jenny

    Along with the audio control surface, this would be a VERY welcome feature in my opinion.
    For those concerned about CPU drain, it should be possible to turn this feature on or off.
    When I'm editing fluidly in FCP I do in fact leave the timeline playing whilst I go to other windows to select an effect, tweak a bit of audio or even move to a different app - there's nothing unusual about this at all.
    Ultimately we all have our own ways of editing, but trust me, when you've been used to (and seen the benefit of) an NLE 'feature' you really miss it when the manufacturer chooses not to include it.
    Thanks
    ADAM READ
    InterMedia

  • Can admin.jar create oc4j users and connection pools that use those users

    Hi
    I have an ADF BC application written in jdev 10.1.3.3 deployed to standalone oc4j 10.1.3
    When I deploy the application I use the enterprise manager to create the users on the security provider/realms tab. I then set up the connection pools in jdbc resources to use those users via the username and indirect password fields. I also set the minimum number of connections on the attributes tab.
    I have read the following document but I cannot find any reference to setting up users, connection pools with indirect passwords or minimum number of connections.
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#BABHJAFE
    Is it possible to do using admin.jar?
    thanks
    paul schweiger

    I'm not sure about setting indirect passwords on the connection pool creation -- never tried it. It's probably treated purely as a lexical string, so may well be able to to issue the CP creation command with the "->USER" entry as the password.
    To create realms, users, groups, etc. you need to use the $ORACLE_HOME/j2ee/home/jazn.jar utility: http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/admintool.htm#g1022417
    The options for connection pool parameters such as min/max connections aren't directly expressable in the command. I'll need to look at the code and see if they can be passed in as non checked options via the factoryproperties. If not, then you can create a JMX client to use the MBeans that are created for the CP post deployment to change its behaviour.
    -steve-

  • Is there anyway to take a windows 7 computer that the user is completely setup and configured and connect to a windows 2003 server

    I have spent hours setting up a windows 7 computer with programs cad files and other software and I would like to log in to a windows 2003 server
    without having to start over. Is there anyway to do that without losing anything?
    Scott

    Hello, I can't believe your the only one that answered my question.
    What I have is 7 pc's that I bought in 2007 they are "HP M9077C" I am trying to
    upgrade all of them the same way. I upgraded the memory to 8gb, replaced the
    video cards to nvidia quadro k600 and installed windows 7 ultimate on all of them.
    I then took just 1 of the computers and installed all of the software and changed the
    settings to my preference which took hours to do. After I had the 1 computer
    configured exactly the way that I wanted it I made a mirror image backup of it.
    I then took that backup and restored it on the rest of the 6 computers that I have.
    Now here comes the problem I need to be able to hook up the computers to my
    windows 2003 small business server. When my IT guy did that he said that he had
    to create a different user to connect to the file server when he did that my desktop
    was empty and all of the settings are on the original user. Is there anyway to keep
    the settings from the original user and connect to the file server so I don't have to
    spend hours on each one of the computers. If there is a way to copy the original
    user's settings that would be great. I also need to change the user name on each
    computer. Please let me know.
    Thanks Scott
     

  • Want to check Active Users in Oracle EBIZ R12 from backend.

    Want to check Active Users in Oracle EBIZ R12 from backend. Active users concurrent is showing all the user available in EBIZ can any one help me to find out
    what is the actual user available in ebiz unlock unexpired.

    956731 wrote:
    Want to check Active Users in Oracle EBIZ R12 from backend. Active users concurrent is showing all the user available in EBIZ can any one help me to find out
    what is the actual user available in ebiz unlock unexpired.Please see old threads for the query you need to run:
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Users+AND+Connected+AND+Query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Users+AND+Connected&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Users and pw's from NT

    Can portal take users and passwords from NT session? i can even use only NT user if it is possible.
    How can i do that?
    Thanks in advance

    I've run into this issue as well. My client was using the Snow Leopard Apple Server on a Mac Mini. We checked the UPS units and they were solid with voltage regulation in place, but users and groups were randomly missing. We would re-add them and others would go missing.
    We upgraded to Lion and Lion Server, but the problem persists. I've run disk permissions on the internal raid, which was a bit of an exercise in itself since Disk Utility is broken on the Mac Mini with a raid drive, but terminal was able to fix any issues. So far it seems to be working, but the problem seems random.
    What's surprising is I have found next to no other reports of a similar issue. At this point, it appears to be a hardware failure of some sort. There doesn't seem to be a software answer if the disk permissions fix doesn't help it. I'm sitting on pins and needles at this point hoping this works.
    Did the repair permissions fix your problem, Chris?

  • "too many active users"

    Had an MS Access database on a Drobo-FS that a few staff were sharing.  Worked fine.
    Set up a new Lion server mac mini and moved the database to that machine and set up SMB sharing. (server's running 10.7.2 Server).
    Works fine for all afp and smb file-sharing uses *except* for those users who are accessing a Microsoft Access database sitting on a shared volume.   Even if only one user is active, they get "Too Many Active Users" and the database won't open.  I see this when using Access 2007 and/or Access 2010.
    If I drag the access db file from the server to a local volume, it opens and runs fine.
    Guessing it's an edge case for the new smb software in Lion.
    Have reported this to Apple but no solution yet.  If any one has a workaround (or clue), I'd love to hear it.

    The problem is due to Lion not supporting byte level file locking on its implementation of SMB which is required by some older applications such as Excel 2003, Pastel accounting, Caseware and MS Access.. Upgrading the app sometimes fixes it as in Excel. If the latest release does not resolve it then the only way I have found to fix this is to disable SMB sharing in Lion and install a 3rd party SMB sharing stack. I tried Samba but could not get it to work properly even using SMBUp which takes a lot of pain out of the install. I eventually found an app from Thursby.com called Dave which works really well, unfortunately it does not integrate with OpenDir at this stage but you can create users in the local dir for use with Dave while continuing to use OD for other stuf. Ive asked their developers to consider adding LDAP support. If more people ask then they might do it. The big downside is that it is really expensive at over $100.
    I've not tested Lion 10.7.3 update yet to see if it resolves the file locking problem. I plan to test this during the week.

  • Managing Disco Users and reports

    Hi,
    I am finding it very difficult to manage the increasing discoverer users and reports.
    I need to develop a tool or process to report, manage Discoverer active users and reporting for license compliance.
    How to review user reports for possible deletion/preservation and final deletion of a user database logon?
    How to delete a list of users?
    How to preserve any shared reports that are actually used.?
    How to clean up and delete their unused reports?
    How to report: all active in a year (in last 6 months rolling), top 50, inactive?
    any suggestions on how to get started with this?
    Visakh

    Marcelo,
    You can manager users using EUSM (executable) found on the oid/ovd installation. Global/local role has to be created on the database side. All EUS mapping can be done on the OID or OVD side using "eusm". There is a metalink note that gives lots of examples on this. Or you can also use enterprise manager grid control that lets you do the same.
    As or OVD vs. OID, I am not aware of any major limitations. just operational limitations. Since OID is a ldap server by itself, you can do a lot of tracing/auditing yourself instead of relying on other LDAP admins (unless you manage other ldap servers also). We are currently implementing oid 11.1.1.2 for EUS and I know of my previous employer who is in the middle of implementing OVD 11g (with sun one directory).
    Regards,
    Shaji
    http://www.linkedin.com/in/shajivps

  • Bulk create Active Directory Users and Groups in PowerShell using Excel XLSX source file instead of CSV

    Hi Scripting Guy.  I am a Server Administrator who is very familiar with Active Directory, but new to PowerShell.  Like many SysAdmins, I often need to create multiple accounts (ranging from 3-200) and add them multiple groups (ranging
    from 1 - 100).  Previously I used VBS scripts in conjunction with an Excel .XLS file (not CSV file).  Since VBS is essentially out the door and PowerShell is in - I am having to re-create everthing.
    I have written a PowerShell script that bulk creates my users and adds them to their corresponding groups - however, this can only use a CSV file (NOT an XLS file).  I understand that "CSV is much easier to use than Excel worksheets", but
    most times I have three sets of nearly identical groups (for Dev, QA and Prod).  Performing Search and Replace on the Excel template across all four Worksheets ensures the names used are consistent throughout the three environments.
    I know each Excel Worksheet can be exported as a separate CSV file and then use the PowerShell scripts as is, but since I am not the only SysAdmin who will be using these it leads to "unnecessary time lost", not to mention the reality that even
    though you clearly state "These tabs need to be exported using this naming standard" (to work with the PowerShell scripts) that is not the result.
    I've been tasked to find a way to modify my existing PowerShell/CSV scripts to work with Excel spreadsheets/workbooks instead - with no success.  I have run across many articles/forums/scirpts that let you update Excel or export AD data into an Excel
    spreadsheet (even specifying the worksheet, column and row) - but nothing for what I am trying to do.
    I can't imagine that I am the ONLY person who is in this situation/has this need.  So, I am hoping you can help.  How do I modify my existing scripts to reference "use this Excel spreadsheet, and this specific worksheet in the spreadsheet
    prior to performing the New-ADUser/Add-ADGroupMember commands".
    For reference, I am including Worksheet/Column names of my Excel Spreadsheet Template as well as the first part of my PowerShell script.  M-A-N-Y T-H-A-N-K-S in advance.
       Worksheet:  Accounts
         Columns: samAccountName, CN_DisplayName_Name, sn_LastName, givenName_FirstName, Password, Description, TargetOU
       Worksheets:  DevGroups / QAGroups / ProdGroups
         Columns:  GroupName, Members, MemberOf, Description, TargetOU
    # Load PowerShell Active Directory module
    Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
    Import-Module ActiveDirectory
    Write-Host " "
    # Set parameter for location of CSV file (so source file only needs to be listed once).
    $path = ".\CreateNewUsers-CSV.csv"
    # Import CSV file as data source for remaining script.
    $csv = Import-Csv -path $path | ForEach-Object {
    # Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
    $userPrincinpal = $_."samAccountName" + "@saccounty.net"
    # Create and configure new AD User Account based on information from the CSV source file.
    Write-Host " "
    Write-Host " "
    Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
    New-ADUser -Name $_."cn_DisplayName_Name" `
    -Path $_."TargetOU" `
    -DisplayName $_."cn_DisplayName_Name" `
    -GivenName $_."givenName_FirstName" `
    -SurName $_."sn_LastName" `
    -SamAccountName $_."samAccountName" `
    -UserPrincipalName $userPrincinpal `

    Here is the same script as a function:
    Function Get-ExcelSheet{
    Param(
    $fileName = 'C:\scripts\test.xls',
    $sheetName = 'csv2'
    $conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
    $cmd=$conn.CreateCommand()
    $cmd.CommandText="Select * from [$sheetName$]"
    $conn.open()
    $cmd.ExecuteReader()
    It is called like this:
    Get-ExcelSheet -filename c:\temp\myfilename.xslx -sheetName mysheet
    Do NOT change anything in the function and post the exact error.  If you don't have Office installed correctly or are running 64 bits with a 32 bit session you will have to adjust your system.
    ¯\_(ツ)_/¯
    HI JRV,
    My apologies for not responding sooner - I was pulled off onto another project this week.  I have included and called your Get-ExcelSheet function as best as I could...
    # Load PowerShell Active Directory module
    Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
    Import-Module ActiveDirectory
    Write-Host " "
    # JRV This Function Loads the Excel Reader
    Function Get-ExcelSheet{
    Param(
    $fileName = 'C:\scripts\test.xls',
    $sheetName = 'csv2'
    $conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
    $cmd=$conn.CreateCommand()
    $cmd.CommandText="Select * from [$sheetName$]"
    $conn.open()
    $cmd.ExecuteReader()
    # Set parameter for location of CSV file (so source file only needs to be listed once) as well as Worksheet Names.
    $sourceFile = ".\NewDocClass-XLS-Test.xlsx"
    # Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
    $userPrincinpal = $_."samAccountName" + "@saccounty.net"
    # Combine GivenName & SurName for DisplayName
    $displayName = $_."sn_LastName" + ". " + $_."givenName_FirstName"
    # JRV Call the Get-ExcelSheet function, providing FileName and SheetName values
    # Pipe the data from source for remaining script.
    Get-ExcelSheet -filename "E:\AD_Bulk_Update\NewDocClass-XLS-Test.xlsx" -sheetName "Create DocClass Accts" | ForEach-Object {
    # Create and configure new AD User Account based on information from the CSV source file.
    Write-Host " "
    Write-Host " "
    Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
    New-ADUser -Name ($_."sn_LastName" + ". " + $_."givenName_FirstName") `
    -SamAccountName $_."samAccountName" `
    -UserPrincipalName $userPrincinpal `
    -Path $_."TargetOU" `
    Below is the errors I get:
    Exception calling "Open" with "0" argument(s): "The 'Microsoft.Jet.OLEDB.4.0'
    provider is not registered on the local machine."
    At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:39 char:6
    + $conn.open()
    + ~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException
    Exception calling "ExecuteReader" with "0" argument(s): "ExecuteReader
    requires an open and available Connection. The connection's current state is
    closed."
    At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:40 char:6
    + $cmd.ExecuteReader()
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

  • 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

  • Exchange active sync cannot connect to server after migration mailbox user from exchange 2007 to exchange 2013 coexistence

    Hello, everyone, my name is rafl
    I have a problem with exchange 2013 active sync.
    I have installed exchange 2013 coexistence with legacy exchange 2007, I have to migrate user mailboxes: [email protected] from exchange 2007 to exchange 2013.
    but any problem with active sync connection on the mobile device after moving mailbox user. I reconfigure the exchange ActiveSync external connection domain (latest.domain.com) on mobile device replacing legacy exchange ActiveSync external connection domain
    (legacy.domain.com)
    the process of moving mailboxes successfully without error.
    Access OWA for exchange 2007 and exchange 2013 is running normally
    access mail from Outlook running normally
    Certificate request has been installed and has no problem with it
    The OWA virtual directory is configured for internal and external connections and different from the legacy exchange
    The autodiscover virtual directory is configured for internal and external connections and different from the legacy exchange
    ActiveSync virtual directory is configured for internal and external connections and different from the legacy exchange
    user mailboxes are still on exchange 2007 is not problematic.
    only problem with Exchange Active Sync on mobile devices, where I set up an email with android, iphone, windows phone. the error message: cannot connect to the server.
    but, if I create a new user and create user mailboxes directly in exchange server 2013, ActiveSync can run without error on mobile device, access through OWA, MsOutlook, Outlook Anywhere also run normally.
    only the results of user migration from exchange 2007 to exchange 2013 which is troubled with exchange ActiveSync connection.
    any ideas for this problem, and what should I check on the exchange server ..?

    i have run the activesync test connectivity and get some error :
    Testing TCP port 443 on host domain.co.id to ensure it's listening and open.
    The specified port is either blocked, not listening, or not producing the expected response.
    A network error occurred while communicating with the remote host.
    Elapsed Time: 3091 ms.
    Testing TCP port 443 on host autodiscover.domain.co.id to ensure it's listening and open.
    The specified port is either blocked, not listening, or not producing the expected response.
    A network error occurred while communicating with the remote host.
    Elapsed Time: 21072 ms.
    Testing TCP port 80 on host autodiscover.domain.co.id to ensure it's listening and open.
    The specified port is either blocked, not listening, or not producing the expected response.
    A network error occurred while communicating with the remote host.
    Elapsed Time: 21049 ms.
    I have allowed access to port 443 (https) and 80 (http) on the firewall and re-run testconnectivity, but still with the same results. if I enable active sync for users who created directly in Exch 2013 there is no problem with the ActiveSync, just a problem
    for users who moved from Exch 2007 to Exch 2013. @Android, iPhone, and Blackberry the error message "cannot connect to the server"

  • The user and the mailbox are in different Active Directory Sites

    Hi All,
    I have 2 site, each site have an Exchange Server 2010 SP1, let say Site HQ and Site DRC I monitored it with SCOM 2007 R2, site HQ successfully monitored, then I continue try to monitor DRC site. I executed new-TestCasConnectivityUser.ps1 at MBX DRC Site
    to create extest user.
    Then I try to execute command to test-connectivity, but it failed.
    Test-OwaConnectivity -TestType:Internal -MonitoringContext:$true -TrustAnySSLCertificate:$true -LightMode:$true | fl
    RunspaceId                  : 6b709fa5-0719-4be5-ae62-ec4b3617a6e0
    AuthenticationMethod        :
    MailboxServer               : CONMBX02.contoso.com
    LocalSite                   : CONMBX02.contoso.com
    SecureAccess                : False
    VirtualDirectoryName        :
    Url                         :
    UrlType                     : Unknown
    Port                        : 0
    ConnectionType              : Plaintext
    ClientAccessServerShortName : DRCCAS01
    LocalSiteShortName          : CONMBX02
    ClientAccessServer          : DRCCAS01.contoso.com
    Scenario                    : Reset Credentials
    ScenarioDescription         : Reset automated credentials for the Client Access Probing Task user on Mailbox server CON
                                  MBX02.contoso.com.
    PerformanceCounterName      :
    Result                      : Failure
    Error                       : [Microsoft.Exchange.Monitoring.CasHealthStorageErrorException]: An error occurred while t
                                  rying to access mailbox CONMBX02.contoso.com, on behalf of user contoso.com\extes
                                  t_xxxxxxxx
                                   Additional information:
                                   [Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in
                                  different Active Directory sites..
    UserName                    : extest_xxxxxxxx
    StartTime                   : 04/01/2012 20:46:19
    LaCONcy                     : 00:00:00.0156460
    EventType                   : Error
    LaCONcyInMillisecondsString :
    Identity                    :
    IsValid                     : True
    WARNING: No Client Access servers were tested.
    RunspaceId          : 6b709fa5-0719-4be5-ae62-ec4b3617a6e0
    Events              : {Source: MSExchange Monitoring OWAConnectivity Internal
                          Id: 1005
                          Type: Error
                          Message: Couldn't access one or more test mailboxes.
                          The service that is being tested will not run against these mailboxes.
                           Detailed information:
                          Local Site:DRCProduction
                          [Microsoft.Exchange.Monitoring.CasHealthStorageErrorException]: An error occurred while trying to
                           access mailbox CONMBX02.contoso.com, on behalf of user contoso.com\extest_xxxxxxxx
                           Additional information:
                           [Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in differen
                          t Active Directory sites..
    PerformanceCounters : {Object: MSExchange Monitoring OWAConnectivity Internal
                          Counter: Logon LaCONcy
                          Instance: DRCCAS01.contoso.com|DRCProduction
                          Value: -1000}
    any help appreciate it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Krisna Ismayanto | My blogs:
    Krisna Ismayanto | Twitter: @ikrisna

    Hi
       Removed existing test account on two site.
       Then created test account on DGC through new-TestCasConnectivityUser.ps1.
       Flushed Health Service on RMS.
    Terence Yu
    TechNet Community Support
    Hi
    What do you mean on DGC ? you mean I have remove both test account or just at DRC site only ?
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Krisna Ismayanto | My blogs:
    Krisna Ismayanto | Twitter: @ikrisna

  • Test-OutlookConnectivity fails with '[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sites'.

    I have a two site DAG, and the command is running from the alternate site where the databases are not currently being hosted. The following command...
    Test-OutlookConnectivity -Protocol:TCP -TrustAnySSLCert:$true -MonitoringContext:$true
    ...errors with the following output:
    An error occurred while trying to access mailbox CurrentlyHostingMBServerName.InternalDomainName, on behalf of user InternalDomainName\extest_bb13200232474
     Additional information:
     [Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sit
    es..
        + CategoryInfo          : OperationStopped: (Microsoft.Excha...onnectivityTask:TestOutlookConnectivityTask) [Test-
       OutlookConnectivity], CasHealthStorageErrorException
        + FullyQualifiedErrorId : F2F8AC0D,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    I thought this command would work based on the 'AllowCrossSiteRpcClientAccess: True' option on the DAG.  The command works well if run a CAS server in the active DB site.

    Hi,
    Exchange 2013 users use Outlook Anywhere to connect to CAS server. You may run the RCA to test the connectivity:
    https://www.testexchangeconnectivity.com/
    Thanks,
    Simon Wu
    TechNet Community Support

Maybe you are looking for