I have recently installed oracle server 12c
and deployed Java Spring-Hibernate
application.
While I am doing a TRUNCATE
commands from SqlDeveloper
tool and sending commit
command, the data is not reflected in Java application.
Only after a restart of the application, the data updated from SqlDeveloper
is reflected. One solution suggested was to turn on the Auto Commit by using SQL> SET AUTOCOMMIT ON;
, which I have done. But the issue persists.
Important to note, only TUNCATE TABLE
command is not reflected, i.e. java application still finds data in the table which TRUNCATE'
ed from SQLDeveloper, Insert/Update commands
are getting reflected.
I am sending commit command both ways, by using Commit button from SqlDeveloper
menu and by using commit;
on SQL worksheet.
The same Java application (Without any changes in Configuration) is identifying the empty table (TRUNCATE
'ed from SqlDeveloper) on another instance of Oracle 12C Server.
So, I suspect the issue is with the oracle server configuration.