Oracle DST

In my Java Store Procedure, I have a variable, static private TimeZone DTZ=TimeZone.getDefault();
I use DTZ to compare with other time zones.
If I return DTZ through the Java Store Procedure, when I call the Java Store Procedure from a DB function, it shows
sun.util.calendar.ZoneInfo [
id="GMT-04:00",offset=-14400000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null
However, if I run the same Java program on my Linux box, I got
+sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,+
+lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,+
startYear=0,startMode=3,startMonth=3,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=2,
endMonth=9,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
Notice that the offset and dstSavings are different.
I have Oracle 10 which has Java version 1.4.2. My Linux box also has Java 1.4.2. Both JREs should be the same.
Is DTZ in Java getting from the Oracle?
I just notice that, in Java, offset and dstSavings is for Daylight Saving Time. Those 2 DTZ variables have different value. I believe the Oracle one does NOT apply the DST...
Now the question is how to check if our Oracle set the DST and if we haven't, how to set them?
Any help would be greatly appreciated.
Thank you.
Hong
Edited by: user10311363 on Sep 22, 2008 9:48 AM
Edited by: user10311363 on Sep 22, 2008 9:48 AM
Edited by: user10311363 on Sep 22, 2008 9:49 AM
Edited by: user10311363 on Sep 22, 2008 11:32 AM
Edited by: user10311363 on Sep 22, 2008 11:55 AM
Edited by: user10311363 on Sep 22, 2008 12:00 PM
Edited by: user10311363 on Sep 22, 2008 12:01 PM

Hong,
I'm not sure about this problem. But, i want to share one concept which might be helpful for you.
This is an alternative approach to solve your problem.
Why don't you create a table containing all the city code, offset and Start_DST_Time and End_DST_Time? And, you have to enter once with appropriate data and based on that you can get your offset value in a year. :)
You can call this as a patch work. ;)
Now, you have to wait for a long to get your relevant solution by our other members.
Regards.
Satyaki De.

Similar Messages

  • Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0

    Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0 is one hour behiend on AIX 5.3.
    I have installed the new timezone version 4 already by oracle DST path database is good OEM main page is showing one hour behiend.
    I have done every possible effort last thing may be i have to update java home i have 1.4 IBM java on the server.
    Please help me in this. Thanks.

    See the Metalink Note *Impact Document for Daylight Saving Time Shift for Enterprise Manager Grid Control [ID 417939.1]* Appendix B - FAQ - point 18
    What is the impact of not patching the JDK on the OMS for 10g Grid Control?
    If you do not patch the JDK on the OMS page refreshed times and possibly other times displayed in the console will be incorrect (they will be off by 1 hour) during an affected period.
    Oracle strongly recommends that you do patch the OMS JDK but we are not aware of any data corruption in the repository nor of any impact on critical EM functionalities (such as severities, notifications and jobs) when the JDK is not patched.

  • RE: Statistics in the ORacle 10.2.0.4

    Hello,
    As we know we can gather the statistics of a table/schema throw the "DBMS_STATS" package, how to monitor(how much% has completed,timeelapsed,how much time remains) these kind of jobs.
    I know about the below way, can we do it in beter way,
    SQL> select sid,serial#,totalwork,sofar,units,start_time,time_remaining from v$SESSION_LONGOPS where opname='Gather Schema Statistics';
    Thanks
    Naresh,

    http://lmgtfy.com/?q=apply+oracle+dst+patch
    and I get
    http://www.oracle.com/technology/pub/notes/daylight-saving-time-update-guide.html whch might help

  • Actions for the DSTv4 update in the Release 10.2.0.4 patchset

    Hello.
    I'm looking at the our database update process, but unfortunately, we have some temporary problems with MetaLink subscription.
    Could someone share this document?

    http://lmgtfy.com/?q=apply+oracle+dst+patch
    and I get
    http://www.oracle.com/technology/pub/notes/daylight-saving-time-update-guide.html whch might help

  • Consideration of dbtimezone value for date conversion? right or wrong

    Hi,
    I am working on Day Light Saving issue in my application that uses the US based oracle 10g db and now having dbtimezone value as PDT, as part of DST changes we have written below function.
    Pacific Standard Time (PST) = GMT-8
    Pacific Daylight Time (PDT) = GMT-7
    CREATE OR REPLACE FUNCTION GET_GMT_DATE (v_date DATE)
    RETURN DATE AS
    ndate DATE := v_date;
    TIMEZONE VARCHAR(7) := NULL;
    BEGIN
    select TRIM(dbtimezone) INTO TIMEZONE from dual;
    IF TIMEZONE = '-07:00' THEN
    ndate := NEW_TIME(ndate, 'PDT', 'GMT');
    ELSE
    ndate := NEW_TIME(ndate, 'PST', 'GMT');
    END IF;
    RETURN ndate;
    END get_GMT_date;
    The funda behind the logic is Application uses the sysdate to enter the date record in XYZ oracle 10g db As per the requirement we have to convert the same date to GMT and show the same in our application.
    Now to convert the date into GMT we have used the above function which is based on dbtimezone value of XYZ oracle 10g database. It also has a oracle DST patch applied.
    Our assumption is to check the current time zone, if this is -7 than use the PDT in new_time function to GMT otherwise use pst for conversion.
    We have tested the same in dev environment and it’s working fine for today but after November(DST over) it will work or not that’s a issue. Request any body to please confirm the logic of function.
    Thanks in advance.
    Edited by: 802313 on Oct 15, 2010 7:05 AM

    Also Please let me know that Daylight saving Patch from oracle changes the dbtimezone value of oracle 10g db or not after DST and Before DST.

  • Oracle SQL HELP with convert GMT to EST and DST and Date offset

    Hi, I have a query that does not seem to work trying to convert a date field that is in GMT to est and using extract(timezone_hour FROM TO_TIMESTAMP_TZ as an offsetr
    HEre is my sql
    dtl.start_dt_gmt + (extract(timezone_hour FROM TO_TIMESTAMP_TZ( dtl.start_dt_gmt,'DD-MON-YYYY HH24:MI:SS TZH:TZM'))/24 ) START_DT_Local
    If the date (dtl.start_dt_gmt) is may 1 and gmt starts at 04:00 AM , the extract offset produces -4
    However, if the date (dtl.start_dt_gmt) is Feb 1 which begins at 05:00 AM GMT, the date offset still gives 04. What am i doing wrong? Any help would be appreciated. Thanks.
    Saul

    If your data is not associated with timezone then you'll have to use something like
    case when dt between A and B then dt-1/24 else dt end; <-- This will give you 1 hour back of EDT. So, as far as concern at database level, it is nothing to do at db level, because db is used by application, so you need to code in the app.
    Oracle never actually changes a TIMEZONE column value when you set your system to be on daylight savings time. There are several built-in DST DATE conversion functions for changing to daylight savings time:
    current_date
    current_timestamp
    localtimestamp
    dbtimezone
    sessiontimezone
    extract
    from_tz
    to_timestamp
    to_timestamp_tz
    to_yminterval tz_offset
    http://dba-oracle.com/t_oracle_daylight_saving_time_dst_date_conversion.htm
    Regards
    Girish Sharma

  • Oracle 9i patch for new DST changes

    For oracle 9i is there any patch available to take care DST 2007 changes?
    How oracle get the current date?
    Is oracle depending on Operating System?

    Patch is not yet released. You can check the bugs listed in this note in Metalink : Note:359145.1

  • Oracle WebLogic Server (WLS), Time Zones, and DayLight Saving Time (DST) Changes

    Hello,
    We are approaching this time of the year again...
    I would like to redirect you to the Support Note 1370083.1 "Oracle WebLogic Server (WLS), Time Zones, and DayLight Saving Time (DST) Changes"
    This note lists what is to be expected from WebLogic Server regarding this time change period, in terms of behavior, both for the engine and the applications deployed onto WLS.
    Regards,
    Patrick.

    Probably this:
    http://www.jdocs.com/castor/0.9.5.3/api/org/exolab/castor/xml/handlers/DateFieldHandler.html

  • DST Patch 2007 for Oracle Enterprise Manager 10g

    Hi,
    I went through several metalink documents for DST 2007 patch application on my Oracle Enterprise Manager Server and got confused in lot of articles. It is a stand-alone server
    Can you please help me in formulating a plan?
    I have the following versions installed:
    1) Repository db -Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit
    2) Oracle Enterprise Manager 10g Grid Control Release 10.2.0.1.0
    3) OS - AIX 5.3
    Thanks

    I just had a similar problem the other day. My repositoy is on 10.1.0.4, which is behind on released. We are very cautious of upgrade OEM.
    After doing research on OEM DST issue and reviewing our jobs, we found out that OEM was reporting we were on EST instead of EDT. The fix we applied was to download the "tzupdater" from sun.com. Then we ran "tzupdater" on the OMS home directories ($OMS_HOME/jdk/lib/tzupdater -u). This will update your java DST file for OMS.
    Then you should be able to do the OPatch to bring OEM to DST 4.
    Bobby

  • Oracle New Installation after DST

    Hello,
    I want to install Oracle database 10g R2 on Windows (2K or 2K3). I have the installation CD which I got long before March 10nth 2007(DST 2007). If I install database now what are the patches I need to apply to make it compliant with DST 2007 issues.
    Can I download the latest release of Oracle so that no need to worry about any patches.
    Please advice.
    Thank you,

    I would say the "offset weeks" are now over, but I still seem to have problems getting a fresh installation of Oracel 10g (10.2.0.3) to run silently. I have been going through so many documents on the DST changes that I am afraid I may have mixed things up. This is what I do and I would appreciate any help on where I go wrong:
    1. Install Windows Server 2003 SP2 (32-bit) in time zone GMT-8.
    2. Install Oracle 10.2.0.1 using the -silent option and a response file (no starter database).
    3. Install Oracle 10.2.0.3 Patch set using the -silent option and a response file (catupgrd.sql not run since no databases exists).
    4. Copy DST V4 timezone files from Oracle 10.2.0.3 Patch 1: 5731535 to Oracle Home.
    5. Apply JVM DST update (5865568 - UPDATE TO JVM TIME ZONE CLASSES NEEDED).
    6. Use NetCA and DBCA to silently create listener and database.
    I am now waiting for the EMAgent to start which it fails to do. The emdb.nohup has the following information:
    ----- Tue May 1 10:16:25 2007::D:\OHOME1\<HOST>.<DOMAIN>_<INSTANCE>/sysman/config/emd.properties copied to D:\OHOME1\<HOST>.<DOMAIN>_<INSTANCE>/sysman/config/emd.properties.2007-05-01-10-16-25 while updating the property 'agentTZRegion' -----
    ----- Tue May 1 10:16:25 2007::An agentTZregion of '-08:00' is installed in D:\OHOME1\<HOST>.<DOMAIN>_<INSTANCE>/sysman/config/emd.properties. -----
    ----- Tue May 1 10:16:26 2007::The agentTZRegion value in D:\OHOME1\<HOST>.<DOMAIN>_<INSTANCE>/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
    If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent' and also execute the script 'mgmt_target.set_agent_tzrgn' to get the value propagated to repository -----
    How do I make this step succeed in an automated way? Am I missing any patches or did I just misread how these patches should be applied?
    Note: The above steps work perfectly if the machine is in a GMT+1 time zone.
    Thanks,
    RH

  • DST for ORACLE

    Hi Gurus,
            Is there any concept on license in Oracle 10 with SAP. I have licence and installation number for SAP systems. Is there any seperate license number for oracle.
           Also how do I go about in managing DST timing for database which starts from 4th Nov 07.
    Thanks
    Parvez Khan

    You chek with following URL
    [url=http://www-1.ibm.com/support/docview.wss?rs 0&context=SSEQTP&q1=dst&uid=swg21219396&loc=en_US&cs=utf-8&lang=en#nonus[/url]
    SIVA

  • Help on Oracle streams 11g configuration

    Hi Streams experts
    Can you please validate the following creation process steps ?
    What is need to have streams doing is a one way replication of the AR
    schema from a database to another database. Both DML and DDL shall do
    the replication of the data.
    Help on Oracle streams 11g configuration. I would also need your help
    on the maintenance steps, controls and procedures
    2 databases
    1 src as source database
    1 dst as destination database
    replication type 1 way of the entire schema FaeterBR
    Step 1. Set all databases in archivelog mode.
    Step 2. Change initialization parameters for Streams. The Streams pool
    size and NLS_DATE_FORMAT require a restart of the instance.
    SQL> alter system set global_names=true scope=both;
    SQL> alter system set undo_retention=3600 scope=both;
    SQL> alter system set job_queue_processes=4 scope=both;
    SQL> alter system set streams_pool_size= 20m scope=spfile;
    SQL> alter system set NLS_DATE_FORMAT=
    'YYYY-MM-DD HH24:MI:SS' scope=spfile;
    SQL> shutdown immediate;
    SQL> startup
    Step 3. Create Streams administrators on the src and dst databases,
    and grant required roles and privileges. Create default tablespaces so
    that they are not using SYSTEM.
    ---at the src
    SQL> create tablespace streamsdm datafile
    '/u01/product/oracle/oradata/orcl/strepadm01.dbf' size 100m;
    ---at the replica:
    SQL> create tablespace streamsdm datafile
    ---at both sites:
    '/u02/oracle/oradata/str10/strepadm01.dbf' size 100m;
    SQL> create user streams_adm
    identified by streams_adm
    default tablespace strepadm01
    temporary tablespace temp;
    SQL> grant connect, resource, dba, aq_administrator_role to
    streams_adm;
    SQL> BEGIN
    DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE (
    grantee => 'streams_adm',
    grant_privileges => true);
    END;
    Step 4. Configure the tnsnames.ora at each site so that a connection
    can be made to the other database.
    Step 5. With the tnsnames.ora squared away, create a database link for
    the streams_adm user at both SRC and DST. With the init parameter
    global_name set to True, the db_link name must be the same as the
    global_name of the database you are connecting to. Use a SELECT from
    the table global_name at each site to determine the global name.
    SQL> select * from global_name;
    SQL> connect streams_adm/streams_adm@SRC
    SQL> create database link DST
    connect to streams_adm identified by streams_adm
    using 'DST';
    SQL> select sysdate from dual@DST;
    SLQ> connect streams_adm/streams_adm@DST
    SQL> create database link SRC
    connect to stream_admin identified by streams_adm
    using 'SRC';
    SQL> select sysdate from dual@SRC;
    Step 6. Control what schema shall be replicated
    FaeterBR is the schema to be replicated
    Step 7. Add supplemental logging to the FaeterBR schema on all the
    tables?
    SQL> Alter table FaeterBR.tb1 add supplemental log data
    (ALL) columns;
    SQL> alter table FaeterBR.tb2 add supplemental log data
    (ALL) columns;
    etc...
    Step 8. Create Streams queues at the primary and replica database.
    ---at SRC (primary):
    SQL> connect stream_admin/stream_admin@ORCL
    SQL> BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'streams_adm.FaeterBR_src_queue_table',
    queue_name => 'streams_adm.FaeterBR_src__queue');
    END;
    ---At DST (replica):
    SQL> connect stream_admin/stream_admin@STR10
    SQL> BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'stream_admin.FaeterBR_dst_queue_table',
    queue_name => 'stream_admin.FaeterBR_dst_queue');
    END;
    Step 9. Create the capture process on the source database (SRC).
    SQL> BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name =>'FaeterBR',
    streams_type =>'capture',
    streams_name =>'FaeterBR_src_capture',
    queue_name =>'FaeterBR_src_queue',
    include_dml =>true,
    include_ddl =>true,
    include_tagged_lcr =>false,
    source_database => NULL,
    inclusion_rule => true);
    END;
    Step 10. Instantiate the FaeterBR schema at DST. by doing export
    import : Can I use now datapump to do that ?
    ---AT SRC:
    exp system/superman file=FaeterBR.dmp log=FaeterBR.log
    object_consistent=y owner=FaeterBR
    ---AT DST:
    ---Create FaeterBR tablespaces and user:
    create tablespace FaeterBR_datafile
    '/u02/oracle/oradata/str10/FaeterBR_01.dbf' size 100G;
    create tablespace ws_app_idx datafile
    '/u02/oracle/oradata/str10/FaeterBR_01.dbf' size 100G;
    create user FaeterBR identified by FaeterBR_
    default tablespace FaeterBR_
    temporary tablespace temp;
    grant connect, resource to FaeterBR;
    imp system/123db file=FaeterBR_.dmp log=FaeterBR.log fromuser=FaeterBR
    touser=FaeterBR streams_instantiation=y
    Step 11. Create a propagation job at the source database (SRC).
    SQL> BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_PROPAGATION_RULES(
    schema_name =>'FaeterBR',
    streams_name =>'FaeterBR_src_propagation',
    source_queue_name =>'stream_admin.FaeterBR_src_queue',
    destination_queue_name=>'stream_admin.FaeterBR_dst_queue@dst',
    include_dml =>true,
    include_ddl =>true,
    include_tagged_lcr =>false,
    source_database =>'SRC',
    inclusion_rule =>true);
    END;
    Step 12. Create an apply process at the destination database (DST).
    SQL> BEGIN
    DBMS_STREAMS_ADM.ADD_SCHEMA_RULES(
    schema_name =>'FaeterBR',
    streams_type =>'apply',
    streams_name =>'FaeterBR_Dst_apply',
    queue_name =>'FaeterBR_dst_queue',
    include_dml =>true,
    include_ddl =>true,
    include_tagged_lcr =>false,
    source_database =>'SRC',
    inclusion_rule =>true);
    END;
    Step 13. Create substitution key columns for äll the tables that
    haven't a primary key of the FaeterBR schema on DST
    The column combination must provide a unique value for Streams.
    SQL> BEGIN
    DBMS_APPLY_ADM.SET_KEY_COLUMNS(
    object_name =>'FaeterBR.tb2',
    column_list =>'id1,names,toys,vendor');
    END;
    Step 14. Configure conflict resolution at the replication db (DST).
    Any easier method applicable the schema?
    DECLARE
    cols DBMS_UTILITY.NAME_ARRAY;
    BEGIN
    cols(1) := 'id';
    cols(2) := 'names';
    cols(3) := 'toys';
    cols(4) := 'vendor';
    DBMS_APPLY_ADM.SET_UPDATE_CONFLICT_HANDLER(
    object_name =>'FaeterBR.tb2',
    method_name =>'OVERWRITE',
    resolution_column=>'FaeterBR',
    column_list =>cols);
    END;
    Step 15. Enable the capture process on the source database (SRC).
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE(
    capture_name => 'FaeterBR_src_capture');
    END;
    Step 16. Enable the apply process on the replication database (DST).
    BEGIN
    DBMS_APPLY_ADM.START_APPLY(
    apply_name => 'FaeterBR_DST_apply');
    END;
    Step 17. Test streams propagation of rows from source (src) to
    replication (DST).
    AT ORCL:
    insert into FaeterBR.tb2 values (
    31000, 'BAMSE', 'DR', 'DR Lejetoej');
    AT STR10:
    connect FaeterBR/FaeterBR
    select * from FaeterBR.tb2 where vendor= 'DR Lejetoej';
    Any other test that can be made?

    Check the metalink doc 301431.1 and validate
    How To Setup One-Way SCHEMA Level Streams Replication [ID 301431.1]
    Oracle Server Enterprise Edition - Version: 10.1.0.2 to 11.1.0.6
    Cheers.

  • PK with TIMESTAMP causes insert unique constraint error at DST switch

    Hi,
    I have a test that inserts rows in a table that has a TIMESTAMP in its PK.
    When inserting rows that cross over the November DST change, it tries to insert these dates:
    --- Sun Nov 02 02:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EDT 2008
    This is the output of 3 different UTC dates. We can see that there are 2 x 1am, but they differ in their DST. They are really 3 different UTC dates.
    But I get this error:
    --- Expected error: ORA-00001: unique constraint (DDLTEST1.SYS_C00142622) violated
    But I can get around that error and can insert these same dates if I set my JVM to UTC. The inserts work so I suspect this to be a JDBC issue.
    I am using the Oracle Thin driver in a spring app:
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
    <property name="url" value="jdbc:oracle:thin:@localhost:db" />
    I can post the sample code but wonder if there is an obvious answer to this.
    Note that MySql had the same problem. I fixed it by specifying the UTC timezone in the connection string, like this:
    jdbc:mysql://[host]/[db]?useLegacyDatetimeCode=false&useTimezone=true&sessionVariables=time_zone='UTC'
    Any idea how to get around that problem without setting JVM to UTC ?
    Claude
    Edited by: user2678899 on 10 juin 2009 10:09
    I removed #2 work around which was wrong
    Edited by: user2678899 on 10 juin 2009 10:23

    Timur Akhmadeev wrote:
    Hi,
    I suspect this to be a JDBC issue.Nope, this is your schema design gap. It breaks the main principle of PK: to uniquely identify a row in a table always. Your PK doesn't satisfy it, since it depends on client's settings.Why is setting the JVM to UTC working ? This is the part that confuses me.
    I create the 3 dates in Eastern time, then change the JVM default to UTC: the 3 inserts work.
    I create the 3 dates in Eastern time, then leave the JVM to Eastern time , the 3rd insert gets the unique constraint error.
    To me, the PK principle is not broken: these are 3 different UTC dates.

  • Date Conversion from GMT to Local and Local To GMT considering DST.

    Hi,
    I have a application which displays the time in GMT across all the screens,and saves in Local/Default TimeZone as application would be deployed in europe and India.I have written a utility which does the conversion.
    I just want to know that how to handle the Daylight Saving Time[DST] as we are taking the data from database and converting it to LocalTime Zone.This works fine but what would happen if the sever time is changes due to DST.There would be problem between the object saved before the DST and after DST because we are simply converting stored time to GMT to show on the screen.
    Please share if you some solution/suggestions.
    Thanks.
    Akash.

    YoungWinston wrote:
    jschell wrote:
    That statement is phrased oddly.
    A java.util.Date uses a UTC offset with millisecond resolution.
    A jdbc driver converts that value into a "correct" value for the target database.And from.
    The form that is stored in the database is entirely database dependent. The actual form stored in the database can take many forms.True, but it is highly likely to be an offset from some "epoch" (Progress, for example, uses 00:00:00 1/1/-3714 UTC as I recall, and has 1-second granularity).Yes but as I said the phrasing was odd. A timestamp, by definition, must be an offset of something. Doesn't matter how it is represented. After all the year 2009 is an offset in the Gregorian calander.
    However in terms of actual storage the way it is stored is unlikely to be similar to what Java does. As examples neither Oracle nor MS SQL Server uses a single numeric offset.
    It might not even have a concept of timezone.Again true, although I've yet to come across one; and since OP is only concerned about the timezone in Java I'm not quite sure how relevant that is.
    Relevant in terms of the description in terms of what java does, what the database does and how it gets from java to the database.
    I would also expect any JDBC driver that cannot translate to or from a Java date correctly to document the fact in 60-point bold type, since it's a violation of the implied contract of ResultSet.getDate().Except that depends on your definition of "correct".
    Examples of that
    - Oracle doesn't have millisecond resolution at all in its common format.
    - MS SQL Server doesn't have the same resolution as java, instead there is an odd resolution (one three-hundredth of a second).
    - MS SQL Server doesn't have timezones, so if you don't take care and your data crosses timezones the timestamp will be different.
    The drivers will not warn you of things like that. At least not that I have seen.
    Format for Oracle.
    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:77562635789106]
    Format for MS SQL Server
    [http://msdn.microsoft.com/en-us/library/aa258277(SQL.80).aspx]

  • Exception:org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

    Hi All,
    i am using jdev version 11.1.1.5.0
    and deployed my Adf application on Apache Tomcat 6.0.
    in my use case i have created simple adf application using adf business component. create a vo based on eo and drag-drop on jspx page.
    i have created JNDI data source in Apache server using edit context.xml file and add following line-
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    3.using same data source in my adf applicatioin as -
      right click on AM --> Configuration-->edit-->select connection type jdbc datasource  -->java:/comp/env/jdbc/TestDB  
    4. after that i have deployed my application on apace server but when i have running application i have got following error-
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    i have goggling and find  following solution-
    oracle.jdbc.driver.OracleConnection delConn = (oracle.jdbc.driver.OracleConnection) ((org.apache.tomcat.dbcp.dbcp.DelegatingConnection)c_stmt.getConnection()).getDelegate();
    but my problem is that i'm using Adf Business Component so where i set following type casting.
    Is there any method on ADF BC which handle JNDI Data source setting or any other way to do this.
    thanks in Advance
    Manish

    Hi dvohra21,
    thanks for reply.
    i don't understand where i go to set accessToUnderlyingConnectionAllowed =true
    i have already set this property on context.xml file
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"  accessToUnderlyingConnectionAllowed="true" />
    any other place where i set this propery
    please elaborate this steps how to Configuree DBCP

Maybe you are looking for

  • External drives no longer show up - light is on but nobody home!

    Hey all, Still using an old iMac G4 and it works great... 10.2.8 (and ibook 10.3.9) plugging in some Maxtor External drives and they don't show up (mount) I hear them. The light is on. Checking in disk utility shows that computer senses them and says

  • Outbound Delivery without Manufacturing date

    Hi Guys, I have activated SLED in Article master.(We are using SAP IS Retail, ECC 6.00) At the time of GRN, users have entered manufacturing date to check remaining shelf life for an article. I have made following customization (using transaction cod

  • How to deploy worker role to Azure cloud via portal

    Hi I have two worker roles in my VS Project and I need them to be running on Azure cloud. I have created the storage accounts, the worker roles are using Queues, that I created using c# code. I looked up some articles and they say I have to create a

  • Downloading updates to my iweb website

    i have been trying for TWO months to download additional blog entries and photos to my website. It will be downloading for 5, or 10 minutes and then I get a message that it quit, to check with my server. Can anyone help? This is so frustrating as I h

  • Why No File Size Option?

    I'm probably missing something here but why is Lightroom unable to show me the size of my files as every other program, including Bridge, does?