How do I alter oracle sysdate?

In Oracle, I need to make sysdate in my local enrironment to mirrow remote production environment.
Please advise on how to go about.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jinesh KamdarCommented:
Do u mean just the date format or the actual server system time? For the former, use this -

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jinesh KamdarCommented:
I do not object though I would have appreciated a response from the asker or the reason for the deletion.
You have to change the OS sysdate appropriatelly:
Oracle takes System date from the OS. Shut down Oracle, Change the OS date and restart Oracle. That will give you New Systemdate.
If you do not Shut down/ Restart Oracle, it some time creates problems.

Do you need to change the time, or just the timezone?

You can do that by setting the TZ environment variable prior to starting your database.

If you need the actual time switched as well, then, as others have suggested, you need to change the OS.  Perhaps set both servers to use the same NTP server. or have one be the NTP server for the other.  Either option should correct future drift.

Also, if you simply need to test specific times, you can always set the fixed_date init parameter.  That won't keep them insynch, but will allow you to test date/time specific scenarios

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.