Loadjava resolver spec

I'm unable to successfully resolve references to other classes in a different schema. Clearly, I don't understand something.
From a Windows cmd file, it runs the following commands.
loadjava -user mylogin/[email protected]:1526:uwt1 -thin -resolve -resolver "((* mylogin)(* PUBLIC)(junit/* WKR))" Money.class MoneyTest.class AllTests.class
It fails with ORA-1742: comment not properly terminated.
In schema WKR, I loaded the testing framework junit.jar. When running the Money classes, they work properly. But when these some classes are loaded into mylogin, the resolution fails.
I've tried several different ways, all to no avail.
Thanks.

In case anyone else is experiencing this problem, Oracle has now told us that there is a bug in the Windows implementation of loadjava that prevents use of the resolver option. I don't see it in the bug database yet, but we were told it is bug 166598.
As far as I know, the resolver option does work on the *nix versions of loadjava, but some of our clients use NT, so we're out of luck until Oracle fixes this one...
- John Emmer ([email protected])

Similar Messages

  • Loadjava resolves jar file but classes are not showing up in user_objects

    Hello, oracle noob here,
    I'm loading a vendor's jar file in oracle with loadjava with the -v -f -r flags and the classes I need and I see them either getting resolved or skipped:
    c:\loadjava -r -f -v -genmissing -u "uid/pwd@mydbatrain" ekahau-engine-sdk.jar
    resolving: class com/ekahau/common/sdk/EConnection
    skipping : class com/ekahau/common/sdk/EErrorCodes
    skipping : class com/ekahau/common/sdk/EException
    skipping : class com/ekahau/common/sdk/EMsg
    Classes Loaded: 114
    Resources Loaded: 1
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0 Thinking everything went well I ran my routine to call EConnection but I get a NoClassDefFoundError on that call, which tells me that the aurora JVM can't find the class.
    After chasing my tail with the server's CLASSPATH, it dawns on me that it should already be in the user_objects table since loadjava should have put it in there.
    But when I query user_objects to see if EConnection is in there,
    SQL> column object_name format a30
    SQL> column object_type format a20
    SQL> select object_name,object_type, status from user_objects where object_name like '%ekahau%';
    OBJECT_NAME OBJECT_TYPE STATUS
    com/ekahau/common/sdk/EMsg JAVA CLASS VALID
    com/ekahau/common/sdk/IMsg JAVA CLASS VALID
    com/ekahau/engine/sdk/Asset JAVA CLASS VALID
    com/ekahau/engine/sdk/Device JAVA CLASS VALID
    com/ekahau/engine/sdk/Event JAVA CLASS VALID
    com/ekahau/engine/sdk/Location JAVA CLASS VALID
    com/ekahau/engine/sdk/Model JAVA CLASS VALID
    com/ekahau/engine/sdk/ModelMap JAVA CLASS VALID
    com/ekahau/engine/sdk/TagMenu JAVA CLASS VALID
    9 rows selected.
    SQL> It's not there along with 104 other class I thought it loaded
    I picked up the idea of running java inside oracle from an OCP and I can run a simple isolated java program myself and even make database calls.
    But it seems I didn't get all the knowledge i need when it comes to loadjava and getting a jar files classes into user_objects to be useful.
    Can anyone help an oracle noob with loadjava?

    Thank you, Gary.
    I updated the post with the version info. I did not explicitly install this JDBC driver, so whatever the OSD came with?  Unless it is using whatever is installed on my machine, in which case would be the thin driver.
    I did check out that post, and I appreciate you sharing it. I did click the 'include synonyms' filter, but behavior remained unchanged.
    I would prefer to use OSD, and that is what our dev team was expecting to use, but we just can't see the information.  We are using an ID that does not 'own' those tables, per se.  But, why would DBVisualizer show these tables, when OSD does not?

  • Loadjava + BI Publisher API's

    Hi my name is Ike Wiggins. I'm exploring loading the BI Publisher API's as jar file. The end result is that my TestConfiguration class is still invalid.......It's driving me nuckin futs :-). If anyone has any idea's or suggestions or would like me to repeat step let me know. This is my last shot before I give up! I know there has to something I missing. Also, can anyone tell me what table or sys view has a record of the resource objects?
    FYI: I verified the file will compile and run with javac.
    First Try:+
    bash-3.2$ dropjava -u scott/tiger bipublisher/jp/TestConfiguration
    bash-3.2$ loadjava -force -resolve -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java
    arguments: '-user' 'scott/***' '-force' *'-resolve'* '-verbose' 'bipublisher/jp/TestConfiguration.java'
    creating : source bipublisher/jp/TestConfiguration
    loading : source bipublisher/jp/TestConfiguration
    resolving: source bipublisher/jp/TestConfiguration
    errors : source bipublisher/jp/TestConfiguration
    ORA-29535: source requires recompilation
    bipublisher/jp/TestConfiguration:11: cannot resolve symbol
    symbol : class DataProcessor
    location: package dataengine
    import oracle.apps.xdo.dataengine.DataProcessor;
    ^
    bipublisher/jp/TestConfiguration:91: cannot resolve symbol
    symbol : class DataProcessor
    location: class bipublisher.jp.TestConfiguration
    DataProcessor dataProcessor = new DataProcessor();
    ^
    bipublisher/jp/TestConfiguration:91: cannot resolve symbol
    symbol : class DataProcessor
    location: class bipublisher.jp.TestConfiguration
    DataProcessor dataProcessor = new DataProcessor();
    ^
    3 errors
    The following operations failed
    source bipublisher/jp/TestConfiguration: resolution
    exiting : Failures occurred during processing
    Second try:*
    bash-3.2$ loadjava -force -user scott/tiger -verbose -jarasresource j5472959_xdo.zip
    arguments: '-user' 'scott/***' '-force' '-verbose' '-jarasresource' 'j5472959_xdo.zip'
    creating : resource j5472959_xdo.zip
    loading : resource j5472959_xdo.zip
    Classes Loaded: 0
    Resources Loaded: 1
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0
    bash-3.2$ loadjava -force -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java
    arguments: '-user' 'scott/***' '-force' '-verbose' 'bipublisher/jp/TestConfiguration.java'
    creating : source bipublisher/jp/TestConfiguration
    loading : source bipublisher/jp/TestConfiguration
    Classes Loaded: 0
    Resources Loaded: 0
    Sources Loaded: 1
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0
    End result class is still invalid
    Third try:*
    bash-3.2$ dropjava -u scott/tiger bipublisher/jp/TestConfiguration.java
    bash-3.2$ dropjava -u scott/tiger -jarasresource j5472959_xdo.zip
    bash-3.2$ loadjava -force -stdout -user scott/tiger -verbose bipublisher/jp/TestConfiguration.java -jarasresource j5472959_xdo.zip
    arguments: '-user' 'scott/***' '-force' '-stdout' '-verbose' 'bipublisher/jp/TestConfiguration.java' '-jarasresource' 'j5472959_xdo.zip'
    creating : source bipublisher/jp/TestConfiguration
    loading : source bipublisher/jp/TestConfiguration
    creating : resource j5472959_xdo.zip
    loading : resource j5472959_xdo.zip
    Classes Loaded: 0
    Resources Loaded: 1
    Sources Loaded: 1
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 0
    Errors: 0
    End result class is still invalid
    Thanks,
    Ike Wiggins
    http://bipublisher.blogspot.com
    TestConfiguration Class
    package bipublisher.jp;
    import java.sql.SQLException;
    import java.sql.PreparedStatement;
    import java.sql.Connection;
    import java.sql.ResultSet;
    //Oracle extensions to JDBC imports
    //import oracle.apps.xdo.common.log.Logger;
    import oracle.apps.xdo.dataengine.DataProcessor;
    //import oracle.apps.xdo.dataengine.DEUtil;
    import oracle.jdbc.driver.OracleDriver;
    public class TestConfiguration {
       public TestConfiguration() {
       public static void main(String[] args) {
          //TestConfiguration testConfiguration = new TestConfiguration();
          TestConfiguration.getEmployeeXML();
       public static String getEmployeeXML() {
          Connection connection = null; // Database Connection Object
          StringBuffer dataTemplateXml = new StringBuffer();
          try {
             // Get a Default Database Connection using Server Side JDBC Driver.
             // Note : This class will be loaded on the Database Server and hence use a
             // Server Side JDBC Driver to get default Connection to Database.
             connection = new OracleDriver().defaultConnection();
             dataTemplateXml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?> \r\n");
             dataTemplateXml.append("<dataTemplate name=\"CORPORATION\" defaultPackage=\"\" description=\"Demo Data Template\" version=\"1.0\">\r\n");
             dataTemplateXml.append("<properties>\r\n");
             dataTemplateXml.append("    <property name=\"include_parameters\" value=\"true\"/>\r\n");
             dataTemplateXml.append("    <property name=\"include_null_Element\" value=\"false\"/>\r\n");
             dataTemplateXml.append("    <property name=\"include_rowsettag\" value=\"false\"/>\r\n");
             dataTemplateXml.append("    <property name=\"scalable_mode\" value=\"on\"/>\r\n");
             dataTemplateXml.append("    <property name=\"debug_mode\" value=\"off\"/>\r\n");
             dataTemplateXml.append("</properties>\r\n");
             dataTemplateXml.append("<parameters>\r\n");
             dataTemplateXml.append("  <parameter name=\"NAME\" defaultValue=\"Vision\" dataType = \"varchar2\"/>\r\n");
             dataTemplateXml.append("</parameters>\r\n");
             dataTemplateXml.append("<lexicals>\r\n");
             dataTemplateXml.append("</lexicals>\r\n");
             dataTemplateXml.append("  <dataQuery>\r\n");
             dataTemplateXml.append("    <sqlStatement name=\"Q_DEPT\">\r\n");
             dataTemplateXml.append("      <![CDATA[SELECT   DNAME, DEPTNO\r\n");
             dataTemplateXml.append("    FROM dept\r\n");
             dataTemplateXml.append("   ORDER BY dname]]>\r\n");
             dataTemplateXml.append("    </sqlStatement>\r\n");
             dataTemplateXml.append("    <sqlStatement name=\"Q_EMPLOYEE\">\r\n");
             dataTemplateXml.append("      <![CDATA[SELECT   DEPTNO AS DEPARTTNO,EMPNO, ENAME, JOB, SAL\r\n");
             dataTemplateXml.append("    FROM emp\r\n");
             dataTemplateXml.append("    WHERE deptno = :deptno\r\n");
             dataTemplateXml.append("   ORDER BY  ename]]>\r\n");
             dataTemplateXml.append("    </sqlStatement>\r\n");
             dataTemplateXml.append("  </dataQuery>\r\n");
             dataTemplateXml.append("  <dataStructure>\r\n");
             dataTemplateXml.append("    <group name=\"DEPT\" source=\"Q_DEPT\">\r\n");
             dataTemplateXml.append("      <element name=\"DEPT_NAME\" value=\"DNAME\"/>\r\n");
             dataTemplateXml.append("      <element name=\"DEPT_NUMBER\" value=\"DEPTNO\"/>\r\n");
             dataTemplateXml.append("      <group name=\"EMPLOYEE\" source=\"Q_EMPLOYEE\">\r\n");
             dataTemplateXml.append("        <element name=\"EMP_DEPT_NUMBER\" value=\"DEPT.DEPT_NUMBER\"/>\r\n");
             dataTemplateXml.append("       <element name=\"EMPNO\" value=\"EMPNO\"/>\r\n");
             dataTemplateXml.append("        <element name=\"ENAME\" value=\"ENAME\"/>\r\n");
             dataTemplateXml.append("        <element name=\"JOB\" value=\"JOB\"/>\r\n");
             dataTemplateXml.append("        <element name=\"SAL\" value=\"SAL\"/>\r\n");
             dataTemplateXml.append("      </group>\r\n");
             dataTemplateXml.append("    </group>\r\n");
             dataTemplateXml.append("  </dataStructure>\r\n");
             dataTemplateXml.append("</dataTemplate>\r\n");
             System.out.print(dataTemplateXml.toString());
             DataProcessor dataProcessor = new DataProcessor();
             dataProcessor.setDataTemplate(dataTemplateXml.toString());
             //dataProcessor.setParameters(getParameters());
             dataProcessor.setConnection(connection);
             dataProcessor.setOutput("/Users/ike/tmp/" + "1234"  + ".xml");
             dataProcessor.includeParameters(true);
             dataProcessor.processData();
             return "yay!";
             // Close Statement, Result Set and Connection
          } catch (Exception ex) { // Trap SQL Errors
             System.err.println("Error in Executing getEmployeeXML" + '\n' + ex.toString());
             return "nay!";
          } finally {
             try {
                //connection.close();
             } catch (Exception e) {
                e.printStackTrace();
    }Edited by: Ike Wiggins on Jun 28, 2009 8:00 PM

    The Oracle JVM requires that all classes that are needed be loaded into the database unless a specific resolver spec is used. If the resolver spec (* -) is specified, then unresolved classes are silently ignored but will cause runtime or compile time errors if referenced.
    If the required classes are not present then the class will remain invalid until all the classes it references are loaded, etc.
    If you want the classes in a specific jar to be seen then do not use -jarasresource. This just makes the jar a resource and it will not be used for any resolution for other classes.
    You will need to load all the classes that are referenced by your test code as well as any classes that they may reference. There is a tool, ojvmtc which can define the list of classes. When they are loaded, either in a jar or separately then your class should compile or load and be valid.
    We do not load xdo classes as default. Try using your second try first without the -jarasresource and then your first try second. Issues may still arise with the xdo jar if it requires other apps classes to be loaded.

  • Using Java in APEX apps: loading with loadjava

    I'm trying to load my .class and .jar files into the DB (11.1) with loadjava. Resolver issues abound. I've looked at the demo's provided with the DB and the Makefile shows a -oracleresolver parameter that I can't seem to find a definition for anywhere. Can anyone break it down for me into a standard resolver spec? It seems to make things go easier for me when I use it. The usual command string looks like this: loadjava -f -v -r -oracleresolver -o -u scott/tiger MyStuff.class
    Thanks

    Hi,
    Refer oracle documentation:
    http://download.oracle.com/docs/cd/B10500_01/java.920/a96659/02_load.htm
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • -jarasresource option in for loadjava utility. How does it work?

    Hi, I have a simple java function I want to load into Oracle DB as java custom function. This I can do no problem when it is so simple it doesn't import any other classes outside of the standard java jre, but when I want to include third party libraries I start hitting the problems.
    I would like to load the third party libraries as jar files (in this case common-codec.jar from apache), but can only get this to load without the -jarasresource option i.e where the loadjava utility unpacks all the files in the jar an loads them separately. This just doesn't seem right - surely it would be better to load the jar file as a whole and have it on the class path for my custom class to use.
    The problems is thus...
    D:\>loadjava -thin -u audit/****@<dbname>:1521:devdb -verbose -force -order -resolve -grant public -s -jarasresource d:\commons-codec-1.3\commons-cod
    ec-1.3.jar
    arguments: '-thin' '-u' 'audit/****@<dbname>:1521:devdb' '-verbose' '-force' '-order' '-
    resolve' '-grant' 'public' '-s' '-jarasresource' 'd:\commons-codec-1.3\commons-codec-1.3.jar'
    creating : resource d:/commons-codec-1.3/commons-codec-1.3.jar
    loading  : resource d:/commons-codec-1.3/commons-codec-1.3.jar
    granting : execute on resource d:/commons-codec-1.3/commons-codec-1.3.jar to public
    skipping : resource d:/commons-codec-1.3/commons-codec-1.3.jar
    D:\>loadjava -thin -u audit/****@<dbname>:1521:devdb -verbose -force -order -resolve -grant public -s StringPatternEncoder.class
    arguments: '-thin' '-u' 'audit/****@<dbname>:1521:devdb' '-verbose' '-force' '-order' '-
    resolve' '-grant' 'public' '-s' 'StringPatternEncoder.class'
    creating : class uk/police/kent/util/StringPatternEncoder
    loading  : class uk/police/kent/util/StringPatternEncoder
    granting : execute on class uk/police/kent/util/StringPatternEncoder to public
    resolving: class uk/police/kent/util/StringPatternEncoder
    errors   : class uk/police/kent/util/StringPatternEncoder
        ORA-29521: referenced name org/apache/commons/codec/language/DoubleMetaphone could not be found
    synonym  : uk/police/kent/util/StringPatternEncoder
    The following operations failed
        class uk/police/kent/util/StringPatternEncoder: resolution
    exiting  : Failures occurred during processingso my questions are
    1. did the load of the jar fail in the first command as it said it was skipped?
    2. if it didn't fail, how do I reference it when I issue the second command i.e. to resolve using the jar file - do I need to specify a -resolver option (this seems to suggest in the docs that this is how to supply a different 'classpath')
    Could example usage of --resolver be given using my example as the ones in docs only give example on ((* SCOTT) (* PUBLIC)) which doesn't mean a lot to me?
    also, how do I check the existence of my classes and jar files in the db? I have checked the user_objects view and can see my jar file there, but don't know what schema etc. it is in.
    platform
    loadjava - windows
    db - 10g Linux
    be gentle with me - I am a developer and don't usually get involved with db at this level.
    Thanks
    Conrad
    thanks

    Hi,
    The default resolver spec for SCOTT schema is '{(*SCOTT) (* PUBLIC)}'.
    If you want a non-default resolver spec, you have to explictly specify it. Example the following resolver spec will search the SCOTT, OTHER, and PUBLIC schemas:
    loadjava -resolve -resolver "((* SCOTT)(* OTHER)(*PUBLIC))" ...Loadjava does not resolve Java resources; the resources objects
    are looked up by the Java VM within the scope of the resolver spec of the
    referring class. A Java resource can have a “resolver spec” but is only looked up and used during the resolution of the class, which refers to it;
    All these are explained in chapter 2 and 3 of my book (see below).
    In your case, it looks like you need to explode the jar (without -jarasresource option).
    Kuassi
    - blog http://db360.blogspot.com/
    - book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html

  • Using loadjava utility to load a 3rd party jar file

    Hi Folks,
        I need to validate if a java class, stored into an Oracle Database, is able to connect to a SQLite database.
        In order to connect to SQLite I'm using the the jar file sqlite-jdbc-3.7.2.jar that I got from  https://bitbucket.org/xerial/sqlite-jdbc/downloads
        Then I tried to load the jar file into Oracle Database using the command:
        loadjava -resolve -user system/xpto@tm014_23 -schema novacap sqlite-jdbc-3.7.2.jar
        The result is a series of error messages with the error code ORA-29533.
        Ex: - Attempt to overwrite class or resource org/sqlite/Codes while defining or compiling SYSTEM.org/sqlite/Codes
        Can you guys help me?
    Thanks,
    Luis

    I need to validate if a java class, stored into an Oracle Database, is able to connect to a SQLite database.
    You need to explain that a little more.
    How could a java class within Oracle connect to a SQLLite database if the driver it needs isn't already loaded into Oracle.
    The fact that you have to load the driver jar file tells you that the class will not be able to connect to SQLLite.
    The recommended way to develop with 'Java in the database' is to first write and test the code OUTSIDE the database. Then when it works load it in the databse.
    So use a copy of the Java class and test it outside the database to see if it can connect.
    Also since 11g you could just load that jar as a 'database resident' jar file. If you don't do that then Oracle just extracts all of the files in the jar and tries to load them one at a time. So using 'resolve' won't work because Oracle isn't going to load the classes in the proper order.
    See 'database resident jars' in the Java Dev Guide
    http://docs.oracle.com/cd/B28359_01/java.111/b31225/chtwo.htm#BEJCBAHI
    Database Resident JARs
    Starting with 11g release 1 (11.1), when you load the contents of a JAR into the database, you have the option of creating a database object representing the JAR itself. In this way, you can retain an association between this JAR object and the class, resource, and source objects loaded from the JAR. This enables you to:
      Use signed JARs and JAR namespace segregation in the same way as you use them in standard JVM.
      Manage the classes that you have derived from a JAR while loading it into the database as a single unit. This helps you to prevent individual redefinition of the classes loaded from the JAR. It also enables you to drop the whole set of classes loaded from the JAR, irrespective of the contents or the continued existence of the JAR on the external file system, at the time of dropping it.
    In order to load a JAR into the database, you have the following options of the loadjava tool:
      -jarsasdbobjects
      -prependjarnames
    For more information regarding the loadjava tool options, refer to "The loadjava Tool" section.

  • Loadjava dms.jar and soap.jar on Oracle 9i 9.2.0.5.0 error ORA-29534

    Hi all,
    I'm trying to load dbws-callout-utility in a oracle9i Enterprise Edition Realease 9.2.0.5.0 data base.
    To do that, I've follow these instructions "http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm" step by step:
    - I've set shared_pool_size to 96M (then, even to 150M) in my spfile.
    - I've set java_pool_size to 80M in my spfile.
    - I've tested this changes were well done.
    - Then, I've download oc4j_extended 10.1.2 version, as said the link.
    - manual says that I must load this jar files:
    jssl-1_2.jar, soap.jar, dms.jar, servlet.jar, ejb.jar, mail.jar
    - I've could to load these jars without any error using these commands:
    cd $ORACLE_HOME/lib
    dropjava -u wsuser/pass mail.jar
    dropjava -u wsuser/pass activation.jar
    cd $ORACLE_HOME/oc4j_extended/j2ee/home/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass ejb.jar
    cd $ORACLE_HOME/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass activation.jar
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass mail.jar
    cd ${ORACLE_HOME}/oc4j_extended/j2ee/home/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass servlet.jar
    cd ${ORACLE_HOME}/jlib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass jssl-1_2.jar
    but when I try to load dms.jar with this command:
    cd ${ORACLE_HOME}/oc4j_extended/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass dms.jar
    loadjava's process hangs just compiling (resolving) this class: "oracle/dms/address/Optic", so I've got to kill process.
    Then, I try to load dms.jar with the same command but without "-resolve" option. This way, I've been able to load all class from
    this jar including the named before "oracle/dms/address/Optic". Then I compile all java class by hand except "oracle/dms/address/Optic"
    because everytime I try to compile (-resolve) this class, it hangs. So this is my first question: why?.
    As I've could to load almost all java class, I said, I'm going to try to load last jar: soap.jar
    cd ${ORACLE_HOME}/oc4j_extended/soap/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass soap.jar
    but when this command finish, it shows me these errors:
    errors : class org/apache/soap/messaging/Message
    ORA-29534: el objeto WSUSER.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
    synonym : org/apache/soap/messaging/Message
    The following operations failed
    class oracle/soap/client/ProviderManagerClient: resolution
    class oracle/soap/client/ServiceManagerClient: resolution
    class oracle/soap/server/http/SOAPServlet: resolution
    class oracle/soap/providers/JavaProvider: resolution
    class oracle/soap/providers/ejbprov/EntityEJBProvider: resolution
    class oracle/soap/providers/ejbprov/StatefulEJBProvider: resolution
    class oracle/soap/providers/ejbprov/StatelessEJBProvider: resolution
    class oracle/soap/providers/sp/SpProvider: resolution
    class oracle/soap/transport/http/OracleSOAPHTTPConnection$1: resolution
    class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
    class org/apache/soap/rpc/Call: resolution
    class org/apache/soap/rpc/RPCMessage: resolution
    class org/apache/soap/rpc/Response: resolution
    class org/apache/soap/messaging/Message: resolution
    exiting : Failures occurred during processing
    but this has no sense, because this class oracle/soap/transport/http/OracleSOAPHTTPConnection do exists in the jar file and it can be loaded.
    so I don't understand..... I try to load class by class to see dependencies or whatever using this command:
    I choose this class to begin:
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass org/apache/soap/rpc/Call.class
    it shows me:
    creating : class org/apache/soap/rpc/Call
    loading : class org/apache/soap/rpc/Call
    granting : execute on class org/apache/soap/rpc/Call to PUBLIC
    resolving: class org/apache/soap/rpc/Call
    errors : class org/apache/soap/rpc/Call
    ORA-29534: el objeto WSARR.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
    synonym : org/apache/soap/rpc/Call
    The following operations failed
    class org/apache/soap/rpc/Call: resolution
    exiting : Failures occurred during processing
    so I try to load the class which it had could not find:
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsarr/wsarr oracle/soap/transport/http/OracleSOAPHTTPConnection.class
    it shows me:
    creating : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    loading : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    granting : execute on class oracle/soap/transport/http/OracleSOAPHTTPConnection to PUBLIC
    resolving: class oracle/soap/transport/http/OracleSOAPHTTPConnection
    errors : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    ORA-29545: clase especificada incorrectamente: at offset 445 of oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection expecting a class-oracle.security.ssl.OracleSSLCredential but encountered a class-oracle.security.ssl.OracleSSLCredential.
    synonym : oracle/soap/transport/http/OracleSOAPHTTPConnection
    The following operations failed
    class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
    exiting : Failures occurred during processing
    o_o ...... but this could be endless!!!!!
    Is there someone in this planet who had could to load this jars files without errors?????? :´(
    Please, I need help!!!! it's urgent!
    Thanks in advance!
    María

    The error messages you are getting means that the JAR you loaded into the database is invalid.
    ORA-29534:     referenced object string.string could not be resolved
    Cause:     Name resolution determined that the indicated object is referenced but could not be resolved.
    Action:     Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
    Oracle extracts all classes from the jar file by the time you load the jar file and processes each class individually. I suggest you to run this query against the user_objects or dba_objects view to determine the status of your classes
    select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME
    ,STATUS
    from USER_OBJECTS
    where OBJECT_TYPE like 'JAVA%'
    On the other hand, I see you are at 9.2.0.5.0, in order for you to avoid hitting known bugs, I suggest you to apply, if possible, the latest 9.2.0.8.0 + July CPU patch
    ~ Madrid

  • Loadjava question/problem (ssohash.class)

    I am attempting to run the loadjava command like this:
    loadjava -resolve -thin -user
    portal30_sso/[email protected]:1521:orcl SSOHash.class
    I get the following error:
    Error while resolving class oracle/security/sso/SSOHash
    ORA-04043: object oracle/security/sso/SSOHash does not exist
    loadjava: 1 errors
    We are running this from a portal on NT to a database on
    Solaris, DB version 8.1.7.2. What do I have to do to get the
    ssohash class to resolve? Is there a object file that I need to
    reference in my classpath, if so where is it?

    I am attempting to run the loadjava command like this:
    loadjava -resolve -thin -user
    portal30_sso/[email protected]:1521:orcl SSOHash.class
    I get the following error:
    Error while resolving class oracle/security/sso/SSOHash
    ORA-04043: object oracle/security/sso/SSOHash does not exist
    loadjava: 1 errors
    We are running this from a portal on NT to a database on
    Solaris, DB version 8.1.7.2. What do I have to do to get the
    ssohash class to resolve? Is there a object file that I need to
    reference in my classpath, if so where is it?

  • Backup/Recovery from web application

    Hello guys,
    I am using Oracle 9i as DB and Oracle 9iAS for web application server. I want to provide Backup and Recovery functionality to the user via web. I don't know any thing in this regard.
    Is it possible that we can take backup and recovery from web application?
    Is there any alternative for this function.
    any other comments will be appreciated.
    Thank you,
    Jawed Nazar Ali

    Read this article in order to get an idea about Java Stored Procedures.
    Oracle Developer JAVA STORED PROCEDURES
    Simplify with Java Stored Procedures
    By Kuassi Mensah
    Use Java stored procedures to bridge SQL, XML, Java, and J2EE and Web Services.
    Stored procedures allow a clean separation of persistence logic that runs in the database tier from business logic that runs in the middle tier. This separation reduces overall application complexity and increases reuse, security, performance, and scalability.
    A major obstacle, however, for widespread adoption of stored procedures is the set of various proprietary, database-dependent implementation languages that different database vendors use. The use of Java-based stored procedures fixes this concern. Oracle has implemented ANSI standards that specify the ability to invoke static Java methods from SQL as procedures or functions. This implementation is called simply "Java stored procedures."
    In this article, you will learn how Java stored procedures help simplify and increase the performance of your business logic and extend database functionality. I'll show how Oracle enables the use of Java stored procedures within the database. I'll also look at how Java stored procedures access data, and show how to create a basic Java stored procedure.
    PL/SQL or Java
    When you think of Oracle stored procedures, you probably think of PL/SQL. Oracle, however, has provided Java support in the database since Oracle8i, to offer an open and portable alternative to PL/SQL for stored procedures. I can hear the $64,000 question: "How do I choose between PL/SQL and Java? Should I forget all the things I've been told about PL/SQL and move on to the greener Java pastures?"
    Both languages are suitable for database programming, and each has its strengths and weaknesses. In deciding which language to use, here's a general rule of thumb:
    Use PL/SQL for database-centric logic that requires seamless integration with SQL and therefore complete access to database objects, types, and features.
    Use Java as an open alternative to PL/SQL for database independence, but also for integrating and bridging the worlds of SQL, XML, J2EE, and Web services.
    OracleJVM Lets You Run Java within the Database
    Since Oracle8i, Release 1 (Oracle 8.1.5), Oracle has offered a tightly integrated Java virtual machine (JVM) that supports Oracle's database session architecture. Any database session may activate a virtually dedicated JVM during the first Java code invocation; subsequent users then benefit from this already Java-enabled session. In reality, all sessions share the same JVM code and statics—only private states are kept and garbage collected in an individual session space, to provide Java sessions the same session isolation and data integrity capabilities as SQL operations. There is no need for a separate Java-enabled process for data integrity. This session-based architecture provides a small memory footprint and gives OracleJVM the same linear SMP scalability as the Oracle database.
    Creating Java Stored Procedures
    There are a few steps involved in turning a Java method into a Java stored procedure. These include loading the Java class into the database using the loadjava utility, and publishing the Java methods using a call specification (Call Spec) to map Java methods, parameter types, and return types to their SQL counterparts. The following section shows how to do this.
    I'll use a simple Hello class, with one method, Hello.world(), that returns the string "Hello world":
    public class Hello
    public static String world ()
    return "Hello world";
    The Loadjava Utility
    Loadjava is a utility for loading Java source files, Java class files, and Java resource files; verifying bytecodes; and deploying Java classes and JAR files into the database. It is invoked either from the command line or through the loadjava() method contained within the DBMS_JAVA class. To load our Hello.class example, type:
    loadjava -user scott/tiger Hello.class
    As of Oracle9i Release 2, loadjava allows you to automatically publish Java classes as stored procedures by creating the corresponding Call Specs for methods contained in the processed classes. Oracle provides Oracle9i JDeveloper for developing, testing, debugging, and deploying Java stored procedures.
    The Resolver Spec
    The JDK-based JVM looks for and resolves class references within the directories listed in the CLASSPATH. Because Oracle database classes live in the database schema, the OracleJVM uses a database resolver to look for and resolve class references through the schemas listed in the Resolver Spec. Unlike the CLASSPATH, which applies to all classes, the Resolver Spec is applied on a per-class basis. The default resolver looks for classes first in the schema in which the class is loaded and then for classes with public synonyms.
    loadjava -resolve <myclass>
    You may need to specify different resolvers, and you can force resolution to occur when you use loadjava, to determine at deployment time any problems that may occur later at runtime.
    loadjava -resolve -resolver "((* SCOTT) (foo/bar/* OTHERS)
    (* PUBLIC))"
    Call Spec and Stored Procedures Invocation
    To invoke a Java method from SQL (as well as from PL/SQL and JDBC), you must first publish the public static method through a Call Spec, which defines for SQL the arguments the method takes and the SQL types it returns.
    In our example, we'll use SQL*Plus to connect to the database and define a top-level Call Spec for Hello.world():
    SQL> connect scott/tiger
    SQL> create or replace function helloworld return
    VARCHAR2 as language java name 'Hello.world () return
    java.lang.String';
    Function created.
    You can then invoke the Java stored procedure as shown below:
    SQL> variable myString varchar2[20];
    SQL> call helloworld() into :myString;
    Call completed.
    SQL> print myString;
    MYSTRING
    Hello world
    Java stored procedures are callable, through their Call Spec, from SQL DML statements (INSERT, UPDATE, DELETE, SELECT, CALL, EXPLAIN PLAN, LOCK TABLE, and MERGE), PL/SQL blocks, subprograms, and packages, as well as database triggers. The beauty of Call Spec is that stored procedure implementations can change over time from PL/SQL to Java or vice versa, transparently to the requesters.
    Call Spec abstracts the call interface from the implementation language (PL/SQL or Java) and therefore enables sharing business logic between legacy applications and newer Java/J2EE-based applications. At times, however, when invoking a database-resident Java class from a Java client, you may not want to go through the PL/SQL wrapper. In a future release, Oracle plans to provide a mechanism that will allow developers to bypass the Call Spec.
    Advanced Data-Access Control
    Java stored procedures can be used to control and restrict access to Oracle data by allowing users to manipulate the data only through stored procedures that execute under their invoker's privileges while denying access to the table itself. For example, you can disable updates during certain hours or give managers the ability to query salary data but not update it, or log all access and notify a security service.
    Sharing Data Logic Between Legacy and J2EE Applications
    Because legacy applications and J2EE applications both invoke stored procedures through the Call Spec, the same data logic can be shared between J2EE and non-J2EE worlds. Thanks to Call Spec, this data logic can be shared regardless of the implementation language used (whether PL/SQL or Java).
    Autogeneration of Primary Keys for BMP Entity Beans
    When using BMP for EJB entity beans, a bean instance can be uniquely identified by the auto-generated primary key associated with the newly inserted data as a return value for ejbCreate(). You can retrieve this value within ejbCreate() in one database operation by using a stored procedure that inserts the corresponding data and retrieves or computes the primary key. Alternatively, you could insert the data and retrieve the corresponding key (or ROWID) in one SQL statement, using the RETURN_GENERATED_KEYS feature in JDBC 3.0. However, the stored procedure approach is more portable across JDBC driver versions and databases.
    You can implement this pattern with these three steps:
    Create the Java stored procedure, defining a public static Java method insertAccount() within a public GenPK class. This method will insert data, compute a unique key (by passing out a sequence number), and return the computed key as primary key.
    Define the Call Spec.
    CREATE OR REPLACE PROCEDURE insertAccount(owner IN
    varchar, bal IN number, newid OUT number)
    AS LANGUAGE JAVA NAME 'GenPK.insertAccount(
    java.lang.String [])';
    Invoke the stored procedure within ejbCreate().
    Public AccountPK ejbCreate(String ownerName, int balance) throws CreateException
    try {
    CallableStatement call = conn.prepareCall{
    "{call insertAccount(?, ?, ?)}"};          
    return new AccountPK(accountID);
    Custom Primary Key Finders for CMP Entity Beans
    Finder methods are used for retrieving existing EJB entity bean instances. Primary key finders allow you to retrieve a uniquely identified EJB instance. For CMP entity beans, the EJB container automatically generates the primary key finder findByPrimaryKey() method, based on declarative description. In some situations, however, you might need more control; for example, you may need a specialized finder such as findByStoredProcKey(). In these situations, you can use Java stored procedures in conjunction with an object relational framework (such as Oracle9i Application Server [Oracle9iAS] TopLink) to implement a custom primary key finder method. After you define the EJB finder as a REDIRECT or NAMED finder, TopLink will generate the SQL query for retrieving the bean instance.
    Data-Driven EJB Invocation
    In a data-driven architecture, business logic invocation can be triggered as a result of database operations (such as inserts, updates, or deletes). A Java stored procedure implementing the data logic can be declared as a database trigger to invoke EJBs running in a middle-tier J2EE application server. You can make EJB calls by using either standard remote method invocation (RMI) over Interoperable Inter-ORB Protocol (IIOP), using a J2EE 1.3 compatible server, or RMI over a vendor-specific transport protocol (such as ORMI with Oracle9iAS/OC4J or RMI over T3 with BEA WebLogic). Each application server vendor has its own optimized protocol while providing RMI over IIOP for interoperability. Oracle9iAS supports both RMI calls over IIOP and ORMI protocols.
    Data-Driven Messaging
    Oracle9i Database embeds Advanced Queuing (AQ), which is an integrated, persistent, reliable, secure, scalable, and transactional message-queuing framework. Oracle exposes AQ features to Java developers through the standard Java Messaging System (JMS) API. Java stored procedures can invoke AQ operations through the JMS interface to allow fast, intra-session, scalable, data-driven messaging.
    Java stored procedures can use JMS to invoke AQ operations. You can implement this pattern in four steps:
    Create and start the JMS Queue (to do so, embed the following operations within a SQL script):
    execute dbms_aqadm.create_queue_table(queue_table =>
    'queue1', queue_payload_type =>
    'SYS.AQ$_JMS_TEXT_MESSAGE', comment => 'a test queue',
    multiple_consumers => false, compatible => '8.1.0');
    execute dbms_aqadm.create_queue( queue_name => 'queue1',
    queue_table => 'queue1' );
    execute dbms_aqadm.start_queue(queue_name => 'queue1');
    Create the Java stored procedure (a code snippet is shown):
    public static void runTest(String msgBody)
    try
    // get database connection
    ora_drv = new OracleDriver();
    db_conn = ora_drv.defaultConnection();
    // setup sender (cf online code sample)
    // create message
    s_msg = s_session.createTextMessage(msgBody);
    // send message
    sender.send(s_msg);
    s_session.commit();
    // receive message
    r_msg = (TextMessage) receiver.receive();
    r_session.commit();
    // output message text
    String body = r_msg.getText();
    System.out.println("message was '"+body+"'");
    Create the Call Spec:
    create or replace procedure jmsproc (t1 IN VARCHAR)
    as language java name 'jmsSample.main (java.lang.String[])';
    Invoke the stored procedure:
    call jmsproc('hello');
    Database-Assisted Web Publishing (Cache Invalidation)
    One of the common issues application architects must face is how to cache database information reliably to increase overall system performance. JCACHE is an upcoming standard specification (JSR 107) that addresses this problem. It specifies an approach for temporary, in-memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVMs. It can be used to cache read-mostly data such as product catalogs and price lists within JSP. Using JCACHE, most queries will have response times an order of magnitude faster because of cached data (in-house testing showed response times about 15 times faster).
    In order to track all the changes to the origin data and refresh the cached data, a Java stored procedure is attached to a table as a trigger. Any change to this table will result in the automatic invocation of this stored procedure, which in turn will call out a defined JSP to invalidate the JCACHE object that maps its state to the database table. Upon invalidation, the very next query will force the cache to be refreshed from the database. Next Steps
    READ MORE about Java Stored Procedures
    This article is adapted from the white paper "Unleash the Power of Java Stored Procedures." You can find the white paper at:
    /tech/java/java_db/pdf/
    OW_30820_JAVA_STORED_PROC_paper.PDF
    New PL/SQL features in Oracle9i Database, Release 2
    /tech/pl_sql/pdf/
    Paper_30720_Doc.pdf
    Resolver Spec
    /docs/products/oracle9i/
    doc_library/release2/java.920/a96659.pdf
    OracleJVM and Java 2 Security
    /docs/products/oracle9i/
    doc_library/release2/java.920/a96656.pdf
    DOWNLOAD Code
    Exercise code examples from this article:
    /sample_code/tech/
    java/jsp/Oracle9iJSPSamples.html
    LEARN about stored procedures as Web services
    /tech/webservices
    Extending Database Functionality
    One of the great things about running Java code directly in the database is the ability to implement new functionality by simply loading the code or library and using the Call Spec to make the entry points (public static methods) available to SQL, PL/SQL, Java, J2EE, and non-Java APIs. Oracle9i Database customers can easily extend database functionality. Oracle itself leverages this capability for new utilities and packages such as the XML Developer Kits (XDKs).
    Bridging SQL, PL/SQL, Java, J2EE, .NET, and XML
    The Oracle XDK is written in Java and exposes its public methods as Java stored procedures, extending the database's XML programmability. SQL, PL/SQL, Java, J2EE, and non-Java (.NET) business logic all have access to the XML parser, the XSLT processor, the XPath engine, and XML SQL Utility (XSU).
    The XML parser is accessible through the xmlparser and xmldom packages. XSU is a Java utility that generates an XML document from SQL queries or a JDBC ResultSet, and writes data from an XML document into a database table or view. Using XSU, XML output can be produced as Text, DOM trees, or DTDs. XSU is exposed to PL/SQL through the dbms_xmlquery and dbms_xmlsave packages.
    Conclusion
    The integration of the Oracle database with a Java VM enables the creation of portable, powerful, database-independent data logic and persistence logic. The loose coupling of business logic that runs in the middle tier with data logic that runs in the database tier improves application scalability, performance, flexibility, and maintenance.
    Kuassi Mensah ([email protected]) is a product manager in the Server Technologies division at Oracle.
    http://otn.oracle.com/oramag/oracle/03-jan/o13java.html
    Joel Pérez

  • Loading Java Procedure errors

    Hello all,
    I am attempting to load a java stored procedure I have written. It depends on some javax libs that are outside of the normal java library. I loaded these external lists into the database as sys and granted my user execute privelages to the classes I load. I then try to load my class into the database and I get errors saying it can find the classes that I just loaded as sys. Is there some way that I can tell it to look in the sys schema to find these external libs or is there another step that I am unaware of?

    Make sure the resolver can locate the class in the proper schema. Any
    of the following approaches will suffice.
    Best approach would be to create a public synonym on the loaded class.
    a.) Creating a public synonym on the loaded class (via loadjava -s) to be used by
    other users
    For example,
    SQL> loadjava -user <user>/<pwd> -g Public -s -r mail.jar
    NOTE: The public synonym could also be created via SQL.
    b.) Modify the resolver spec for the JSP class so the resolver will
    search the desired schemas for the problem classes. The resolver
    can be established at load time (via loadjava -R) or modified at
    the SQL command line (via ALTER JAVA CLASS).
    Given below is difference between the Resolver in the database used to resolve classes and the CLASSPATH used by normal java environment.
    Resolver Spec vs. CLASSPATH
    When compiling or running a traditional Java program, the CLASSPATH
    environment variable determines which directories are searched when
    resolving any external class references. If a class is referenced
    which cannot be located in one of these directories, a compile-time
    or runtime exception is thrown.
    On the server, a similar mechanism called a Resolver Spec is used.
    The primary difference between the Resolver Spec and the CLASSPATH
    environment variable is that a Resolver Spec specifies which users'
    schema's to search (rather than which directories).
    Another distinction between the Resolver Spec and the CLASSPATH is
    that a Resolver Spec can be assigned on a per-class basis. That is,
    each class can use a different Resolver Spec for resolving its own
    external class references. The same behavior would be unwieldy or
    impossible to emulate using the CLASSPATH environment variable.
    The general form of a Resolver Spec is as follows:
    ((match_string schema_name) (match_string schema_name) ...)
    where match_string is a Java fullname or wildcard matching one or
    more Java classes and schema_name is the user's schema in which the
    resolver should look for those classes. The schema's specified are
    searched in left to right order.
    The default Resolver Spec is as follows:
    ((* definer's_schema) (* public))
    which specifies that, for all classes, the resolver should first search
    the owner's schema and then all public classes (e.g. standard classes).
    NOTE: If you decide to specify your own Resolver Spec, it replaces
    the default. Omitting the (* public) can result in problems
    resolving classes that reside in the standard packages

  • EJBs failing to Load into 8.1.6

    Oracle Java gurus:
    I have a similar problem with loading EJBs into 8.1.6.
    However the problem occurs when loading from the demo examples on Solaris as well as loading from JDeveloper 3.1.1.2.
    When the database has been initially built, everything works fine. However, after loading in a vendor jar file I get the following erros on any subsequent ejb loading:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.....................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    An unexpected exception occurred deserializing deployment descriptor: null
    *** Error code 1
    make: Fatal error: Command failed for target `server_generated.jar'
    I did find out from the vendor that the java classes were developed (and therefore compiled) using jdk 1.3.
    A large number of these classes load as invalid since they have gui elements. In my application, the gui elements will never be realized, so I atte,pted to marke them valid through loadjava using a resolver spec with (* -) in the spec, bu that failed to resolve the classes.
    Is the byte code in jdk 1.3 that different as to wound Oracle? I deleted the invalid java classes, but that was insufficient to heal this problem. Do I need to delete all of the java 1.3 classes in the database and run initjvm again? How do I fix this problem?
    - Ken

    Oracle Java gurus:
    I have a similar problem with loading EJBs into 8.1.6.
    However the problem occurs when loading from the demo examples on Solaris as well as loading from JDeveloper 3.1.1.2.
    When the database has been initially built, everything works fine. However, after loading in a vendor jar file I get the following erros on any subsequent ejb loading:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs.....................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    An unexpected exception occurred deserializing deployment descriptor: null
    *** Error code 1
    make: Fatal error: Command failed for target `server_generated.jar'
    I did find out from the vendor that the java classes were developed (and therefore compiled) using jdk 1.3.
    A large number of these classes load as invalid since they have gui elements. In my application, the gui elements will never be realized, so I atte,pted to marke them valid through loadjava using a resolver spec with (* -) in the spec, bu that failed to resolve the classes.
    Is the byte code in jdk 1.3 that different as to wound Oracle? I deleted the invalid java classes, but that was insufficient to heal this problem. Do I need to delete all of the java 1.3 classes in the database and run initjvm again? How do I fix this problem?
    - Ken

  • Error in log file (WWC-41439)

    Hi,
    When i installed Oracle Portal, i had the error WWc-41439 when i tried log in Oracle Portal. I revised the log file and i saw the following error.(I have isntalled Oracle Portal 3.0., Oracle Database 8.1.7 on windows NT).
    STEP 24 : Installing SSO packages to public
    INSTALL_ACTION : installSSOLayer()..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsg.sql
    STEP 25 : Associating Login Server & Oracle Portal
    INSTALL_ACTION :assocNewLoginServer: Portal Url Prefix: http://pablo/pls/portal30/
    INSTALL_ACTION :assocNewLoginServer: SSO URL Prefix: http://pablo/pls/portal30_sso/
    INSTALL_ACTION : assocNewLoginServer: ..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedl.sql portal30 http://pablo/pls/portal30/ portal30_sso http://pablo/pls/portal30_sso/ NO
    INSTALL_ACTION : assocNewLoginServer: ..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsgp.sql portal30
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedw.sql portal30 portal30_sso http://pablo/pls/portal30_sso/ http://pablo/pls/portal30/
    INSTALL_ACTION : STEP 19 : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secpsr.sql
    INSTALL_ACTION : STEP 19 : assocNewLoginServer:..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secps.sql portal30_sso_PS N N N N
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoinsrp.sql portal30
    INSTALL_ACTION : assocNewLoginServer:..\..\bin\sqlplus portal30_sso/portal30_sso@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\sso\ssoseedu.sql portal30
    Installing and running diagnostics
    INSTALL_ACTION:installDiagnostics() : ..\..\bin\loadjava -resolve -verbose -thin -user portal30/portal30@localhost:1521:or8i ..\..\portal30\admin\plsql\wwc\Diagnose.class
    C:\ORACLE\iSuites\assistants\opca>REM
    C:\ORACLE\iSuites\assistants\opca>REM $Header: runljava.bat@@/main/3 \
    C:\ORACLE\iSuites\assistants\opca>REM Checked in on Fri Nov 17 15:32:36 PST 2000 by meoropez \
    C:\ORACLE\iSuites\assistants\opca>REM Copyright (c) 2000 by Oracle Corporation. All Rights Reserved. \
    C:\ORACLE\iSuites\assistants\opca>REM $
    C:\ORACLE\iSuites\assistants\opca>REM
    C:\ORACLE\iSuites\assistants\opca>Rem For running the Loadjava from the Configuration Assistant.
    C:\ORACLE\iSuites\assistants\opca>..\..\bin\loadjava -resolve -verbose -thin -user portal30/portal30@localhost:1521:or8i ..\..\portal30\admin\plsql\wwc\Diagnose.class
    INSTALL_ACTION : Running Diagnostics ..\..\bin\sqlplus portal30/portal30@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=or8i))) @..\..\portal30\admin\plsql\wwc\secdiag.sql
    SQL*Plus: Release 8.1.7.0.0 - Production on Dom Abr 20 20:23:37 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Conectado a:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.01: Oracle Portal v 3.0.9.8.0
    As of 20-Abr-2003 20:23:41 Schema Name: PORTAL30 SSO Schema Name: portal30_sso
    Proxy Server Settings:
    HTTP Server:
    HTTP Server Port:
    No Proxy Servers for Domains beginning with:
    URL Connection Time-Out (seconds):
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://pablo/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD          : portal30_sso
    Host connection : *** FAILED ***
    Unable to find the Schema Name for the Login Server
    Recommendations:
    Please check the DAD settings for the Login Server
    Desconectado de Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    INSTALL_ACTION : End of Installation.
    How i resolve the problem?
    Is there somebody in the same situacion?
    Thank you

    Did you promoted/demoted a server? ( like from consumer to master , master to consumer , hub to consumer/master OR disabled replication and re-enabled with another unique ID and recreated replication agreements again?
    IF YES, find out the current Unique ID in all the related server and delete the old serverIDs in the nsslapd-rererral.
    Also the error will tell you for which server it is trying to update the duplicate entry. Mostly , that entry will be the old value as I explained before.
    I have seen this before and mostly by doing above it gets corrected. I recommend that you should think before doing it.
    In any case dont forget to update us since this is a tricky situation to me.
    -Kunal

  • How to use a Java Resource in my java source

    Hello,
    I need to know how to use my external JAR I loaded in the database using this line below:
    CREATE OR REPLACE JAVA RESOURCE NAMED "MyJar" USING BFILE (BFILE_DIR,'MyExternal.jar');
    In fact, I have a Java file using this JAR, but I do not know how to tell to the java source that it have to use this JAR.
    ==========Java Source importing the Jar===================
    package com.gemalto.ws.snmp;
    import java.io.IOException;
    import java.util.Vector;
    import org.snmp4j.Snmp;
    import org.snmp4j.smi.*;
    import org.snmp4j.TransportMapping;
    import org.snmp4j.transport.DefaultUdpTransportMapping;
    import org.snmp4j.CommunityTarget;
    import org.snmp4j.mp.SnmpConstants;
    import org.snmp4j.PDU;
    import org.snmp4j.event.ResponseEvent;
    public class SNMPAgent
    ==========================
    Could you give the SQL request or loadjava command line permitting to do use my java resource file?
    Thks

    The JAR is already load by using CREATE JAVA RESOURCE ... or "loadjava -resolve –force -user p/p@SID –genmissing -jarasresource MyJar.jar"
    If we can create a resource by SQL or loadjava, how can I use it in my java code?
    Edited by: 847873 on 28 mars 2011 06:05
    Edited by: 847873 on 28 mars 2011 06:07

  • ORA-01031- Insufficient Privilleges coming while loading .jar

    Hi,
    I'm trying to execute a java class from 8i.
    This class has got 3 dependency jar. I used loadjava to load the class and then i tried loading the dependency classes(.jar) as the same user using loadjava. I did the following at command prompt:
    loadjava -resolve -resolver "((* online1)(* SYS)(* PUBLIC))" -user online1/online1@orcl mail.jar
    It gave me error(s) like the following:
    Error while creating class javax/mail/MethodNotSupportedException
    ORA-01031: insufficient privileges
    I know its something to do with privilleges. I tried grant_permission but it was giving some error.
    Then i tried to load the same to SYS it loaded without giving error but the status of all classes where invalid.
    What shall i do to execute this class from 8i in the same user (online1) and how can i load all the dependencies which is req. to load my class.
    Can anybody help me out here.
    Thanx
    Arun
    null

    Hi Bos,
    thanks for your repply,
    In the Topology, the target server ORACLE_CSA created with connection user : NGPCSA,
    A physical schema under this server created with schema :NGPCSA and Work schema :WORKSCH1,
    to WORKSCH1 schema i have given all privileges & even DBA role also given.
    the ODI generated drop work table code, i am able to execute in the WORKSCH1 schema successfully.Create work table also i am able do in the WORSCH1 using pl/sql developer.
    Please help me,
    Kumbar

  • Problem to load XML SQL Utility into other user

    Hi,
    I need help to load XML Utility into other user than
    "scott"tiger".
    I loaded both xmlparser.jar and oraclexmlsql.jar into
    "scott/tiger", it works and creating functions and testing work
    fine. But when change USER_PASSWORD to another user, it gave me
    some errors like
    creating : org/xml/sax/helpers/AttributeListImpl
    Error while creating class org/xml/sax/helpers/AttributeListImpl
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    Error while accessing MD5 table
    ORA-00942: table or view does not exist
    Do I need create any table or view for my another oracle account?
    Or did I missed any thing. From the installation instruction, I
    cano not find any about creating table or view before I load the
    two jar files.
    Thanks
    Yuping
    null

    Hi Yuping,
    Great to hear that! Thx for posting the solution to the
    problem! Let us know if you have any problems with the utility
    or if u need any enhancements!
    Thx
    Murali
    Yuping Zhu (guest) wrote:
    : Hi,Murali,
    : The problem is fixed now. When load xmlparser into the user, it
    : creates two tables automatically, my mistake is I did not grant
    : "create table" privilege to the user. After I granted the
    : privilege to it, it works fine.
    : Thanks!
    : Yuping
    : Murali K (guest) wrote:
    : : Hi,
    : : I will check this out with the Java folks and let u know
    : : Thx
    : : Murali K
    : : Yuping Zhu (guest) wrote:
    : : : Hi, Murali
    : : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
    : using
    : : : loadjava -resolve -verbose -user $USER_PASSWORD
    xmlparser.jar
    : : : I get error message and I catch part of erros
    : : : PS, I can load it into scott/tiger.
    : : : Thanks!
    : : : Yuping
    : : : loading : org/w3c/dom/html/HTMLLegendElement
    : : : Error while loading org/w3c/dom/html/HTMLLegendElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLLegendElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLLegendElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : org/w3c/dom/html/HTMLImageElement
    : : : Error while loading org/w3c/dom/html/HTMLImageElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLImageElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLImageElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : oracle/xml/parser/v2/XSLException
    : : : Error while loading oracle/xml/parser/v2/XSLException
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : Murali K (guest) wrote:
    : : : : Hi Yuping,
    : : : : I tried the same on a 8i database and it seems to be
    : : working
    : : : : fine. (loading into two schemas). In fact I just created
    : the
    : : : : other user and it doesnt have any tables or anything in
    it.
    : : : : You do not need to create anything (table/view) extra
    for
    : : : these
    : : : : to work.
    : : : : Which database (Oracle8 or 8i) are u using?
    : : : : Thanks
    : : : : Murali
    : : : : Yuping Zhu (guest) wrote:
    : : : : : Hi,
    : : : : : I need help to load XML Utility into other user than
    : : : : : "scott"tiger".
    : : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
    : : : : : "scott/tiger", it works and creating functions and
    : testing
    : : : work
    : : : : : fine. But when change USER_PASSWORD to another user,
    it
    : : gave
    : : : me
    : : : : : some errors like
    : : : : : creating : org/xml/sax/helpers/AttributeListImpl
    : : : : : Error while creating class
    : : : : org/xml/sax/helpers/AttributeListImpl
    : : : : : ORA-29506: invalid query derived from USING clause
    : : : : : ORA-00942: table or view does not exist
    : : : : : Error while accessing MD5 table
    : : : : : ORA-00942: table or view does not exist
    : : : : : Do I need create any table or view for my another
    oracle
    : : : : account?
    : : : : : Or did I missed any thing. From the installation
    : : instruction,
    : : : I
    : : : : : cano not find any about creating table or view before
    I
    : : load
    : : : : the
    : : : : : two jar files.
    : : : : : Thanks
    : : : : : Yuping
    null

Maybe you are looking for

  • PO and Requisition Notifications

    Using standard functionality in R12, 1. When purchasing buyer returns the requisition with a reason, can the requestor, req approver be notified via email about this? How? 2. Let say, the PO approver (someone from finance dept) rejects the PO due to

  • To populate dynamically created int table with data from other table

    Hi everybody, I have already created an internal table dynamically, but now want to populate it with data from another IT depending on the plant name. My dynamic int table contains fields with plant name like '8001' ,'8002' and so on. no I want to re

  • Finished DVD Momentarily Hangs In Two Places

    I have created a 33 minute slide show in Aperture 3. The show is very good quality but it hangs in two places on the burned DVD. Have dragged plist to trash, exported again, burned disk appromimately 7 times, and each time I get the same thing. It hu

  • How can you execute a form without connecting to database?

    Hello, Is it possible to run a form without connecting to database? If Yes, how? Thanking you very much Thobula Rakesh

  • Mail Server SMTP

    Where can i get hold of a free SMTP mail server to test my mail applications ? Thanks Narsi