Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> Database timezone

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Database timezone
 muzu  Posted: Aug 17, 2007 04:03:47 AM

 Total Post: 37
 Joined: Aug, 2007






 1)How to change the database timezone (not session time zone) for a particular session using alter session statement ?

2)The oracle database stores all the date and time component information in it.
But while querying the current_date it displays only the date without the time information.
How can extract function be used with the current_date to extract the time information from it ?

 Ramesh Joyisa
Posted: Aug 17, 2007 05:24:56 AM  

 Total Post: 246
 Joined: Aug, 2007






 
Alter session will change parameters to that session. To get the time you can use format functions like to_char and give the format in which you want the output

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi333
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software