Problem when connecting locally to Oracle Database 10g from Java code

Good afternoon,
I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following:
final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:value3";
I tried to put my 'user' and 'pw' credentials I used when connecting with SQL*PLUS:
value1=my_user_name
value2=my_pw
value3=my_schema
but it doest work. Besides where could have I to put the 'WORKSPACE" name?
Thanks for any help.
Claude
Details:
ERR MESSAGE----------------------
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:854)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at javaapplication6.ConnectionExample.driverManager(ConnectionExample.java:138)
at javaapplication6.Main.main(Main.java:36)
Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
... 8 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
---------------------ERR MESSAGE
JAVA code------------------it compiles but throw an error when running there -> (*)...
final String driverClass = "oracle.jdbc.driver.OracleDriver";
final String connectionURLThin = "jdbc:oracle:thin:@jeffreyh3:1521:CUSTDB";
final String userID = "scott";
final String userPassword = "tiger";
final String queryString = "SELECT" +
" user " +
" , TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') " +
"FROM dual";
public void driverManager() {
Connection con = null;
Statement stmt = null;
ResultSet rset = null;
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection(connectionURLThin, userID, userPassword); // (*) prob here
stmt = con.createStatement ();
rset = stmt.executeQuery(queryString);
rset.close();
stmt.close();
} catch (SQLException e) {e.printStackTrace();
--------------------JAVA JDK 1.6
My system ------------------------
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

Yes, the network connection could not be established. Like the error said.
What you're asking about is the exact reason, but that could be any number of things and not at all related to code. You could have the wrong host, the wrong port. A firewall could be blocking the outgoing connection, a firewall could be blocking the incoming connection. Etc. etc.

Similar Messages

  • Problem connect form6i and Oracle Database 10g

    I can't connect form6i to Oracle Database 10g
    When complete user/password@database fatal error produce:
    "Oracle Forms Designer has encountered a problem and needs to close. We are sorry for the inconvenience"
    Error Detail:
    AppName: ifbld60.exe     AppVer: 6.0.8.27     ModName: ora805.dll
    ModVer: 0.0.0.0     Offset: 000b4f04
    Product Install:
    - Forms Version: Forms [32 bits] Versión 6.0.8.27.0
    - Oracle Database: 10.2.0
    - Win XP professional with SP2.
    Any idea what might cause Forms to shutdown ubnormally?
    Thanks

    If your database is using the AL32UTF8 character set, Forms 6i cannot connect.
    Read this thread:
    connecting form 6i  to oracle database 10G express edition

  • Urgent : Hoe to connect to a ORACLE database throught WEBDYNPRO JAVA

    HI All
    i am very new to Developer Studio,
    i want to connect to an oracle database through wedynpro java.
    i have seen some tutorials on SDN. i know something about adding external JARs and OJDBC .
    Can anyone send me the sample code to connect to a database
    <b>very urgent</b>
    Thanks in advance
    Sushma

    Hi Sushma
    Ask your system Admin for servername,portnumber of database server
    Connection conn=null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn =DriverManager.getConnection ("jdbc:oracle:thin:@<servername>:<portnumber>:DB","uname", "pwd");
    Statement stmt=conn.createStatement();
    ResultSet rs=stmt.executeQuery("select * from <tablename>"); // select statment
    while(rs.next())
    IXXElement nodeConnection=wdContext.createXXElement(); //creating a node to store the data from oracle
    nodeConnection.setYY(rs.getInt("YY")); // setting the values into input fields
    nodeConnection.setAA(rs.getInt("AA"));
    nodeConnection.setBB(rs.getInt("BB"));
    wdContext.nodeXX().addElement(nodeConnection); // adding the node
    catch(Exception ex)
    finally
    try
    conn.close(); // closing the connection
    catch(Exception e)
    welcome to SDN and All the best from SDN Webdynpro JAVA
    Regards
    Chaitanya.A

  • Problem Connect forms6i to Oracle Database 10g

    Hi, I have a trouble connecting Forms6i ( Patch 15) to oracle Database 10g, the forms crash when trying to connect to database some hints for this trouble.
    Best Regards
    Abarra

    Joel,
    My problem is that forms6i crash and Don't give me any information, i think the problem i SQLNET 8.0.6, because i have trouble with sqlplus, query builder,etc. all products of the forms6i CD.
    Is posible to user forms6i with another version of SQLNET ?

  • Problem with Character Set in Oracle database 10g

    Hi,
    I tried to import one tablespace into test server. Source server with Oracle 8i and Target server with Oracle database 10g. The error I get is
    Import: Release 10.2.0.1.0 - Production on Thu Aug 3 00:20:49 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Username: sys as sysdba
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V08.01.07 via conventional path
    About to import transportable tablespace(s) metadata...
    import done in WE8DEC character set and AL16UTF16 NCHAR character set
    export server uses WE8DEC NCHAR character set (possible ncharset conversion)
    . importing SYS's objects into SYS
    . importing SYS's objects into SYS
    IMP-00017: following statement failed with ORACLE error 19736:
    "BEGIN sys.dbms_plugts.beginImport ('8.1.7.4.0',2,'2',NULL,'NULL',67051,25"
    "51,2); END;"
    IMP-00003: ORACLE error 19736 encountered
    ORA-19736: can not plug a tablespace into a database using a different national character set
    ORA-06512: at "SYS.DBMS_PLUGTS", line 2386
    ORA-06512: at "SYS.DBMS_PLUGTS", line 1946
    ORA-06512: at line 1
    IMP-00000: Import terminated unsuccessfully
    PLZ somebody help in geting resolve this. Has anybody seen this error before.

    The solution to this problem is described in MetaLink note #211920.1. But this note is published with LIMITED access as it involves using a hidden parameter.
    You can get access to the note through Oracle Support only.
    The problem itself is solved generically, if the source database is at least 10.1.0.3 and the target database is 10.2
    -- Sergiusz

  • Error when connecting to an Oracle Database

    Hi, I'm trying to connect to an oracle database by calling a javabean from a jsp page. When I try to connect however I get this error:
    java.lang.UnsatisfiedLinkError: C:\oracle\ora92\jdbc\lib\ocijdbc10.dll: The specified procedure could not be found
         java.lang.ClassLoader$NativeLibrary.load(Native Method)
         java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
         java.lang.Runtime.loadLibrary0(Runtime.java:822)
         java.lang.System.loadLibrary(System.java:992)
         oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2963)
         oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:225)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:348)
         oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
         oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
         java.sql.DriverManager.getConnection(DriverManager.java:525)
         java.sql.DriverManager.getConnection(DriverManager.java:171)
    I am trying to connect to the database using OCI and its tns name. Also right now I'm just using the tomcat bundled in the netbeans ide.
    Anyone have any ideas on what's wrong?

    Why not use a type IV JDBC driver, available forfree download from Oracle? No
    need for any DLL then.The standard Oracle driver comes with "oci" and
    "thin" drivers.
    Thin driver is 100% java.
    oci driver uses the dlls.
    What version of Oracle are you using? I am guessing
    10?
    Have you got Oracle Client installed on this machine?
    (Stupid question I know)
    What URL connection string are you using?
    Does the "thin" driver work? ie url
    "jdbc:oracle:thin:@[IP_ADDRESS]:[PORT]:[SID]"
    Cheers,
    evnafetsThere's another advantage of the thin driver: you don't have to have the client installed or TNS names defined for it to work.
    %

  • Problem when I extend an oracle rac 10g on new node

    Hi everyone
    I need to extend an oracle RAC but i have problems when I add a new node. My actual enviroment is:
    1) Oracle Grid Infraestructure 11gR2 - 11.2.0.3 (Upgraded from Clusterware 10gR2 + ASM 10gR2)
    2) Oracle Rac Database - 10.2.0.5
    (all on one only node)
    The first problem was when I executed the script "root.sh" on the new node because this script called the old Clusterware home (/oracle/product/10.2.0/crshome). I edited the file and I changed this path for /oracle/gridbase/product/11.2.0/gridhome (current home for GI). Finally, I execute the script.
    Now, I tried to extend the rac through of DBCA, but when, I choose the new node and I clic on "next" button then appears the following error:
    "The nodes "[rstatbdbpm02]" are not part of the cluster. Make sure clusterware is active on these nodes before proceeding"
    However, when I execute the "crsctl" command to view the status of cluster the result is correct:
    [oracle@rstatbdbpm01] /home/oracle > crsctl status res -t
    NAME TARGET STATE SERVER STATE_DETAILS
    Local Resources
    ora.DATA.dg
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.LISTENER.lsnr
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.asm
    ONLINE ONLINE rstatbdbpm01 Started
    ONLINE ONLINE rstatbdbpm02 Started
    ora.gsd
    OFFLINE OFFLINE rstatbdbpm01
    OFFLINE OFFLINE rstatbdbpm02
    ora.net1.network
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.ons
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.registry.acfs
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    Cluster Resources
    ora.BDBPM.BDBPM1.inst
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.BPMVEH.BDBPM1.srv
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.BPMVEH.cs
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.db
    1 ONLINE ONLINE rstatbdbpm01
    ora.LISTENER_SCAN1.lsnr
    1 ONLINE ONLINE rstatbdbpm02
    ora.LISTENER_SCAN2.lsnr
    1 ONLINE ONLINE rstatbdbpm02
    ora.LISTENER_SCAN3.lsnr
    1 ONLINE ONLINE rstatbdbpm01
    ora.cvu
    1 ONLINE ONLINE rstatbdbpm01
    ora.oc4j
    1 ONLINE ONLINE rstatbdbpm01
    ora.rstatbdbpm01.vip
    1 ONLINE ONLINE rstatbdbpm01
    ora.rstatbdbpm02.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan1.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan2.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan3.vip
    1 ONLINE ONLINE rstatbdbpm01
    [oracle@rstatbdbpm01] /home/oracle >
    Please, Any idea with that problem?
    Thanks,
    Luis

    Hi,
    Please check dbca trace logs for further checks, it will give an idea what command is being run to check status of cluster.
    Generally first checks should be on inventory for rdbms home, grid home and making sure no ORACLE related parameter is set in environment.
    Regards,
    Sharma

  • How to connect to remote Oracle Database 10g Express Edition

    Hi,
    I am very new to Oracle. I have created a successful application using OCCI call (createConnection()) to connect to local (resided on the same PC) Oracle Database. Now I would like to move the application to resided on a different PC and try to connect to Oracle Database. Can anyone points me to the right direction in doing this?
    Thanks in advance.

    Can anyone points me to the right direction in doing this? Well at least for me, self study on OCCI documentation is pointing to the right direction ;-)
    OCCI requires only four shared libraries (or dynamic link libraries, as they are called on some operating systems) to be loaded by the dynamic loader of the operating system.
    Installing Instant Client resolve this.
    Cheers!

  • Connecting webserver to oracle database 10g didn't work

    Hi,
    I have webserver installed on SuSE Linux ES 10. I want to connect webserver to my oracle database 10 which is installed on SuSE Linux ES 9. I have download the instant client. But there is no success in connecting webserver to database. Can anyone in this forum give me step by step help for configuring this?
    Regards
    Trusha

    Check the documents at http://www.oracle.com/technology/tech/php/index.html
    Your webserver machine will need to have some Oracle libraries installed, e.g. the Oracle Instant Client. There are steps given in a few places including the Underground PHP & Oracle Manual.
    You might need to adjust some paths that differ on Suse.
    -- cj

  • Exception when connecting to Reporting and Analysis services from Java API

    Hello,
    I'm trying to connect to Hyperion Reporting and Analysis services from Java API using [Developer's guide|http://www.bidw.in/docs/hs_developer.pdf] .
    I get this error:
    com.sqribe.rm.ReportMartException: com/hyperion/css/CSSException
         at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
         at com.sqribe.rm.AASessionImpl.open(Unknown Source)
         at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
         at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
         at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
         ...My code:
    String user = "user";
    String pwd = "password";
    String host = "my.hyperion.server";
    int port = 6800;
    try {
         Session theSession = SessionFactory.getInstance(user, pwd, host, port);
         Repository theRepository = theSession.getRepository();
    } catch (UserValidationException e) {
         e.printStackTrace();
    } catch (UnknownReportMartException e) {
         e.printStackTrace();
    } catch (ReportMartException e) {
         e.printStackTrace();
    }I have tried to look at my services running, and it all looks OK. I've checked user/passowrd/port for GSM. What can be wrong?
    I also tried to run samples from \BIPlus\SDK\samples\java, e.g. Login.java:
    #> java Login user password my.hyperion.server 6800with this effect
    com.sqribe.rm.ReportMartException: SystemExceptionError
            at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
            at com.sqribe.rm.AASessionImpl.open(Unknown Source)
            at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
            at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
            at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
            at Login.<init>(Login.java:36)
            at Login.main(Login.java:69)I'm sure that I'm connecting to the server because when put wrong passowrd or user as input to Login class I get this:
    com.sqribe.rm.ReportMartException: AUTHEN_CSSLoginFailed
            at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
            at com.sqribe.rm.AASessionImpl.open(Unknown Source)
            at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
            at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
            at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
            at Login.<init>(Login.java:36)
            at Login.main(Login.java:69)so it is there but something is wrong later. Any idea what?
    Please help.
    regards,
    Pawel
    Edited by: Paoro on 2010-09-27 02:02

    HI,
    I am getting the same error while running the Login file, Did any one resolve this issue?
    Please share the solution.
    Thanks.

  • Thanks. A new problem when connecting isql*plus to database

    Thanks for everyone helping me.
    I can browse the isql*plus page now. However, When I connect isql*plus to the database, I got the error displayed in the isqlplus login browser screen:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    Pls help.

    Can you connect to it from command line SQL*Plus?
    It sounds like the database is not running. You should start up the database and try again.
    Alison

  • How to connect to an oracle database server from a linux server?

    Hi,
    I am a total newbie to oracle. At my work, I only know that there is a server with an oracle 10g database set up.
    I was provided with the hostname, oracle sid, port, username and password but i don't know how to connect to it, log on to it and do things on the database.
    Can anyone give me a pointer on how to get started (like how to log on to the server and start doing some simple things. )
    Any help is appreciated :)
    Thank you

    Goto your local Oracle install directory and then goto folder NETWORK/ADMIN
    cd ${ORACLE_HOME}/network/admin
    do you see a tnsnames.ora file there? If you edit that file in your favorite editor, you would hopefully see some entries there already setup. See if one of those entries contain the hostname, sid, port that was given to you. if it does, that name is what you will use:
    $ sqlplus username/password@name_of_tns_entry_you_found_aboveif not, then just duplicate an existing entry and change the relevant settings for your database, give it a new name and use it to connect.
    alternatively you can also use the "Net Configuration Assistant" application.

  • Error connecting via PHP to Oracle Database 10g XE in Arch Linux with XAMPP

    I get this error whenever I try to connect through PHP to my locally hosted Oracle Database 10g Express Edition
    Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in <filename>.php on line 10
    What can I do?

    Not sure what to offer for XAMP with php, perhaps it needs a configure pointing OCI8 to your ORACLE_HOME, as well as setting the oracle environment and PATH adjustment in the Apache start script.
    Somewhere under /etc there should be an init.d or perhaps rc.d directory with maybe an apache2 script that gets called at system boot or run level change. It will take editing that shell script and adding something like:
      export ORACLE_HOME=/usr/....
      export PATH=$ORACLE_HOME/bin:$PATH
      export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHAnd restarting apache ... $ [sudo] {RC path}/apache2 restart or $ ...apache2 stop followed by an $ ...apache2 start all depending on how the boot/inits are setup on the box.
    And in your $ORACLE_HOME/network/admin/tnsnames.ora adding a tnsalias won't hurt (as long as the whitespace as well as matching parenthesis are all in order)
    myxedb =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.com)(PORT = 1521))
        (CONNECT_DATA =
          (SID = XE)
      )

  • Chinese Input in Oracle Database 10g

    Hi,
    I have a problem of inputting chinese characters into the Oracle database.
    I have no problem when I use the Oracle Database 9i to input the chinese characters with Enterprise Manager Console. However, when I use the Enterprise Manager Console to input the chinese characters, the chinese characters are displayed in "box" characters. The databases I created are with NLS_LANG characterset of AL32UTF8 and UTF8.
    Please advise.
    Cheers

    dude if you are using jdeveloper 10.1.3.x for development of web service the library you have loadded into database dwwsclinet etc or sopa.jar or mail .jar will not work
    for getting the output for the web services developed on jdeveloper you need following file to upload on database
    wsclient_extended for 10.1.3.x.0 where x stands for your version
    wsclient_extended.jar which can be downloaded from
    http://download.oracle.com/otn/java/oc4j/1013x0/wsclient_extended_1013x0.zip the stands for subversion
    xstands for your version
    after downloading above file upload it
    open up the socket by command
    on SYS schema
    SQL>call dms_java.grant_permission('YOUR_SCHEMA','SYS:java.net.SocketPermission','<IPaddress ofcomputer>:<portnumber>(eg 10.8.11.98:8888)','connect,resolve');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.util.PropertyPermission','*','read,write');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','createClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','getClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setContextClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setFactory','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setIO','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','shutdownHooks','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','accessClassInPackage.sun.util.calender','');
    Now make a jar file which contain all your class files of proxy put that jar file on database an compile that jar file on database it should work than convert it into java stored procedure and invoke that procedure
    Vishal Rijhwani
    JAVA DEVELOPER
    Message was edited by:
    user635429

  • Chinese Input in Oracle Database 10g (URGENT)

    Hi,
    I have a problem of inputting chinese characters into the Oracle database.
    I have no problem when I use the Oracle Database 9i to input the chinese characters with Enterprise Manager Console. However, when I use the Enterprise Manager Console to input the chinese characters, the chinese characters are displayed in "box" characters. The databases I created are with NLS_LANG characterset of AL32UTF8 and UTF8.
    Please advise.
    Cheers

    dude if you are using jdeveloper 10.1.3.x for development of web service the library you have loadded into database dwwsclinet etc or sopa.jar or mail .jar will not work
    for getting the output for the web services developed on jdeveloper you need following file to upload on database
    wsclient_extended for 10.1.3.x.0 where x stands for your version
    wsclient_extended.jar which can be downloaded from
    http://download.oracle.com/otn/java/oc4j/1013x0/wsclient_extended_1013x0.zip the stands for subversion
    xstands for your version
    after downloading above file upload it
    open up the socket by command
    on SYS schema
    SQL>call dms_java.grant_permission('YOUR_SCHEMA','SYS:java.net.SocketPermission','<IPaddress ofcomputer>:<portnumber>(eg 10.8.11.98:8888)','connect,resolve');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.util.PropertyPermission','*','read,write');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','createClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','getClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setContextClassLoader','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setFactory','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','setIO','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','shutdownHooks','');
    SQL>call dms_java.grant_permission('YOUR-SCHEMA','SYS:java.lang.RuntimePermission','accessClassInPackage.sun.util.calender','');
    Now make a jar file which contain all your class files of proxy put that jar file on database an compile that jar file on database it should work than convert it into java stored procedure and invoke that procedure
    Vishal Rijhwani
    JAVA DEVELOPER
    Message was edited by:
    user635429

Maybe you are looking for