SetTimestamp in Tomcat + Oracle 9i ignores milliseconds

Hi all,
I have a problem when using setTimestamp in Tomcat + Oracle 9i becouse it ignores milliseconds in the database.
It�s a J2EE app that runs on Tomcat and OC4J as a server and Postgres and Oracle 9i as a DDBB. It works OK with OC4J + Oracle but it ignores the milliseconds when I use Tomcat.
I�m using setTimestamp(java.sql.Timestamp)
Driver used is classes12.jar, jdk 1.4.1, ...
Any Idea?
Thanks

1- try ojdb14.jar instead of classes12.jar
2- add this to the context of your web app:
          <parameter>
               <name>connectionProperties</name>
               <value>oracle.jdbc.V8Compatible=true</value>
          </parameter>3- i don't think this is a tomcat problem:
See http://www.databasejournal.com/features/oracle/article.php/2234501

Similar Messages

  • Oracle 9i ignores INDEX hint

    Hello,
    I try to convince Oracle to do a index scan rather then a full table scan in a query. To
    do this I created a view on top of the table which simply adds this hint:
    CREATE OR REPLACE VIEW V_FHDDSC3_FACT_DATA_4WEEK AS
    SELECT /*+ INDEX(T P_FHDDSC3_FACT_DATA_4WEEK) */
    T.*
    FROM T_FHDDSC3_FACT_DATA_4WEEK T
    The whole query is here:
    SELECT v_fhddsc3_geography_dim.geog_tag, v_fhddsc3_product_dim.prod_tag,
    v_fhddsc3_time_4week_dim.time_tag, v_fhddsc3_fact_data_4week.m001,
    v_fhddsc3_fact_data_4week.m002, v_fhddsc3_fact_data_4week.m003,
    v_fhddsc3_fact_data_4week.m004, v_fhddsc3_fact_data_4week.m005,
    v_fhddsc3_fact_data_4week.m006, v_fhddsc3_fact_data_4week.m007,
    v_fhddsc3_fact_data_4week.m008, v_fhddsc3_fact_data_4week.m009,
    v_fhddsc3_fact_data_4week.m010
    FROM v_fhddsc3_geography_dim,
    v_fhddsc3_time_4week_dim,
    v_fhddsc3_fact_data_4week,
    v_fhddsc3_product_dim
    WHERE ( v_fhddsc3_geography_dim.geog_key =
    v_fhddsc3_fact_data_4week.geog_key
    AND v_fhddsc3_product_dim.prod_key =
    v_fhddsc3_fact_data_4week.prod_key
    AND v_fhddsc3_time_4week_dim.time_key =
    v_fhddsc3_fact_data_4week.time_key
    AND ( v_fhddsc3_geography_dim.geog_tag IN
    (:"SYS_B_00",
    :"SYS_B_01",
    :"SYS_B_02",
    :"SYS_B_03",
    :"SYS_B_04",
    :"SYS_B_05",
    :"SYS_B_06",
    :"SYS_B_07",
    :"SYS_B_08"
    AND v_fhddsc3_product_dim.hierarchy_level IN (:"SYS_B_09")
    AND v_fhddsc3_time_4week_dim.time_tag IN
    (:"SYS_B_10",
    :"SYS_B_11",
    :"SYS_B_12",
    :"SYS_B_13",
    :"SYS_B_14",
    :"SYS_B_15",
    :"SYS_B_16",
    :"SYS_B_17",
    :"SYS_B_18",
    :"SYS_B_19",
    :"SYS_B_20",
    :"SYS_B_21",
    :"SYS_B_22",
    :"SYS_B_23",
    :"SYS_B_24",
    :"SYS_B_25",
    :"SYS_B_26",
    :"SYS_B_27",
    :"SYS_B_28",
    :"SYS_B_29",
    :"SYS_B_30",
    :"SYS_B_31",
    :"SYS_B_32",
    :"SYS_B_33",
    :"SYS_B_34",
    :"SYS_B_35",
    :"SYS_B_36"
    The execution plan shows a full table scan on T_FHDDSC3_FACT_DATA_4WEEK.
    The index is the primary key of the table containing PROD_KEY, GEOG_KEY and TIME_KEY.
    Why is Oracle 9i ignoring index hints?
    I came across the same problem some months ago, when we migrated one database from 8i to 9i. After that an INDEX_ASC hint was suddenly ignored. We used an index + and INDEX_ASC hint to sort a hierarchical query.
    We had to change the algorithmn and use a Database function to get it sorted right. This is painfull and slow.
    Any ideas?
    Kai

    Kai,
    Remember a hint is just that, a hint to the optimizer, it does not override the execution plan created by the optimizer. Possibilities are that the statistics in the database are out of date, which will affect the Cost based optimizer. Indexes on views are tricky as they would rely on the indexes on the underlying tables.
    Few AskTom links which may help:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1705043::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:313416745628,%7Bhint%7D%20and%20%7Bindex%7D
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1705043::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:641623836427,%7Bhint%7D%20and%20%7Bindex%7D
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1705043::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1197786003246,%7Bhint%7D%20and%20%7Bindex%7D
    Sometimes the full scan can be quicker, than the index depending on the query.
    Regds
    Dave

  • I have a problem with JDBC Realm in Tomcat/Oracle/Win XP

    I have a problem with JDBC Realm in Tomcat.
    I have attached my server.xml file located in the
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml
    The Problem is that when I login I get the user name and password prompt but it does not resolve.
    When I enter in the tomcat-users.xml password with memory realm uncommented it works fine.
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml
    Is there a cache or something I need to reset for the JDBC Realm to work?
    I have attached my tables and contents as well...
    Did I miss something????
    Thanks
    Phil
    server.xml
    <Server port="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"
    connectionName="testName" connectionPassword="testPass"
    userTable="users"
    userNameCol="user_name"
    userCredCol="user_pass"
    userRoleTable="user_roles"
    roleNameCol="role_name" />
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    </Host>
    </Engine>
    </Service>
    </Server>
    Tables
    create table users
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table roles
    role_name varchar(15) not null primary key
    create table user_roles
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key( user_name, role_name )
    select * from users;
    ----------------------+
    | user_name | user_pass |
    ----------------------+
    | tomcat | tomcat |
    | user1 | tomcat |
    | user2 | tomcat |
    | user3 | tomcat |
    ----------------------+
    select * from roles;
    | role_name |
    | tomcat |
    | role1 |
    select * from user_roles;
    -----------------------+
    | role_name | user_name |
    -----------------------+
    | tomcat | user1 |
    | role1 | user2 |
    | tomcat | tomcat |
    | role1 | tomcat |
    -----------------------+

    Jan 2, 2008 11:49:35 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 2, 2008 11:49:35 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 734 ms
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    Jan 2, 2008 11:49:35 AM org.apache.catalina.realm.JDBCRealm start
    SEVERE: Exception opening database connection
    java.sql.SQLException: oracle.jdbc.driver.OracleDriver
         at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:684)
         at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:758)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1004)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
         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:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jan 2, 2008 11:49:36 AM org.apache.catalina.core.StandardContext resourcesStart

  • Need a jdbc driver for tomcat - oracle

    i have tomcat 6 and oracle forms 6i
    i need a driver
    where can i get it from & how do i install???

    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

  • JSP Deployment:Tomcat:Oracle Prepared Statement error

    I'm deploying my BC4J JSP application to Linux/Tomcat 4.0.1.
    The html and basic jsp (Query form display) work but whenever I try to hit the database (i.e. display a browse or execute a query), I get the following in the Browser window:
    Application Error
    Return
    Error Message: oracle.jdbc.driver.OraclePreparedStatement
    There are no other messages. Everything works in the JDeveloper IDE.
    I'm sure I've done something wrong in the configuration.
    Can anyone point me in the right direction?
    TIA
    Thanks, George

    Thanks for the info Sung.
    We solved the problem late yesterday. The Tomcat documentation indicates that .jar files shared by the application and the server must reside in <Tomcat_home>/common/lib/. However, we went by the JDeveloper document which stated that most of the library files belong in <Tomcat_home>/lib/.
    When we moved classes12.jar to /common/lib/ the problem was resolved.
    In order to resolve other problems that arose, we had to move all of the indicated .jar files for JDeveloper into /common/lib/.
    One of the JDeveloper documentation folks should probably evaluate this for a change to the documentation.
    Thanks for your help!
    Thanks, George

  • Tomcat, Oracle 9i and Chinese Characters

    Dear Group,
    we are using an application based on oracle 9i and tomcat 5.0. I copied the "ojdbc14.jar" and "nls_charset12.jar" to my common/lib directory of Tomcat.
    The application works fine until I insert chinese characters via the web form from our app. If I insert the chinese characters directly with the oracle enterprise console, it works.
    NLS_NCHAR_CHARACTERSET is AL16UTF16
    Any idea?
    Thanks in advance
    Ray

    Are you inserting the Chinese characters into a VARCHAR2 column or into an NVARCHAR2 column?
    What is your NLS_CHARACTERSET?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Apache Tomcat/Oracle 9i Application server

    I have some JSP applications in tomcat but I need to move it over to mt Oracle Application Server, Please can some one tell how to do this.
    Thank you

    It should be relatively straight forward.
    If you have WAR files which you've deployed to Tomcat, then you should pretty much be able to deploy them as is to OracleAS using the application server control management console.
    The mgt console has support for WAR file deployment.
    In the documentation, the User's Guide is a good book to read to get up to speed.
    http://download-west.oracle.com/docs/cd/B10464_02/web.htm
    If you have just a collection of JSPs as your application, then I'd recommend you put them into a WAR file archive, and then deploy that.
    cheers
    -steve-

  • Connexion Problem Tomcat+Oracle

    I'm using Tomcat 5.0, Oracle 9i and JDK 1.4.2
    I'm trying to connect to a database. I have already put the class12.jar in the \common\lib folder of Tomcat. I have also configured the server.xml and web.xml as it is told in the Tomcat 5.0 Documentation. When I execute the test file I have done I have the following error:
    javax.servlet.ServletException: invalid arguments in call
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.test2_jsp._jspService(test2_jsp.java:59)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    java.sql.SQLException: invalid arguments in call
         oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
         oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
         oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java)
         oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
         oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
         java.sql.DriverManager.getConnection(Unknown Source)
         java.sql.DriverManager.getConnection(Unknown Source)
         org.apache.jsp.test2_jsp._jspService(test2_jsp.java:49)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Can you help me finding the problem? Thank you

    You code check the arguments for the connection. The trace is indicating a problem with that.

  • Daylight savings time? Oracle has ignore?

    it has some command DBA that the Oracle 9i can ignore the Daylight savings time in the calculations with dates?
    thanks.

    I have following procedure:
    procedure CREATE_STOCK_DATA_SCENA () is
    next_day date;
    n_days number;
    begin
    create table TEMP_GRAF_ESTOQ
    DATA DATE not null,
    -- continue
    delete from temp_graf_estoq;
    -- it generates 100 days from today on
    next_day := sysdate;
    n_days := 0;
    while (n_days < 100)
    loop
    insert into temp_graf_estoq
    (data)
    values
    (next_day);
    next_day := next_day + numtodsinterval(1,
    'DAY');
    n_days := n_days + 1;
    end loop;
    /*** continue ****/
    end CREATE_STOCK_DATA_SCENA;
    In the output, when it was to generate the last day of the October month as 31, it is generated 30. I believe that it is for cause Daylight savings time.
    Somebody already passed for this problem or something seemed?
    Thanks

  • Tomcat / Oracle

    No matter what I do I cannot get my application connected to an Oracle database.
    I've tried classes12.jar in all the possible locations, added it to %CLASSPATH%, taken it off %CLASSPATH%, removed the javax.sql classes but nothing will work.
    The error message isn't exactly telling me much either.     
    <!-- Class name for JDBC driver -->
         <parameter>
         <name>driverClassName</name>
         <value>oracle.jdbc.driver.OracleDriver</value>
         </parameter>
         <!-- The JDBC connection url for connecting to your DB -->
         <parameter>
         <name>url</name>
         <value>jdbc:oracle:[email protected]:1521:luht</value>
         </parameter>
    LOG FILE.
    Bootstrap: Create Catalina server
    Bootstrap: Starting service
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.27-LE-jdk14
    Bootstrap: Service started
    org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver', cause: oracle.jdbc.driver.OracleDriver

    For what it's worth, my problem was that I had the context defined incorrectly in my server.xml. As such, the datasource manager was not finding my datasource and was throwing the error described above.
    Explicitly, the problem was that I was deploying as a WAR file that was NOT being expanded. My context was missing the leading forward slash from the path name.
    I decided to post my solution because it took me several hours to figure it out and nobody else seemed to propose that what I was experiencing could have been caused by Tomcat not finding the datasource.
    Anyway, here is a snippet of my working server.xml file. I hope this helps somebody else.
    Craig
          <!-- Define the default virtual host -->
          <Host name="localhost" debug="0" appBase="webapps"
           unpackWARs="false" autoDeploy="true">
            <Logger className="org.apache.catalina.logger.FileLogger"
                     directory="logs"  prefix="localhost." suffix=".log"
                 timestamp="true"/>
            <Context path="" docBase="ROOT" debug="0" reloadable="true"/>
            <!-- Note the leading '/' here in the path. -->
            <Context path="/myapp" docBase="myapp.war" debug="0" reloadable="true">
              <Resource name="jdbc/MyDataSource" auth="Container" type="javax.sql.DataSource"/>
              <ResourceParams name="jdbc/MyDataSource">
                <parameter>
                  <name>factory</name>
                  <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                </parameter>
                <parameter>
                  <name>driverClassName</name>
                  <value>oracle.jdbc.driver.OracleDriver</value>
                </parameter>
                <parameter>
                  <name>url</name>
                  <value>jdbc:oracle:thin:@server:1521:database</value>
                </parameter>
                <parameter>
                  <name>username</name>
                  <value>username</value>
                </parameter>
                <parameter>
                  <name>password</name>
                  <value>password</value>
                </parameter>
                <parameter>
                  <name>maxActive</name>
                  <value>15</value>
                </parameter>
                <parameter>
                  <name>maxIdle</name>
                  <value>10</value>
                </parameter>
                <parameter>
                  <name>maxWait</name>
                  <value>-1</value>
                </parameter>
                <parameter>
                  <name>validationQuery</name>
                  <value>select 'TEST' from dual</value>
                </parameter>
              </ResourceParams>
            </Context>
          </Host>

  • Is there a way for Oracle to ignore passwords?

    Hello..
    Just curious if there is any way to set Oracle to do the following..
    I want to connect as a certain user (connect user/password@database)
    I want Oracle to let me connect as long as the user name passed corresponds to a user in Oracle with connect privs, no matter if I pass the correct or incorrect password?
    I know that sounds like a strange thing to want to do.. But has anyone found a way to do that?
    Thanks,
    BP

    Read the documentation on 'external' passwords (which makes Oracle use OS authentication rather than it's internal authentication). Perhaps that solves your problem...

  • Oracle ignores max_dispatchers parameter

    Hello,
    Does anyone know why Oracle would ignore the max_dispatchers parameter?
    [root@prod1 ~]# sps d00
    oracle 1507 1 0 16:34 ? 00:00:04 ora_d000_prod1
    oracle 1509 1 0 16:34 ? 00:00:03 ora_d001_prod1
    You can see the two above. I can see in the alert log that the database starts two up:
    [root@diag1 bdump]# less alert_prod1.log
    db_file_multiblock_read_count= 16
    db_create_file_dest = +DISKGROUP1
    db_recovery_file_dest = +DISKGROUP1
    db_recovery_file_dest_size= 51539607552
    standby_file_management = AUTO
    db_flashback_retention_target= 2880
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    undo_retention = 1800
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    service_names = prod,prod1
    dispatchers = (protocol=TCP), (DESCRIPTION=(SDU=32768) (ADDRESS=(PROTOCOL=TCP)))
    shared_servers = 1
    max_shared_servers = 8
    max_dispatchers = 1
    local_listener = LISTENER_PROD1
    session_cached_cursors = 128
    job_queue_processes = 10
    cursor_sharing = SIMILAR
    background_dump_dest = /oracle/admin/prod1/bdump
    user_dump_dest = /oracle/admin/prod1/udump
    core_dump_dest = /oracle/admin/prod1/cdump
    audit_file_dest = /oracle/admin/prod1/adump
    db_name = prod
    db_unique_name = prod1
    open_cursors = 4096
    optimizer_mode = FIRST_ROWS_10
    pga_aggregate_target = 1881145344
    optimizer_dynamic_sampling= 4
    dg_broker_start = TRUE
    PMON started with pid=2, OS id=1485
    PSP0 started with pid=3, OS id=1487
    MMAN started with pid=4, OS id=1489
    DBW0 started with pid=5, OS id=1491
    LGWR started with pid=6, OS id=1493
    CKPT started with pid=7, OS id=1495
    SMON started with pid=8, OS id=1497
    RECO started with pid=9, OS id=1499
    CJQ0 started with pid=10, OS id=1501
    MMON started with pid=11, OS id=1503
    Tue May 11 16:34:08 2010
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=1505
    Tue May 11 16:34:08 2010
    starting up 1 dispatcher(s) for network address '(DESCRIPTION=(SDU=32768)(ADDRESS=(PROTOCOL=TCP)))'...
    starting up 1 shared server(s) ...
    DMON started with pid=16, OS id=1513
    Tue May 11 16:34:08 2010
    ALTER DATABASE MOUNT
    Now this is a Dataguard configuration. Would there be a dispatcher for the Dataguard as well by default? Irrespective of my parameters?
    The version of the Oracle Database is:
    10.2.0.4.0
    Thanks for your time.

    # listener.ora Network Configuration File: /oracle/product/10g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1949))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/product/10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = prod1_DGMGRL)
    (SERVICE_NAME = prod1)
    (SID_NAME = prod1)
    (ORACLE_HOME = /oracle/product/10g)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1948))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )

  • Oracle 10g XE in tomcat 5.5 through JSP or Servlet

    Hello iam very new user of tomcat,oracle 10g .Will you please guide how to set environment variables and any other modifications to be done to run a JSP or Servlet including JDBC(oracle 10gXE) connection in tomcat5.5 for windows Xp.
    Please tell me in detail........................................

    I am sure that one can set up SELinux 'properly'.
    Everyone I talk to about SELinux tells me that it has become more detailed and much more 'secure' in that past years, and that probably explains why Oracle worked easily in FC3 and not so easily now. The added power also requires added configuration, which some have described to me as 'somewhat more involved than sendmail.cf'
    The documentation is at http://www.nsa.gov/selinux/ for those who wish to learn about the configuration capabilities. I'm sure that Google will also provide tutorials.

  • Oracle FO processor ignoring color attribute

    Hello,
    I have the following: <fo:inline font-weight="bold" color="red">blah</fo:inline> iin my report xml. When I use BI Publisher desktop to convert my template to pdf or html, the selected text is shown in bold but the color is not in red but black. I have tried using hex colors like #FFFFFF but this is equally ignored.
    Does the oracle processor ignore the color attribute and if so is there a workaround?

    Do you have the code in a form field? When you say that you use BI Publisher desktop to convert my template to pdf or html, do you mean that when you preview the output you don't see the text in RED? I was able to view the text in bold and red color.
    Thanks,
    Bipuser

  • Has anyone got iFS working in Tomcat ?

    iFS 1.1.9
    We have a urgent need to get iFS running in a Servlet 2.2 container and OC4J does not support iFS yet. I know this is not supported but has anyone got iFS working in Tomcat ? If so, pls do me a BIG favour by letting me have your config files, such as
    - server.xml
    - <tomcat home>\conf\web.xml
    - web.xml for the tomcat context)
    - wrapper.properties (if you are using tomcat as an NT service)
    - tomcat-apache.conf (or equivalent)
    - <oracle home>/apache/apache/conf/httd.conf
    - A listing of relevant environment variables (by doing a "set>env.lis" or similar)
    - and any other files you might think is relevant
    Thanks a million in advance.
    null

    iFS 1.1.9 / Oracle 8.1.7 / Tomcat 4.0.1 / Windows 2000
    After several hours of fiddling around with the configuration
    files, I finally got the iFS up and running on my test machine.
    Briefly here's what I did:
    1) create application directories
    <tomcat_home>/ifs/files/WEB-INF/classes
    <tomcat_home>/ifs/files/WEB-INF/lib
    2) Add the following to <tomcat_home>/conf/server.xml:
    <Context path="/ifs/files" docBase="ifs/files"
    debug="0" reloadable="true">
    <!-- got this from jserv.properties -->
    <Environment name="ORACLE_HOME" type="java.lang.String"
    value="oracle_home"/>
    <Environment name="ORACLE_SID" type="java.lang.String"
    value="sid"/>
    <Environment name="LD_LIBRARY_PATH" type="java.lang.String"
    value="oracle_home/lib:oracle_home/ctx/lib"/>
    <Environment name="NLS_LANG" type="java.lang.String"
    value=".UTF8"/>
    </Context>
    Please replace oracle_home with your installation directory and
    fill in your SID as well.
    3) create <tomcat_home>/<tomcat_home>/ifs/files/WEB-INF/web.xml
    with the following definitions:
    <servlet>
    <servlet-name>oracle-jsp</servlet-name>
    <servlet-class>oracle.jsp.JspServlet</servlet-class>
    <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-name>oracle-ifs-servlet</servlet-name>
    <servlet-
    class>oracle.ifs.protocols.dav.impl.IfsDavServlet</servlet-class>
    <init-param>
    <param-name>classpath</param-name>
    <!-- this classpath is crucial for JSP compilation.
    | The value has to be in one single line without
    | linebreaks and spaces !!!
    -->
    <param-value>
    tomcat_home/webapps/ifs/files/WEB-INF/lib/ojsp.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/webui.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/adk.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/http.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/repos.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/email.jar;
    tomcat_home/webapps/ifs/files/WEB-
    INF/lib/release.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/lib/utils.jar;
    tomcat_home/webapps/ifs/files/WEB-
    INF/lib/settings.jar;
    tomcat_home/webapps/ifs/files/WEB-INF/classes;
    tomcat_home/lib/xmlparserv2.jar;
    tomcat_home/lib/classes12.jar;
    tomcat_home/common/lib/servlet.jar;
    </param-value>
    </init-param>
    <init-param>
    <param-name>ifs.dav.servicepassword</param-name>
    <param-value>manager</param-value>
    </init-param>
    <init-param>
    <param-name>encode_to_java</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>page_provider</param-name>
    <param-
    value>oracle.ifs.protocols.dav.impl.jsp.IfsJspResourceProvider</p
    aram-value>
    </init-param>
    <init-param>
    <param-name>page_repository_root</param-name>
    <param-value>ifs_home/ifsjsps</param-value>
    </init-param>
    <init-param>
    <param-name>unsafe_reload</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>developer_mode</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-ifs-servlet</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
    <servlet-name>oracle-jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    tomcat_home and ifs_home must be replaced with your installation
    directories.
    4) Copy the iFS and Oracle JARs to the locations specified in
    web.xml
    You may choose either the applications lib directory or the more
    general tomcat_home/lib for that purpose.
    One hint on libraries: Tomcat will ignore ZIP files, you have to
    use JAR. I renamed Oracle's classes12.zip to classes12.jar for
    that reason.
    5) Create settings.jar
    This was the most tricky part. I packed everything under
    ifs_home/settings into the file settings.zip, renamed this to
    settings.jar and moved it to the WEB-INF/lib directory. Seems a
    bit of a kludge to me, anyone with a better solution is welcome.
    6) Start tomcat
    7) try http://yourtomcathost:8080/ifs/files/index.html
    You should see the ifs login screen then.
    One word about the application environment. In this
    configuration every user class has to go into
    <tomcat_home>/ifs/files/WEB-INF/classes, the
    ifs_home/user_classes is of no use here. And don't try to set
    the classpath within catalina.bat, tomcat will completely ignore
    this setting.
    Finally, I know that this environment is not supported but as
    long as the iFS servlet meets the standards, every standard
    compliant servlet engine should do the job.
    Good luck

Maybe you are looking for