Skip to Main Content

Database Software

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!

CDB/PDB versus SYSDATE -- can i make them play nice?

user502212Dec 21 2017 — edited Dec 22 2017

I am migrating from a single database 11g configuration to a multitenant 12c (12.1) database.  I have a CDB set up with one timezone (PST) and a PDB set up with a different time zone (CDT).  We have verified this using the dbtimezone function.

Of course I migrated a my code over to the PDB and gave it a go.

SYSDATE is returning the CDB PST time (select sysdate from dual) when I'm in the PDB.  I'm guessing we messed something up in the PDB configuration?  Surely any PL-SQL or SQL can be made to function with the time zone of each PDB -- otherwise why have it?

This post has been answered by Markus Flechtner on Dec 21 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2018
Added on Dec 21 2017
4 comments
1,350 views