p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Database > Oracle
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 9th, 2004, 07:14 AM
Registered User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: Ahmedabad, Gujarat, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default date storage

how to alter the date format of the table

Eg: how to store the date in the format JANUARY 10,1975
__________________
ans4u
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 10th, 2004, 04:16 PM
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2003
Location: dammam, ad, Saudi Arabia.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in sqlplus
ALTER SESSION SET NLS_DATE_FORMAT = ''Month dd,YYYY''
in form
 forms_ddl('ALTER SESSION SET NLS_DATE_FORMAT = ''DD/MM/YYYY''');


Waheed rashwan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 11th, 2004, 01:04 AM
Registered User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: Ahmedabad, Gujarat, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thank you Waheed Rashwan for the post but ALTER SESSION SET NLS_DATE_FORMAT does not permanently affect the permanent date storage for a particular table to be viewed in the format whenever it is opened..it merely affects the temporary way to view the format in that format..does anybody know how to alter/insert the date in a particular format so that it is permanently stored in the table in that format,,be it other than the default date format set for the system.


Quote:
quote:Originally posted by wahras
 in sqlplus
ALTER SESSION SET NLS_DATE_FORMAT = ''Month dd,YYYY''
in form
 forms_ddl('ALTER SESSION SET NLS_DATE_FORMAT = ''DD/MM/YYYY''');


Waheed rashwan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old October 12th, 2004, 01:52 AM
Authorized User
Points: 140, Level: 2
Points: 140, Level: 2 Points: 140, Level: 2 Points: 140, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Boise, ID, USA.
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oracle will always store DATE data in a packed binary format. This is handy for computers to use, but incomprehensible to applications. It is impossible to change the way Oracle stores a date.

It is the job of the client application, like SQL*Plus, to turn this binary data into a format that is comprehensible to the user. Oracle's tools will use NLS_DATE_FORMAT to determine how to display dates by default, though you can always use TO_CHAR to do an explicit format. NLS_DATE_FORMAT can be set at the session level, at the client level by setting an environment variable, or at the database level, by changing the initialization parameter. Individual sessions, however, can always override client and database level settings. Additionally, non-Oracle tools will generally not use NLS_DATE_FORMAT and will end up using their own date format.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old October 20th, 2004, 04:59 AM
Registered User
Points: 4, Level: 1
Points: 4, Level: 1 Points: 4, Level: 1 Points: 4, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: Nasr City, Cairo, Egypt.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mg2010 Send a message via Yahoo to mg2010
Default

when i try to user imp80 this messeage be declare imp-00000

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Storage Engine ashuphp Beginning PHP 1 April 19th, 2007 01:13 AM
Could not open macro storage tigerkit Beginning VB 6 7 September 20th, 2006 03:56 PM
intermediate storage sarah lee ASP.NET 1.0 and 1.1 Basics 3 September 11th, 2006 02:31 PM
opinion on data storage phlint69 Access VBA 2 September 27th, 2005 09:16 AM
Document Storage hugh@kmcnetwork.com SQL Server 2000 1 December 23rd, 2003 10:36 AM



All times are GMT -4. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc