The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com



UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find 'Day of week' in Linux system rajinavaneethan UNIX and Linux Applications 2 07-05-2009 09:07 AM
In Wake Of SCO Ruling, Linux Continues To Roll - Information Week Weblog iBot UNIX and Linux RSS News 0 08-14-2007 12:10 AM
In Wake Of SCO Ruling, Linux Continues To Roll - Information Week Weblog iBot UNIX and Linux RSS News 0 08-13-2007 10:20 PM
In Wake Of SCO Ruling, Linux Continues To Roll - Information Week Weblog iBot UNIX and Linux RSS News 0 08-13-2007 10:10 PM
Novell calls for further Linux standardization - IT Week iBot UNIX and Linux RSS News 0 08-08-2007 03:40 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-05-2009
rajinavaneethan rajinavaneethan is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 8
Red face Day of week different in windows and Linux

Hi all,

My program is getting date from database (oracle) and am getting that date's day of week also.

In windows its giving one number and different in linux

For Example:

30 - Jun - 2009

Am getting 2 in windows and 3 in Linux.

Am not understanding whats going wrong.. Am using same JDBC driver in windows and linux.

Thanks in advance,
Raji.
  #2 (permalink)  
Old 07-05-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
Presumably is reporting what the operating system calls that day of the week, whether they start with the first day being 0 or 1 and them using a different day as the start of the week?
  #3 (permalink)  
Old 07-05-2009
rajinavaneethan rajinavaneethan is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 8
Thank you.

Its taking monday as 1. this is same as windows day of week but when i ran my application its giving 2 ;(

Regards,
Raji.

Last edited by rajinavaneethan; 07-05-2009 at 08:14 PM..
  #4 (permalink)  
Old 07-07-2009
rajinavaneethan rajinavaneethan is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 8
Resolved the issue

The configuration of NLS_TERRITORY in Oracle database is by default AMERICA. When my application is executed from all windows boxes, the JDBC Driver changes it to AUSTRALIA based on the locale.
However when running my application on UNIX, where the server OSs are also setup with AMERICA as the locale, the driver fails to change the NLS_TERRITORY setting. Given that the Oracle DB and OS would not be configured with AUSTRALIA as the locale (as AMERICA is the standard followed); the solution is to start the JVM when running the application with a parameter specifying that the locale is AUSTRALIA.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0