views:

117

answers:

3

The table is present in oracle database, I am updating that table with one record. It's executing and when I type select * from that table it's showing that record.

But the problem is when I commit the changes. The table is showing nothing - I am not seeing anythng inside table, it's showing 0 records.

Can you please help me?

insert into recon values(1,'sri',-1,'20090806');

after this if i write

select * from recon;

It's showing that record but after commit it's showing nothing. There is no trigger for that table.

its not a view.

A: 

My guess would be that the transaction was not committed properly, initially I thought that it was because of nested transactions (I work in SQLServer) but could be basically because of not properly committed transaction

kristof
am commiting it afre inserting.
musicking123
A: 

If you are the admin, Check if other users are logged into the the database and are using that table, unlock the user from that table/database.

81967
how to check if other users are accessing tha same database/table?
musicking123
Check out this link http://www.shutdownabort.com/dbaqueries/Performance_Locks_DML.php#Show-locked-objects
81967
+3  A: 

It's a global temporary table, after commiting it is emptied.

There are two kind of temp tables, 1 after commit emptied, 2.after ending session emptied.

Theo
Definitely a possibility. To verify, `SELECT temporary FROM user_tables WHERE table_name = 'recon'`. If this is 'Y' then it is a global temporary table. I'm not sure how to verify whether it is set to delete on commit, but it would certainly explain the behavior you are seeing.
Dave Costa
where table_name = 'recon' -> where table_name = 'RECON'
Theo
@musicking123 - did it turn out that this was a temp table?
dpbradley