Database Administration (MOSC)

MOSC Banner

Oracle 19c systimestamp returns the time if you are a USER than if you are logged in as sysdba

I have created an oracle 19c (19.7.0.0.0) database in Amazon Web Services. The container database returns the time in EDT if you are logged in as SYS and returns the time in UTC if you are logged in as any other user. When we create the databases in AWS they are started with UTC time. We then change the time on the instance to EDT via the following command.

1) command that I ran on the server was: sudo timedatectl set-timezone "America/Detroit") 

> date

>Mon Oct 5 16:43:53 EDT 2020

> date +%z

-0400

This indicates to me that the OS level time is 4 hours behind UTC. Which is correct for my location.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center