If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > issue with DDL ON WAS application Server and Oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-11, 05:21
skesireddy skesireddy is offline
Registered User
 
Join Date: Sep 2009
Posts: 6
issue with DDL ON WAS application Server and Oracle

Application server WAS
Database Oracle 11g
API : java JDBC

I ADD a column(DESC) to a table A in one transaction. After this transaction is completed I fire a query select * from A where 1 =2 and try to get get resultset metdata in another transaction . The newly added column(DESC) is not found in the resulsetmetdata

IF i do the same after 2 minutes then I can find the newly added column.

This column is found immediately if a query is fired directly on sql prompt.

This is not replicated in most of the environments and being encountered only in one environment and looks specific to database or JDBC driver


Any help is appreciated.
Reply With Quote
  #2 (permalink)  
Old 11-28-11, 09:26
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
Oracle always presents a read consistent view of the database as existed at start of transaction
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 11-28-11, 09:41
skesireddy skesireddy is offline
Registered User
 
Join Date: Sep 2009
Posts: 6
Thanks for the prompt reply .
The second transaction started only after the first was finished.
Reply With Quote
  #4 (permalink)  
Old 11-28-11, 09:59
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,415
>Thanks for the prompt reply .
>The second transaction started only after the first was finished.

If you deem Oracle's behavior to be incorrect, then file a bug report to MOS.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On