JDeveloper embedded OC4J accessing remote database

How do I configure the embedded OC4J JNDI w/JDBC to use a local TNSNames.ora file setting to connect to a remote 9i database?

You might want to consult the OC4J admin guide.
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDCFBIH
For the embedded OC4J you can access datasource settings through tools->Embedded OC4J preferences.

Similar Messages

  • PERFORMANCE while accessing remote database DB2 on AS/400 using WAS

    Subject: PERFORMANCE while accessing remote database
    We have IBMWebSphere Application Server Standard Edition 3.5.3 running on
    AS/400 iSeries Server (V4R5, test)and local DB2 Database.
    I am using AS/400 Developer Kit for Java JDBC Driver(type2, com.ibm.db2.jdbc.app.DB2Driver)
    to talk to local database. The performance was very good.
    When I try to access remote database (every thing same as local) which is on another AS/400
    machine of V4R4 (we use it for production, remote database) using IBM Toolbox for Java JDBC driver
    (com.ibm.as400.access.AS400JDBCDriver, type 4 driver), I can see 30to40%decrease in performance.
    Here we have WAS on previous V4R5 AS/400 machine.
    My questions are
    Is the performance decrease is due to
    1. the driver I am using? if it is Is there any other alternative drivers to access
    remote database to boost performance?
    2. the release difference of local(V4R5) and remote data base(V4R5)
    3. Currently most uses remote database while we do this testing. Is that the cause?
    or Is there any other cause or Drivers etc??? Suggestions and help is most welcome.
    Thank you.

    What about
    4. the data has to travel across the network.

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

  • Problem with  Jdeveloper Embedded OC4J  XML parsing

    Hi all,
    I am having a problem getting jdeveloper to work well. If I use jdeveloper to build the WAR file for my app and I deploy to Tomcat, the app runs fine with no error.
    However, if I try to run my app within the jdeveloper, I get this error -
    08/06/10 19:11:10 com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    Caused by: java.lang.RuntimeException: XML Parser Error. Cause: oracle.xml.parser.v2.XMLDOMException: invalid character [ in name
    08/06/10 19:11:10 at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager(XmlDaoManagerBuilder.java:112)
    08/06/10 19:11:10 at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:47)
    I have tried to turn off XML parsing within Jdeveloper but no luck. I don't understand why jdeveloper will be trying to implicitly parse the XML doc, and wont even do it well.
    Is there a way I can turn off Embedded OC4J XML parsing ? and let it just use the parser in the application ? I mean Tomcat works fine with this application.
    Please help !

    I think maybe you use wrong adf lib when deploying your project to the OC4J.
    You can update your oc4j in the jdev.[JDEV->Tools->ADF Runtime Installer-> Standalone OC4J].
    Good luck
    Hart

  • Applet in JDK 1.1 accessing remote database

    Hi,
    I'm trying to make an Applet access a remote Oracle Database using Jdbc thin driver. The database and the Web Server are in deferent machines. The browser i'm using is Internet Explorer. But I always get the followin exception:
    Cannot access "remote-machine" at com/ms/security/premissions/NetIOPermissionCheck.
    How can I solve that?
    Thank you,
    Nei

    Another interesting thing is, the applet ( jar) that is signed will display the security dialog if I connect from a client that has java plugin 1.4 ( jsdk 1.4) or if I copy it and run it on a j2sdk1.4 machine. I checked the java.policy files on both 1.3.1 machine and 1.4.1 and they are the same.
    TIA
    Krishna

  • MapViewer JDeveloper embedded OC4J installation error

    Hi,
    I downloaded all latest mapviewer.ear and latest OC4J.
    Followed MapviewerUG installation instructions
    After starting OC4J
    using the url http://localhost:8888/mapviewer/
    works well and the demos like jview also works well
    using the url http://localhost:8888/mapviewer/omserver
    however, generates the following error
    <?xml version="1.0" encoding="UTF-8" ?>
    <oms_error>Message:[oms] empty or null xml map request string. Sat Apr 02 14:40:14 IST 2005 Severity: 0 Description: at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:852) at oracle.lbs.mapserver.oms.doPost(oms.java:302) at oracle.lbs.mapserver.oms.doGet(oms.java:234) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)</oms_error>
    I also downloaded the latest JDeveloper 10G and JDeveloper extensions and follwed the instructions in the How To Document
    How To Build Dynamic Maps Using JDeveloper 10g and Oracle Application Server MapViewer
    An Oracle JDeveloper How To Document
    Justin Lokitz
    October 2004
    I have no compilation errors but I am not able to view the density map. I am getting the Internal Server Error 500 instead.
    Can anyone please guide me through this.
    Thomas Joseph

    Hi Joao
    Thanks for tip on the log file.
    I have the data loaded.
    Evrything works fine when I use Mapviewer with OC4J and try the jview demo.
    I am however not able to get the example 'How to build Dynamic Maps' running using JDeveloper using the embeded OC4J server.
    The jsp source is as follows
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <DIV align="center">
    <P>MapViewer WebMap</P>
    <P>
    <mapviewer:init url="http://localhost:8888/mapviewer/omserver" datasource="mvdemo" id="mvHandle"/>
    </P>
    </DIV>
    <DIV align="center">
    <mapviewer:setParam antialiasing="true" basemap="density_map" centerX="-122.4" centerY="37.8" height="450" size="10" title="MyWebMap" width="600"/>
    <mapviewer:run/>
    </DIV>
    <img src="<mapviewer:getMapURL />"/>
    </body>
    </html>
    There are no comilation errors
    When I run the code I get 500 Internal Server Error.
    The Application2-oc4j-app.log generated is as follows
    05/04/05 20:04:11 Started
    05/04/05 20:05:14 Application2-ViewController-webapp: JDevOJSP: init
    05/04/05 20:05:14 Application2-ViewController-webapp: action: init
    05/04/05 20:05:16 Application2-ViewController-webapp: 9.0.4.0.0 Started
    05/04/05 20:05:28 Application2-ViewController-webapp: Servlet error
    javax.servlet.jsp.JspException: Connection refused: connect
         at oracle.lbs.mapclient.taglib.MapViewerRunTag.doStartTag(MapViewerRunTag.java:123)
         at webmap.jspService(webmap.jsp:17)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Please put me on the track. I am not able to figure out what is going wrong.
    Regards
    Thomas Joseph

  • Error message running application from Jdeveloper/embedded OC4J

    Does anyone know what configuration I am missing to be able to run a web application from JDeveloper with the embedded OC4J.
    Here are the error messages that I am getting:
    PM oracle.j2ee.jndi.JndiMessages warningInvalidResourceReference
    WARNING: Resource reference jdbc/testdev not found. Allowing J2EEContext creation to continue anyway.
    Nov 22, 2006 1:46:46 PM oracle.j2ee.jndi.JndiMessages warningNoTypeFoundAtLocation
    WARNING: No javax.sql.DataSource found at null
    I should be able to run the application from Jdeveloper development environment without deploying to Tomcat after each change.
    There must be a jndi configuration that I need the questions is where?
    Is this configuration or lack of configuration documented some where by Oracle?
    Thanks

    Hi, user544716,
    did you solved the problem? I got exactly the same problem. In my case, my application runs well with jdeveloper 10.1.2 but when migrated to jdeveloper 10.1.3.1, the emdedded OC4J won't wrok and generated the same error as yours.
    Thanks.

  • Access remote database in desktop application

    Hi friends,
    I am developing an desktop appication in that I have to access the data reside in another machine.
    how can do this through java.
    how to set url for this.
    since normally we will use the jdbc:odbc:......
    for access remote machine database.
    plz give the procedure in brief.
    Raj with reg.

    What?
    It all depends on what database you are using, and which driver you are using.
    Please google on jdbc and your database name.
    Kaj

  • WebSphere V5 accessing remote database

    Hi.
    Sorry to post IBM product specifice question here. I didn't know where else to put it.
    I need to deploy J2EE appl using CMP beans to WebSphere Application Server version5 to use remote database(DB2) within LAN.
    I have no idea to where to begin and what to look for.
    Can anyone guide me here?

    You need to configure that database as a data source in Websphere using the admin tool. Check the help for details.

  • Unable to access remote database object using database link

    Hi all,
    I have created a database link to a remote server
    SQL> create database link remote_link connect to lax_dba identified by lax_dba using 'abc.corp.com';
    database link created
    when i am trying to access any table of lax_dba
    sql> select * from laxtab@remote_link;
    i am getting this Ora error
    ORA-12514: TNS:listener does not currently know of service requested in connect
    I need your help please to solve this issue
    Thanks n Regards
    Laxman

    The database server where you defined the link (not your PC) has resolved 'abc.corp.com' to a server/port/service combination using its tnsnames.ora, sqlnet.ora and possibly ldap.ora settings. You can try
    tnsping abc.corp.comon the server (as ReubenC suggested) to see what it's attempting to connect to. (It's important to do this on the database server and not on your PC as they will have different tns settings etc.)
    It has then found the server and found a listener running on it (so you're getting close), but that remote listener doesn't recognise the service you're asking for. It might be something like the '.com' suffix.

  • Heterogeneous Services failure on accessing remote database under XP

    Hi All,
    I can set up HS.
    My problem is, that it works only when the datasource is sitting on serverside.
    If I try to connect to a database what is sitting on a remote machine HS does not want to find it. Even if I using mapped drive, or \\server\shared_folder or novell directory tree.
    Even if also using CONNECT TO "MyUserName" IDENTIFIED by "MyPassword" which have full access to the folder of the remote machine.
    Could you please help me?
    [email protected]

    What do you mean by that? What kind of network files?
    Again my situation in details:
    Case A - sais, I can handle HS, where it points to a file sits on localhost.
    Case B,C,D,E - sais, 10g can not see the file via ODBC with my settings.
    - Case A
    PARTNER.DBF can be found in C:\
    ODBC point to this file.
    10g can make the database connection activate.
    I can see the table, everything is okay.
    - Case B
    PARTNER.DBF can be found in K:\
    where K: is a mapped drive on the Microsoft Network. It is a shared directory. Shared for read and write. And I have these rights.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case C
    PARTNER.DBF can be found in L:\
    where L: is a mapped drive on the Novell NDS tree. It is a shared directory. Shared for read and write. And I have these rights.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case D
    PARTNER.DBF can be found at \\my_collegaue's_machine\shared_dir\
    I have rights to the file.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    - Case E
    PARTNER.DBF can be found in \\Hh\.FS2_USZ.HLT\HPRG\DATA
    I have rights to the file.
    ODBC point to this file.
    10g can NOT make the database connection activate.
    I can NOT see the table. "Unknown path" it sais.
    So what should I chage in 10g settings?
    What changes should I make?
    What kind of command should I type?
    Please help and be a little more specific.
    Thx in advance.
    Andrew
    [email protected]

  • Error logs for Jdeveloper embedded oc4j

    Hi guys,
    I am currently using the oc4j embedded within jdeveloper (9.0.2) to develop and obviously to debug some code.
    When there is an exception in the init() method, there seems to be no record of it in the logs, the only log I found are in jdev/system/oc4j-config/log, specifically the server.log
    I have found ArrayOutOfBounds and other unchecked exceptions, but not the Servlet or IO exceptions to be logged there. Anyone have any clues how I can set it to log those as well? or does it not do that?
    Thanks lots,
    H2O

    I think that i they works is lucky, because your two modules get managed through the same class loader in your standalone oc4j
    Correct if I'm wrong, but you should not trust using local references if they aren't implemented in the same instance of the classloader, which you can control

  • Problem while accessing object in remote database

    Hi All,
    We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
    Dblink script:
    create public database link PRE_TO_CEL
    connect to BILLING
    identified by BILLING
    using 'MAP1';
    When trying to access the object from the local machine using the schema name.object_name it works fine:
    SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
    Argument Name Type In/Out Default?
    IN_MOBILE VARCHAR2 IN
    IN_SERVICE_CODE VARCHAR2 IN
    IN_STATUS VARCHAR2 IN
    OUT_ERROR_CODE NUMBER OUT
    But when trying the access the same object using the synonym_name it gives the error:
    SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
    ERROR:
    ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
    Regards,
    Kirti

    You have two schema.
    apps
    billing
    both reside in remote database.
    there on procedure and on procedure u create one synonym and u want to access it.
    ur remote database name is "map1"
    on ur local database ur create one dblink to access remote database.
    ORA-04043: object string does not exist
    Cause: An object name was specified that was not recognized by the system. There are several possible causes:
    - An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
    - An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
    Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.)

  • Remote database access via JDBC?

    Hello,
    Can anyone give me info on accessing remote databases (i.e. Microsoft
    Access, etc) from Java programs (Servlets, JSP's, Classes) residing on the
    iSeries (AS400) or perhaps any platform?
    I currently have a couple of web applications set up on the Websphere App server that access DB2/400 database and I also have some Java Classes on PC's that access MS Access datafiles. I would like to begin writing the majority of my applications that run on the iSeries (or host system) that can remotely access other databases on our network.
    Any info would be of great help to me.
    Thank you
    Don

    I don't know of any existing Access JDBC drivers that support remote access, after all, the Access database itself is not remote access capable except via file sharing. One possibility is to look for a Type 3 JDBC driver that supports reuse of other Type 1 (ODBC bridge), Type 2 (Java/Native Mix) and Type 4 (pure Java)JDBC drivers on the server side.
    If you were using WebLogic Server, I suppose you could use its remote JDBC facilities, but that won't help you.
    One problem you will have to face is that Access JDBC drivers are not (if I recall) meant to be used in a multithreaded fashion. Good luck. By the way, it might be far simpler to port the Access database to DB2/400.
    Chuck

  • JDev 10.1.3: Problem deploying a session bean to embedded OC4J

    JDeveloper 10.1.3, TopLink, OC4J, WinXP, java 1.4.2_05.
    I used TopLink to create a set of Java objects from a DB Schema, then created a simple Session Bean to read some of the objects. Everything compiles fine.
    JAVA_HOME points to the JDK (not JRE) and CLASSPATH is empty (undefined).
    When I try to Run my session bean in the jdeveloper embedded oc4j, I get this message. Thanks in advance for your help.
    Milind
    ===============
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Tools\jdev_10_1_3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config>
    C:\Tools\jdev_10_1_3\jdk\bin\javaw.exe -ojvm -classpath C:\Tools\jdev_10_1_3\j2ee\home\oc4j.jar;C:\Tools\jdev_10_1_3\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Tools\jdev_10_1_3\jdev\system\oracle.j2ee.10.1.3.3.51\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    05/03/22 14:43:50 Node started with id=127765687050882
    05/03/22 14:43:52 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/03/22 14:43:52 Error initializing server: Error initializing ejb-module; Exception null
    05/03/22 14:43:53 Fatal error: server exiting
    Process exited with exit code 1.

    Error initializing ejb-module;
    Is the EJB Jar structured as
    META-INF/
    ejb-jar.xml
    Bean Class
    Home interface Class
    Remote interface Class
    Does the EJBdeploy in some other server?

Maybe you are looking for

  • Problem receiving email via Jetpack

    I invested in a Jetpack 4620L last June (2012).  When installed on my Dell laptop running windows 7, MS Outlook reported a  "send/receive problem" and was not receiving email....send was fine.  If I connected via an alternate WiFi service, send and r

  • Is it possible to import "Favorites" from AOL?

    Can easily import favorites from IE, but no such luck with moving my AOL favorites to FireFox. Anyone know how? Thanks.

  • Image capture 10.4 worse than 10.3

    As a professional photographer I'm a heavy user of Image Capture. It really is a god send. but since 10.4 it has become a real pain to use. (almost like a windoze program!) First it never remembers my window size and thumbnail size settings as it did

  • Integration of Interactive Script to Call List

    Dear Experts, I have assigned an Interactive Script to a call list Via Outbound dialer the call was placed BP was automatically confirmed when the call was answered but the assigned script was never launched also when i click on the Scripts Work Cent

  • How to continuously monitor the values of a particular column in datagrid

    I want to monitor the column as for example the colour of the data changes if it crosses a particular value and change back when the value comes down. updateComplete is not working here,I tried it.