Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 12th, 2004, 05:09 AM
abbsz_abigail abbsz_abigail is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: At present in Dubai
Posts: 12 abbsz_abigail User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
NLS_Date_Format Setting in Oracle 9i

Hi there!
I am hereagain with yet another doubt. I am in the installation of our project in Spain. Installation and all other preliminary things have worked out successfully. But then, the initial proceedings to this project stands hindered, becos of the fact that the project doesnot save the records for varied treansactions that involve date to be saved.
I have found that as according to the territorial language of spain, the date format has taken the default setting as dd/mmm/yyyy. But as according to our project we need the format to be dd-mmm-yy.
For your info we are using oracle 9i and MS Visual Basic 6.0
I am given with the solution to change the same in the init.ora file of oracle which i will find in the server, by changing the NLS_DATE_FORMAT="DD-MMM-YY"
But I donot know how to exactly proceed with this, as I have never done this before and if I do make a slightest error the result will be very enormous. So could any of you suggest how I could do this systematically, or if you have any other way to this problem, then please let me know as I am very confused about this and it is very urgent.
If you do have any solution links to this problem do let me know.
Awaiting many a reply
regs
Abigail

Reply With Quote
  #2  
Old February 12th, 2004, 08:03 AM
Dan Drillich Dan Drillich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Dan Drillich User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Changing the init.ora (NLS_DATE_FORMAT="DD-MMM-YY") seems to be the best solution.
The risk you take by changing it is minimal, since it only means the query results is formatted in a certain way.
You can also explore: alter session set nls_date_format='DD-MMM-YY'; which changes the format just for a particular session.
You can also explicitly format your result set at query time, as in SELECT TO_CHAR(SYSDATE, 'MM-DD-YYYY HH24:MI:SS') "NOW" FROM DUAL;

Regards,
Dan

Reply With Quote
  #3  
Old February 12th, 2004, 08:56 AM
abbsz_abigail abbsz_abigail is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: At present in Dubai
Posts: 12 abbsz_abigail User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
NLS_DATE_FORMAT

Thanx Dan.
I tried changing the format using the alter query, but this lasts only for a session. I would like to know how we have got to change the same in the Register of Windows ie in the HKey Local machine -> Software-> Oracle->Homes. As this I came to know will give a final and lasting solution. Please educate me in this regard.
I need this and it is top urgent. I am expecting many a reply and suggestions.
Rgs
Abigail

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > NLS_Date_Format Setting in Oracle 9i


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway