Invalid DBMS_LDAP package

I'm trying to fix invalid objects before database upgrade. I ran dbupgdiag.sql tool which reports DBMS_LDAP package as invalid. According to Enterprise Manager, the package is wrapped and contains some errors (see below). How can I unwrap the package and fix the errors?
Line # = 50 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 50 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 73 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 73 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 105 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 105 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 135 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 135 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 175 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 175 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 211 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 211 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 218 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 218 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 276 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 276 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 283 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 283 Column # = 14 Error Text = PL/SQL: Statement ignored
Line # = 289 Column # = 14 Error Text = PLS-00201: identifier 'DBMS_SYS_ERROR.RAISE_SYSTEM_ERROR' must be declared
Line # = 289 Column # = 14 Error Text = PL/SQL: Statement ignored

I have been successful using the PL/SQL DBMS_LDAP utilities and enhancing the included examples to bulk create portal users as well as adding them to a default portal group as outlined in the DBMS_LDAP demo examples (search.sql, trigger.sql, empdata.sql).
Using this PL/SQL trigger on the EMP table, I can add, delete or modify various user entries. However, while I can add a user to a default portal group, I have been unsuccessful in deleting a user from a group as well as modifying a users default group by deleting their "uniquemember" entry from one group and adding it to another using the DBMS_LDAP procedures.
Has anyone deleted a user from an existing group and how is this done programatically using the DBMS_LDAP utilities? Also, but less important, is there a way to programmatically modify a user from one portal group to another?
I don't necessarily want the code - just the method of doing this. Do I have to read in all of the 'uniquemember' attributes from the group (via DBMS_LDAP.populate_mod_array, for example), then manipulate the list and write it back. Or, is there a function that will allow me to delete or modify an entry in the 'uniquemember' attribute.
Regards,
Edward Girard

Similar Messages

  • Query objectGUID using dbms_ldap package

    Hi
    I've managed to retrieve the objectGUID from Active Directory using the DBMS_LDAP package.
    It is returned in this format: 8FDD7ACDA0749648B136E0AD6847BD64
    How can I use this value in a filter for dbms_ldap.search_s?
    objectGUID=8FDD7ACDA0749648B136E0AD6847BD64 does not work,
    I've also tried escaping the value \8F\DD\... and \\8F\\DD\\...
    Any one know what I need to do?
    Thanks

    I already have the HEX value of the GUID - the problem is the function dbms_ldap.search_s appears to be trying to match the objectGUID which has been converted to ascii.
    I can do partial matches like objectGUID=cf*
    But that is matching an ascii representation of the GUID: eg. cf¿t¿H¿6¿@¿D
    And nothing can match the upside down question marks.
    There must be another way - or another unique identifier to compare/filter by.

  • DBMS_LDAP package documentation and samples

    Where can I find the DBMS_LDAP package documentation and samples to use it to connect to OID from pl/sql blocks.
    TIA,
    Nishant

    I have been successful using the PL/SQL DBMS_LDAP utilities and enhancing the included examples to bulk create portal users as well as adding them to a default portal group as outlined in the DBMS_LDAP demo examples (search.sql, trigger.sql, empdata.sql).
    Using this PL/SQL trigger on the EMP table, I can add, delete or modify various user entries. However, while I can add a user to a default portal group, I have been unsuccessful in deleting a user from a group as well as modifying a users default group by deleting their "uniquemember" entry from one group and adding it to another using the DBMS_LDAP procedures.
    Has anyone deleted a user from an existing group and how is this done programatically using the DBMS_LDAP utilities? Also, but less important, is there a way to programmatically modify a user from one portal group to another?
    I don't necessarily want the code - just the method of doing this. Do I have to read in all of the 'uniquemember' attributes from the group (via DBMS_LDAP.populate_mod_array, for example), then manipulate the list and write it back. Or, is there a function that will allow me to delete or modify an entry in the 'uniquemember' attribute.
    Regards,
    Edward Girard

  • DBMS_LDAP package

    Hi,
    Please, where can I find the DBMS_LDAP package. I've Oracle 8.1.7 with Win2000?
    Am I oblige to install Oracle Internet Directory to use it?
    Thanks.

    Dear V Garcia
    I would like to ask you, how we could load DBMS_LDAP package into our from application, we developed an application using Oracle Forms (6i) deployed into Oracle9i AS (1.0.2.2.2.A) connected to Oracle8i Database server (Release 8.1.7). The problem is how I can use Oracle forms to authenticate users login using LDAP instead of traditional user authentication using forms trigger and database tables. I tried to find any document(s) that help in using LDAP through Oracle Forms6i without any success. I appreciate any Help

  • Extracting OBJECTGUID using DBMS_LDAP package

    Hi,
    My final goal of this exercise is to search a LDAP for an objectGUID and get the sAMAccountName of the user.
    But to get the things started I'm trying the easier way and doing the reverse..
    But when I extract objectGUID by searching for sAMAccountName in LDAP - I get the objectguid in the following two formats.
    1. utl.cast_to_raw(substr(temp_vals(i),1,200)): 7E0C3F3F3F3F3F31333F783F
    2. substr(temp_vals(i),1,200) : ~ ?????13?x?
    But I would like to extract the GUID in the escaped format \7e\0c\3f\3f.................... format and which is 48 characters long. Can someone point me in the right direction as to how I can achieve my result both ways.??
    Thanks in Advance
    Any Pointers will be appreciated!!

    Thanks Justin and Billy for your replies..
    Here is the code I'm using. As mentioned earlier I would like to obtain my results in escaped format e.g. (\a6\53\6d\40\03\e6\83\45\ae\9a\32\a5\95\6b\e8\f1)
    This is because a third party application stores user id's in the above format and I would like to join my retrieved results from LDAP with it. Once I achieve this I would also like to do the reverse i.e. pass the escaped values and retrieve the user information from LDAP.
    Currently when I pass sAMAccountName, I do get the following formats based on what function I use.
    1. (SUBSTR(temp_vals(i), 1, 200) -> Results in ~ ?????13?x?
    2. utl_raw.cast_to_raw(SUBSTR(temp_vals(i), 1, 200)) -> Results in 7E0C3F3F3F3F3F31333F78EF
    I simply cannot escape the values given in step two because I believe both are in different format as binary, raw string etc..
    Please let me know if this is achievable ??
      CREATE OR REPLACE PROCEDURE "Schema"."LDAP_PROC" IS
        ldap_host       VARCHAR2(512);          -- The LDAP Directory Host
        ldap_port       VARCHAR2(512);          -- The LDAP Directory Port
        ldap_user       VARCHAR2(512);          -- The LDAP Directory User
      ldap_guid VARCHAR2(512); -- To store the GUID
        ldap_passwd     VARCHAR2(512);          -- The LDAP Directory Password
        ldap_baseDN     VARCHAR2(512);          -- The starting (base) DN
        retval          PLS_INTEGER;            -- Used for all API return values.
        my_session      DBMS_LDAP.SESSION;      -- Used to store our LDAP Session
        res_attrs       DBMS_LDAP.STRING_COLLECTION;    -- A String Collection used
                                                        --   to specify which
                                                        --   attributes to return
                                                        --   from the search.
                                                        --   attribute.
    search_filter   VARCHAR2(512);          -- A simple character string used to
                                                --   store the filter (criteria) for
                                                --   the search.
        res_message     DBMS_LDAP.MESSAGE;      -- Used to store the message
                                                --   (results) of the search.
        temp_entry      DBMS_LDAP.MESSAGE;      -- Used to store entries retrieved
                                                --   from the LDAP search to print
                                                --   out at a later time.
        entry_index     PLS_INTEGER;            -- Used as a counter while looping
                                                --   through each entry. As we
                                                --   retrieve an entry from the LDAP
                                                --   directory, we increase the
                                                --   counter by one.
        temp_dn         VARCHAR2(512);          -- After each entry is retrieved
                                                --   from the LDAP directory (from
                                                --   the search), we want to use
                                                --   this variable to extract, store
                                                --   and print out the DN for each
                                                --   entry.
        temp_attr_name  VARCHAR2(512);          -- After retrieving an entry from
                                                --   LDAP directory, we will want to
                                                --   walk through all of the
                                                --   returned attributes. This
                                                --   variable will be used to store
                                                --   each attribute name as we loop
                                                --   through them.
        temp_ber_elmt   DBMS_LDAP.BER_ELEMENT;
        attr_index      PLS_INTEGER;            -- Used as a counter variable for
                                                --   each entry returned for each
                                                --   entry.
       temp_vals       DBMS_LDAP.STRING_COLLECTION;    -- Used to extract, store,
      --  temp_vals       DBMS_LDAP.BINVAL_COLLECTION;                                                --   and print each of the
                                                        --   values from each
                                                        --   attribute.
    BEGIN
        DBMS_OUTPUT.ENABLE(1000000);
        retval := -1;
         ldap_host    := 'LDAP_Server_name';
        ldap_port    := '389';
        ldap_user    := 'Username';
        ldap_passwd  := 'Password';
        ldap_baseDN  := 'DC=XXX,DC=XX,DC=XX';
        -- Print out variables.
        DBMS_OUTPUT.PUT_LINE('DBMS_LDAP Search Example');
        DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
        DBMS_OUTPUT.PUT_LINE(RPAD('LDAP Host ', 25, ' ') || ': ' || ldap_host);
        DBMS_OUTPUT.PUT_LINE(RPAD('LDAP Port ', 25, ' ') || ': ' || ldap_port);
        DBMS_OUTPUT.PUT_LINE(RPAD('LDAP User ', 25, ' ') || ': ' || ldap_user);
        DBMS_OUTPUT.PUT_LINE(RPAD('LDAP Base ', 25, ' ') || ': ' || ldap_baseDN);
         DBMS_LDAP.USE_EXCEPTION := TRUE;
        -- Obtain an LDAP session. The init() function initializes a session with an
        -- LDAP server. This actually establishes a connection with the LDAP server
        -- and returns a handle to the session which can be used for further
        -- calls into the API.
        my_session := DBMS_LDAP.INIT(ldap_host, ldap_port);
        DBMS_OUTPUT.PUT_LINE (
            RPAD('LDAP Session ', 25, ' ') || ': ' ||
            RAWTOHEX(SUBSTR(my_session, 1, 16)) ||
            ' - (returned from init)'
        -- Bind to the directory. The function simple_bind_s can be used to perform
        -- simple username/password based authentication to the directory server.
        -- The username is a directory distinguished name. This function can be
        -- called only after a valid LDAP session handle is obtained from a call to
        -- DBMS_LDAP.init(). If the connection was successful, it will return:
        -- DBMS_LDAP.SUCCESS. This function can raise the following exceptions:
        --      invalid_session : Raised if the session handle ld is invalid.
        --      general_error   : For all other errors. The error string associated
        --                        with this exception will explain the error in
        --                        detail.
        retval := DBMS_LDAP.SIMPLE_BIND_S(my_session, ldap_user, ldap_passwd);
        DBMS_OUTPUT.PUT_LINE(
            RPAD('simple_bind_s Returned ', 25, ' ') || ': '|| TO_CHAR(retval)
        -- Before actually performing the sort, I want to setup the attributes I
        -- would like returned. To do this, I declared a "String Collection" that
        -- will be used to store all of the attributes I would like returned.
        --      If I wanted to return all attributes, I would specify:
        --          res_attrs(1) := '*';
        --      If I wanted multiple (specified) attributes, I would specify:
        --          res_attrs(1) := 'cn';
        --          res_attrs(2) := 'loginShell';
        --res_attrs(1) := 'uid';
       -- res_attrs(2) := 'cn';
        res_attrs(1) := 'objectGUID';
       -- res_attrs(2) := 'sAMAccountName';
        -- Finally, before performing the actual search, I want to specify the
        -- criteria I want to search on. This will be passed as the "filter"
        -- parameter to the actual search.
        --      If you wanted all of the entries in the directory to be returned,
        --      you could simply specify:
        --          search_filter   := 'objectclass=*';
        --      You could also refine your search my specify a criteria like the
        --      following:
        --          search_filter   := 'cn=*Hunter*';
        search_filter  :=  'sAMAccountName=*282618726*';
        -- Finally, let's issue the search. The function search_s performs a
        -- synchronous search in the LDAP server. It returns control to the PL/SQL
        -- environment only after all of the search results have been sent by the
        -- server or if the search request is 'timed-out' by the server.
        -- Let's first explain some of the incoming parameters:
        --      ld       : A valid LDAP session handle.
        --      base     : The dn of the entry at which to start the search.
        --      scope    : One of SCOPE_BASE     (0x00)
        --                        SCOPE_ONELEVEL (0x01)
        --                        SCOPE_SUBTREE  (0x02)
        --                 indicating the scope of the search.
        --      filter   : A character string representing the search filter. The
        --                 value NULL can be passed to indicate that the filter
        --                 "(objectclass=*)" which matches all entries is to be
        --                 used.
        --      attrs    : A collection of strings indicating which attributes to
        --                 return for each matching entry. Passing NULL for this
        --                 parameter causes all available user attributes to be
        --                 retrieved. The special constant string NO_ATTRS ("1.1")
        --                 MAY be used as the only string in the array to indicate
        --                 that no attribute types are to be returned by the server.
        --                 The special constant string ALL_USER_ATTRS ("*") can be
        --                 used in the attrs array along with the names of some
        --                 operational attributes to indicate that all user
        --                 attributes plus the listed operational attributes are to
        --                 be returned.
        --      attronly : A boolean value that MUST be zero if both attribute types
        --                 and values are to be returned, and non-zero if only types
        --                 are wanted.
        --      res      : This is a result parameter which will contain the results
        --                 of the search upon completion of the call. If no results
        --                 are returned, res is set to NULL.
        -- Now let's look at the two output parameters:
        --      PLS_INTEGER
        --      (function return)   : DBMS_LDAP.SUCCESS if the search operation
        --                            succeeded. An exception is raised in all other
        --                            cases.
        --      res (OUT parameter) : If the search succeeded and there are entries,
        --                            this parameter is set to a NON-NULL value
        --                            which can be used to iterate through the
        --                            result set.
        retval := DBMS_LDAP.SEARCH_S(
              ld         =>  my_session
            , base       =>  ldap_baseDN
            , scope      =>  DBMS_LDAP.SCOPE_SUBTREE
            , filter     =>  search_filter
            , attrs      =>  res_attrs
            , attronly   =>  0
            , res        =>  res_message
        DBMS_OUTPUT.PUT_LINE(
            RPAD('search_s Returned ', 25, ' ') || ': ' || TO_CHAR(retval)
        DBMS_OUTPUT.PUT_LINE (
            RPAD('LDAP Message ', 25, ' ') || ': ' ||
            RAWTOHEX(SUBSTR(res_message, 1, 16)) ||
            ' - (returned from search_s)'
        -- After the search is performed, the API stores the count of the number of
        -- entries returned.
        retval := DBMS_LDAP.COUNT_ENTRIES(my_session, res_message);
        DBMS_OUTPUT.PUT_LINE(
            RPAD('Number of Entries ', 25, ' ') || ': ' || TO_CHAR(retval)
        DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
        -- Retrieve the first entry.
        temp_entry := DBMS_LDAP.FIRST_ENTRY(my_session, res_message);
        entry_index := 1;
        -- Loop through each of the entries one by one.
        WHILE temp_entry IS NOT NULL LOOP
            -- Print out the current entry.
            temp_dn := DBMS_LDAP.GET_DN(my_session, temp_entry);
            DBMS_OUTPUT.PUT_LINE (' dn: ' || temp_dn);
            temp_attr_name := DBMS_LDAP.FIRST_ATTRIBUTE(
                  my_session
                , temp_entry
                , temp_ber_elmt
            attr_index := 1;
            WHILE temp_attr_name IS NOT NULL LOOP
                temp_vals := DBMS_LDAP.GET_VALUES(my_session, temp_entry, temp_attr_name);
                IF temp_vals.COUNT > 0 THEN
                    FOR i IN temp_vals.FIRST..temp_vals.LAST LOOP
                        DBMS_OUTPUT.PUT_LINE(
                            RPAD('   ' || temp_attr_name, 25, ' ') ||
                            ': ' ||(SUBSTR(temp_vals(i), 1, 200)
    -- (SUBSTR(temp_vals(i), 1, 200) -> Results in ~ ?????13?x?
    --utl_raw.cast_to_raw(SUBSTR(temp_vals(i), 1, 200)) -> Results in 7E0C3F3F3F3F3F31333F78EF
    --BUT i WOULD LIKE TO GET MY RESULTS BACK IN THE FOLLOWING FORMAT
    --\a6\53\6d\40\03\e6\83\45\ae\9a\32\a5\95\6b\e8\f1
    --The format given above is an example only...
      END LOOP;
                END IF;
                temp_attr_name := DBMS_LDAP.NEXT_ATTRIBUTE(   my_session
                                                            , temp_entry
                                                            , temp_ber_elmt);
                attr_index := attr_index + 1;
            END LOOP;
            temp_entry := DBMS_LDAP.NEXT_ENTRY(my_session, temp_entry);
            DBMS_OUTPUT.PUT_LINE('=======================================================================');
            entry_index := entry_index + 1;
        END LOOP;
        -- Unbind from the directory
        retval := DBMS_LDAP.UNBIND_S(my_session);
        DBMS_OUTPUT.PUT_LINE(RPAD(
            'unbind_res Returned ', 25, ' ') || ': ' ||
            TO_CHAR(retval)
        -- Handle Exceptions
        EXCEPTION
            WHEN OTHERS THEN
                DBMS_OUTPUT.PUT_LINE('');
                DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
                DBMS_OUTPUT.PUT_LINE('Exception Encountered');
                DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
                DBMS_OUTPUT.PUT_LINE('  Error code    : ' || TO_CHAR(SQLCODE));
                DBMS_OUTPUT.PUT_LINE('  Error code    : ' || TO_CHAR(SQLCODE));
                DBMS_OUTPUT.PUT_LINE('  Error Message : ' || SQLERRM);
                DBMS_OUTPUT.PUT_LINE('  Exiting.');
    END;
    END LOOP;
                END IF;
                temp_attr_name := DBMS_LDAP.NEXT_ATTRIBUTE(   my_session
                                                            , temp_entry
                                                            , temp_ber_elmt);
                attr_index := attr_index + 1;
            END LOOP;
            temp_entry := DBMS_LDAP.NEXT_ENTRY(my_session, temp_entry);
            DBMS_OUTPUT.PUT_LINE('=======================================================================');
            entry_index := entry_index + 1;
        END LOOP;
        -- Unbind from the directory
        retval := DBMS_LDAP.UNBIND_S(my_session);
        DBMS_OUTPUT.PUT_LINE(RPAD(
            'unbind_res Returned ', 25, ' ') || ': ' ||
            TO_CHAR(retval)
        -- Handle Exceptions
        EXCEPTION
            WHEN OTHERS THEN
                DBMS_OUTPUT.PUT_LINE('');
                DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
                DBMS_OUTPUT.PUT_LINE('Exception Encountered');
                DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------------------------');
                DBMS_OUTPUT.PUT_LINE('  Error code    : ' || TO_CHAR(SQLCODE));
                DBMS_OUTPUT.PUT_LINE('  Error code    : ' || TO_CHAR(SQLCODE));
                DBMS_OUTPUT.PUT_LINE('  Error Message : ' || SQLERRM);
                DBMS_OUTPUT.PUT_LINE('  Exiting.');
    END;

  • Problem with Reports Server and invalid DB packages when release code

    Hello,
    I'm not certain that this is a Reports issue or not, but wondered if anyone had encountered similar. We've recently upgraded from Forms and Reports 6i to 10.1.2.0.2. A couple of times now, after doing a release of code to our environment, we find that the next request to the Reports Server generates a 'existing state of packages has been discarded' error. Submitting exactly the same report request a second and subsequent times works fine.
    However, we always make sure we recompile all invalid packages after a code release; and our Forms front-end doesn't encounter any errors like this. Is there some possible issue with using existing Reports engines to run reports after a code release - should we be bouncing the Reports server..?
    Thanks,
    James

    Hi. Thanks for your quick response. The contain of StrSql is:
    "SELECT IdTipo FROM TIPOSTELEFONO", where IdTipo id a column of TIPOSTELEFONO Table.
    I tryied the same sql setence with SQL Server Management Studio Express and it works fine. Already I have tryied with others sql sentences. All they worked fine in SQL Server Management Studio, but not with my java example using sqljdbc4.jar.
    sqljdbc4.jar documentation comment that these driver work with sql server 2000 to sql server 2008. I'll ask this cuestion in Microsoft forums.
    Thanks.

  • Can the command ADD partition (in table )invalid procedures,packages. ??

    Hi Folks.
    I know that drop a partition make invalid public synonyms, packages, functions.
    But.
    Add partition, can make invalid some object?
    I tested and didnt find objects invalid.
    Tks

    >
    I tested and didnt find objects invalid.
    >
    Please confirm that your tests included these steps
    1. created a partitioned table
    2. create at least one of every possible type of object that might depend on that table
    3. performed an ADD PARTITION that succeeded
    4. confirmed that NONE of the objects from step #2 were invalidated
    5. performed an ADD PARTITION that failed in various ways (local index partition can't be created, tablespace can't be extended, non-existent tablespace, etc)
    6. confirmed that NONE of the objects from step #2 were invalidated.
    See ALTER TABLE in the SQL Language Reference
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_3001.htm
    >
    Note:
    If you alter a table that is a master table for one or more materialized views, then Oracle Database marks the materialized views INVALID. Invalid materialized views cannot be used by query rewrite and cannot be refreshed. For information on revalidating a materialized view, see ALTER MATERIALIZED VIEW.
    >
    Did you test that the above MV is not invalidated?
    Did you test that adding a partition did not invalidate any local or global indexes?

  • Invalid Java Packages

    Hi Guys,
    hope somebody can help me to find out why these packages are invalid.
    I try to use a barcode plsql script wich references the barcode types in the library:
    http://sourceforge.net/projects/barcode4j/files/barcode4j-2.0-bin.zip
    All or/krysalis/barcode4j Java Classes don't work.
    Where could be the problem?
    I am working on Version 11.2.0.1.0 Windows 2003 Server
    Testmachine on Version 9.2.0.8.0 Windows 2000 Server
    Also I am not sure how to reference the following:
    V_IMAGETYPE varchar2(100) := 'image/jpeg';
    V_FONTPATH varchar2(100) := 'C:\\WINDOWS\\Fonts';
    Is this valid for Windows?
    Thanks
    Marcel

    Hi,
    Before performing just go through the pages all through and check whether it refers to your issue and go head else check in metalink.
    Refer to :
    http://www.ubtools.com/jira/browse/QA-40
    http://www.askrenzo.com/oracle/DBMS_SQLPA_invalid.html
    HTH
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Will DBMS_LDAP package works when SSL is enabled?

    I am trying to retrieve user name stored in MSAD using DBMS_LAP package. So i just want to know will the same will work if SSL is enabled?

    I personally don't know, but Google seems to.

  • Error Installing iTunes 7.7 - Invalid installation package

    When I try to install iTunes 7.7 on my Windows Vista Home Premium laptop, I get the following error message: "This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package." I had a previous version on iTunes on my computer which worked with no problems, but uninstalled it and now am trying to install iTunes 7.7. I have deleted the download file and all files in the Temp folder several times, but no change. Any suggestions?

    I am never quite sure about these.
    Do you remember which version of iTunes you had before and when you uninstalled it, did it uninstall without any errors? I am thinking of visual basic script problems that used to affect earlier versions of iTunes 7.
    A couple of things to try, download the installer file (iTunessetup.exe)onto your desktop to make certain there is nothing funny in the path upsetting things.
    Right click on it and choose run as administrator.
    If that doesn't work, try installing it from another account with administrator rights.

  • INVALID SYS PACKAGES

    Oracle 8i (8.1.7.4.1) Windows 2000 Server
    Using DBNS_UTILITY.COMPILE_SCHEMA('SYS', FALSE) some objects compile and others become invalid.
    Help please

    Please use
    @?\rdbms\admin\utlrp.sql
    in sqlplus connected as SYS, instead of dbms_utility.compile_schema.
    If you still have invalid objects,
    look in dba_errors for the error messages which were generated and resolve them.
    If you want assistance only posting something failed, without posting error messages, is insufficient and should be avoided.
    Sybrand Bakker
    Senior Oracle DBA

  • Invalid app package

    Hi everybody,
    I have a problem with the app package of my windows phone 8.1 store app. Until a month ago everything was fine i build my project go to Project >> Store >> Create App Packages after that follow the instructions in the wizard and VS create my
    appx file which i need to upload into the store. The appx file was approximately 25 MB i upload it to the store and everything works perfect. I continue to work on my project and recently i decided to upload a new version in the store. Following the exact
    same steps i created my appx file (which by the way passed the windows phone store requirements) and everything passed with success. When i located the appx file it was only 1 MB. Even that i know that something is wrong i uploaded it to the store to try and
    now my app won't work. I tried couple of times i tried clean the project rebuild it everything the result is the same. I digged in my archives an old version of the project where this problem doesn't exist and i compared Project Properties, config files, Store
    manifest etc. Everything is the same except that in the new project i have a lot more views and models and a background task. The new project works perfectly on the emulator and on my phone which i'm using for testing the app.

    Hi everybody,
    I have a problem with the app package of my windows phone 8.1 store app. Until a month ago everything was fine i build my project go to Project >> Store >> Create App Packages after that follow the instructions in the wizard and VS create my
    appx file which i need to upload into the store. The appx file was approximately 25 MB i upload it to the store and everything works perfect. I continue to work on my project and recently i decided to upload a new version in the store. Following the exact
    same steps i created my appx file (which by the way passed the windows phone store requirements) and everything passed with success. When i located the appx file it was only 1 MB. Even that i know that something is wrong i uploaded it to the store to try and
    now my app won't work. I tried couple of times i tried clean the project rebuild it everything the result is the same. I digged in my archives an old version of the project where this problem doesn't exist and i compared Project Properties, config files, Store
    manifest etc. Everything is the same except that in the new project i have a lot more views and models and a background task. The new project works perfectly on the emulator and on my phone which i'm using for testing the app.

  • Unable to recompile invalid package bodies

    Hello,
    Recently, I cloned the EBS installation, and there were a lot of invalid objects. I used the script to recompile them, and they went fine except for some package bodies, that can't be recompiled neither manually via sqlplus, nor sqldeveloper. Tried also via adadmin, there is no way to be recompiled.
    There are 39 packages owned by apps schema as follows:
    SQL> select object_name, object_type, owner, status
    2 from dba_objects where status='INVALID';
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    FII_AP_INV_ON_HOLD_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_HOLD_DATA_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_INV_PAYMTS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_INV_LINES_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AP_SCH_PAYMTS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_AR_TRX_DIST_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_COST_F_C                                                                       PACKAGE BODY     APPS               INVALID
    FII_PA_REVENUE_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_UOM_CONV_F_C                                                                      PACKAGE BODY     APPS               INVALID
    FII_PA_BUDGET_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_ASG_CHNG_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_HR_AGE_BAND_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_ASSGNMNT_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_GRADE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_JOBS_M_C                                                                       PACKAGE BODY     APPS               INVALID
    EDW_HR_SERVICE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_MVMNT_TYP_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_PERSON_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_POSITION_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_REC_ACT_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_ORGANIZATION_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_PRSN_TYP_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_HR_RQN_VCNCY_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_HR_REASON_M_C                                                                      PACKAGE BODY     APPS               INVALID
    HR_EDW_WRK_CMPSTN_F_C                                                                      PACKAGE BODY     APPS               INVALID
    ISC_EDW_BOOK_SUM1_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_MTL_INVENTORY_LOC_M_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_COGS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPM_JOB_RSRC_F_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPM_JOB_DETAIL_F_C                                                                 PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPMCOGS_F_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_OPMINV_DAILY_STAT_F_C                                                                 PACKAGE BODY     APPS               INVALID
    EDW_OPI_OPRN_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OBJECT_NAME                                                                           OBJECT_TYPE     OWNER               STATUS
    EDW_OPI_ACTV_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_OPI_LOT_M_C                                                                       PACKAGE BODY     APPS               INVALID
    EDW_OPI_PRDL_M_C                                                                      PACKAGE BODY     APPS               INVALID
    OPI_EDW_UOM_CONV_F_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_POA_SPLRITEM_M_C                                                                      PACKAGE BODY     APPS               INVALID
    EDW_POA_LN_TYPE_M_C                                                                      PACKAGE BODY     APPS               INVALID
    39 rows selected.
    The compilation errors are all the same.
    SQL> select name, text from user_errors;
    and it gives me this:
    EDW_HR_ASG_CHNG_M_C
    PL/SQL: SQL Statement ignored
    EDW_HR_AGE_BAND_M_C
    PL/SQL: ORA-02083: database name has illegal character '-'
    EDW_HR_AGE_BAND_M_C
    PL/SQL: SQL Statement ignored
    The same errors I get when I try to recompile them in sqldeveloper.
    Please, any Idea how can I solve this?
    I would be grateful If you help me with this one.
    Thanks

    Hi,
    I was also facing similar problem when I applied packages from the code line to local DB.
    You can try to first compile first the package specification and then compile the package body again.
    If still you get the error : PL/SQL: SQL Statement ignored, this means that the package specification and the package body are not in sync (either one of them is an older version). In that case you need to check from the version control of these.
    Regards,
    Rahul

  • Using DBMS_LDAP in Apex

    Hi there
    I have the following problem. I have a simple function which uses DBMS_LDAP package. For testing purposes, when I call the function from sql*plus or sqldeveloper, it works fine and I can authenticate the user in AD. However, when using the same function call in Apex, the screen 'freezes' for about a minute and returns 'IE cannot display page' message. It looks like getting time out. Is this a network/firewall issue? Is Apex using some kind of proxy and cannot establiss LDAP session? Your help is really appresiated much.
    thanks, Ed

    Joel
    thank you for clarification. Really appreciate your help. I was able to get the list. Here is the procedure. The line that fails is highlighed. Basically it can't initialize the session on AD server...
    declare
         p_username          varchar2(25):='test';
         p_password          varchar2(25):='test';
         l_user               varchar2(256);
         l_ldap_server     varchar2(256)     := 'AD host';
         l_domain          varchar2(256)     := 'domain';
         l_ldap_port          number               := 389;
         l_retval          pls_integer;
         l_session          dbms_ldap.session;
         l_cnt               number;
    begin
    --     l_retval := dbms_ldap.unbind_s( l_session );
         l_user               := p_username||'@'||l_domain;
    *     l_session          := dbms_ldap.init( l_ldap_server, l_ldap_port ); -- start session*     
    l_retval          := dbms_ldap.simple_bind_s( l_session, l_user, p_password ); -- auth as user
         l_retval          := dbms_ldap.unbind_s( l_session ); -- unbind
         dbms_output.put_line( 'yes');
    exception when others then
    dbms_output.put_line( 'no');
    raise_application_error(-20101, 'invalid user');
         end;
    thanks, Ed

  • Please help with assigning user to a group in AD using dbms_ldap

    Dear gurus of Apex and LDAP!
    Please help me a bit.
    I managed to create any user in AD from Apex using dbms_ldap package and set many of his attributes. But I cannot set that my user belongs to specific group, let's say MY_GROUP. I guess the name of attribute for group is 'member' or 'memberOf', so I tried them both in the same way as I've done for other attributes:
    v_vals(1) := 'MY_GROUP';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'member', v_vals);
    I've got LDAP client/server error: CONSTRAINT violation. 000020B5: AtrErr: DSID-031516FC, #1: 0: 000020B5:
    DSID-031516FC, problem 1005 (CONSTRAINT_ATT_TYPE), DATA 0, Att 1f (MEMBER)
    v_vals(1) := 'MY_GROUP';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'memberOf', v_vals);
    I've got LDAP client/server error: DSA IS unwilling TO perform. 0000209A: SvcErr: DSID-031A0929, problem 5003 (WILL_NOT_PERFORM), DATA 0
    After that I've tried to extend group name to string, which is shown in LDAP browser for attribute 'memberOf' (when I've added it manualy):
    v_vals(1) := 'CN=MY_GROUP,OU=GROUPS,OU=Allianz,DC=allianz,DC=com';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'member', v_vals);
    I've got LDAP client/server error: OBJECT CLASS violation. 0000207D: UpdErr: DSID-03150913, problem 6002 (OBJ_CLASS_VIOLATION), DATA 0
    v_vals(1) := 'CN=MY_GROUP,OU=GROUPS,OU=Allianz,DC=allianz,DC=com';
    DBMS_LDAP.populate_mod_array(v_array, DBMS_LDAP.MOD_ADD, 'memberOf', v_vals);
    LDAP client/server error: DSA IS unwilling TO perform. 0000209A: SvcErr: DSID-031A0929, problem 5003 (WILL_NOT_PERFORM), DATA 0
    I've also tried some other variants (without 'CN=' and without 'OU=GROUPS,OU=Allianz'), but still no success.
    Search of this forum and even google didn't help either :(
    Please, help me to find the correct syntax for it or tell me if it's not possible.
    Thanx in advance,
    Vladimir

    Vladimir ,
    firstly the attributes member and memberOf are special attributes in AD having a set of predefined values. Hence an error will be thrown if you try to assign them values like 'MY_GROUP'. There are two basic solutions to this problem : Either you define an OU in your AD which will act as your 'MY_GROUP'. This is a quick fix solution and is not robust at all. The other solution is to add your own property in the tree , something like 'roleCode', you can then assign it any value you want.
    But the problem now is, AD does not allow addition of new attributes in the structure. You have to use ADAM in for this and you can specify a common linking mechanism between AD and ADAM now such as email address can act as the link between both the directories.
    Hope this helps
    Shantanu

Maybe you are looking for

  • Video and audio freezeing

    For some reason my computer has been running super slow. When watching video like youtube and ustream. My video and audio will randomly start freezing which is super annoying, kind of like a skipping cd or dvd. I have reset safari and cache and its s

  • HT1296 Where is the "info tab" on iTunes V11.1.3???

    The "info tab" on iTubes V11 is missing. Cannot sync calender, mail and contacts.

  • Smart groups in iCloud not working!?

    smart groups are great but totally useless if they won't appear on your iphones / iPad , ... any hints / workarounds out there?

  • Internet problems with i tunes

    Hello, I import a cd using i-tunes then the internet switches itself off. I have spoke to my suppliers(bulldog) and they said the internet is still switched on. Everything worked OK until (i think!) I downloaded the new quicktime, or tried to downloa

  • IPhoto 09 / Parallels / Photoshop CS4

    Hi all, I've only recently started using an iMac and didn't want to pay out for a Mac version of CS4, so purchases Parallels in order to run my software. All is working ok except .... When I work in CS4 and save my edited image, it doesn't replace th