Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add days, hours, minutes and seconds to a date?

user639304Jun 29 2011 — edited Jul 8 2011
Hi,

I have the following problem.
Given 4 integers D,H,M and S (each of them can be negative) and a date Da, I want to add D days, H hours, M minutes and S seconds to the date Da.
For example, if
Da= to_date('28/06/2011 14:50:35','dd/mm/yyyy HH24:mi:ss'), and D = 3, H = -2, M = 20 and S = -12, 
it means I want to add 3 days, -2 hours, 20 minutes and -12 seconds to the date Da, and the new date must be the following date:
to_date('01/07/2011 13:10:23','dd/mm/yyyy HH24:mi:ss') 
Is it possible to write a query to solve this problem or should I use PL/SQL?

Thanks.
This post has been answered by 6363 on Jun 29 2011
Jump to Answer

Comments

Srini Chavali-Oracle
Currently, RHEL 6 is not a certified platform to install either 10g or 11g

Check the certification matrix in MOS for updates

HTH
Srini
Shivananda Rao
Please refer the MOS document *Certification Information for Oracle Database on Linux x86 [ID 1307056.1]*

OEL 6 is not certified to install Oracle Database
Helios-GunesEROL
Hi;
Is it fine to install oracle 10g and 11g on RHEL 6?
Its not certified as mention. But if you want to make installation on that release see Tim's site:

http://www.oracle-base.com/blog/2011/02/13/oracle-11gr2-on-oracle-linux-6/

Regard
Helios
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 5 2011
Added on Jun 29 2011
3 comments
11,640 views