OIM 11 g - get disabled user date

Hello

Can I know how can I get the date at which a user is disabled in IOM?, thank you.

There are 2 options.  If there is a configuration to go on you will need and be able to reference periodically you can set up a new field of UDF and create an eventhandler on the activity of persons with DISABILITIES of the user option and fix the date when disabled.

If you do not need to be available from the user interface, you can also reference check dashboards and reports for them that are STANDARD for the history of user profile.  You can also write your own report based on the name of the field, when USR_DISABLED is set to 1.

Here is an example query assuming that you treat your audit events:

Select usr.usr_login, upa_fields.update_date from upa_fields, usr, upa_usr

where upa_usr.upa_usr_key = upa_fields.upa_usr_key

and upa_usr.usr_key = usr.usr_key

and upa_fields.field_name = 'User Users.Disable' and upa_fields.field_new_value = '1'

-Kevin

Tags: Fusion Middleware

Similar Questions

  • Internal identity stores: users: getting disabled after a certain interval time

    Hi all

    Need helpl on Cisco Secure ACS 5.1

    All users are getting disabled on a time interval. find not just any setting for this.

    If anyone knows about this help please...

    Concerning

    MRS.

    Which seems to relate to a known issue:

    CSCtf06311  All internal users automatically disabled after you be connected to a single user

    If so there is a patch that can be donloaded to EAC which includes a fix:

    Release date: ACS 5.1.0.44 Patch: 5-1-0-44 - 3.tar.gpg

  • How to get disabled login user (without password) at startup, so NOT to SHOW at all and so after the switch, go to desktop directly

    Vista Ultimate 64-bit

    How to get disabled login user (without password) at startup, so NOT to SHOW it to all (and needed clicked) and so after the switch, go to desktop directly?

    Also after inactivity, how to not go to sleep mode and press "power on" to bring back?

    Hello

    If you want to start directly on the desktop?

    How to automatically connect at startup in Vista
    http://www.Vistax64.com/tutorials/66966-logon-automatically.html

    Or

    How to make Vista require a user name and password when connecting
    http://www.Vistax64.com/tutorials/89812-logon-username-password.html

    =========================================

    Start - Control Panel - Power Options - upper left - require a password on wake up
    tick her do not require a password - save the changes.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • The identity of the AD service: remove or disable users who are not?

    We currently have set users to be 'disabled', but then he must remember periodically go and delete them manually. It also creates problems with duplicate user names. Do you automatically remove your users? I have always been concerned that if something goes wrong with a synchronization then all of my users would be deleted.

    We had the same problem here, so I wrote an external operation that is grafted on to the user synchronization job and remove disabled users more than X number of days. For example, in our case, users are deleted after 180 days of being disabled (it's a little extreme). This way you can offer you a few days before that the users are actually deleted, but keep the automated process. There are a few options integrated, which should be visible from the source code. Here is the source:

    package com.oracle.services.jobs;

    import com.oracle.services.utility.SessionManager;
    import com.plumtree.openfoundation.util.XPCalendar;
    import com.plumtree.openfoundation.util.XPDateTime;
    import com.plumtree.portaluiinfrastructure.resultwrapper.ASQueryResultWrapper;
    import com.plumtree.server.IPTObjectManager;
    import com.plumtree.server.IPTQueryResult;
    import com.plumtree.server.IPTSession;
    import com.plumtree.server.IPTUser;
    import com.plumtree.server.IPTUserManager;
    import com.plumtree.server.PT_LOCKSTATES;
    import com.plumtree.server.PT_PROPIDS;

    /*******************************************************************************
    * This class supports the work of server automation for deletion of user accounts
    * which have been disabled for a certain number of days.
    *
    hross * @author
    *
    */
    public class DeleteDisabledAccountsJob {}

    filter to remove only agent disabled accounts
    private static String FILTER_AGENT = 'this user has been locked by a user synchronization job.';

    filter to delete the disabled accounts everything (including those disabled by one
    Admin)
    private static String FILTER_ALL = "";

    Public Shared Sub main (String [] args) {}

    check the arguments
    If ((args.length < 2)="" ||="" (args.length=""> 4)) {}
    System.Err.println ("use :");
    System.Err
    .println ("DeleteDisabledAccountsJob ");
    System.Err
    .println ("DeleteDisabledAccountsJob all the");
    return;
    }

    get a session from the connection token
    IPTSession session = SessionManager.createSession(args[0]);

    get a number of days
    int numDays = 0;
    try {}
    numDays = Integer.parseInt(args[1]);
    } catch (Exception ex) {}
    System.Err.println ("number of days not a valid integer.");
    return;
    }

    filter all or just the agent?
    Boolean filterAll = ((args.length > 2) & (args [2] .equals ("all")))
    || ((args. (Length > 3) & (args [3] .equals ("all")));

    Boolean test = ((args.length > 2) & (args [2] .equals ("test")))
    || ((args. (Length > 3) & (args [3] .equals ("test")));

    If {(test)
    System.Err.println ("it's just a test. Nothing will be deleted. ») ;
    }
              
    If {(filterAll)
    System.Err
    .println ("this job will remove the accounts disabled everything (including those disabled by an administrator) '. '");
    } else {}
    System.Err
    .println ("will this work only remove users disabled by an authentication source.");
    }

    calculate for 180 days in the past, based on the current date
    Cut of XPDateTime = new XPDateTime();
    XPCalendar xpCalendar = XPCalendar.GetInstance ();
    xpCalendar.Add (XPCalendar.HOUR,-(24 * numDays));
    Break = xpCalendar.GetTime (); subtract from 180 days from now

    System.Err
    .println ("this work will remove before disabled user accounts:")
    + cutOff.toString ());

    request for disabled user accounts
    UserManager IPTUserManager = session (IPTUserManager). GetUsers();
              
    Result = userManager.GetLockedAccounts (filterAll IPTQueryResult? FILTER_ALL
    (: FILTER_AGENT, 0, -1);
    ASQueryResultWrapper ptqrUserLock = new ASQueryResultWrapper (result);

    for (int i = 0; i)< result.rowcount();="" i++)="">

    get some basic user information
    userId int = result. ItemAsInt i, PT_PROPIDS.PT_PROPID_OBJECTID;
    String name = result. ItemAsString i, PT_PROPIDS.PT_PROPID_NAME;
    Connection string = result. ItemAsString i, PT_PROPIDS.PT_PROPID_USER_LOGINNAME;
    XPDateTime dt = result. ItemAsXPDateTime i, PT_PROPIDS.PT_PROPID_CREATED;

    System.Err.println ("found account: (" + userId + ")" + connection)
    //                         + ", " + name);

    Check to see if we need to remove the user
    If (dt. {Before (cutOff))}

    If (! test) {/ / if the test, we only want to see that would have demolished us}
    We try to unlock user b/c of a bug in
    Automation
    Server
    The user IPTUser = (IPTUser) ((IPTObjectManager) userManager)
    . Open (userId, false);
    try {}
    user. SetLockedStatus (false);
    user. Store();
    } catch (Exception ex) {}
    We expect that it will fail b/c of a bug
    }

    Make sure that the account is unlocked
    If (by the user. GetLockState() is PT_LOCKSTATES.PT_LOCKED)
    user. UnlockObject();
                             
    Okay, now we can delete the user
    ((IPTObjectManager) userManager). Delete (UserID);
    }

    System.Err.println ("deleted the user account:" + userId + "-" + login + "-" + name);
    }

    }
    }

    }

  • disabled user continues to appear at the beginning

    Hello

    I recently installed the operating system after replacing the hard drive, so the installation was completely new to using the Internet.  Every time turn on the laptop, I get the user to choose two: Mine and comments. I went into the menu in system preferences and disabled users the user invited, but it keeps appearing at the beginning.

    Don't forget to disable find my Mac in iCloud preferences. If it still appears, try connecting to iCloud. If it works, sign in iCloud and be sure not to find my Mac.

  • How to recover the backup of user data DVD

    Windows 7 Home Edition premium, I did a backup of the user data at 25 DVD before restoring the original operating system from the recovery partition.  Now I want to restore data from the DVD. I can't find anything in the title of recovery and restoration. but I found an EXE called RecoveryMrg on the 1st DVD.  By clicking on it, I get an hourglass when I put the cursor on the window of the files on the dvd.

    He suggested in another post on the forum this should take a while. Well, it has been a few hours.

    In the resource monitor DISK tab, I don't see any activity for the DVD player. (But I don't know that it should show op it)

    Is that long normally? Or it's the wrong way to restore files of the user?

    Thank you

    I'm glad you had your important data stored on your computer!
    The HP_TOOLS partition contains the recovery image. If you have recovery media (DVD/USB), then it is not necessary to have this partition to restore your system to the factory settings. If you want to restore, you will need perform an HP recovery to factory settings.

    I hope this helps.

  • When you use Windows 7 on a domain, how should I store any user data, including news profile on a network share?

    I must be looking incorrectly, or something because I can't find an answer.
    I don't expect roaming profiles for installation, or change the default profile.
    What I try to do is to keep or to synchronize all user data from PC LAN on a backup server share every day, instead of having to back up each machine.

    It is difficult for me to understand why it is so difficult with 7 and easy with XP.
    I can find articles that describe the movement of the 'documents' folder, but what 'Favorites' or 'images' or any other users of the files that would be needed to recover from a PC disk failure?
    I like 7, but this seems to be a BIG problem for me.

    I hope someone can put me right. ?

    You might want to look in folder redirection. Also a connection to the drive mapping script (kixtart.org is good and powerful enough). The important thing is to put the fear of the deity in the users and get to save in a directory base or similar. You can also set security on folders so that they only and the admins can see or access and backup from a central location.

    I do here and you don't have to worry on their local computers or the folder redirection. It takes losing data/files once to catch them.

    http://TechNet.Microsoft.com/en-CA/library/cc732275.aspx

    I hope this helps.

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • CONNECT IN a loop in the user data

    Could someone help me because I can not find a solution.

    I want to build a tree of 3 tables (parent-> children-> detail)

    Everything works fine with 2 tables, but when I add the third table I get always an error ORA: ORA-01436: CONNECT BY a loop in the user data

    CREATE TABLE nineham (organisatie_id NUMBER

    (, naam VARCHAR2 (50));

    --

    CREATE TABLE seizoenen (seizoen_id NUMBER

    organisatie_id NUMBER

    (, naam VARCHAR2 (50));

    --

    CREATE TABLE competities (competitie_id NUMBER

    seizoen_id NUMBER

    (, naam VARCHAR2 (50));

    --

    INSERT INTO nineham (organisatie_id, name) VALUES (1, 'ORGANISATIE_1');

    INSERT INTO nineham (organisatie_id, name) VALUES (2, 'ORGANISATIE_2');

    --

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 1, 'SEIZOEN_1');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 1, 'SEIZOEN_2');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 2, 'SEIZOEN_3');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 2, 'SEIZOEN_4');

    --

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (1, 1, 'COMPETITIE_1');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (2, 1, 'COMPETITIE_2');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (3, 2, 'COMPETITIE_3');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (4, 2, "COMPETITIE_4");

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (5, 2, "COMPETITIE_5");

    --

    --

    --

    SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display

    LEVEL AS lvl

    DE)

    SELECT NULL AS parent

    child organisatie_id

    naam

    To nineham

    UNION ALL

    SELECT organisatie_id AS parent

    child seizoen_id

    naam

    OF seizoenen

    UNION ALL

    Seizoen_id SELECT parent

    Child AS NULL

    naam

    OF competities

    )

    START WITH parent IS NULL

    CONNECT BY PRIOR child = parent

    ;

    Hello

    When you perform a CONNECT BY query, you must have an identifier unique to each child.  You use numbers that are unique to each table, but are no longer unique when you UNION the paintings together.  When the query finds children 1, the fact that average organisatie_id = 1, or does that mean seizoen_id = 1, or does this mean competetite_id = 1?

    Etbin suggested you change data.  Which can be difficult; It might not even be possible.  In addition, you must make sure that the new IDS are unique.  When you assign advent = 10 to a node, for example, you must be sure that 10 is not an organisatie_id.

    Here is another solution that is guarranted to generate unique IDS, without changing the actual tables:

    SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display

    LEVEL AS lvl

    DE)

    SELECT NULL AS parent

    organisatie_id AS child

    , 1 AS the level of

    naam

    To nineham

    UNION ALL

    SELECT organisatie_id AS parent

    seizoen_id AS child

    , 2 AS the level of

    naam

    OF seizoenen

    UNION ALL

    SELECT seizoen_id AS parent

    Child AS NULL

    , 3 AS the level of

    naam

    OF competities

    )

    START WITH parent IS NULL

    AND level = 1

    CONNECT BY PRIOR child = parent

    AND layer = FIRST + 1

    ;

    The composite key formed by your original ID, and the new level number is unique.

    Note that the query above is exactly what you have posted, with the addition of the lines that refer to level.

  • Error: CONNECTION loop in the user data

    CONNECT IN a loop in the user data:

    Table X (sample data were actually lines 35K)

    --------------

    CODE CASE OLD_ID New_id PERSON AUTH                                                           

    01 ab122 1234 0001 AU123 99393

    07 vv353 7872 0919 FV982 78282

    01 ab122 1982 9929 99393 AU123

    04 hjsss 8839 8302 JK920 32320

    01 ab122 0001 1982 AU123 99393

    05 cg899 6728 32322 IKL020 65252

    07 w353 0919 8282 FV982 78282

    now I need to order these data comparing the values of the line to old_id new_id for each combination of code, person, case

    need output like below

    Table X

    --------------

    CODE CASE OLD_ID New_id PERSON AUTH                                                           

    01 ab122 1234 0001 AU123 99393

    01 ab122 0001 1982 AU123 99393

    01 ab122 1982 9929 99393 AU123

    04 hjsss 8839 8302 JK920 32320

    05 cg899 6728 32322 IKL020 65252

    07 vv353 7872 0919 FV982 78282

    07 w353 0919 8282 FV982 78282

    to get to what I use:

    -Request-

    Select * from table_x

    Start by old_id not in)

    Select new_id

    from table_x

    )

    CONNECT BY old_id new_id PRIOR =

    AND code = code PRIOR

    AND case EARLIER case =

    PER person = person PREREQUISITE

    -Request-

    works very well with the sample data, but the problem is when executed with actual table that has 35K record...

    Cause: The condition specified in a CONNECT BY clause caused a loop in the application, where the next record to be selected is a descendant of itself. When this happens, it may be no end to the query.

    Action: Check the CONNECT BY clause and remove the circular reference.

    Thank you

    AK

    Hello

    CONNECT_BY_ISCYCLE is a pseudo-column that you can use in a query of CONNECTION BY NOCYCLE.  It is separated from the CONNECT BY clause.

    Try this:

    Select code, "BREAKS", person

    , SYS_CONNECT_BY_PATH (old_id, "/") AS path

    from table_x

    where CONNECT_BY_ISCYCLE = 1

    Start by old_id not in)

    Select new_id

    from table_x

    )

    CONNECT BY NOCYCLE Old_id = new_id PRIOR

    AND code = code PRIOR

    AND 'CASE' = 'BOX' PRIOR

    PER person = person PREREQUISITE

    ;

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Existing listening channel get disabled after agree importing using Ant

    Hello
    When I try to import an agreement to use the ant script in the B2B, existing channels of listening in the console are get disabled.

    Then I deleted the channels look in the console of B2B and I unzipped the file exported in the B2B console, open the file tp_MyCompany.xml at the entrance to the channel listener, set the active = 'true '. Then I re - compressed files. When I tried to import this file updated the zip using Ant, it worked perfectly.

    But even once when I tried to import the modified zip file, same problem arose i.e. channels got Listening disabled.

    Help, please...

    Thank you
    Monica

    You can also consult the section "20.8 activation or deactivation Listening channels" to -.

    http://docs.Oracle.com/CD/E23943_01/user.1111/e10229/scrpt_imp_exp_dep.htm#CEGBDIDB

    Kind regards
    Anuj

  • View: Non-persistent Desktop with persistent user data

    We need to have a non persistent desktop which has a small persistent area (separate drive?), where the user profiles are stored.  Our goal is to have the stay of software/OS in a non persistent state but allow for user profiles to be created/saved on the computer.  Did someone do something similar to what could be useful in pointing me in the right direction?

    Thank you!

    Not persistent are ment to do exactly that.  As suggested must be addressed on a profile management system, you could probably get by with roaming profiles provided that you keep some controls tightened on them.

    Alternatively, you can use a pool of persistent by using user data disks and use the "Refresh OS disk on logoff" setting set to 'Always' or 'all the X days '.  That mimics a non-persistent pool without the need for some other profile management.

  • ORA-01436: CONNECT loop in the user data

    Hello

    I have a simple bit of SQL out details on HR supervisor strings in Oracle EBS:
    SELECT     LPAD(' ', (LEVEL - 1) * 10, ' ') || person_id level_label
             , LEVEL
             , description
          FROM applsys.fnd_user u
             , hr.per_all_assignments_f h
         WHERE u.employee_id = h.person_id
    START WITH SYSDATE BETWEEN effective_start_date AND effective_end_date
           AND person_id = :personid
    CONNECT BY PRIOR person_id = supervisor_id
           AND SYSDATE BETWEEN effective_start_date AND effective_end_date
    It will return data normally without problems - e.g. data dummy below - looks very good. The names and made up person_ids.
    LEVEL_LABEL                    LEVEL     DESCRIPTION
    000001                         1     Person Person 1
              000002               2     Harry Marry
                        000003          3     John Smith
                                  000004     4     Jenna Jones
                                  000005     4     Her Name
                                  000006     4     His Name
                                  000007     4     Joseph Coat
                                  000008     4     Les Miserables
                        000009          3     Mister Smith
                        000010          3     Miss Jones
                        000011          3     Andrew And
                                  000012     4     Claire So
                                  000013     4     Hilary Hi
              000014               2     Jenny Jones
                        000015          3     Amanda Mandy
                                  000016     4     James Jim
                                  000017     4     William Wonder
                                  000018     4     Crazy Cat
                                  000019     4     Silly Cat
                                  000020     4     Tall Hill
                                  000021     4     Amazing Grace
                        000022          3     Lovely Mountain
                                  000023     4     Joyous Spring
                                  000024     4     Anonymous Name
                                  000025     4     Brian Binky
    However, if I try for an another person_id, for which a user receives an error in one part of the Oracle EBS, I get this error:

    ORA-01436: CONNECT loop in the user data

    I'm guessing there is a loop of supervisor happening somewhere, but I don't know how to determine where it might happen.

    I was wondering if there is any way I can change the SQL code to be able to work out where the loop can be, as there are about 50 people involved in Ministry to this user and I have been through all their records and can not see a loop to look through the Oracle HR screens.

    I know it's a 'big ask' to ask a vague question about some oracle SQL, so apologies for that.

    Any advice much appreciated.

    Thank you

    Hello

    To see loops, do something like this:

    SELECT     SYS_CONNECT_BY_PATH (person_id, '/')     AS path
    FROM      applsys.fnd_user           u
    ,      hr.per_all_assignments_f      h
    WHERE      u.employee_id           = h.person_id
    AND     CONNECT_BY_ISCYCLE     = 1
    CONNECT BY NOCYCLE     PRIOR person_id = supervisor_id
         AND           SYSDATE      BETWEEN     effective_start_date
                             AND      effective_end_date
    ;
    

    If you would care to post CREATE TABLE and instructions INSERT for some samples, so I could test it.

    Note there is no START WITH clause.

    If, for example, Jones is the architect of Scott, Scott is the main contractor of Adams and Adams is the architect of Jones (much to other lines is not involved in a loop), then displays 3 rows of output, such as

    PATH
    ---------------------
    Jones/Scott/Adams
    Scott/Adams/Jones
    Adams/Jones/Scott
    

    Moreover, all the same CONNECT BY queries on these tables can be a lot faster if you've made the join and date filtering in a separate subquery first:

    WITH     combined_data     AS
    (
         SELECT     person_id, supervisor_id
         FROM      applsys.fnd_user           u
         ,      hr.per_all_assignments_f      h
         WHERE      u.employee_id      = h.person_id
         AND     SYSDATE      BETWEEN     effective_start_date
                        AND      effective_end_date
    )
    SELECT     SYS_CONNECT_BY_PATH (person_id, '/')     AS path
    FROM     combined_data
    WHERE     CONNECT_BY_ISCYCLE     = 1
    CONNECT BY NOCYCLE     PRIOR person_id = supervisor_id
    ;
    
  • ORA-01436: CONNECT loop in the user data, but CONNECT_BY_ISCYCLE is equal to ZERO all the

    Hello

    When I run query below, it always throws the below error:
    SELECT connect_by_root code AS code_root,
        CODE,
        CODE_DESC,
        UP_CODE 
      FROM DI_CODE_LEVEL
      WHERE TYPE_CODE='SP'
        CONNECT BY PRIOR CODE=UP_CODE;
    
    ORA-01436: CONNECT BY loop in user data
    01436. 00000 -  "CONNECT BY loop in user data"
    But when I use NOCLYCLE and CONNECT_BY_ISCYCLE to see which line is in question.
    It shows nothing, which means CONNECT_BY_ISCYCLE = ZERO for all rows.
    select * from (
        SELECT connect_by_root code AS code_root,
            CODE,
            CODE_DESC,
            UP_CODE ,
            CONNECT_BY_ISCYCLE AS ISCYCLE
          FROM DI_CODE_LEVEL
          WHERE TYPE_CODE='SP'
            CONNECT BY NOCYCLE PRIOR CODE=UP_CODE
        ) 
    where ISCYCLE>0;
    Is there another reason that sql would lift ORA-01436?
    If there is a loop, then will the combination of NOCYCLE, CONNECT_BY_ISCYCLE will show?

    Thank you

    Hello

    Apparently, one or more of the "SP" lines are at the origin of the problem.
    The WHERE clause is applied after the CONNECT BY is finished, saying:

    select * from (
        SELECT connect_by_root code AS code_root,
            CODE,
            CODE_DESC,
            UP_CODE ,
            CONNECT_BY_ISCYCLE AS ISCYCLE
          FROM DI_CODE_LEVEL
          WHERE TYPE_CODE='SP'
            CONNECT BY NOCYCLE PRIOR CODE=UP_CODE
        )
    where ISCYCLE>0;
    

    is equivalent to

    select * from (
        SELECT connect_by_root code AS code_root,
            CODE,
            CODE_DESC,
            UP_CODE ,
            CONNECT_BY_ISCYCLE AS ISCYCLE
          FROM DI_CODE_LEVEL
            CONNECT BY NOCYCLE PRIOR CODE=UP_CODE
        )
    WHERE    TYPE_CODE = 'SP'
    AND     ISCYCLE   > 0;
    

    To see where the loop occurs, you must include the lines where type_code = "SP".

    When you debug "ORA-01436: CONNECT IN a loop in the user data ', view SYS_CONNECT_BY_PATH (uk,...), where the United Kingdom is a unique key. That will tell you much more than just the root information. You might want this:

    SELECT  connect_by_root code                AS code_root,
            CODE,
            CODE_DESC,
            UP_CODE
    ,     SYS_CONNECCT_BY_PATH (code, '/')     AS path          -- For debugging
    ,       CONNECT_BY_ISCYCLE                AS ISCYCLE     -- For debugging
    FROM      DI_CODE_LEVEL
    -- WHERE TYPE_CODE = 'SP'     -- Commented out for debugging
    where      ISCYCLE > 0          -- For debugging
    CONNECT BY NOCYCLE      PRIOR CODE = UP_CODE
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    Explain how you get these results from these data.
    Always tell what version of Oracle you are using.

Maybe you are looking for

  • Stop: 0x000000A5(0x0001000A,0x00000000,0x00000000,0x00000000)

    cannot start windows or recover windows from my drive

  • Device object push service is not available or busy

    Hi guys, I am able to connect two laptops INSPIRON, can receive files on my inspiron 14R, but cannot send this computer laptop, laptop others appears in device, I connect using the direct connection of blue tooth, but it shows all services. what I've

  • Z30 Z30 problems call blackBerry

    Someone at - it problems with the Z30 calls? My Z30 will call a number and connect but going silent, they can here me, but I cannot here them so sometimes did the same thing when someone calls me. Doesn't happen all the time and not only with numbers

  • Error trying to open the audio file for blackBerry Smartphones

    I installed an app from the bb appl world, it contains audio files to listen to. When I try to open the audio file, it gives me the following error: IOException: java.io.IOException: HTTP response code: 302 Any suggestions?

  • Apps to crush each other

    I've read the only post on this forum, but it did not help me.  I have three apps I've been working on in Phonegap Build.  Whenever I build and install on my Iphone, it overwrites the other application that is already on my Iphone.  I have a differen