How to use the Oracle 10g JDBC OCI driver in JBoss ?

Greetings,
I deployed ojdbc14.jar in JBoss and I created an Oracle datasource. I have the following questions:
1. In the datasource descriptor file I have:
<connection-url>jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=xe)))</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
Is it enough in order to use the Oracle 10g JDBC OCI driver ?
2. After having looked-up the datasource and created a connection, the classe of these objects are org.jboss.resource.adapter.jdbc.WrapperDataSource and, respectivelly, org.jboss.resource.adapter.jdbc.WrappedConnection. How can I have access to oracle.jdbc.oci and oracle.jdbc.pool packages ?
Many thanks in advance,
Nicolas

Hello
We were banging our heads on a similar thing, maybe this will help
We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
The method to do this is getInnermostDelegate()
Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
See below for the snippet of code
// now switch the user and reselect
if (conn instanceof DelegatingConnection) {
properties.put("PROXY_USER_NAME","peter/peter");
oraConn =((DelegatingConnection)conn).getInnermostDelegate();
if (oraConn == null)
out.println("oraConn is null\n");
((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
By default, Tomcat does not allow you to call this method, it will always return null
You have to change the xml to allow it to return an object
It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
Here is the setting:
<parameter>
<!-- NOTE: This is necessary to enable access to the Oracle connection object -->
<name>accessToUnderlyingConnectionAllowed</name>
<value>true</value>
</parameter>
Note, this setting was also put in the conf/server.xml file
Thanks
Peter

Similar Messages

  • How to use the oracle jdbc driver

    hi all,
    i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
    the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
    Class oracle.jdbc.driver.OracleDriver not found in type declration.
    if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at TestOracle.<init>(TestOracle.java:33)
    at TestOracle.main(TestOracle.java:126)
    can someone help me out to better understand what is wrong
    it seems the drivers are not install but again the dba assures me they are
    import java.sql.*;
    import java.io.*;
    public class TestOracle {
    public TestOracle()
    // Load the Oracle JDBC driver
    // Connect to the database
    // search the dossiers numbers in the right table depending on criteria
    // if demands comes from extranet verify to only send back the dossier
    // numbers that are linked to the customer
    // Load the Oracle JDBC driver
    try
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         //Class.forName("oracle.djbc.driver.OracleDriver");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    catch( Throwable t ){t.printStackTrace();}
    //SQLException,IOException,ClassNotFoundException,
    //IllegalAccessException,InstantiationException
    try
         // Connect to the database
         // You can put a database name after the @ sign in the connection URL.
         Connection conn =
              //DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
              DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
         Statement stmt = conn.createStatement ();
         ResultSet r = stmt.executeQuery("select * from Dossier");
         stmt.close();
         System.out.println("trouver:" + r.getString("Dossier_Number"));
    catch (SQLException e){e.printStackTrace();}
    public static void main(String[] args)
    TestOracle testOracle1 = new TestOracle();
    here is the code iuse

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • How to restore the oracle 10g database

    Hi all,
    I am very new to oracle. I have experience in mssql and mysql previously.
    Now we have a oracle application to work . I have an oracle database backup (mydata.bak) taken it from my client's oracle database 10g enterprise edition. Now I want to restore the .bak file at my place . I had installed oracle 10g enterprise edition. After that I had created a datbase called praveen by selecting archivelogmode. The database had created . I am able to login through enterprise manager for this praveen database instance.
    Now I want to restore the backup file mydata.bak file into praveen database. May I know how to proceed further?
    Please anybody help me out?
    And basically what is the backup file format in oracle . As I know for mysql it is .sql and for MSsql it is .bak.
    Plz buddies anybody help me out. It is very urgent

    Hi..
    Actually one of the employee related to my client had given me the backup file (mydata.bak). I don't know exactly which type it is?Can't you contact the concerned person at the client side.
    May I know what is the difference between rman and cold backup?In cold backup the database is first cleanly shutdown, and then copies of all the datafiles of the database are taken(all of them in consistent stage).
    RMAN backup is used more where you need to take the backup while the database is up and running.If the database is in ARCHIVELOG mode, then the RMAN backup can be taken while database is in open mode and if the database is in NOARCHIVELOG mode, then in mount stage.
    [http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/part1.htm]
    [http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/part4.htm#BRADV44444]
    Can I start restore by assuming the given backup file as cold and if is not possible by assuming cold backup? Better confirm and then start.
    Anand

  • How to use the Oracle AQ JMS API using Toplink

    My application is using AQ using PL/SQL. We want to convert the PL/SQL code to the JMS interface Oracle offers, the problem is that I need to use a java.sql.Connection object in order to connect to the AQ. I don't own the java.sql.Connection in Toplink. How can I enqueue/dequeue to a JMS AQ using Toplink?

    In the upcoming 10.1.3 release, TopLink supports mapping to/from Oracle AQ messages through a JCA adapter. This functionality is currently available in the 10.1.3 developer preview release on the Oracle OTN web site. If you have an earlier version of TopLink, using AQ directly may make more sense with TopLink only being used to access an existing JDBC connection.
    To use AQ directly a JDBC connection is required - then the AQ JMS interface can be used to access any messages. If TopLink has a JDBC connection with Oracle AQ, it (the JDBC connection) can be accessed via session.getAccessor().getConnection(). Also, if a J2EE datasource/connection pool is being used a JDBC connection could be obtained there as well. One thing to note is that creating a new JDBC connection would be 'safer', as this would avoid having the connection managed when it shouldn't be.
    For information on how Oracle TopLink provides EIS access to AQ, please refer to: http://www.oracle.com/technology/products/ias/toplink/preview/howto/eisAq/index.htm

  • How  to get the oracle 10g database backup.

    Hi,
    i have installed oracle 10g.i need to get the back up of db.
    i have search so many sites.i didn't get much information.
    some guys tells we go to installed directory in that run"RAMNS".
    i am following in the process.after run the rams which commands
    i have to used to get the db back up.
    C:\Oracle\app\oracle\product\10.2.0\server\BIN\RAMNS
    RAMNS>...(here is the prob which commands i have to used)
    i have seen another way solution is you can use "imp" and "exp" present in BIN to take back up.(how to follow this)
    please help me,

    Would suggest you read the docs on backup, restore. if you cannot restore you db, you are in trouble. read it and understand it well.
    Summary:
    For 10g, you have rman, imp/exp and datapump import/export (replaces imp/exp).
    For very simple backups where you have windows you can shut down, run a cold backup. shutdown the database, copy the database files, and startup. i also take copies of the current pfile and anything else important to restore the database with. we copy the files to a dedicated backup file system, which go to tap, e.
    That will give you a simple option to restore.
    For prod databases, you typically want archive mode on which means you can run hot or online backups. just remember you have to have the archive logs generated during the hot backup. you now also have the ability to do a point in time restore.
    Exp or datapump exp can be used for metadata exports, full exports or partial (schema, table, etc) as needed. i typically run a cold or hot plus an export for redundacy and restore options, but db size will change how you back things up.
    You can find plenty of scripts to automate these. just understand how the scripts work and understand the process itself. if not, you will have trouble restoring when it is needed the most.
    Rman is also a good option with the latest releases.

  • How to Use the Oracle Security (dynamic connection)  ADF Struts ?

    Hello All
    I need to use the security from Oracle in my application, I mean I use a connection to my DB , but This connection would have to be dynamic, I have to create different users with grants to my tables , and The users would have to connect to my application directly , I read something in the forum , but I'm not sure if it's possible , because I have appmodule created and they are connected to a same user. I need this be dynamic Could I use do This?. Someone have the same requirement?. Someone can help me , pleaser, Urgent!!
    Thanks all.
    Regards.

    Hello
    We were banging our heads on a similar thing, maybe this will help
    We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
    1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
    The method to do this is getInnermostDelegate()
    Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
    See below for the snippet of code
    // now switch the user and reselect
    if (conn instanceof DelegatingConnection) {
    properties.put("PROXY_USER_NAME","peter/peter");
    oraConn =((DelegatingConnection)conn).getInnermostDelegate();
    if (oraConn == null)
    out.println("oraConn is null\n");
    ((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
    2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
    By default, Tomcat does not allow you to call this method, it will always return null
    You have to change the xml to allow it to return an object
    It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
    Here is the setting:
    <parameter>
    <!-- NOTE: This is necessary to enable access to the Oracle connection object -->
    <name>accessToUnderlyingConnectionAllowed</name>
    <value>true</value>
    </parameter>
    Note, this setting was also put in the conf/server.xml file
    Thanks
    Peter

  • How to use the Oracle Cloud Database Service

    Hi,
    I got the trial version of Oracle cloud Database service. How to use that?
    I wanted it to deploy the schema for my application. It needs the db to be pingable. I should be able to ping the db using the tnsping command.
    Can any body help in this regard?
    Regards
    Anil

    Anil -
    You cannot communicate with the Database Cloud Service from outside the Public Cloud with SQL*Net or over TCP/IP, as explained in the FAQ, located here https://cloud.oracle.com/mycloud/f?p=service:database_faq:0:::::.   The Database Cloud Service is a PaaS, not a DBaaS, so you won't be able to ping it in the way you describe.
    Hope this helps.
    - Rick Greenwald

  • How to use the Oracle FTS search from my own program ?

    Hi,
    Due to certain reasons, we cann't use the UI that comes up with the Oracle help. Now I am wondering, If anybody has attempted to build something like the following:
    Have thier own JSP from where they had this search input box
    Accept the data (input) that's punched there by the user
    Use the code engine to query the .idx file with the input
    then whatever comes back as a result of that search (as a list or whatever), loop thru and display them as hrefs in thier own UI.
    If somebody has done this, I would appreciate if they could share thier code.
    Thanks very much.
    -Ram

    Brian,
    Thanks very much for quick response.
    First to answer your questions ....
    Yes, you have got it right. We want it to use for a help system and this is about OHW.
    The reasons for not being able to use the UI as is because: We want the UI to have our look and feel.
    As such we wrote some code that would also take care of the the context sensitivity (of course using the topicID's etc). We have a Data initialization bean on the top of each page and that sets the topicId for that page from the Mapping file and so when the user presses the F1 key it shows up the right help page.
    Now the challenge is: Search
    What I want to do is:
    Provide a search field (<input type="Text" name="searchFieldName">) on my page and thus accept the input (let's say request.getParameter("searchFieldName")) and write some code by which I will pass that off to your engine .. and which will then look at the .idx file and return the results to me as a collection or something like that, so that then I can use that to render the search results in my page. (I guess you must be doing something similiar, right).
    So did that make sense ? I will appreciate if you can provide me some code examples or directions pertaining to this.
    I looked at your method's (orcale help jar file) and tried to proceed but lost my way.
    Thanks a lot
    -Ram

  • How to use the  ipod as external hard drive???

    I went to the windows explorer page and checked under my computer and saw my ipod as the "E" drive. Is the procedure of storing files, be it word or excel or photos as simple as dragging them into the ipod E drive location???
    I have tried doing this and they seem to have been copied into the ipod, however when I checked into the ipod they were not there...anywhere. I highlighted the "ipod(E)" drive and created a new folder named "my documents" and then dragged some word files into it. I then detached the ipod from my computer and checked the ipod for the files and the new folder "my documents" and could not find them.
    When you use the ipod as an external hard drive are all the documents and files you drag into it hidden???
    Is there any way to view word documents?? How do you store them?
    When using the ipod, is the only viewable information that comes up onto the ipod screen, info from the "itunes" page??
    cheers
    ipod 4th generation....20g Windows XP
    Windows XP

    You can't view any of the files on the iPod while using the iPod. You can only see them through the computer. I guess if you want, you can put the files into the "Notes" folder on the iPod and see them using your iPod, but you can only open .txt files up to 4kb big.
    eMachines(POC); 3rd Gen 40GB iPod, 4,000 songs on the dot!   Windows XP Pro  

  • How to use the Oracle's SET ROLE?

    Hi all,
    does anyone know how I can call SET ROLE (for Oracle) from java before the report is produced with
    Crystal Reports API?
    I'm using Crystal Reports 2008 for the report design and new crystal report java sdk of JRC (v12.2 with SP1) which know as CRJ in my J2EE application.
    I tried to insert a Command (SET ROLE role) into a working fine report.
    The report runned into Crystal Reports 2008 works fine.
    Since has been made a high number of reports without a SET ROLE, to avoid to modify all the reports already made, I tried to run the SET ROLE from JAVA adding a CommandTable to report.
    Below the code inserted into java class:
              ConnectionInfos connInfos = new ConnectionInfos();
              IConnectionInfo iConnInfo = new ConnectionInfo();
              PropertyBag propertyBag = new PropertyBag();
              try {
              String usernameOracle = GestoreContesto.getAttributo("usernameOracleReport");
              String passwordOracle = GestoreContesto.getAttributo("passwordOracleReport");
              String connectString = GestoreContesto.getAttributo("dbUrl");
              String driverName = "oracle.jdbc.OracleDriver";
              //String driverName = "oracle.jdbc.OracleConnectionCacheImpl";
              //String JNDIName = "jdbc/nsisrdatasource";
              String userName = usernameOracle;               
              String password = passwordOracle;
              String TRUSTED_CONNECTION = "false";
              String SERVER_TYPE = "JDBC (JNDI)";
              String USE_JDBC = "true";
              String DATABASE_DLL = "crdb_jdbc.dll";
              //String JNDI_OPTIONAL_NAME = JNDIName;
              String CONNECTION_URL = connectString;
              String DATABASE_CLASS_NAME = driverName;
              propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
              propertyBag.put("Server Type", SERVER_TYPE);
              propertyBag.put("Use JDBC", USE_JDBC);
              propertyBag.put("Database DLL",DATABASE_DLL );
              //propertyBag.put("JNDIOptionalName",JNDI_OPTIONAL_NAME );
              propertyBag.put("Connection URL", CONNECTION_URL);
              propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
              iConnInfo.setAttributes(propertyBag);
              iConnInfo.setUserName(userName);
              iConnInfo.setPassword(password);
              connInfos.add(iConnInfo);
              String TableName = "Custom_Query";
              String TableAlias= "Custom_Query";
              CommandTable table = new CommandTable ();
              table.setAlias (TableAlias);
              table.setName (TableName);
              table.setConnectionInfo(iConnInfo);
              table.setCommandText("SET ROLE role");
              databaseController.addTable(table, null);
              catch (ReportSDKException e) {
                   System.out.println("......");
    When I tries to render a report from Java I received this ERROR:
    15:32:52,935 INFO  [STDOUT] 15:32:52,935 FATAL [JRCCommunicationAdapter] Request failed and JRC Command failed to be undone
    15:32:52,966 INFO  [STDOUT] 15:32:52,951 ERROR [JRCCommunicationAdapter]  detected an exception: Nessun risultato restituito dalla query.
         at com.crystaldecisions.reports.queryengine.Table.u7(Unknown Source)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.an.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.b(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bb.int(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown Source)
         at it.ServletHelper.querySetRole(ServletHelper.java:627)
    It's a big problem. If anyone has any idea, I'd greatly appreciate it.
    Thanks

    Hi all,
    running a report with two command from java (the first contains a simple "SEt ROLE role",
    the second contains a simple select) is raised the error "No results returned by the query" while in
    Crystal Reports 2008's preview the report works fine.
    Therefore I ask: "Is it possible to run a report that contains a query without result from Java?
    How can do with the SET ROLE command, which is essential for me?"
    Thanks

  • I am using the Oracle 10g express edition

    Is it possible to connect using a Java program? If so, what connect string should I be using?

    Hi,
    This is with reference to connecting to Oracle Database XE using a java-based program (for example NetBeans).
    Step 1: Add a CLASSPATH
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/jdbc/libs/
    Step 2: Add ojdbc14.jar to the directory of your project.
    Step 3: Import Java SQL and Oracle JDBC Driver.
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    Step 4: Create an OracleDataSource using your username and password. The connection string should look similar to the below mentioned.
    public Connection getConnection()
    throws ClassNotFoundException, SQLException {
    OracleDataSource myds = new OracleDataSource();
    myds.setUser("username");
    myds.setPassword("pasword");
    myds.setURL("jdbc:oracle:thin:@your.server:1521/xe");
    Connection conn = myds.getConnection();
    return conn;
    Step 5: Create a sample data table. The set of statements should look similar to the below mentioned.
    public void createTable(Connection conn) throws SQLException {
    Statement stmt = null;
    String query;
    try {
    query = "CREATE TABLE tutorials title VARCHAR2(70), author VARCHAR2(40),
    ref_number NUMBER(7,0) CONTRAINT pk_tutorials PRIMARY KEY,
    submit_date DATE DEFAULT SYSDATE";
    stmt = conn.createStatement();
    stmt.executeUpdate(query);
    finally {
    if(stmt != null){
    stmt.close();
    Should this solve your problem, kindly mark the thread as answered.
    Regards,
    Naveed.

  • How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?

    I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.

    Hi Rohit,
    Would like to ask you some questions about the oracle report with Visual Basic.
    1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
    2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
    3. Is this activeX control similar to Crystal report object which can found in VB?
    4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
    Your answer will be much appreciated.
    Thanks.
    Regards,
    Hock Leong

  • How to rechoose or add the Oracle 10g AS's support language?

    hi all,
    I Installed the Oracle 10g As on a redhat as 3 with sp4. and I did not choose any other languages support while install the Oracle 10g AS. All were fine except that while I accessed the server's 1810 port with IE6, I got additive device. Some charatersets display right while some such as buttons display as a litter pane.
    so my question is how to rechoose the Oracle 10g AS's support language and set one of my preference to as default character set !
    I am not sure whether this problem just relate to the emctl's startup parameter.
    regards,
    Ari

    Finally, I reinstalled the Oracle Application Server 10g on the same Operration System. Any modification of the setting in my computer hasn't been made. in the course of installation, all the operation steps were the same with the previous time, except for adding a language support.
    And this time, to access the em manager console with IE, all runs fine without any additive device. The buttons display the right words now. And I found there are something different in the folder $ORACLE_HOME/sysman/webapps/emd/cabo/images/cache/.
    But I still have not any idea how to correct this problem on an installed system if I meet next time. Do I must reinstall anytimes? Or there just need to modify some config files?

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • When I get a date field value using the Oracle thin (type 4) JDBC driver...

    ....in 'DD-MMM-YY' format from an Oracle 8i database and pass it in to the java.util.Date() constructor, I get a IllegalArgumentException. This error doesn't occur when I use the type 2 driver, so it is apparently a driver-specific thing. It happens on both Win32 and Linux.
    Has anyone seen this before? Is there a newer version of the Oracle thin (i.e., type 4) driver than is listed here?
    http://web77-02.us.oracle.com/software/tech/java/sqlj_jdbc/content.html
    Thanks,
    Tom
    [email protected]

    Yup, that original post didn't make much sense, did it? Let's try again.
    I've got an EJB app that runs on WebLogic 6.0 (on Solaris in production, on Win2K for development) and accesses an Oracle 8i database. This app currently uses the Oracle type 2 JDBC drivers. All is well.
    So I wanted to see how it would run on Linux. I've got a Redhat 7.1 box handy, so I installed the JDK and WL6.0 and slapped the ear file on there. Problem! Can't deploy because there are no Oracle drivers on this machine!
    Makes sense. So I started looking around, and it seems installing Oracle on a RH 7.1 box involves patching glibc and other such nastiness. So let's just try the type 4 JDBC driver - no glibc patch, no shared object libraries, just good 'ol pure Java talking to Oracle on port 1521.
    Once I had the URLs and whatnot set up, the app connected to the DB just fine, created the connection pool, read some data, etc. But when my app read a date from the DB and instantiates a new java.util.Date object, I got an IllegalArgumentException - i.e., the date can't be parsed.
    "Hmm... that's odd", I thought, so back I went to my trusty Win2K machine, modified my configuration files to use the type 4 driver and - same error! So I switched back to the type 2 driver - and everything works fine, Dates and all. Hmmm.....
    As you correctly state, that Date constructor is deprecated and I should use DateFormats and GregorianCalendars and whatnot instead.
    But has anyone seen this weird behavior before - code that works fine on a type 2 driver starts throwing exceptions when used with a type 4 driver? Anyone have any solutions?
    Thanks much,
    Tom

Maybe you are looking for

  • Customer Recon Change(FX impact) @ the time of F101.

    Hi Gurus, I had a query regarding change of Customer's recon account and the impact of FX . After checking few threads i found that through  Tcode:- F101 the amount from old recon account will be reclassed to a new GL account(Adjustment GL) and after

  • Turnover reporting in FI

    Hello. I am using version 4.6C of SAP and have found the following turnover reports: Customers: S_ALR_87012186    RFDUML00 Vendors:    S_ALR_87012093    RFKUML00 The reports are fine except that they give me values including tax (VAT). My requirement

  • Field avaialble in field catalog but not when I try to create the condition

    Hi,   I wanted to add a new table to a delivery output. I need the fields delivery type/ship point and destination country. I could see that destination country (LAND1) is not available in the field catalog. I added it from the list of available fiel

  • MacBook built-in speakers won't work

    Anyone else have this glitch? The internal speakers worked fine at first, but would not respond at times when I plugged into, then unplugged earphones or line-out from the headphone jack. If I shut down and powered everything down with nothing plugge

  • IPad2 audio problem

    I have the iPad2 and it's a little over a year now, for some reason my audio is messed up. I can hear everything just fine but when I go to talk they can not hear me, is there something I can do to fix the problem?