Connecting to oracle from j2ee server.

this is my resource.properties file.
jdbcDataSource.0.name=jdbc/Cloudscape
jdbcDataSource.0.url=jdbc\:cloudscape\:rmi\:CloudscapeDB;create\=true
jdbcDataSource.1.name=jdbc/DB1
jdbcDataSource.1.url=jdbc\:cloudscape\:rmi\:CloudscapeDB;create\=true
jdbcDataSource.2.name=jdbc/DB2
jdbcDataSource.2.url=jdbc\:cloudscape\:rmi\:CloudscapeDB;create\=true
jdbcDataSource.3.name=jdbc/EstoreDB
jdbcDataSource.3.url=jdbc\:cloudscape\:rmi\:CloudscapeDB;create\=true
jdbcDataSource.4.name=jdbc/InventoryDB
jdbcDataSource.4.url=jdbc\:cloudscape\:rmi\:CloudscapeDB;create\=true
jdbcDataSource.5.name=jdbc/Oracle1
jdbcDataSource.5.url=jdbc\:oracle\:thin\:@rocky.ny.com\:1521\:ecom;create\=true
jdbcDataSource.6.name=jdbc/mysql
jdbcDataSource.6.url=jdbc\:mysql\://localhost\:3306/test;create\=true
jdbcDriver.0.name=COM.cloudscape.core.RmiJdbcDriver
jdbcDriver.1.name=com.mysql.jdbc.Driver
jdbcDriver.2.name=oracle.jdbc.driver.OracleDriver
jdbcXADataSource.0.name=jdbc/XACloudscape
jdbcXADataSource.0.classname=COM.cloudscape.core.RemoteXaDataSource
jdbcXADataSource.0.dbpassword=
jdbcXADataSource.0.dbuser=
jdbcXADataSource.0.prop.createDatabase=create
jdbcXADataSource.0.prop.databaseName=CloudscapeDB
jdbcXADataSource.0.prop.remoteDataSourceProtocol=rmi
jdbcXADataSource.1.name=jndi/OracleDriver
jdbcXADataSource.1.classname=oracle.jdbc.driver.OracleDriver
jdbcXADataSource.1.dbpassword=
jdbcXADataSource.1.dbuser=
jdbcXADataSource.2.name=jndi/mysqlDriver
jdbcXADataSource.2.classname=com.mysql.jdbc.Driver
jdbcXADataSource.2.dbpassword=
jdbcXADataSource.2.dbuser=
jmsCnxFactory.0.name=QueueConnectionFactory
jmsCnxFactory.0.isQueue=true
jmsCnxFactory.1.name=TopicConnectionFactory
jmsCnxFactory.1.isQueue=false
jmsCnxFactory.2.name=jms/QueueConnectionFactory
jmsCnxFactory.2.isQueue=true
jmsCnxFactory.3.name=jms/TopicConnectionFactory
jmsCnxFactory.3.isQueue=false
jmsDestination.0.name=jms/Queue
jmsDestination.0.isQueue=true
jmsDestination.1.name=jms/Topic
jmsDestination.1.isQueue=false
and JNDI for resource is "jdbc/Oracle".
when i run a client application, it returns error message like this..
Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to connect to database. Oracle not found; nested exception is:
javax.ejb.EJBException: Unable to connect to database. Oracle not found
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:64)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at SavingsAccountHomeStub.create(Unknown Source)
at SavingsAccountClient.main(SavingsAccountClient.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:229)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
Caused by: java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to connect to database. Oracle not found; nested exception is
javax.ejb.EJBException: Unable to connect to database. Oracle not found
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:389)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:431)
at SavingsAccountBean_RemoteHomeImpl.create(SavingsAccountBean_RemoteHomeImpl.java:48)
at SavingsAccountBeanRemoteHomeImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:520)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:210)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
Caused by: javax.ejb.EJBException: Unable to connect to database. Oracle not found
at SavingsAccountBean.setEntityContext(SavingsAccountBean.java:168)
at com.sun.ejb.containers.EntityContainer.getPooledEJB(EntityContainer.java:1239)
at com.sun.ejb.containers.EntityContainer.getContext(EntityContainer.java:197)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:365)
at SavingsAccountBean_RemoteHomeImpl.create(SavingsAccountBean_RemoteHomeImpl.java:40)
... 7 more
please help... can't figure it out... thanks for anybody's help...

java.rmi.RemoteException: nested exception is:
ion is: javax.ejb.EJBException: Unable to connect to
database. Oracle not found; nested exception is:That is the crux of your problem. The Server is unable to locate the database. Or to be more technical precise, it cant connect to it. This may be a configuration issue or a network issue. you will have to get in touch with your Network Administrator or DBA. Find out if the JDBC url is correct. Find out if the classes is there in the classpath, etc.
Hope this helps
Have a nice day

Similar Messages

  • Error Connecting to Oracle from J2EE SDK1.4

    I am getting the following error when trying to Ping Oracle from a J2EE 1.4 SDK:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Error getting connection from the EIS
    I have the following connection information
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="oracle.jdbc.pool.OracleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="OraclePool" pool-resize-quantity="2" steady-pool-size="8" transaction-isolation-level="read-uncommitted">
    <property name="url" value="jdbc:oracle:thin:@10.1.4.98:1609:thesid"/>
    <property name="password" value="password"/>
    <property name="user" value="test"/>
    </jdbc-connection-pool>
    Can anyone give me any pointers?

    It looks okay to me. The only thing that jumped out at me is that normally Oracle is on 1521, not the current port you have. Otherwise, I'll drop back 15 and punt on this one.
    - Saish
    "My karma ran over your dogma." - Anon

  • Unable to connect to Oracle Weblogic Administration Server

    Hi Folks,
    As part of installation steps, I am facing error with " Unable to connect to Oracle Weblogic Administration Server"
    Below is AdminServer Log, So please guide me reolving this impending issue.
    ####<12 Jun, 2014 2:46:01 PM IST> <Info> <Deployer> <obia111171w64> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000KQFMukk5yW^5xV_AiW1JaMxv000002> <1402564561284> <BEA-149059> <Module adminservicesmbeans of application biadminservices [Version=11.1.1] is transitioning from STATE_ADMIN to STATE_PREPARED on server AdminServer.>
    ####<12 Jun, 2014 2:46:05 PM IST> <Info> <Deployer> <obia111171w64> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000KQFMukk5yW^5xV_AiW1JaMxv000002> <1402564565300> <BEA-149061> <Module adminservicesmbeans of application biadminservices [Version=11.1.1] failed to transition from STATE_ADMIN to STATE_PREPARED on server AdminServer.>
    ####<12 Jun, 2014 2:46:11 PM IST> <Error> <Deployer> <obia111171w64> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000KQFMukk5yW^5xV_AiW1JaMxv000002> <1402564571861> <BEA-149231> <Unable to set the activation state to true for the application 'biadminservices [Version=11.1.1]'.
    weblogic.management.DeploymentException: Unexpected error encountered
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.getOrCreateDeploymentException(AppContainerInvoker.java:299)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:84)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:220)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: java.lang.OutOfMemoryError: PermGen space
      at weblogic.j2ee.J2EELogger.logIgnoringUndeploymentError(J2EELogger.java:2902)
      at weblogic.application.internal.BaseDeployment$2.logRollbackError(BaseDeployment.java:682)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:65)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:220)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    Thanks,
    Wj

    Did you manage to solve this issue?
    I'm running into the exact same error, but installing 11.1.1.7.0 on Windows 2003
    Haven't found anything on MOS yet :(
    Kind regards,
    Rob
    Edited by: rgouw on 10-apr-2013 1:10

  • Error connecting to Oracle from when running SSIS Package on Windows 64-bit

    Hi.
    I have an SSIS (SQL Server Integration Services) Package that reads a view on Oracle and loads data into table in SQL Server 2005. This is on a Windows 2008 Server (64-bit). SQL Server 2005 with SP3. Oracle Client 11g (32 bit & 64 bit) Runtime Version installed on server. The server has been rebooted since installing OracleClient.
    I get the following error when run as a SQLAgent job 64 Bit (Execution type SQL Server Integration Services Package)...
    Started: 9:29:24 AM
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0202009
    Source: SADM_CURR_Address_and_Cell_Phone-Oracle Connection manager "Oracle/PeopleSoft"
    Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040154.
    An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC020801C
    Source: DFT-Oracle to SS2005 OLE DB Source [1]
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Oracle/PeopleSoft" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0047017
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: component "OLE DB Source" (1) failed validation and returned error code 0xC020801C.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC004700C
    Source: DFT-Oracle to SS2005 DTS.Pipeline
    Description: One or more component failed validation.
    End Error
    Error: 2010-01-04 09:29:25.37
    Code: 0xC0024107
    Source: DFT-Oracle to SS2005
    Description: There were errors during task validation.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started: 9:29:24 AM
    Finished: 9:29:25 AM
    Elapsed: 1.108 seconds
    When I execute this same exact package as a SQLAgent job 32-bit (type Operating System CmdExec) it runs successfully. When I run the package using the Execute Package Utility, it runs successfully. When I am editting the package in BIDS I can connect to Oracle. For both 64 and 32 bit, I use a dtsconfig file which specifies the Oracle connection string and password.
    Someone mentioned on another forum that maybe there is no Oracle ODBC driver for 64-bit Windows. I would assume that the OracleClient 64-bit would include that.
    I hope I have included all info needed. Please let me know if you may have a resolution to this problem.
    Thanks.
    John

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.
    Thanks,

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • How to remove Oracle from my server?

    I was testing with Oracle Gateway and tried installing it in the same home as my existing Oracle Home which is Oracle 10g.
    Now, my Oracle is corrupted. Its just a testing server. I was half way deleting the Oracle files and now I am unable to remove the remaining files. I stopped all the services related to Oracle and its still the same.
    How should I remove Oracle from my server now.
    Please guide me.
    Thanks

    If you are window platform restart the machine and remove the remaining files. In case if remaining file are not get delete rename and later drop after some time .
    If you want to delete the oracle on window follow the below steps :
    start-->>all program-->> oracle -->> installation product -->>click on universal installer -->> de-install product -->>click on ora-home -->> click on remove button.
    Hope this help you
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Cannot connect to Oracle 10g XE Server from Client

    I have tried in vain to connect to the Server from a client installation using both browser and SQLPlus. Someone help me out pls...
    Glogo.

    I have read the SelfStudy many times but Sheila can't help me. I have installed 10g XE Client on a different pc and tried connecting as follows to no avail:
    FROM Run SQL Command line; I entered "conn glogo/*****@GServer:8080/apex" the report I always get is
    ORA-12170: TNS:Connect timeout occured
    From Internet Explorer; I entered "http://GServer/127.0.0.1:8080/apex" the report I get is internet explorer cannot display the webpage
    I ensured the listener is on by typing LSNRCTL STATUS on the command line of the system running the Server. The report indicates that the Listener is ready.
    I am still wondering what is wrong! I have also changed network setting from DHCP to static IP without results. What next friend(s)? Do you know?

  • How can I connect to Oracle and SQL server at the same time?

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]
    As far as I know you have 3 options depending on your specifications. I don't think option #3 will work if you need to actually join a
    SQL Server table to an Oracle table.
    1. Oracle Transparent Gateway. I haven't used the Oracle Transparent Gateway but my understanding is that Oracle gateways are
    separate purchased products from Oracle. I've never seen any free/development versions of it anywhere. You'll need to contact
    your Oracle sales rep about it.
    2. Heterogeneous Connectivity. There's something called Heterogeneous Connectivity that could work for you - depends on what
    version of Oracle you're on and what OS. You basically set up an ODBC data source on the Oracle server and modify the listener.ora
    and tnsnames.ora files. You can then create a database link to SQL Server just like you would to any other Oracle database. You can
    check your Oracle documentation for how this works. There's also some very good documents on Metalink that tell you how to do this
    as well as a Heterogeneous Connectivity forum on this site.
    3. Use the exec_sql package available in Developer 2000. This allows you to open and execute cursors to remote databases within
    Developer. We have an account validation process that uses this - when a person enters an account number in a form while logged
    into Oracle it validates the account is valid in our main accounting DB2 database. We also pull HR information from DB2 into Oracle
    this way. If you're using Forms 6i exec_sql is a built-in command, in Forms 5.0 and 5.5 you have to add it as an attached library to
    the form. I think you also need the OCA options installed from the Developer software to have access to the library in Forms 5.0 and
    5.5. The library will be in the $ORACLE_HOME\oca20\plsqllib directory for these versions. The Developer documentation should have
    additional information.
    HTH

  • How to Connect to Oracle 9i database server via Oracle 10g XE

    I have installed Oracle 10g eXpress Edition and uninstalled Oracle 9i client database. I used Oracle 9i client to connect to another Database server on a local LAN. Is it possible to create a database link to the old Oracle 9i database server via Oracle 10g XE? If yes, do I need to add ODBC drivers?
    I want to achieve the following:
    1) Create a connection to the Oracle 9i database server using Ora101040 odbc drivers.
    2) Use a similar 9i tool (Enterprise Management Console) within Oracle 10g XE to access Oracle 9i Database tables on a LAN network.
    3) Create data access to Oracle 10g XE via some ODBC connection from a C++ runtime application.
    Hope to receive help from Oracle professionals.
    Thanks.

    I have installed Oracle 10g eXpress Edition and
    uninstalled Oracle 9i client database. I used OraclePlease clarify - you uninstalled the 9i database or the 9i client.
    9i client to connect to another Database server on a
    local LAN. Is it possible to create a database link
    to the old Oracle 9i database server via Oracle 10g
    XE? If yes, do I need to add ODBC drivers?
    Database links between Oracle databases do not require ODBC. They do require Oracle Networking (included with both Oracle9i Database and Oracle Database 10g XE) to be configured correctly.
    It is also possible to connect ot the 9i database using the 10g Instant Client (separate download)
    I want to achieve the following:
    1) Create a connection to the Oracle 9i database
    server using Ora101040 odbc drivers.Please clarify - what client do you wish to run that needs ODBC?
    2) Use a similar 9i tool (Enterprise Management
    Console) within Oracle 10g XE to access Oracle 9i
    Database tables on a LAN network.XE does not have an equivalent to Oracle Enterprise Manager. XE does come with HTMLdb preinstalled and configured, and HTMLdb provides a subset of the administration capabilities of Enterprise Manager.
    3) Create data access to Oracle 10g XE via some ODBC
    connection from a C++ runtime application.You can download ODBC drivers from the same location on OTN you downloaded XE. I do not know whether XE includes ODBC drivers. ODBC drivers will usually still require you to configure the Oracle Networking.
    There are a number of items that make me believe you do not have a good grasp of Oracle architecture and basics. If true, I encoureage you to start reading the Concepts manual found for the database at http://docs.oracle.com, or at least the O'Reilly book 'Oracle Essentials' found at http://oracle.oreilly.com

  • Hetrogeneoues connection between Oracle and SQL server

    Hi ,
    I am having Issues in Making Heterogeneous  DB link between Oracle Xe and sql server .
    Here is the scenario-
    My Oracle and ms SQL 2003 are running on same machine(windows 2003) ,
    I have followed this link and reached till 5 but I am not able to tnsping the SQLSERVER DNS entry .
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    Below are my lintener and tnsfiles
    LISTENER.ORA
    ===========================================================================================================================================================
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
           (ENVS = "EXTPROC_DLLS=ONLY:C:\oraclexe\app\oracle\product\11.2.0\server\bin\OraClr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    LISTENERSQL =
    (ADDRESS_LIST=
          (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
          (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    SID_LIST_LISTENERSQL=
      (SID_LIST=
          (SID_DESC =
           (SID_NAME = SQLSRVRDBLNK)
           (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
           (PROGRAM = hsodbc)
    ===========================================================================================================================================================
    TNSNAMES.ORA
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = testenviroment)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    SQLSRVRDBLNK  =
      (DESCRIPTION=
    (ADDRESS=  (PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=SQLSRVRDBLNK)
      (HS=OK)
    ========================================================================================================================================================
    Listner Status
    C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN>lsnrctl status LISTENERSQL
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 19-JUL-2013 13:15:59
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
    STATUS of the LISTENER
    Alias                     LISTENERSQL
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date                19-JUL-2013 12:17:39
    Uptime                    0 days 0 hr. 58 min. 24 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listenersql\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "SQLSRVRDBLNK" has 1 instance(s).
      Instance "SQLSRVRDBLNK", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    =========================================================================================================================================================
    Now If I try to Tnsping SQL heterogeneous connection , i get
    C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN>tnsping SQLSRVRDBLNK
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 19-JUL-2013 13:17:47
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION=
    TNS-12533: TNS:illegal ADDRESS parameters
    Need Help , please suggest
    Thanks,
    Manish

    Hi ,
    Thanks for the update I have changed the Listener as suggested , now my Listener File is
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
           (SID_NAME = SQLSRVRDBLNK)
           (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
           (PROGRAM = hsodbc)
           (ENVS = "EXTPROC_DLLS=ONLY:C:\oraclexe\app\oracle\product\11.2.0\server\bin\OraClr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST=
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.146)(PORT = 1521))
          (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY))
          (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522)))
    ========================================================================================================================
    and tns entry 
    SQLSRVRDBLNK  =
      (DESCRIPTION=
    (ADDRESS=  (PROTOCOL= TCP)(HOST=192.168.60.146)(PORT=1522))
    (CONNECT_DATA=(SID=SQLSRVRDBLNK)
      (HS=OK)
    ========================================================================================================================
    Restarted the listener
    C:\Documents and Settings\Administrator>lsnrctl start LISTENER
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 20-JUL-2013 12:27:38
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.146)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date                20-JUL-2013 12:27:44
    Uptime                    0 days 0 hr. 0 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\testenviroment\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.146)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "SQLSRVRDBLNK" has 1 instance(s).
      Instance "SQLSRVRDBLNK", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    ========================================================================================================================
    Still Getting the same Error
    C:\Documents and Settings\Administrator>tnsping SQLSRVRDBLNK
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 20-JUL-2013 12:27:52
    Copyright (c) 1997, 2010, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION=
    TNS-12533: TNS:illegal ADDRESS parameters
    C:\Documents and Settings\Administrator>
    ========================================================================================================================
    Do we need to change any thing in sqlnet.ora file for heterogeneous connection?
    Thanks ,
    Manish

  • Connect & transfer data from SQL Server Database

    Hi all,
    I would like to connect to MS SQL Server Database and transfer data from the data stored in the SQL Server Database tables into Oracle Tables.
    How should I go about doing this ?
    P.S.: I am using Oracle 11g and SQL Server 2005
    Message was edited by:
    Monk

    What operating system is your Oracle database running on?
    If you're running Oracle on Windows, you can use Heterogeneous Services and Generic Connectivity along with the Microsoft SQL Server ODBC driver to create a database link from Oracle to SQL Server. If you're running Oracle on something other than Windows, you can do the same thing, but you would generally need to license either a third party ODBC driver or one of the Oracle Transparent Gateway products.
    Justin

  • Connect to Oracle from PHP

    Hello
    I have problems to connect to Oracle database from PHP. I use php_oracle.dll. (I can't use OCI8 because the version of our oracle is 8.0).
    We have 2 oracle servers:
    One of them connect ok. But I can't connect to the second server. The main difference is the user. In the second server is like 'ops$p123lmn'. In the first server is only text, e.g. 'dbaper'. Can be a problem the '$' in the username?
    I connected through ODBC in PHP and ok both oracle servers.
    I use ora_logon like:
    $ora_conn = ora_logon("ops$p123mln@siap","pass");
    when ops$p123mln is the user, siap is the SID and pass is the password.
    I'm desperate because I don't find a solution.
    Thanks in advance to all.
    Jose Martin

    If I had to guess, I would say that PHP is probably seeing the string "ops$p123mln@siap" and interpreting it as "ops${p123mln}@siap", which would resolve to "ops@siap", which is way wrong.
    Try replacing the string with 'ops$p123mln@siap' (single-quotes around the string instead of double-quotes).
    Hope that helps.

  • Database Connection to Oracle from Sun Studio

    I am trying to connect to Oracle 9i from the Sun IDE.
    When I test the driver from the databases in the runtime tab, it gives me the following message:
    Internal test driver incomplete. The driver may not support DatabaseMetadata methods.
    The output window shows this:
    Warning: No tables were found. Check your database.
    Warning: No views were found. Check your database.
    Warning: No procedures were found. Check your database.
    If I try to connect, it seems to connect successfully.
    When I expand the jdbc folder it show 3 folders, one for tables, one for views and one for procedures, but they are empty.
    I also set up the classpath to point to the drivers.
    Anyone know the answer?
    Jim

    I was successful and here're some pointers:
    When you configure the new data source for Oracle, configure the server type for Oracle Bundle and define the proper driver class name and add the proper jar file
    Also:
    Check the database URL
    Userid/password
    Typicaly the Driver Class can be: oracle.jdbc.driver.OracleDriver
    And the DB URL: jdbc:oracle:thin:@<host>:1521:<SID>
    (If connecting using thin drivers)
    Good luck ;-)

  • How to find the sessions connected to oracle through application server?

    Hi all,
    i want to restrict my application server users from the deletion of the data in my database.
    for this i was try to find out the application name from v$session but it is showing some application names and some blanks. i need to find out the application server name, so that i can restrict the users in product user profile.
    is there any view to find the sessions and applications which are connected to oracle database?
    Thanks,
    Sandeep

    hi pavan,
    Even whne the privileges are revoked, the java application(users) can able to delete data in the database schema through the java application.
    please suggest me on this?
    --sandeep                                                                                                                                                                                                                                                                                                                                                                                                       

  • Connection to DB from App server fails ORA-1017

    Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2
    DB server1 - Has two DB instances SID=X, SID=Y
    DB server2 - Has two DB instances SID=Y, SID=ZApplication server Tnsnames.ora file had entries for X and Y.
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
      )After Y,Z are installed in DB server2 (without dropping Y DB from DB server1) tnsnames.ora modified as follows
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
      )to
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server2)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
      )Now from Forms applications deployed in application server , we can connect to Z but we cannot connect to Y. We can connect to DB Y via SQL*Plus from Application server.
    Need kind suggestions.
    Best Regards,
    Lokanath

    Hi Lokanath,
    Check this parameter
    SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
    NAME                                 TYPE        VALUE
    sec_case_sensitive_logon             boolean     TRUEIf value is True set it to False.
    SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
    System altered.Try this Hope it works.
    Regards
    Santosh Mahajan
    Edited by: SanOra13 on Mar 15, 2012 11:59 PM

Maybe you are looking for