Problem:
Post changes in Linux system timezone (in /etc/sysconfig/clock file ) from ZONE="America/New York" to ZONE="Asia/Kolkata" systimetamp over the DB link or TNS alias started reflecting old/wrong timezone
sqlplus <username>@<TNS_Alias>/<password>;
SQL> select systimestamp,current_timestamp from dual;
SYSTIMESTAMP CURRENT_TIMESTAMP
----------------------------------- -------------------------------------------
22-05-13 06:11:17.900646 AM -05:30 22-05-13 05:11:17.900654 PM +05:30
Here , +05:30 was the correct time-stamp for Timezone "Asia/Kolkata"
Analysis:
It was identified that time zone of the database server was not matching with one of the Data guard setup in Linux zone configuration file /etc/sysconfig/clock
Required ZONE="Asia/Kolkata"
But found ZONE="America/New York"
Post changes in Linux system timezone (in /etc/sysconfig/clock file ) from ZONE="America/New York" to ZONE="Asia/Kolkata" systimetamp over the DB link or TNS alias started reflecting old/wrong timezone
sqlplus <username>@<TNS_Alias>/<password>;
SQL> select systimestamp,current_timestamp from dual;
SYSTIMESTAMP CURRENT_TIMESTAMP
----------------------------------- -------------------------------------------
22-05-13 06:11:17.900646 AM -05:30 22-05-13 05:11:17.900654 PM +05:30
Here , +05:30 was the correct time-stamp for Timezone "Asia/Kolkata"
Analysis:
It was identified that time zone of the database server was not matching with one of the Data guard setup in Linux zone configuration file /etc/sysconfig/clock
Required ZONE="Asia/Kolkata"
But found ZONE="America/New York"