• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bizzare behavior of Oracle

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have this small problem.

If i insert a row in a table (named employee) using the servlet then i am able to retrieve the row using the same servlet class.

But if i insert a row in same table using SQL plus then when i call select * from servlet it will only retrieve the row that was inserted by servlet and not the new row that was inserted using SQL plus.

I am using Oracle 9i, Java 1.6 and Tomcat 6.

Is it something related to privilages?
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

using SQL plus

.You have to type commit , then <enter> in sql*plus to confirm your changes. From then on, they will be visible in other sessions.

Regards, Jan
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"jit tij", please check your private messages. You can see them by clicking My Private Messages.
 
jit singh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for reply, well i got it while by chance that what i was doing was closing the sql++ window by close button at top right, instead i should have typed EXIT to close the window, it does the same job as commit but also closes the window as it is obvious ;)

I have changed my name. Now is there something more to worry about or am all set for cruising forum?
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by jitender singh:
thanks for reply, well i got it while by chance that what i was doing was closing the sql++ window by close button at top right, instead i should have typed EXIT to close the window, it does the same job as commit but also closes the window as it is obvious ;)

I have changed my name. Now is there something more to worry about or am all set for cruising forum?



That doesn't make any sense, entering EXIT should not issue a commit.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic