Home » Infrastructure » Unix » sql scripts on unix
sql scripts on unix [message #32569] Wed, 25 August 2004 11:00 Go to next message
chetna
Messages: 21
Registered: July 2004
Junior Member
 

Friends,

When we do updates and inserts with sql statements (Oracle) from unix shell scripts, is there an auto commit on ?

I have observed that even though i don't put an explicit "commit" statement after the update/delete/insert statements, they seem to be committed automatically. 

How does this work technically ? is this related to sql session (Oracle) itself , or does the unix session ?

 

thanks a bunch

chetna
Re: sql scripts on unix [message #32571 is a reply to message #32569] Wed, 25 August 2004 11:45 Go to previous messageGo to next message
shoblock
Messages: 325
Registered: April 2004
Senior Member
It's a sqlplus thing, not unix, oracle, or sql (sql is a language, sqlplus is a tool to interface with oracle and parse/execute sql). Sqlplus does a commit on exit, so if exit without rolling back or committing, it commits for you.
Re: sql scripts on unix [message #32575 is a reply to message #32571] Wed, 25 August 2004 14:39 Go to previous messageGo to next message
William Robertson
Messages: 1643
Registered: August 2003
Location: London, UK
Senior Member
But as a rule you avoid putting business logic in shell scripts, right?
Re: sql scripts on unix [message #32601 is a reply to message #32575] Fri, 27 August 2004 05:56 Go to previous messageGo to next message
Padders
Messages: 79
Registered: January 2004
Member
Don't worry, it will all be over soon.
Re: sql scripts on unix [message #32612 is a reply to message #32601] Sat, 28 August 2004 01:40 Go to previous message
William Robertson
Messages: 1643
Registered: August 2003
Location: London, UK
Senior Member
Hi Padders.

Here's hoping ;-)
Previous Topic: the installation widow melt away!
Next Topic: utl_file error
Goto Forum:
  


Current Time: Fri Apr 19 12:41:18 CDT 2024