But its not the thing I want. The exact problem is when I make changes in a table, and if some condition satisfies, I will execute a trigger in which I will change the system date itself. (ie; UPDATE.... SYSDATE = '27-Nov-2006') This will create an error , then how can I change the SYSDATE ???
OK , you may proceed as Pragati has told u .
But through a DML statement like UPDATE it is not possible as SYSDATE works like a function and it can't be used in the left hand side of a = operator .
hi Reshmi Jacob, maybe you can use this durty trick,
Oracle takes the date from SO, but you can also set a constant date temporality, and then set the S.O date again.
ALTER SYSTEM SET FIXED_DATE = '2007-01-01';
Done!!, you now have a constant sysdate, lol, but prolly you want to go back to the normal clock, couse this is constant and tomorroy will have the same date.
ALTER SYSTEM SET FIXED_DATE='non e';
Cool, now you have your incremental time again.
I hope this can help you, remember that the user must have alter system grant, and this can be dangerous depending of your porpose.
Good lock, and sorry for my bad english(latin guy).
Comment