Need assistance with obtaining data of users modified between two dates in IOM

Hi all

I have a 11g IOM environment where I need to write a scheduled task that needs to go out the data of users that have been modified between two dates. After the search in the forums, I've had an idea and wrote the following code for the same thing. But it doesn't seem to work. Can someone help me here please?

> //initialize upper and lower attributes to two values of oracle.sql.DATE
> Criteria1 SearchCriteria is nothing, Criteria2 = null, criteria;
> criteria1 = new SearchCriteria ("update the", lower, SearchCriteria.Operator.GREATER_EQUAL);
> Criteria2 = new SearchCriteria ("update the", plus top, SearchCriteria.Operator.LESS_EQUAL);
> criteria = new SearchCriteria (Criteria1, criteria2, SearchCriteria.Operator.AND);
> //initialize the necessary parameters, obtain a User Manager object and follow these steps
> users = umgr.search (criteria, attrNames, settings);

But this doesn't seem to work. Can someone shed light on this you? The attribute "updated on" is not available for this task? If I use a unique 'User login' attribute search criteria, this thing works and gets the user data but this does not work when I use the attribute "updated on" so made me think maybe that this attribute is not available for use via the API or something. Or maybe it's with the help of the oracle.sql.DATE is a problem here. Not sure if. So kindly help me with this.

Thanks in advance,
$id

I suggest that create you a real attribute in your scheduled task called something like 'Last Run Timestamp'. The reason why I say this is that you can modify your search on this basis rather than manipulate the date of beginning and end of the last run. To retrieve the value, like any other attribute use this:
>
String lastRunTimestamp = hashMap.get ("last Run Timestamp") m:System.NET.SocketAddress.ToString ();
>
Format your time you are entered like this: "YYYY-MM-DD hh: mm: zzz ' in order to retrieve and format the value like this:
>
SimpleDateFormat time = new SimpleDateFormat ("yyyy-MM-DD hh: mm: zzz");
recover start date, so it can be updated on the ground on the scheduled task
Start date = new Date();

Convert timestamp last executed so far
Date stamp = new Date();
timestamp = time.parse (lastRunTimestamp);
>
You have now your last time stamp execution that you can set your time dérirez based on.

And finally, to return the last value of stamp on both scheduled run time, you started this task
>
SchedulerService task = Platform.getService (SchedulerService.class);
Task = task.lookupScheduledTask taskEntry (getName ());
JobParameter = taskEntry.getParameters () .get ("last Run Timestamp") jobparam;
JobDetails job = task.getJobDetail (getName ());
HashMap attributes = job.getAttributes ();
String timestamp = (time.format (start));
jobparam.setValue (timestamp);
Attributes.put ("last Run Timestamp", jobparam);
job.setAttributes (attributes);
task.updateJob (job);
>

I hope it's useful. This is how I do all my scheduled tasks that need a timestamp.

-Kevin

Tags: Fusion Middleware

Similar Questions

  • I need assistance with obtaining this virus roaming / Redirector.KL removed from my computer

    I just did a scan of microsoft security and it detected a file infected after the first hour, but after a good 5 hours or so he stopped and when I went to see the results he said I got this virus roaming / Redirector.KL and it has been partially removed. Sophos, avast, malwarebytes, super anti-spyware, as well as the office depot pc support agent scans did not detect all viruses in safe mode. How to make the other partial party this virus * shut down my computer? Thank you.

    Hi jasonono,

    I suggest that you want to run virus scan in safe mode with network.

     

    Step 1

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Note: When the boot advanced options select Safe mode with network.

    Step 2

    Run Microsoft Online Scanner.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    You can also download & run Microsoft Security Essentials on your computer.

  • I need assistance with Outlook Express

    I need assistance with my outlook express. Please

    See www.oehelp.com/OETips.aspx#7 or be more specific, and perhaps we can help you.

    Steve

  • I NEED ASSISTANCE WITH MY ETHERNET DRIVER. HOW CAN I GET THIS TO WORK NEW TI?

    Original title: driver ethernet

    I NEED ASSISTANCE WITH MY ETHERNET DRIVER.  HOW CAN I GET THIS TO WORK NEW TI

    Download and install it

    The driver should be available in the manufacture of computers site

    Use the snid on a label on the computer to search with while you're there

    Or if the motherboard came with a disc to load and the reader will be on it.

  • I could not find download Windows Mobile Device Center 6.1 so I can download pic & videos from my phone to my computer. I need assistance with their phone is off and on computer any ideas please help.

    I could not find download Windows Mobile Device Center 6.1 so I can download pic & videos from my phone to my computer. I need assistance with their phone is off and on computer any ideas please help.

    See http://support.microsoft.com/kb/931937

  • I need assistance with combine jpeg and raw photo even after import [was: Hello?]

    I need assistance with combine jpeg and raw photo even after importation

    You mean both JPG and RAW file after importing from a camera memory card? There is a setting in LR preferences to process the JPG images next to RAW files as separate photos. It is under the general tab of preferences. By default, this option is not checked.

    If this is not your problem, then we will need Lots and Lots and lots more information about what you mean by the combine

  • I need assistance with deactivation Suite CS6.  My Mac Book has been stolen. Can you help me?

    I need assistance with deactivation Suite CS6.  My Mac Book has been stolen. Can you help me?

    Contact support by web chat or telephone to reset the activations.

    Mylenium

  • I need assistance with lightroom 4 - I downloaded the software but I can not access

    I need assistance with lightroom 4 - I downloaded the software but I can't access it. I have windows XP I need to upgrade to windows vista or windows 7? Any help please. Thanks Zara

    Lightroom 4 does not work on Windows XP

    http://www.Adobe.com/products/Photoshop-Lightroom/tech-specs.html

    You will need to upgrade to Windows 7 or Windows 8. Avoid Vista - It's terrible.

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Need help with substring data

    Having problems reading CLOB data > 32000 and thought that maybe I can load the data into 3 separate columns less than 32000 k each.

    I tried to substring of a part of it first to see if it worked.

    DDL

    CREATE TABLE 'E406702 '. "" DSR3 ".

    (

    "RECORDNO' CHAR (8 BYTES),

    'DOCUMENTUNIVERSALID' CHAR (32 BYTES),

    "CREATIONDATE" TANK (30 BYTES),

    VARCHAR2 (250 BYTE) "ETL_STATUS."

    VARCHAR2 (4000 BYTE) "DSRDESCRIPTION."

    VARCHAR2 (4000 BYTE) "FORM."

    'REQUESTID' VARCHAR2 (4000 BYTE)

    )

    CONTROL FILE

    DOWNLOAD THE DATA

    INFILE 'DSR2DATA.txt' ' str "\r '"

    ADD

    IN THE DSR3 TABLE

    FIELDS TERMINATED BY ' <: s: >.

    (RecordNo CHAR (8),

    DocumentUniversalID TANK (32),

    CreationDate CHAR (30),

    CHAR ETL_STATUS (250).

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32)."

    SHAPE TANK (4000).

    RequestId TANK (4000))

    Doing this, that I was able to load half of my files.

    Check the newspaper and saw


    SQL * Loader: release 11.2.0.1.0 - Production on sea Feb 19 09:40:40 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Control file: c:\mytest7\DSR3CONTROL.txt
    Data file: DSR2DATA.txt
    Chain of the treatment of the files option: ' str "\r '"
    Bad leadership: c:\mytest7\DSR3CONTROL.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table DSR3, loaded from every logical record.
    Insert the option in effect for this table: APPEND

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    RECORDNO FIRST 8 CHARACTERS
    String endpoint of: "<: s: > '"
    DOCUMENTUNIVERSALID THEN 32 CHARACTERS
    String endpoint of: "<: s: > '"
    CREATIONDATE THEN 30 CHARACTERS
    String endpoint of: "<: s: > '"
    ETL_STATUS THEN 250 CHARACTERS
    String endpoint of: "<: s: > '"
    DSRDESCRIPTION CHARACTER THEN 32700
    String endpoint of: "<: s: > '"
    The SQL string for the column: 'substr(:DSRDescription,1,32) '.
    TRAIN THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"
    REQUESTID THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"

    value used for the parameter LINES increased from 64 to 6
    Record 79: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 82: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 94: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Recording 160: Rejected - error on the DSR3 table.

    What is the problem that.   My goal was to make it work and then try to perform the following operations:

    Change the ddl to

    'DSRDESCRIPTION' CLOB,

    'DSRDESCRIPTION1' CLOB,

    'DSRDESCRIPTION2' CLOB,

    Change the control for this file.

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32700)."

    DSRDescription2 TANK (32700) "substr(:DSRDescription,32701,65401)."

    DSRDescription3 TANK (15000) "substr(:DSRDescription,65402,80000)."

    Is - this bad way to go on this subject?

    If you can load data without any problem and read-only is a problem then you can use SUBSTR and concate (|) to read the entire string. Something like this:

    Select substr (DSRDescription, 1, 32000) | substr (DSRDescription, 32001, 64000) | dsr3 substr(DSRDescription,64001);

    or

    with the data as

    (

    Select substr (DSRDescription, 1, 32000) in the DSRDescription of dsr3

    Union of all the

    Select substr (DSRDescription, 32001, 64000) in the DSRDescription1 of dsr3

    Union of all the

    Select substr(DSRDescription,64001) in the DSRDescription2 of dsr3

    )

    Select * from data;

    Onkar

  • I need assistance with brush photoshop action

    I need help with this action, does not open correctly, it should be the firstIMG_4344.jpg

    I bet you use a British action, which, at one point, refers to the bottom layer, which is a 'Fondo' in your language. Even if the issue is not with the background, an English action may still cause problems with Photoshop to another language.

    Two things to try. If you have Photoshop CC (and know enough English to work in an English version) you can download packages in English, perform the action, save and return to your native language. Or;

    Write the exact steps in the action and re-save the action in your native language.

    I hope this helps!

  • I need assistance with my account cloud creative when I open lightroom, it says I have to buy a subscription or license to unlock?

    Hi, I need help with my creative cloud account, when I open lightroom it say I have to buy a subscription or permission to unlock it? What can I do?

    If you buy a subscription, see connect and disconnect to activate Cloud Creative applications.

  • I need assistance with the sending of a document FRO my e-mail here for GIS.

    Need help with gettingPDF document from AOL to send by e-mail account.

    Thank you

    Hello Daphnec64268570,

    If you want to send the document to the signatories to esign, then you can refer to the link below:

    https://helpx.Adobe.com/document-cloud/help/send-agreement.html

    -Usman

  • I need assistance with serial number

    I need have with serial number

    Hello!

    You will need to contact Support and Service the customer. They will help you with the help of your serial number:

    http://helpx.Adobe.com/contact.html

    Janelle

  • Need help with coversion date

    Hello

    I have a date format that is varchar2 and value is as on 2009-03 - 31.i need to convert to date and it must be as on 31 March 09

    I get as error 0RA-01981... Please help me in this
    SQL> select to_date('2009-03-31','yyyy-mm-dd') xc from dual ;
    
    XC
    ------------------------------
    31-MAR-09
    

    For your http://ora-01981.ora-code.com/ error

    SS

Maybe you are looking for