Home » Other » Client Tools » Sql developer time is showing incorrect when checked with database time on server (DB version 11.2.0.4, OS- solaris)
Sql developer time is showing incorrect when checked with database time on server [message #669416] Sun, 22 April 2018 15:40 Go to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
Hi All,

I am facing an issue in our environment, we have 2 node rac environment and when i am running the below query in server with sqlplus its showing the below time and the same query if i ran from 2node of the rac its giving the different output and when i am running from node1 its giving the correct time as sqlplus.


select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') "DATE" from dual;

22-APR-2018 16:35:22 sqlplus

22-APR-2018 15:36:37 sql developer connected to node2 connection string

Please help me on this.

Regards,
Ashish
Re: Sql developer time is showing incorrect when checked with database time on server [message #669417 is a reply to message #669416] Sun, 22 April 2018 15:52 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Welcome to this forum

Please read and follow the forum guidelines, to enable us to help you:
OraFAQ Forum Guide
How to use {code} tags and make your code easier to read

When was the last time the 2 nodes showed the same time?
What changed since then?

How can we reproduce what you report?
Re: Sql developer time is showing incorrect when checked with database time on server [message #669419 is a reply to message #669417] Sun, 22 April 2018 16:05 Go to previous messageGo to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
Hi,

this issue is occurring in non prod env and it was reported by the testing team. I apologize we are not aware of this, as when we asked testing team they were not sure when it was correct last time.

thanks
Re: Sql developer time is showing incorrect when checked with database time on server [message #669420 is a reply to message #669419] Sun, 22 April 2018 16:11 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>22-APR-2018 15:36:37 sql developer connected to node2 connection string
What is observed when sqlplus is used on node2?

What is OS name & version on both node1 & node2?

What is OS time on both node1 & node2?
Re: Sql developer time is showing incorrect when checked with database time on server [message #669421 is a reply to message #669420] Sun, 22 April 2018 16:23 Go to previous messageGo to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
when i ran the below query on sqlplus on both nodes its giveng the correct tome but when i run the same query on sql developer node2 connection string its givng the time 1hr before.

select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') "DATE" from dual;

22-APR-2018 17:22:10 sqlplus time from node 1 and node2

22-APR-2018 16:22:18 -- node 2 sql devloper time
Re: Sql developer time is showing incorrect when checked with database time on server [message #669422 is a reply to message #669421] Sun, 22 April 2018 16:28 Go to previous messageGo to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
OS name on both nodes:
SunOS tresa760 5.10 Generic_150400-50 sun4v sparc sun4v

SunOS tresa761 5.10 Generic_150400-50 sun4v sparc sun4v

OS time on both nodes:
Sun Apr 22 16:28:33 CDT 2018
Sun Apr 22 16:28:35 CDT 2018

Re: Sql developer time is showing incorrect when checked with database time on server [message #669423 is a reply to message #669421] Sun, 22 April 2018 16:29 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
ashishuniyal wrote on Sun, 22 April 2018 14:23
when i ran the below query on sqlplus on both nodes its giveng the correct tome but when i run the same query on sql developer node2 connection string its givng the time 1hr before.

select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') "DATE" from dual;

22-APR-2018 17:22:10 sqlplus time from node 1 and node2

22-APR-2018 16:22:18 -- node 2 sql devloper time
Do you get same incorrect results from multiple remote client using sqldeveloper?
IMO, the problem originates with the client & not the DB Server or database itself.
Re: Sql developer time is showing incorrect when checked with database time on server [message #669424 is a reply to message #669423] Sun, 22 April 2018 16:37 Go to previous messageGo to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
yes its occurring from multiple client sql developers.
Re: Sql developer time is showing incorrect when checked with database time on server [message #669425 is a reply to message #669424] Sun, 22 April 2018 16:49 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
At the present, I am out of ideas or possible explanations for what you report.
I'd like to say that what you report should not be possible, but since are reporting reality, I must be overlooking something.

Consider to post problem to URL below.

https://community.oracle.com/community/database/developer-tools/sql_developer
Re: Sql developer time is showing incorrect when checked with database time on server [message #669426 is a reply to message #669425] Sun, 22 April 2018 17:13 Go to previous messageGo to next message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
thanks i have posted in the given url.

Re: Sql developer time is showing incorrect when checked with database time on server [message #669427 is a reply to message #669426] Sun, 22 April 2018 17:22 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
If you get an answer or solution, please post it back here.
Re: Sql developer time is showing incorrect when checked with database time on server [message #669428 is a reply to message #669427] Sun, 22 April 2018 17:33 Go to previous message
ashishuniyal
Messages: 7
Registered: April 2018
Junior Member
sure will post it. Smile
Previous Topic: Howe toad or sql developer connect to oracle
Next Topic: Editor Error
Goto Forum:
  


Current Time: Thu Mar 28 15:59:36 CDT 2024