Query to find all the tasks that were running for a particular user

Hi all

When you see the 'history of resource' of a particular resource for a user, we can see all the tasks that have been completed for the user.

I have a requirement which is, I need to display the same information via a database query.

Any help in this regard will be highly appreciated.

Kind regards.

OSI table contains the final task instance data.  If you see a task rejected 5 times, it will be so only one entry of osi.

Select usr.usr_login, obj.obj_name, mil.mil_name, sch.sch_status

OSI, mil, CHS, orc, pkg, usr, obj

where osi.mil_key = mil.mil_key

and osi.sch_key = sch.sch_key

and osi.orc_key = orc.orc_key

and orc.usr_key = usr.usr_key

and osi.pkg_key = pkg.pkg_key

and pkg.obj_key = obj.obj_key

and upper (usr.usr_login) = upper(:usr_login)

and upper (obj.obj_name) = upper(:obj_name)

You can provide the user login name and resources, and this will provide you with all their tasks given.

-Kevin

Tags: Fusion Middleware

Similar Questions

  • User accounts - I created a user account, but now I can't seem to find all the files that were on the pc before I put it in place... what happened to them?

    I never had an aaount usser put on the pc and had a large number of backup files.  Then I set up a new user account and it auto saet as administrator, but all the files are not there.  There is an another user account on the pc and it is called comments but the files aren't there either.  Is there a way to recover the missing data?

    Hi ColleenBrown-Hickey,
     
    Setting up a new user account does not remove the files. Search if the file is present on the computer by using Windows Search.
     
    For more information, see:
  • query: find all the rows that are not separate

    Hi first of all I am not dba nor have much experience of fancy requests so be gentle

    Im trying to find all the lines that have a non-distincte value in column "C".
    Therefore, if the values in the column 'C' where:
    4
    54
    33
    4
    1
    9
    9

    the query returns 4 and 9

    I made this request:

    Select t.c
    table t
    where 1 <)
    Select count (c)
    table
    where c = t.c)

    but this looks like n ^ 2 complexity that is too long for the size of this table

    is there a better way?
    Thank you
    select *
      from (select t.*, count ( * ) over (partition by C) cnt
                    from table1 t)
     where cnt > 1
    
  • where can I find all my photos that were stored on adobe photoshop 10?

    where can I find all my photos that were stored on photoshop 10?

    your photos have probably saved in photoshop but not in photoshop. Photoshop is the name of a program from adobe.  It stores any image files.

    but the question is not where your images were saved from, but they were in this directory/file saved.

    to find the directory/folder where you saved your image files, open PES 10, click on file and click on save as...

    a panel of Tacker system opens and which will show you where your image files are saved.

    Alternatively, you can search for your image files by using the search function of your operating system (windows in os win Explorer) and the mac os finder.

    If your find this confusing info, ask someone as computer help you.  This is a pretty basic business that doesn't require significant computer skills.

  • I bought creative cloud of surfspot.nl and I got a redemption code so I cloud go to the version of track to the version of the membership. I did all the steps that were needed, but my creative cloud is still in trail version. I have a windows computer.

    I bought creative cloud of surfspot.nl and I got a redemption code so I cloud go to the version of track to the version of the membership.

    I did all the steps that were needed, but my creative cloud is still in trail version.

    I have a windows computer.

    I hope someone can help me because I have really bad need for my study.

    If you tried the steps mentioned in the link below, you will need to contact the Support from Adobe and check with the subscription once account.

    https://helpx.Adobe.com/Creative-Suite/KB/trial--1-launch.html

    Click always need Help (help), and then select the Chat option:

    Contact the customer service

  • How is possible to create a smart collection to find all the photos that are not belongs to any collection?

    Hello

    How is possible to create a Smart Collection to find all the photos are not belongs to any collection?

    "Yesterday I was importing a lot of photo when my camera battery died then I succeeded him and continued to import without thinking that the previous import collection literally means" previous import. "

    So I need to find a way to create a smart collection that will reveal all the photos that do not belong to any collection.

    I solved the problem with a workaround is creating a collection based on the date of the photo which worked well, but must be nice to have a more general collection to find all the photo that are not from the collections.

    Thanks in advance,

    Marco.

    Another way to do

    1. Select all photos in the catalog

    2 dismiss a color label

    3. go to collections and multi select all your collections (ctrl)

    4. select images and give them a color

    5. return to the catalogue

    6. filter by color label - No

  • Try to find all THE objects that point to a column...

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production



    I have several patterns, all that have tons of objects that point to a column in a table.
    I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.

    There is a view that I can watch that will show me all the objects that relate to a single column?

    my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.

    I can't forget all the objects. Is there any one place to find it?

    Thank you.

    Use the mode - DBA_DEPENDENCIES

    select * from dba_dependencies
    where type= 'TABLE'
    and name = '';
    

    Another gross way...

    select * from all_source
    where lower(text) like lower('%%')
    group by owner,name,type;
    

    But, this will not search in the views & MView queries.

    HTH
    Vanessa B.

    Published by: Vanessa B on October 15, 2012 23:09
    -added

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • How to install all the drivers that I need for my dell inspiron 1525 when I can't get on the internet?

    I have a dell inspiron 1525 with windows xp sp 2 on it and I had to wipe and reinstall xp on it b/c I got the BSOD. Now, I can not configure a network connection, or get all the drivers that I need and I can't go on the internet. Is it possible to use another computer to get the drivers I need for this? Do you need a specific driver to even set up a network connection?

    AngelaGraves,

    The drivers you need are on your disk drivers that came with your computer.

    Here's the order of installation of the drivers. How to download and install drivers in the correct order

    If you do not have the drivers disk, you can download the drivers from Dell drivers & downloads, then copy on a USB key or drive and install from there.

    Rick

  • Need to insert test data in all the tables that were present in a schema

    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.
    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
      --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
      SELECT u.column_name, u.data_type, u.data_length
      --BULK COLLECT INTO l_col_tab
        FROM user_tab_columns u
       WHERE u.table_name = p_table_name;
    
      -- generated the values using below statement
      
        SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
        -- INTO collection varaible
          FROM user_tab_columns u
         WHERE TABLE_NAME = p_table_name;  
       
    
    END;
    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.



    Thank you
    Suri

    Suri wrote:
    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.

    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
    --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
    SELECT u.column_name, u.data_type, u.data_length
    --BULK COLLECT INTO l_col_tab
    FROM user_tab_columns u
    WHERE u.table_name = p_table_name;
    
    -- generated the values using below statement
    
    SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
    -- INTO collection varaible
    FROM user_tab_columns u
    WHERE TABLE_NAME = p_table_name;  
    
    END;
    

    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.

    Thank you
    Suri

    With some effort, you can write dynamic insert queries. Read the data dictionary views ALL_TABLES and ALL_TAB_COLUMNS to get the data you need. You may need to limit the list to the tables you specify to hardcode the names of the tables. You can read the views for the information of table and column that you need generate the insert column orders. It will be a lot of work and it might be easier to simply hardcode values. Dynamic SQL is difficult to debug and work with: (.) Something like this (untested and totally undebugged)

    declare
      cursor v_tab_col(p_table_name) is select * from all_tab_columns where table_name = p_table_name;
      v_text varchar2(32767);
      v_table_name varchar2(30);
    begin
      v_table_name := 'DUAL';
      --chr(10) is a newline for readability when debugging
      v_text := 'insert into '||v_table_name||chr(10)||'(';
      --loop to build column list
      for v_tab_rec in v_tab_col loop
        --add comma if not first item in list
        if v_tab_col%rowcount > 1 then
          v_text := v_text ||',';
        end if;
        v_text := v_text || v_tab_rec.column_name;
      end loop;
      v_text := v_text ||') values ('||
      --loop to build column values
      for v_tab_rec in v_tab_cur loop
        if (v_tab_rec.datatype = 'VARCHAR2') then
          --add comma if not first item in list
          if v_tab_col%rowcount > 1 then
            v_text := v_text ||',';
          end if;
          if v_tab_rec.datatype = 'NUMBER' then
           v_text := v_text || '9';
           elsif v_tab_rec.datatype = 'VARCHAR2' then
             v_text := v_text ||'X';
          end if;
      end loop;
      v_text := v_text || ')';
      execute immediate v_text;
    end;
    

    This code is not effective, but shows how to do what you described. You'll have to code for all data types you need and find a way to take into account the primary/foreign keys, yourself. I leave it to you to find a way to avoid selecting the data twice ;)
    Good luck!

    Published by: riedelme on July 24, 2012 13:58

  • I transferred data from backup, but have not all the books that were on my Kindle App. How tdo I get back them?

    I upgraded to the iPad 2 Air after all iCloud backup data transfer that I found I was missing most of the books from my kindle app that were supposed to be in the cloud. How can I get the my new iPad?

    If they were purchased through the Kindle books (i.e. Amazon) you can open the Kindle application on your new iPad, if not already in the tap of the library the 3 bars on the high left and click library, and then tap cloud down, tap and hold any book in your library and then on download. All purchases are stored by Amazon and can be downloaded at any time.

  • Where are all the apps that were on my Apple TV?

    I just bought the newest gen Apple TV 4 and was surprised to see that my old Apple Tv apps were not available. No Netflix, National Geographic, Smithsonian, etc... They were part of the original Tv App. They are not part of the new TV App or am I missing something? I asked Siri to find Netflix and she said that I only had the app. Can I download everything I'm missing to have at my disposal? Looks like they would have kept the apps they had and included on the new Apple TV.

    Applications to use on ATV4 must be downloaded through the App Store you can find on the home screen of your ATV4. The ATV4 operating system is completely different from the operating system on ATV3.

  • Why the Firefox 4 is not restore all the sessions that were open at the time? Before the update, I've been invited either ("SAVE AND QUIT") or even if she closed UNEXPECTEDLY (crushed), he AGAIN restored. New version does not offer "save and exit".

    Question
    Why don't Firefox4 restore any sessions that were open at the time? Before the update, I've been invited either ('SAVE AND QUIT'), or even if it closed UNEXPECTEDLY (crash etc) it STILL restored everything. New version does not offer "save and exit".

    Now, Firefox always stores the old session which you can access from the history menu by selecting "restore previous Session."

    If you always open the last set of tabs, another approach is the following:

    1. Click on the orange button Firefox, then select options to open the options window
    2. Go to the general Panel
    3. Change the setting "When Firefox starts" to "show my windows and tabs from last time '.
  • Find all the segments that belong to a DOMAIN index (effective)

    Hello

    I'm going through several diagrams to a different tablespace (because some objects have been created in wrong tablespace).

    Although this isn't a big deal index and ordinary table, I can't figure out how to find the segments that belong to a DOMAIN index to check whether they are in the good (or bad) tablespace.

    A select * from dba_indexes where index_type = 'DOMAIN' gives me these indexes.

    The only way to understand the corresponding segments for secondary objects seems to match the segment names. So if the index is the name of FOO_IDX, the segments would be DR$ FOO_IDX$ I, DR$ FOO_IDX$ K, DR$ FOO_IDX$ R and DR$ FOO_IDX$ N.

    What I currently have, is the following statement, but it takes forever (> 5 minutes) to find the clues of the field on the 'bad' even for just a single user tablespace:

    select *
    from dba_indexes idx
    where idx.owner = 'FOOBAR'
    and idx.index_type = 'DOMAIN'
    and exists (select 1 
                from dba_segments seg
                where regexp_replace(seg.segment_name, '^DR\$|\$[RIKN]$', '') = idx.index_name
                  and seg.owner = idx.owner
                  and seg.tablespace_name = 'WRONG_TBS'
                  and seg.segment_type = 'TABLE');
    
    

    I can't find a system view, linking a segment to the 'owner' index directly without going back to the distortion of the name.

    It's my version of Oracle:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for Linux: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    Andrew, beautiful recoding of the SQL.

    casorp, how you looked at the content of the all_secondary_objects?  I think that this point of view has the information you want, but I don't have any domain defined index I can think to use as a check.

    - -

    HTH - Mark D Powell.

  • Where can I get a list of all the updates that are available for windows 7 as well as a description of each

    I was wondering if anyone can give me a link to find all updates any importance that microsoft has come out for windows 7 and a description of each of them.

    Security bulletins: http://www.microsoft.com/technet/security/current.aspx

    Previous summaries: http://www.microsoft.com/technet/security/bulletin/summary.mspx

    Catalog: http://catalog.update.microsoft.com/v7/site/Home.aspx

    How to download drivers and updates from the Windows Update Catalog or the Microsoft Update Catalog
    http://support.Microsoft.com/kb/323166

    TaurArian [MVP] 2005-2011 - Update Services

  • How to find all the controller ID: target used for the mapping of RDM on virtual machine

    I want to get a list of all the target ID used for ROW mapping on each controller.  Then next time, I can use the remaining ID of the target for RDM disk mapping using the perl script.

    I checked findVMsWithRDMs.pl but it shows an ID used target for each disc RDM. I use 5.5 ESXi servers and SDK for perl.

    Thank you

    Celine

    You will have to list all config.hardware.device devices, and then find the raw disk support type (to select the ROW).  Then look at the number of drive.  Then use it's value of controllerKey to get the controllers in config.hardware.device with the corresponding key and then get its value busNumber.  So it's busNumber:UnitNumber for the SCSI ID.

    You'll probably want to get all used SCSI identification numbers (use a hash such as BusNumber:UnitNumber-1 online).  Then you can quickly search number the first available bus.  That's what I generally find a free SCSI ID to add a new disk (including the ROW).

Maybe you are looking for

  • Craigslist 'Reply' and the buttons 'Add images' does not

    Until a few weeks ago, I used Firefox with no problem when browsing and posting Craigslist ads. Recently, the 'Reply' button in the messages does not at all. Nothing happens when I click it. When I write ads, the button 'Add images' does not save whe

  • iPhone backup fails with "required file not found."

    Basics: OS X 10.11.4. I have iPhone 6 + ios 9.3.1 iTunes 12.3.3.17 Photos 1.5 Once I plugged my iPhone in my iMac (2010), I get the following message is displayed: 'Failed attempt to copy to the disk "Macintosh HD". Required folder cannot be found. »

  • S860 - cannot install the driver

    Dear team, While trying to connect my S860 phone to my PC (windows 7 64-bit), I get the following error: Update the device driver has not been installed successfully. Can pelase you guide me how to solve this problem? Concerning

  • Update drivers for Windows XP acer laptop aspire 5012wlmi.

    Original title: drivers updates. updated all the drivers on acer laptop aspire 5012wlmi, how about this topic and what I pay these updates?

  • Information about the Version of the app running?

    Hello BB NDK Forums. After much scouring the NDK headers and docs, I could not find a way to request information app version when running. Such a facility is currently? The application manifest analysis appears as an alternative, but is not ideal. Th