Crashing Metadata Repository?

Hi,
Realize this may be more suited for the General Database forum, but since it involves the OID metadata repository and the DBMS_LDAP APIs, thought I would try this board first.
I am trying to load 1400+ users into Oracle Internet Directory from an existing database.
I have written a small PL/SQL procedure that queries the database for the users info and then loads it into OID using the DBMS_LDAP APIs. I am using SQL*Developer to write and debug the procedure.
The procedure loads 1131 users, but then halts, returning a "No more data to read from socket" error. All users before this point are loaded correctly into OID.
Running this procedure from SQL*Plus results in a "ORA-03113: end-of-file on communication channel"
Researching the OTN and MetaLink forums leads me to believe that either the source database or the OID metadata repostitory is crashing, causing the connection to be lost. Perhaps this is a memory issue. . .?
I checked the logs for both the source database and the OID metadata repository - I can't find anything related to this problem (i.e. messages occuring at the same time I run the procedure.)
Can anyone give me any hints on how to troubleshoot this problem?
TIA
Jim
Here's the procedure. . .
CREATE OR REPLACE
PROCEDURE upload_users_oid AS
GN$Errcode NUMBER ;
GC$ErrLib VARCHAR2(2000) ;
GC$ldap_host VARCHAR2(256) := 'something.com'; -- your LDAP Host url
GC$ldap_port VARCHAR2(256) := '389'; -- your LDAP Port
GC$ldap_user VARCHAR2(256) := 'cn=orcladmin';
GC$ldap_passwd VARCHAR2(256) := 'somepassword';
GC$ldap_base VARCHAR2(256) := 'cn=users,dc=something,dc=com';
my_session DBMS_LDAP.SESSION;
emp_dn VARCHAR2(256);
emp_array DBMS_LDAP.MOD_ARRAY;
emp_vals DBMS_LDAP.STRING_COLLECTION;
cursor user_cur is
select username, lname, fname from usertable
where username IS NOT NULL AND status = 'A';
retval PLS_INTEGER;
user_username varchar2(30);
user_lname varchar2(32);
user_fname varchar2(32);
user_passwd varchar2(12);
BEGIN
retval := -1;
user_passwd := 'Passwd01';
open user_cur;
DBMS_OUTPUT.ENABLE(1000000);
DBMS_LDAP.USE_EXCEPTION := TRUE;
my_session := DBMS_LDAP.init(GC$ldap_host,GC$ldap_port);
retval := DBMS_LDAP.simple_bind_s(my_session, GC$ldap_user,GC$ldap_passwd);
LOOP
emp_array := DBMS_LDAP.create_mod_array(6);
FETCH user_cur into user_username, user_lname, user_fname;
EXIT WHEN user_cur%NOTFOUND;
emp_vals(1) := user_username;
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'uid',emp_vals);
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'cn',emp_vals);
emp_vals(1) := user_lname;
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'sn',emp_vals);
emp_vals(1) := user_fname;
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'givenname',emp_vals);
emp_vals.delete;
emp_vals(1) := user_passwd;
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'userpassword',emp_vals);
emp_vals(1) := 'top';
emp_vals(2) := 'person';
emp_vals(3) := 'organizationalPerson';
emp_vals(4) := 'inetOrgPerson';
emp_vals(5) := 'orcluser';
emp_vals(6) := 'orcluserv2';
DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD, 'objectclass',emp_vals);
emp_dn := 'cn=' || user_username || ', ' || GC$ldap_base;
DBMS_OUTPUT.PUT_LINE(RPAD('Adding Entry for DN ',25,' ') ||': [' || emp_dn || ']');
retval := DBMS_LDAP.add_s(my_session,emp_dn,emp_array);
DBMS_LDAP.free_mod_array(emp_array);
emp_vals.delete;
END LOOP;
Close user_cur;
retval := DBMS_LDAP.unbind_s(my_session);
EXCEPTION
WHEN OTHERS THEN
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
END;

Because your stored procedure executes on the source database, I would look there thoroughly first.
Have you checked with your DBA for any resource limits on the userid that owns the session. Limits can be expressed in a number of ways, typically are defined in a user profile and can definitely manifest themselves as unexpected aborts out of nowhere for long running processes.
Of course a DBA can manually whack it, as well.
regards,
tt

Similar Messages

  • Error in Installing SSO Metadata Repository Creation Assistant (10.1.4.3.1)

    I am trying to Install Portal Forms Reports 11, so I had to Install all prerequisites
    My Machine Specifications:-
    1- Oracle Enterprise Linux 5.5 x86-64
    2- DB 11g R2
    3- WebLogic 10.3.3 (X64)
    4- Oracle Identity Management 11.1.1.2.0
    I was executed the inspre11.pl with -op1
    than I was trying to Install SSO Metadata Repository Creation Assistant (10.1.4.3.1)
    in the last step (Step 7 - Loading Repository)
    http://lh3.ggpht.com/_bMH90GEkTL4/SwW1jlNHzFI/AAAAAAAABjE/ZZm55usPKu0/s1600-h/clip_image054%5B3%5D.jpg
    I encountered this error :-
    ERROR - Unable to connect to the database. See the log file for details. Check that you have provided the proper service name for the database, that the database is running, the database connection information is valid, and that the database is set up for password file authentication. For more information, click the Help button.:ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_IAS_VERSION.SET_COMPONENT_LOADING' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    what can I do ? my Database is start up and the connection is OK !!!!!!!!!!!
    I followed the oracle documentation:-
    Installation Guide for Oracle Identity Management 11g Release 1 (11.1.1) E12002-02 October 2009
    now we are going to 2011 !!!!!!!!!!!!!!!!!!!
    Is there another newer Installation guide from oracle?
    thank you

    Good question, rozester.
    I encountered this problem also, while trying to install the SSO MRCA 10.1.4.3.1 on 64-bit RHEL5 (though it's at version 5.7 but I'm positive that won't make any difference to the result).
    This may or may not match your situation, but when I looked in the log file $ORACLE_HOME/assistants/repca/log/repca_<datestamp>.log, I saw what was probably the reason behind the error:
    <$ORACLE_HOME>/bin/sqlplus: error while loading shared libraries: libclntsh.so.9.0: cannot open shared object file: No such file or directory
    I think I remember seeing that the link operation during installation had failed, but I hoped it would be OK. And it possibly would have been, if I'd remembered to specify the destination database Oracle home rather than the SSO MRCA Oracle home when prompted (on the page where it asks for database home and log file path). Perhaps then it would have used the sqlplus binary from the database oracle home, and since that one definitely works, it might have worked. But before I thought of that, I did a workaround; I installed the SSO MRCA on a 32-bit RHEL5 box (using the same directory paths) and copied the shared library files to the 64-bit box's shared library directory via scp as follows:
    cd $ORACLE_HOME/lib; scp -pr * oracle@rhel64box:$PWD/
    When I re-ran $ORACLE_HOME/runRepca, it then worked without error. Another thing I could have tried is just running runRepca on the 32-bit RHEL5 box, and that probably would have worked too, but it probably would have been a lot slower compared to running it locally on the destination server; it's takes quite a while as it is.
    Hope this helps. I'm sure it'll help me if next time I do this I forget what I did before and go searching again ;-)

  • Metadata Repository Creation Assistant fails with ORA-01119

    <!--[if gte mso 9]><xml>
    Normal
    0
    </xml><![endif]-->
    Hi All,
    My DB version is 10.1.0.2 and I've upgraded the same to
    10.1.0.4.2
    In order to install B2B, I started off by installing the
    Metadata Repository Creation Assistant.
    After the initial steps, I got the following message:
    <h5>
    OracleAS RepCA was not able to find the Oracle Text Supplied
    Knowledge Base in the database specified. </h5>
    <h5>If you are planning to use this repository for installing
    OracleAS Portal, you have to install Oracle Text Supplied Knowledge Base.
    Oracle Text Supplied Knowledge Base can be installed in the database using
    Oracle Database 10g Companion CD.</h5>
    <h5>
    If you are not planning to use this repository for
    installing OracleAS Portal, you may continue further. Continue? Yes/No?</h5>
    I continued with "Yes" and I chose the storage option as
    "Regular or Cluster File system". In the next step -<strong>Specify Tablespace
    information</strong>, I chose to install it in the C:\ , where there was approx 18GB
    of free space. Yet, I encountered the following error:
    <h5>
    Unable to create tablespace. Please see the OracleAS RepCA
    log file for more details.</h5>
    <h5>ORA-01119 error in creating database file 'string'</h5>
    <h5>Cause: Insufficient space on device or invalid database file
    path.</h5>
    <h5>Action:</h5>
    <h5>a) Verify the database file path specified.</h5>
    <h5>b) Decrease the size of the requested file or allocate a
    file on another device with more available space. If a file size was not
    specified in the statement, then specify a file size smaller than the available
    space on the device.</h5>I have verified the database file path. I also tried
    decreasing the size. I further tried using another directory where there was
    11GB of free space. It still didn't work.
    Please HELP!
    -Suhas.

    Hi Suhas,
    Can you please do the following?
    1.     Please try pointing to C:\b2b.dbf file during installation and see if the installation goes fine or not.
    Regards
    Vipin R.S

  • Grapbical Display of Metadata repository in SAP BW 7.31

    Hi,
    I am working on SAP BW 7.31 and couldnt find Graphical display of BI Content in Meta data repsository,
    We have updraded to the Support pack level 04  and now I could see object details tab but when I click on it its shows
    Service cannot be reached
    What has happened?
    URL call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system with error code 403 and for the reason Forbidden.
    What can I do?Please select a valid URL. 
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    In general, object details shows network display of data flows? or is there anything I am missing apart from ICF.
    Please let me know how this can be resloved...
    Thanks in advance

    Hello,
    As of 7.30 the BW Metadata Repository has been designed as a WebDynpro Application. It can also run as an imbedded process in the Analytic Workbench (RSA1). Due to the nature of this technology
    a separate login to the WebAS is needed to establish a Web-Session on the local WebAS. However if Single Sign On for the target system is activated the WebAS may be customized to use it as well. In this case you would see no login screen when calling the BW Metadata Repository. Please also note that also all relevant ICF-Services for BW must be active (i.e. all Web Document services) to be able to use the repository normally. Please find here some useful links to relevant ICF and ICM
    documentation which might help you to properly set up your system:
    http://help.sap.com/saphelp_nw73/helpdata/en/48/7f28a10fa44cdbe10000000a42189d/frameset.htm
    http://help.sap.com/saphelp_nw73/helpdata/en/48/3ae05299c172d0e10000000a42189c/frameset.htm
    Regards,
    Michael

  • Metadata Repository search doesn't work NW 2004

    Hi all,
    After system patching Metadata Repository search stoped working, when I start search short dump occurs
    "Function parameter "PTEXT" is unknown.
    Error in ABAP application program.
    The current ABAP program "CL_RSO_REPOSITORY=============CP" had to be
    terminated because one of the statements could not be executed.
    This is probably due to an error in the ABAP program.
    Function module "SUSR_INTERFACE_PROF" was called
    with the parameter "PTEXT".
    This parameter is not defined."
    I tried to find SAP-notes, but was able to find about NW 2004s
    NW 2004, Basis 6-40, BW 3.5, SP BW21, SP Basis21
    Any help will be appreciated
    Thanks in advance,
    Elena

    Hi Susanne,
    unfortunately NO repository is indexed by default so therefore you can not find Room Content before you create an index with the relevant information.
    You must create yourself a new index of the repository where  Room Content is stored. In EP6 SP2 Patch 5 and higher as well as NW'04 this should be /room_extensions. So add this repository as the Data Source of the index.
    After indexing you should be able to perform search of the room content.
    Hope this helps,
    Robert

  • Can OID/IM components be moved to a new Metadata Repository?

    Hi
    I've looked around on Metalink but can't find any document that suggests this can be done, but I thought I would ask the question anyway (two iin fact):
    1. Can an existing OID/IM setup be configured so as to oint to a new metadata repository? Is it possible to install a new MR and then associate the IM components away from it's existing MR to a new MR?
    2. In an OracleAS Cold Failover Cluster (IM) topology, I've read contradictory notes (or I've misunderstood). Do the OID and MR components have to be on the same box? Or can they be on different boxes?
    Regards
    Andy

    #1, refer this:
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/chginfra.htm#BGBDDDBE
    #2, refer following note on MetaLink:
    368688.1 Master Note:How to Split AS10G Infrastructure Components Including the Metadata Repository and Identity Management
    Hope this helps.
    Thanks
    Shail

  • In the metadata repository, display the object detail links don't work

    We've upgraded to 7.3 and when we lick on display the object details links we get the following message.  I've looked in SICF and everything looks active and is set up
    Service cannot be reached
    What has happened?
    call was terminated because the corresponding service is not available.

    HI LMM
    I have also same Problem . I thing SICF  is working fine but SAP BW 7.3  Metadata Repository is not available (Not maintained) the corresponding service is not available that why  System shows An error.
    Regard's
    R.S.Reddy

  • How to include BC documentation in the metadata repository

    Hi experts,
    Currently, my bw 3.5 system doesn't display the business content documentation in the metadata repository, the one available in the help.sap.com sitie.
    In the sap documentation is stated:
    "To include SAP Content documentation in the online documentation generated for metadata objects, it must be installed in plain html http format for static help and using a Web server. The Content documentation can then be read by the Web server from any front end platform using the http protocol, and displayed in a Web browser.
    You can find additional information about maintaining setting variants for online help (transaction SR13) in the Business Information Warehouse Implementation Guide (IMG), under the node General BW Settings ® Settings for Displaying SAP Content Documentation."
    however I can figure out how to put the bc documentation in my metadata repository
    I execute TC SR13, and has this entry in the PlainHtmlHttp tab:
    ONLINE-EN     WN32     IWBHELP     http://help.sap.com     saphelp_nw04/helpdata     EN   default is ON
    I appreciate an step by step solution for my problem
    thanks everybody

    I dont know if theres a way to do that....
    I think is not possibl because if you want to open the web pages of help.sap is requered that your SAP system would have http connection directly to internet and at least by a security issue no recommended.....
    Use sap help in web....
    Regards

  • Documents in MetaData repository

    Hello All,
    As part of our systemdocumentation we store technical documents in HTML format with BW objects, like InfoProvider, InfoObject etc. These documents are then visible in the metaData repository. Dose anyone know if it is possible to transport these documents across the system landscape or do we have to upload the documents in every seperate system (dev, QA and PRD) again?
    Many thanks
    Cerillo Smeets

    Hi,
    Using the function area Transport Connection in the Administrator Workbench, you can exchange metadata between different systems. You can find additional information under Exchanging Metadata in XMI Format.
    Pls go through
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/8a1e5e4b63974bbc28801a2797833f/frameset.htm
    Thanks
    Reddy
    Message was edited by: Reddy

  • Metadata repository not working

    Hello BW Experts,
    Metadata repository shows the main page. but if i press the cubes / ods / any other object. nothing comes. what could be the problem.
    Thanks,
    BWer

    Hi,
    Please see OSS Note 822866.
    Re: Metadata Repository: cannot navigate
    Hope this helps...

  • Red error of a web template in Metadata Repository in TEST system

    This red error only occurs on our test system (maybe related to transport).  RSA1->Goto Metadata Repository page->Double Local objects under Activated objects in the middle frame -> Double click Web Template Name in the right frame, then can see two same lines of red errors (see below in between two dashed lines):
    Object 'our_web_template_name' (our_web_template_name) of type 'Web Template Name' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name 'our_web_template_name' (in transport request our_web_template_name) of type 'Web Template Name' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System response
    The object was not taken into account in the next stage of processing.
    What could cause the above red error in Metadata Repository how to correct it?
    Thanks

    For these requests can you check if they contained objects like:
    BW: LOIO Class Web Templates
    BW: PHIO Class Web Templates
    See, even if the transport for a web template does not contain these, it is imported fine, but the web template will not function in the target system. This happens quite often and you need to make sure that the above objects are also included in the request.
    Hope this helps...

  • Can I install Metadata Repository for 10.1.2.0.2 on Oracle 10.2.0 database

    Does any one know if the Metadata Repository of OracleAS 10.1.2.0.2 can be install on an existing Oracle 10.2.0 database ?
    The MRCA tool is giving me this message "Oracle Metadata Repository cannot be loaded into this version of the database. Please see the installation guide for more information on supported database versions ...."
    Kim

    According to the Installation Guide, Oracle9i Release 2 (9.2.x) and Oracle Database 10g Release 1 (10.1.x) are supported. See the following for more specific information:
    http://download-west.oracle.com/docs/cd/B14099_19/sol.1012/repca.1012/repca/intro.htm#CHDEAJFB

  • 9.0.4.1 Metadata Repository in 9.2.0.6

    I just upgraded my 9iAS infrastructure and mid tier with BI and Forms from 9.0.2.3 to 9.0.4.2. We had all the components on one server except we had a separate 9.2 db for our portal repository.
    I want to know how to migrate my metadata repository to a different server and use database version 9.2.0.6. Are there any documents or specofic sections of documents which could guide me in this migration?

    I am not familiar with the document you refer to, but suspect you should apply the 9.0.4.2 patch if you want to integreate OCS with a 10g portal.
    I have successfully integrated a 9iAS portal with R2 OCS (9.0.4.1), and the following details may be worth a closer look:
    1. To my knowledge, the passwords for your portal user and SSO user (orasso) are encrypted and stored in OID based on the hostname and IP address of your SSO server. Thus, the password for orasso and portal will differ between your portal Infra and your OCS infra, resulting in that only one of the two will work properly with your common OID. run the attached script on both your SSO servers and compare the result:
    #!/bin/ksh
    OIDHOST=antares1.i2sp.no
    OIDPORT=4032
    echo "Enter the desired Oracle schema name (default orasso): \c"
    READ DBUSERNAME
    if [[ -z $DBUSERNAME ]]; then
    echo "No schema value entered, using default:orasso"
    DBUSERNAME=orasso
    fi8
    echo "Enter the password of the cn=orcladmin user (usually the ias installation password): \c"
    stty -echo
    read OIDPW
    ty echo
    echo "Looking up schema password from $OIDHOST:$OIDPORT"
    $ORACLE_HOME/bin/ldapsearch -h $OIDHOST -p $OIDPORT -D "cn=orcladmin" -w "$OIDPW" -b "cn=IAS Infrastructure Databases,cn=IAS,cn=Products,cn=OracleContext" -s sub "orclResourceName=$DBUSERNAME" orclpasswordattribute
    Setting the password for orasso and portal to the same encrypted string is a good start. If they differ, change to the same encrypted string using "alter user orasso identified by xxxxxx" in sqlplus.
    Hope this will help you on the way :-)

  • OAS 10g metadata repository creation assistant & database version issue

    Hi,
    I have to install Oracle Application Server 10.1.2.0.2 on a server which already has an Oracle database 11g running on it and I dont want to install another database due to the load factor. I am not sure if I could use that database
    (version 11g) for the metadata repository. I know that we can use an existing database for the creation of metadata repository using the metadata creation assistant but I am a bit worried about the version of the database which is 11g whereas the application server and the metadata creation assistant both are 10.1.2.x.
    Your help is highly appreciated.
    Cheers,
    Omer

    MRCA 10.1.2.0.2 cannot be used to install a repository in an 11g database. If you want to use MRCA 10.1.2.0.2 with an 11g database, you will need to install a 10g database first, create the metadata repository and then upgrade the database to 11g. Not applicable in your environment as you already have a 11g database.
    Regards,
    EJ

  • Metadata Repository mds-adf is not targeted to JMSServer-0?

    JDeveloper 11.1.1.4.0, Oracle database      11.2.0.1.0
    We're developing an ADF application and I'm trying to activate MDS using the database. I've followed along with docs and this blog post, http://biemond.blogspot.com/2009/07/mds-repository-for-adf-11g.html, run RCU on my database, added Application Development Runtime. When I deploy my application, I get the "Deployment Configuration" dialog box, but when I hit the "Deploy" button, I get his message in a dialog box:
    Warning! MDS configuration information appears invalid. Metadata Repository mds-adf is not targeted to JMSServer-0 or JMSServer-0 is a member of a cluster. Deploy anyway?
    I hit yes, then I go to Enterprise Manager to see my MDS repository partitions, and I have no partitions found.
    Any ideas?
    Edited by: Richard Cook on Jul 5, 2011 10:51 AM

    On the EM front page, under "Fusion Middleware" I have "Metadata Repositories", with my mds-adf repository there.
    Today, there is a repository partition, "idm_V2.0", put clicking on the glasses icon I get "This partition is not being referenced by any application".
    My application "idm(V2.0)" is deployed to DefaultServer.

Maybe you are looking for