Date Format issue while Connecting to Oracle8i and Oracle10g

Hi All,
While playing around with JDBC drivers, I came across this weird issue. I have a Local machine with Japanese Locale and I have 2 Database Servers that too with Japanese Locales and Oracle 8i and Oracle 10g each. Now, I connect to these database using JDBC drivers for 8i and perform "select sysdate from dual". Then, m getting dates with 2 different format. While 8i being returning Date with 'DD-MON-RRRR' format, 10g returns date with 'DD-MM_RR' format.
Initially I thought it might be because of some VM Locale thing but when I connected to 10g DB from 8i Oracle client, this behaviour did not changed. Which mean in this case also the date format returned ny the query was different.
Guys F1! F1! (Help! Help!) Appreciate your help to understand this process. Links and suggestions welcome... :)

I guess u did not read the whole content. I mentioned this but the difference in behaviour with respect to JDBC drivers made me post this in Java forum.
As I mentioned, it has something to do with the jdbc driver or oracle server itself. Agreed, but what that "something little to do" is the maiin question.
I mentioned that I want to understand this process about how JDBC driver works with Client VM specific Locale settings while interacting with Oracle Database.
Don't you think it could be interesting to know, what it is which brings this difference in results. Its all about clarifying the small bits & pieces which stays unanswered if one overlooks. Its own perception, I felt like asking question, no offense right!

Similar Messages

  • Date Format issue while creating date parameter

    While creating date parameter in the crystal reports 2008 with SQL Server 2008 database connection, I want to change the date format according to the specified format in the database.
    For ex: YYYY/MM/DD and MM/DD/YYYY
    This paramter will be editable in the viewer i.e. I'm going to provide option to the user to change start date and end date for data selection.
    Please help!
    Thanks in Advance!

    i found this
    i am trying to get the Enter Values screen for parameters to allow entry in a specific format 'DD-MON-RRRR' connecting to an Oracle database. I found that a hack is possible yet I would prefer a clean solution that wont need files changing on client machines. The hack involved changing some javascript files within the Crystal Reports directory. The problem is I now have the date from the calendar in the correct format but it displays the following prompt: Please enter DateTime in format "dd/mm/yyyy hh:mm:ss".
    Is there a way to supress this or better yet a way to specify date format without changing the javascript files of Crystal Reports.
    I am using Crystal Reports 2008 SP1.
    answer---
    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:

  • Cellular data being used while connected to WIFI and not in standby

    I am connected to my home WIFI on my iphone 4, but while my router is not connected to internet (so I should not have internet on my iphone), I noticed I am still receiving push notifications,
    I finally read here that while on standby, wifi is turned off and 3G is used, ok.
    now here is the problem, looking at the General>Usage>Cellular Usage, even if I am not on standby and I am using the phone, I have data usage (sent and recieved), I reopen the Celluar Usage and see the numbers are constantly increasing, and more strange is some (not all) of the push notification do come through (eg in my case for an app called FavFriends),
    another friend of mine has a simillar problem on iphone 4s.
    what is this celluar usage in the background?????

    from what I knew so far, iphone should not use the 3G if wifi is connected, eventhough there is no internet on that wifi,
    so in my case, if iphone is actually detecting no internet and switching to 3G, I should have internet on all apps (safari, etc..) which i dont, just data usage increasing with no internet in any apps (that is a 3G usage which is limited more than even when on standby),
    and if it is not supposed to switch, it brings another question, that if 3G is used when wifi connected (with no internet), are there any background 3G usage (push notifications, etc), while wifi has internet and it is supposed to utilize the wifi internet?
    so basically, I was under the assumption that 3G would not be used unless wifi is disconnected, regardless of internet access, and I dont find anything that says otherwise.

  • 10.9.2 Update Issue (VPN) - Eclipse Perl debugger issues while connected to VPN

    This post was initially added to this discussion: 10.9.2 Mavericks update issues
    I have yet another issue related to 10.9.2 update - Eclipse Perl debugger issues while connected to VPN...
    One of the big changes introduced by 10.9.2 update - are VPN changes (security fixes). Unfortunately, whatever these changes are - they "broke" Eclipse (OpenSource IDE) debugger. I am not sure if *all* programming languages (Eclipse plugins) are affected by this, but I know for sure that 'Epic' (Perl plugin) debugger *stopped working* while system is connected through VPN.
    Here is the error that gets “popped-up” in the Eclipse:
    Timed out while waiting for Perl debugger connection
    … and here is exact exception stack that gets printed:
    Unable to connect to remote host: 130.10.210.74:5000
    Compilation failed in require.
    at /Users/valeriy/workspace/ROBO-PROD-RA-685/src/lib/test/Val_test.pm line 0.
              main::BEGIN() called at /Users/valeriy/workspace/.metadata/.plugins/org.epic.debug/perl5db.pl line 0
              eval {...} called at /Users/valeriy/workspace/.metadata/.plugins/org.epic.debug/perl5db.pl line 0
    BEGIN failed--compilation aborted.
    at /Users/valeriy/workspace/ROBO-PROD-RA-685/src/lib/test/Val_test.pm line 0.
    Can't use an undefined value as a symbol reference at /Users/valeriy/workspace/.metadata/.plugins/org.epic.debug/perl5db.pl line 7596.
    END failed--call queue aborted.
    at /Users/valeriy/workspace/ROBO-PROD-RA-685/src/lib/test/Val_test.pm line 0.
    (of course IP address changes dynamically for each VPN connection session)…
    I was able to prove that this issue is related to 10.9.2 update:
    Issue *does not* exist under 10.9.1 (I had to revert back to 10.9.1 to get it working again)
    No updates were performed around the same time 10.9.2 update occurred (I verified that using Software Update log)
    No configuration changes were introduced around the same time
    Reverting back to 10.9.1 using Time Machine (thanks god I had backup !!!) fixed the issue
    Steps to reproduce this issue:
    In Eclipse, try to use 'Epic' (Perl plugin) to debug any perl script while *not* connected through VPNEpic debugger works
    Connect to VPN
    Start Epic debugger to debug same script
    Debugger *does not* start, and "Timed out while waiting for Perl debugger connection" error pop-up comes up after some time. At the same time, exception stack (listed above) is printed in Eclipse's console
    I am programmer/software developer, I work remotely (telecommute) and thus have to rely on use of VPN to connect to company's intranet. Perl - is primary language used by my team, and we use Eclipse IDE with Epic plugin - heavily. Use of Epic's debugger - is a *very large* aspect of my work, I cannot work without it. So in essense, 10.9.2 has *entirely* disrupted my ability to work! It took me almost a week to get back to normal work environment, and I cannot afford to let it happen again... I need Apple's development team resolve this VPN related issue, as soon as possible! Because of this issue, I am *stuck* with 10.9.1 and can not upgrade my laptop to any other versions. In fact, I had to disable system updates - just so I do not run into this issue again... I contacted Apple's Tech Support on 02/28 with this issue (Ref: 582428110), asking to raise trouble ticket. Since then, I tried to follow-up on that issue, but do not get any information. Please advise on the status:
    is there a trouble ticket to track this issue?
    is there any progress?
    what's the ETA for an update that fixes this problem?
    - Val
    Message was edited by: vpogrebi

    Am I the only one experiencing this issue ???

  • Error 10000 Date format issue

    Hi all,
    Has anyone seen the following error please or has a troubleshooting hint: -
    "[NT AUTHORITY\SYSTEM (15/10/2012 18:35:12) - Service request cancelled due to an error.
    Error Code: 10000
    Error Description: Failed to create lease requisition.
    Fault code: soap:Server
    Fault string: Service Form Field: 'WarningDate2' has Date format issue.
    Fault details: REQ_0024Service Form Field: 'WarningDate2' has Date format issue.
    CIAC = 3.01
    Date and Time format on the CCP, CPO, vmware and SQL servers all Italian (dd/mm/yy)
    This only happens when we add a Lease Time on the request.
    Do they all have to be set to the US format for this to work?
    If this is a regional setting thing, do I have to change the format on all of the servers (CIAC components)?
    Cheers
    md

    This test program might help...
    import java.util.*;
    import java.text.*;
    public class ExpandYear
        public static void main(String[] args) throws ParseException
         SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
         SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
         String test1 = "3/21/00";
         System.out.println("test1: " + test1 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test1)));
         String test2 = "4/9/99";
         System.out.println("test2: " + test2 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test2)));

  • Issue while connecting from Biztalk adapter to SAP ECC 6.0

    Hi Friends
    Issue while connecting from Visulal Studio 2005 to SAP ECC 6.0 throgh Biztalk adapter2.0, even if we pass the correct login details, system is throwing an error like incorrect user/password.
    Can you please tell anybody the solution for this.
    Regards
    Praveen

    HI,
    is there a special "formation" to put in the user / pass ?
    maybe a missing domain ? or missing values like "/" or "\" ?
    Do you getting this error in the Biztalk Monitor (Visual 2005) ?

  • Date format changed while printing invoice

    Dear All,
    Since yestardayin production server the date format of invoice is like 12.02.2010,but form morning it is comming like 2010.02.12.
    I have checked in quality and it is still comming like 12.02.2010.
    Could you please tell me why is it comming?
    Regards,
    Amar

    Dear Amar,
    1 Check the user profile for default type od date value in production system and compare it with quality. If this is not as per the quality system then change it.
    2 if both system quality and production both have same date format then  you have to debug and find out the issue.
    Hope you need not to go for second point.

  • MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    Sounds like you may have been in extended display mode. If so, all you had to do was drag a window to the projector display. Or, if you wanted mirrored mode, in display preferences select check mirror display.

  • Date format issue in Excel

    Hi,
    I have a date in XML file which is in the format of YYYY-MM-DD. When i output to excel, the date needs to come as MM/DD/YYYY. I am able to format the dates as MM/DD/YYYY, but if there is a 0 in the Month or Date, it is coming as M and D instead of MM or DD.
    Eg: 2008-11-01 comes as 11/1/2008 in the excel, want it to come as 11/01/2008
    Any solution for this? I tried using subst-ringing the parts and lpad-ing with 0s, but the zeroes get stripped when you come to excel. I am not able to lpad with space, since the field is inexplicably, automatically changing to number type and gives "Cannot convert to number" error.

    Hi ,
    Its a strange requirement but still lookig for answers..
    1) Tried the User Profile and it the file is being generated in the format the use has.  However
         if we open the excel file ( Right click and say format Cells---->In this case it shows GENERAL).....The user wants the cell
         always in the date format so that can have sort and other macros...
    To Reiterate................
    1) We have to generate the Files in the date format that the user profiel has and also the excel file should show the date cells in date format but not general....

  • Connecting personal oracle8 and dev2000

    How to connect personal oracle8 and dev2000

    ok, for connecting PO8 to D2k you have to do the same setting as for central database connectivity.
    Anyway, here is the solution :
    1. Make an entry in tnsname.ora for your PO8 sid.
    2. Start the listener by giving the command lsnrctl start on command prompt.
    3. Start the database.
    4. Check the connectivity through SQL Plus.
    5. If sql plus is connected, start forms and connect it from there.
    Note : you may need to give po8.world in the connect string, but it is not required most of the time.
    where po8.world is the entry in the tnsname.ora.
    Best of luck

  • Trying to download update to CoPilot Live and CoPilot GPS with maps.  files sizes are large and taking hours to download on wireless connection.  How can I download App updates and new maps while connected to PC and Itunes through hard wire internet link?

    Trying to download update to CoPilot Live and CoPilot GPS with maps.  Files sizes are large and taking hours to download on wireless connection.  How can I download updates and new maps while connected to PC and Itunes through hard wire internet link?

    I'm on my iPad, so I don't know if this is the page with an actual download. I don't see a button, but assume that is because I  am on an iPad. It is in the DL section of Apple downloads.
    http://support.apple.com/kb/DL1708

  • Uk date format issue with ASP and Access Database

    I have an Asp form which updates records in an Access
    database. Problem is
    that the date format in the database record is dd/mm/yyyy
    (UK), when
    the record is displayed on the form it is mm/dd/yyyy(US)
    which after I
    update the record in the database the date has changed to the
    new format.
    I have tried everything I can to change the format but to no
    avail...anyone any ideas how I can resolve this issue?
    Thanks
    Steve

    stevo.s wrote:
    > Hi
    >
    > I have tried changing the format on the date field on
    the server behaviours
    > panelto ddmmyyy. Also have tried to set the form field
    format to ddmmyy. I have
    > also tried to use a function I got from a posting
    somehwere on the net to no
    > avail. <%function ddmmyyyy(varDate)
    > ddmmyyyy = Day(DateValue(varDate)) & "/" &
    Month(DateValue(varDate))
    > & "/" & Year(DateValue(varDate))
    > end function
    >
    > I believe that this is a recognised issue with
    Dreamweaver and Access but
    > can't seem to grasp the work around! Problem being I am
    teaching myself through
    > books and internet articles and can be weeks at a time
    without being able to
    > look at the issue..each time I come back to it it is
    like starting all over
    > again! I was hoping that somewhere out there there is a
    simple solution the
    > issue perhaps a date picker with the built in
    functionality to address the
    > issue...I am keen to understand how to deal with the
    issue rather than just
    > change my database date field to fudge the problem as I
    am in the UK and when I
    > eventually start to use the application I would like
    there to be some
    > consistency with dates and that users are familiar with
    the format.
    >
    > Any help gratefully received!
    Its not Dreamweaver, or Access, its your servers locale, its
    set to US
    format, not the UK.
    On your page at the top use:
    <% Session.LCID = 2057 %>
    This will force the page into using UK formatted dates. Use
    it on any
    page that needs to format the page correctly.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Save and Export Data format issue/question

    Hi all, I'm hoping someone can help me with what is probably a super-simple question. I have a group of people that will use some forms. They will all have Acrobat Pro so they can save and update the data in the forms.
    Here's my issue. I've tried binding both a sample XML as well as an XSD with the same results.
    1.) If I save the interactive PDF containing the data connection, users can type the information in the form, but fields that are "info only" and not bound to a particular node go away. The file does generate the correct XML.
    2.) If I delete the data connection (but keep the bindings), all the data stays in the form, but now my XML tags are intermixed with my fields and subforms and the xml looks pretty useless.
    So, here's my question, given that users will use Acro Pro 7, how can I ensure that all data stays in the form on save and writes out xml ignoring fields that are not bound to any nodes in the xml.
    Thanks for your help!
    l

    Grid Control records the Serve name in the Repository. So, you will have a problem with it.
    Search this forum for related threads. There are loads of information which may include workarounds on Grid control from one server to the other

  • DPS 6.3.1.1 - Issues while connecting through SSL

    Hello !!
    I have a issue where my application client reported that they are unable to connect to the LDAP using SSL. Where as everything works fine in LDAP (non secured)
    This is how our deployment looks.
    Clients <=> Load Balancer <=> DPS (2 instance) <=> DS (2 masters)
    The DPS is configured with DSP (data source pool) (with proportional algorithm of 50:50 to backend data sources). Client Affinity ("read-write-affinity-after-any") is configured for this DSP. The DSP is attached with 2 data sources.
    So when the client connected in a secured port using LDAPS, they are unable to authenticate/search against this environment. No issues were found in DS logs for any of the bind/search requests. But in DPS, we noticed below log which i want to get clarification on.
    Note: I have removed the hostnames/Ip where ever applicable from the logs.
    =====================================================
    [04/May/2011:12:24:39 -0400] - PROFILE - INFO - conn=1255260 assigned to connection handler cn=default connection handler, cn=connection handlers,cn=config
    [04/May/2011:12:24:39 -0400] - CONNECT - INFO - conn=1255260 client=x.x.x.x:52461 server=x.x.x.x:636 protocol=LDAPS
    [04/May/2011:12:24:39 -0400] - OPERATION - INFO - conn=1255260 op=0 BIND dn="uid=app_id,ou=applications,dc=example,dc=com" method="SIMPLE" version=3
    [04/May/2011:12:24:39 -0400] - SERVER_OP - INFO - conn=1255260 op=0 BIND dn="uid=app_id,ou=Applications,dc=example,dc=com" method="SIMPLE" version=3 s_msgid=3 s_conn=ds_Master2:26560
    [04/May/2011:12:24:39 -0400] - SERVER_OP - INFO - conn=1255260 op=0 BIND RESPONSE err=0 msg="" s_conn=ds_Master2:26560
    [04/May/2011:12:24:39 -0400] - PROFILE - INFO - conn=1255260 assigned to connection handler cn=CH_ENV_catch-all_LDAPS,cn=connection handlers,cn=config
    [04/May/2011:12:24:39 -0400] - OPERATION - INFO - conn=1255260 op=0 BIND RESPONSE err=0 msg="" etime=0
    [04/May/2011:12:24:39 -0400] - OPERATION - INFO - conn=1255260 op=1 msgid=2 SEARCH base="ou=people,dc=example,dc=com" scope=2 filter="(uid=abcdef)" attrs="*"
    [04/May/2011:12:24:39 -0400] - SERVER_OP - INFO - conn=1255260 op=1 SEARCH base="ou=people,dc=example,dc=com" scope=2 filter="(uid=abcdef)" attrs="*" s_msgid=498 s_conn=ds_Master1:26072
    [04/May/2011:12:24:39 -0400] - SERVER_OP - INFO - conn=1255260 op=1 SEARCH RESPONSE err=0 msg="" nentries=0 s_conn=ds_Master1:26072
    [04/May/2011:12:24:39 -0400] - OPERATION - INFO - conn=1255260 op=1 SEARCH RESPONSE err=0 msg="" nentries=0 etime=0
    *[04/May/2011:12:24:39 -0400] - DISCONNECT - INFO - conn=1255260 reason="other" msg="Exception caught while polling client connection LDAPS.x.x.x.x.52461 -- javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?"*
    =======================================================
    If noticed in the above logs, the initial Bind request via LDAPS is routed to Master 2. But the susequent search request (for user abcdef) is routed to Master 1.
    And finally the DISCONNECT operation came (last line) without a proper unbind.
    Is this alternate routing a expected behavior when client affinity is turned ON ? Is this exception causing the application's search failures ?
    Please shed some pointers on this..
    Thanks.
    Edited by: Prasee on May 6, 2011 8:07 AM

    Pls see inside:
    Thanks for the reply. Yes the client is a loadbalancer in this case. So does it mean that this behavior (sending request to 2 different DS in a same connection) is expected ? I have few additional queries that arise from your reply :-)
    Loadbalancing algorithm takes precedence "if the request that starts client affinity has not yet occurred"
    Since its the load balancer that connects to DPS for any/every request every time., How do the DPS know whether a request that starts client affinity has occurred / not occurred ?Well, client affinity starts with a certain operation (not by establishing the client<->dps connection) as specified by your client affinity policy. In your case ("client-affinity-policy:read-write-affinity-after-any") it starts for all operations after the first read or write operation. DPS is not a (network) connection based router - so it does not route the client connection to the data source but forwards the client operations (request) on dedicated bind,read,write,.. connections to a data source selected by your load balancing and/or client affinity policy.
    In our case, Its the same connection (conn=1255260) that receives bind and search request from the client. So when a connection is established, the client affinity should have got enabled and sent the bind request to Master 2 initially, so for the next search request, shouldn't it be sent to Master 2 again ?No, see above.
    >
    Sorry for these questions, I am basically trying to understand more on how client affinity works when a load balancer is in between.
    Coming to the exception,
    [04/May/2011:12:24:39 -0400] - DISCONNECT - INFO - conn=1255260 reason="other" msg="Exception caught while polling client connection LDAPS.x.x.x.x.52461 -- javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?"
    Does this abrupt shutdown of connection means the search response would have got dropped before reaching the end client (application) ?Yes, that may be possible ...
    >
    Thanks for your help !!

  • Date format issue in oracle database

    Hi,
    Back end : Oracle 11.2.0.2.0
    Front end : Forms 11g
    In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
    Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
    In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
    The Nls_date_format parameter at database level is set as 'DD-MON-RR'
    Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
    pls help us to solve the issue.
    Regards.
    sathish k

    892913 wrote:
    Hi,
    Back end : Oracle 11.2.0.2.0
    Front end : Forms 11g
    In our application we are facing issue with TO_DATE('DD/MM/YYY') Date format conversion.
    Example: TO_DATE(P_date,'DD/MM/YYYY') giving the result as 20-Dec-0009
    In the above eg the Parameter P_date is coming as '20-dec-09' from the front end (forms 11g)
    The Nls_date_format parameter at database level is set as 'DD-MON-RR'
    Its working fine after changing the conversion as TO_DATE(P_date,'DD/MM/RRRR') .- If we do like this , we need to change in many places , so instead of doing this, is there other solution wrt database settings/Application settings where we can change and fix this issue
    pls help us to solve the issue.
    Regards.
    sathish kWell the solution is right in front of you. As you say, your database environment is set to DD-MON-RR so your database is set to use 2 digit years (something most people moved away from with the millenium bug more than 10 years ago now). You can either change all your code to use RRRR as you've found, or change your database NLS setting to DD-MON-RRRR and change your front end application to pass you a date with 4 digit years so you get e.g. '20-dec-2009'.
    So many people worked hard to resolve the millenium bug issues all those years ago, but still we have people, all these years later, who want to reintroduce the problem. So sad.

Maybe you are looking for

  • Cant disconnect iPod. Files used by another app.

    iTunes will not let me disconnect my iPod because it says files on my iPod are being used by another app. I have my iPod set up to update manually because I have a few different music files on my iPod then in my iTunes music library and I dont want t

  • Sqvi for bsas gives error

    Dear All When i try to create a query for the BSAS table, i get error BSAS-PRODPER not defined in ABAP dictionary BSAS-PROPMANO not defined in ABAP dictionary. Document 1500000000 was posted in company code 1000 lease help me resolve this issue. rega

  • Changes in detail-disclosure aren't kept over show/hide

    Dear forum, In a table with detail-disclosure is the filled-in data in hidden fields not kept when using the show/hide function. Is this is a bug in build 10.1.2 build 19? Is this solved in the new build? Or is this expected behavior? Is there anyone

  • Array in table

    Hi, Is there a way to have an array as column of a table ? If think answer in no, but ... Thanks

  • ITunes ver 7 for Win XP problem

    Been trying all night to get iTunes downloaded to recognize Nano. Continue to get following error on 2 machines. 'The folder path '/bin/jre1.5.0' contains an invalid character' Install crashes after this and not allowed to go any further. Tried sever