Get user details from OIM User From based on Last modified time stamp

Hi Gurus,
I have a requirement that i want user details from OIM(11gr1) User form based on some time stamp.
suppose my time stamp is 201401011130.
And i changed one user in user form at 201401011200 (let sau user name is mahesh)
now when i run the java code based on the time stamp i want mahesh details. How can i do this.
Please let me know.
Regards
Mahesh

This is how you can run sql query.
String query="write sql query";
Connection con=Platform.getOperationalDS().getConnection();
Statement st=con.prepareStatement(query);    // PreparedStatement is preferable instead of Statement
ResultSet rs=st.executeQuery();
while(rs.next())
String userlogin =rs.String("usr_login");

Similar Messages

  • Initial Loading of User Details into OIM 11g from Peoplesoft

    Hi,
    I wanted to pull user both (employee/contractor) details into OIM from People Soft. Which connector should i use.?
    PSFT User Management? or PSFT Employee Recon?
    Initially the users doesn't exist in OIM. I am looking for something like initial loading.
    Regards,
    Ashok

    Hi Kevin
    As per earlier version of PS ER connector, Oracle® Identity Manager Connector Guide for PeopleSoft Employee Reconciliation, Release 9.1.0, on section 3 Extending the Functionality of the Connector, there is guide on how to extend the connector to pull additional attributes from PS , by using peoplecode..
    But in Oracle® Identity Manager Connector Guide for PeopleSoft Employee Reconciliation,Release 11.1.1, am not able to find this information anymore.
    On how to pull additional attributes from PS like department, division and location, which is custom attributes in PS
    Please help !
    Many thanks

  • Get Inactive User in Domain based on Last Logon Time Stamp

    Dear Experts,
    I have used this code, but it is not displaying proper result, please help me how to display only "Daysinactive=90", for me it is display all the user.Please help me
    # Gets time stamps for all User in the domain that have NOT logged in since after specified date 
    # Mod by Tilo 2014-04-01 
    import-module activedirectory  
    $domain = "domain.mydom.com"  
    $DaysInactive = 90  
    $time = (Get-Date).Adddays(-($DaysInactive)) 
    # Get all AD User with lastLogonTimestamp less than our time and set to enable 
    Get-ADUser -Filter {LastLogonTimeStamp -lt $time -and enabled -eq $true} -Properties LastLogonTimeStamp | 
    # Output Name and lastLogonTimestamp into CSV  
    select-object Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp).ToString('yyyy-MM-dd_hh:mm:ss')}} | export-csv OLD_User.csv -notypeinformation
    Hari

    Hi,
    Use the -AccountInactive parameter of Search-ADAccount:
    http://ss64.com/ps/search-adaccount.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • R/3 job and get the details of variants like (from and to)

    Hi,
    How to find R/3 job and get the details of variants like (from and to) for that job.
    the job is extraction job and running for 4 hours in R/3 once atfer this job completes BW job will start executing. Now i have to analyse R/3 job that how many years of data it is extracting (from, to) and other useful information why it is taking time for 4 hours.
    Please let me know what transaction i have to use and how to check this information in R/3 side.
    Thanks,

    Hi........
    Go to SM37 >> select the job >> Click on Job log.........Check there whether u r getting any Clue or not...........Is this load is through PSA..........? if so check the records of the First data packet...........then the Last data packet............from there u can get some idea..................
    Also u can check the data in the Extractor.......is it a full load?.............Go to RSA3 >> Execute..........there check the data........
    Is it a LO datasource ? if so................Go to LBWE >> Click on maintenance link for your datasource........>> Here in the Right pane u can see the Structute associated with that Datasource ...........If u remove MC from those structure name............u will get the table name..............In those tables also u can check the data...............there should be some data field.............from where u can get some idea.........
    If ur Extractor is extracting data using some Function Module.............then open the datasource using RSA2.............there double click on the Exrtractor..............u will get the function module.................u can try to analyze the function module............
    For Variants..................select the job >> click on Step in the top >> then Go to in the top >> Variant..............but I don't think this will help u............this will tell u that this Extraction job is part of which chain or IP......
    Regards,
    Debjani..........

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Algorithm or pseudo code sought for getting the latest last modified time..

    Hi I need to write a program in java that lists the latest last modified time among the files in folders and its subfolder and also gets the size of the folder. In my case, average folder size is 9 GB. Could you please suggest any algorithm to achieve this?? I tried to implement it by gathering last modified times from folders and its subfolders recursively and storing the info in Vector and finally
    getting the max of the last modified times but it was horribly slow and memory hogging.

    Remove the part that stores the data in a Vector. You don't need to store any data to add up a series of numbers. And you don't need to store any data to find the largest of a series of numbers either. Just scan the directory recursively as you are already doing and keep track of the sum of the sizes and the max of the last-modified dates.

  • How can i get todays date as an yyyy-MM-dd format instead of Time stamp

    how can i get todays date as an yyyy-MM-dd format instead of Time stamp,i try to do it in the fallowing way
    <code>
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
         java.util.Date d = new java.util.Date();
              String s = d+"";
    Calendar cal1 = Calendar.getInstance();
         try{
         cal1.setTime(sdf.parse(s));
    }catch(Exception e){}
    </code>
    but i could not able to get,it throws error as an java.text.ParseException: Unparseable date: "Thu Jan 24 11:43:32 EST 2002" ,pl suggest me any solution.any help would be appreciated.
    Regards.

    Does string s have to end with ""?
    Try doing sdf.format(d) instead.

  • OIM11gr2 - How to get currently logged in user details using oim api

    Hi All,
    I have a requirement to retrieve currently logged in users profile in the process adapter.
    I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
    Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
    DOes any one has idea how to achieve this.
    PS. - i am using platform to retrieve API's.
    Thanks & Regards
    Swati Pandey

    You can get the logged in user name using the below java code:
    ADFContext adfCtx = ADFContext.getCurrent();
    SecurityContext secCntx = adfCtx.getSecurityContext();
    String user = secCntx.getUserPrincipal().getName();
    HTH

  • Extending user details: Label in user Profile

    Hello,
    I have followed the document "How to Extend User Details" to add custom properties to user details. However, although it is possible to add labels to the user details iView (which you can access from KM), it does not seem possible to add labels for these properties on the User Profile (which you access through Personalize->User Profile).
    I have checked <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=42&threadID=129068&messageID=1443674">this</a> post, and the answer refers to the User Details iView, not the User Profile maintenance.
    Regards,
    Martin

    Hello Anja,
    This is a nice surprise (I remember you from your visit here to SA Breweries).
    The labels display fine in the User Details iView, but in Personalise -> User Profile, only the field names show up, the way they have been defined, e.g. expertarea, as opposed to "Expert Area", just as in the screenshots in the How-To Guide. The entries save without a problem.
    In other words, the field labels show up just as you defined them in UM Configuration, but you have no ability to change them to proper descriptive texts (as you would with KM property labels).
    Regards,
    Martin

  • Script for Inactive computer from last logon time stamp

    Hi Freinds,
    I have a list of servers which include some specific servers (around 900 servers). now i need to check those servers which are not logged on from last 30 or 60 days. 
    I find the scripts which run against AD and list the servers but here i need to check from the specific servers. 
    I know this is possible but not sure how it can be. Please Help 
    Thanks.
    Anjani Kumar

    Hi Anjani,
    you really might want to try learning Powershell for yourself, if you have to manage hundreds of servers. That said, there are some fairly simple and obvious tools, with which you can do this:
    "Get-Content" gets contents from text files and stores it line by line into an array. Maybe a list of those servers?
    "foreach" allows you to loop through each item in an array and do something with the item.
    "Get-ADComputer" searches for computers in an AD. You can filter which computer-object you get (say - only get a computer that is named thus ...).
    If you have any questions about these commands, asking the powershell might help you (Example: Get-Help Get-Content -Detailed).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How to get specific file based on last modified

    Hi,
    I have a problem.
    what I am doing in my program is unzipping few files in c:\temp.
    the folder structure is like this
    c:\temp\patch\abc.doc
    c:\temp\patch\abc.txt
    c:\temp\patch\myfolder\xyz.doc
    c:\temp\patch\myfolder\myFile\xyz.txt
    what I mean to say is that, I have files bot directly in the folder patch or in subdirectories.
    then what I have to do is that I have to perform some kind of verification on these files and from here i have to put it some other location.
    so for getting the list of files in the directory I am doing this
    File fileDir = new File("C:\\temp\\patch");
    File[] fileList = fileDir.listFiles();what this does is returns all the subdirectories and files in the folder patch, but not the files in the subdirectory.
    so I trried doing this
    for(int j=0 ;j < fileList.length; j++){
    String newFileName = fileList[j].getName();
    String dir =  File.separator + newFileName;
    if(fileList[j].isDirectory()){
          newDir.append(dir);
        getFiles(newDir.toString());
       newDir = new StringBuffer();
       newDir.append(outputDir);
    }this code works fine when i run it for the first time.
    but when i run it second time it is giving some path like
    C:\temp\patch\myFolderC:\temp\patch\myFolder
    becasue alreday the folder temp contains the folders and files
    what is the msitake?
    And how do i get only the file that I am copying at this particular time excluding the earlier ones.

    can you also tell me the modification required in the code.
    Because thats where I am facaing the problem.
    It would be of great help if you could give me the modified code of what I have written.
    Since I am new to java I am not able to get the nuances of the code, but surely its a childs play for you I guess

  • 0FI_AR_4-Delta Time Settings based on Numeric Pointer Time Stamps

    Hi All,
    For Numeric Pointersettings for 0FI_AR_4, I checked the table of DELTA settings, the time stamps are different and it says GMT IN BWOM2_SETTINGS.
    So I am confused here whether for FI based on GMT timestamps or numeric pointer BAED on documents entered..
    say user entered a DOCUMENT clearing ON mONDAY AFTERNOON, WE HAVE BATCH UPDATE on TUESDAY MIDNIGHT, WHEREAS the document not picked up on TUESDAY batch and so the document is still not cleared in OUR report whereas cleared in SAP..
    whereas the same document CLEARED in wednesday midnight batch job...so it means there is a delay in picking up the document which is running every MIDNIGHT...
    Does anyone clearly explain how its picking and why? hope it is not based on GMT TIMING...
    Also I check another table, it has set the time limit of 2AM and whereas our TUESDAY batch runs before 2AM..whereas Wednesday batch runs after 2am, i am not sure whether it could be because of the above issue...

    Hi Durgesh,
      I checked this link..That's why raised it whether it really works based on the last part in the link based GLOBAL SETTING OF FI...
    If it considers 2AM and check the same settings in my system too, it could be the reason, why my data doesn't pupulate on TUESDAY ..I AM THINKING... is my assumption right???
    i am still waiting from our HQ team..will see whether that works or not..
    then will let you know...

  • Export Waveform Chart Plots data to spreadsheet file based on X scale (Time Stamp) min and Max Value

    Hi All,
    Query 1:I am trying to export the Chart data(Total plots 6 ) only between the X scale Min Time and Max time limit .
    But couldnt able to achieve that progammtically.
    is their anyway to achieve this.
    Query 2:Also ,In chart their is an  right click option to export data to excel,but when using this option the data get exported in its own temporary name(iv*****.tmp),i dont want this to happen.Instead the data expored using that option should be written in a file specified by me(everyting should happen in backend)
    pls suggest the best solution for above 2 queries.
    Thanks,
    Selvan.

    Hi selvan,
    1) read the chart history (or better keep a history in your own shift register) and limit the data to the XMin and XMax values (read all those chart settings from its properties). Then save the data using WriteToSpreadsheetFile…
    2) The right-click option is as it is. When you need different behaviour you need to program your own routine. Once you finished query 1 it will be no problem anymore to also solve query 2…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to get the last modified time for directory?

    Hi,
    I have to accomplish this.
    A folder c:\myfolder can literally contain anything files.. sub directories, fiels in sub directories.
    I have a thread monitoring c:\myfolder, basically people can dump files in any order into that directory and I have to trigger something when there is no activity on c:\myfolder for 10 secs.
    I tried lastModified() with File("c:\myfolder") but that seems to be working only if there is some change on root level of c:\myfolder, for eg if I have a sub folder c:\myfolder\subfolder and I copy some file into c:\myfolder\subfolder, then the lastModified() doesnt seem to be updatiing on the mail folder "c:\myfolder"
    Is there a way I can handle this situation?
    Any suggession is appreciated.
    Thanks in advance.

    I was looking to accomplish this using simple java
    code without any 3rd party involvment.Then you will have to monitor all the directories that people might dump files into. You can't expect Java to automatically deal with things that the operating system doesn't support just because those things happen to be your requirements.

  • Use files based on a date/time stamp in order

    I have a PL/SQL procedure that is using BFILE to pick-up and read a file. The file will have the same starting characters for every file followed by a date/time stamp: AAAA_09232009
    I need my procedure to use the file with the oldest date first and then rename the file after the procedure has run through it. Can anyone assist me in this? Below is the beginning of the procedure --Thanx in Advance:
    create or replace PROCEDURE XML_READ_FILE
    as
    v_bfile BFILE := BFILENAME('XML_DIR', 'AAAA_09232009.xml');
    v_clob CLOB;
    BEGIN
    DBMS_LOB.createtemporary(v_clob, TRUE);
    DBMS_LOB.OPEN(v_bfile, DBMS_LOB.lob_readonly);
    DBMS_LOB.loadfromfile(v_clob, v_bfile, DBMS_LOB.lobmaxsize);

    See if this helps:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584

Maybe you are looking for

  • When i try to connect my Ipod Touch 5th gen to Itunes it gives an error any idea's?

    When i connect to the latest version of Itunes it gives an error message that says "The Ipod "ipod touch" could not be synced because the sync session failed to start." i've tried restarting it sevral times and even restored a backup but to no avail.

  • Look for suggestion on file encrytion and database

    Hi all,   I am developing a CVI and need to store some critical data (some parameters like device name and some critical constants) to a encrypted file. There are about 100 parameters need to be stored, total size is about 1kb. I was thinking to stor

  • How do I save a video permanently ?

    Now that I know how to save a photo permanently : In the continuous series of saving things (save money, save energy, save water, save gasoline--neh...more important : How do I save a video (from YouTube for example ) and keeping full motion ? I down

  • On Yosemite, pasteboard/clipboard no longer works with Terminal.

    After upgrading to Yosemite, I can no longer copy text from other apps and then paste into Terminal. Nor can I drag a file from Finder to Terminal and get its path shown. With Terminal, clipboard/pasteboard now only works within its own sandbox. Am I

  • Tab "A CERTIFICATE NO" found not editable using tcode J1IGA

    Hi Guru's We unable to add JV number under tab "A CERTIFICATE NO" due to field is not editable using transaction J1IGA. Will you please let us know the problem, we able to the same in our Quality system. Thanks in Advance, Firoz.