dbTalk Databases Forums  

SQLPLUS Question

comp.databases.oracle.server comp.databases.oracle.server


Discuss SQLPLUS Question in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Noons
 
Posts: n/a

Default Re: SQLPLUS Question - 01-17-2010 , 02:00 AM






Mladen Gogala wrote,on my timestamp of 17/01/2010 10:15 AM:

Quote:
Nial Litchfield or Nuno Suoto
as judges in this matter.
Souto. Not Suoto. Unless of course you are from PCWorld or Computerworld...



<g,d&r>

Reply With Quote
  #22  
Old   
Jeremy
 
Posts: n/a

Default Re: SQLPLUS Question - 01-17-2010 , 10:34 AM






In article <hithhv$d19$4 (AT) solani (DOT) org>, gogala.mladen (AT) gmail (DOT) com says...>
Quote:
On Sat, 16 Jan 2010 20:24:36 +0000, Jeremy wrote:

In article <hit6ej$phc$4 (AT) solani (DOT) org>, gogala.mladen (AT) gmail (DOT) com says...
On Sat, 16 Jan 2010 18:37:24 +0000, Jeremy wrote:


Can you create sqlplus scripts with "conditions" such that if for
example a SQL statement returns a particular value or error condition
then path A or path B is followed?

Yes. It's called PL/SQL and is available as of the version 6.

Is that intended to be serious answer?

Yes. That is precisely what PL/SQL is intended for: you run SQL and
follow some logic path depending on the outcome.
Perhaps I assumed I had conveyed more of my requirements to the post
than I did.

It's about conditional execution of .sql files - am looking at ways to
automate install/upgrades which cannot be done using PL/SQL.

--
jeremy

Reply With Quote
  #23  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: SQLPLUS Question - 01-17-2010 , 12:15 PM



On Sun, 17 Jan 2010 19:00:23 +1100, Noons wrote:


Quote:
Souto. Not Suoto. Unless of course you are from PCWorld or
Computerworld...
I humbly apologize.



--
http://mgogala.byethost5.com

Reply With Quote
  #24  
Old   
Gerard H. Pille
 
Posts: n/a

Default Re: SQLPLUS Question - 01-18-2010 , 02:56 AM



On 17 jan, 17:34, Jeremy <jeremy0... (AT) gmail (DOT) com> wrote:
Quote:
In article <hithhv$d1... (AT) solani (DOT) org>, gogala.mla... (AT) gmail (DOT) com says...



On Sat, 16 Jan 2010 20:24:36 +0000, Jeremy wrote:

In article <hit6ej$ph... (AT) solani (DOT) org>, gogala.mla... (AT) gmail (DOT) com says...
On Sat, 16 Jan 2010 18:37:24 +0000, Jeremy wrote:

Can you create sqlplus scripts with "conditions" such that if for
example a SQL statement returns a particular value or error condition
then path A or path B is followed?

Yes. It's called PL/SQL and is available as of the version 6.

Is that intended to be serious answer?

Yes. That is precisely what PL/SQL is intended for: you run SQL and
follow some logic path depending on the outcome.

Perhaps I assumed I had conveyed more of my requirements to the post
than I did.

It's about conditional execution of .sql files - am looking at ways to
automate install/upgrades which cannot be done using PL/SQL.

--
jeremy
Well, you could simply do a:

if [ ... ]
then
SCRIPT=script_A
else
SCRIPT=script_B
fi
print -p "start $SCRIPT"

Reply With Quote
  #25  
Old   
Noons
 
Posts: n/a

Default Re: SQLPLUS Question - 01-18-2010 , 04:04 AM



Mladen Gogala wrote,on my timestamp of 18/01/2010 5:15 AM:
Quote:
On Sun, 17 Jan 2010 19:00:23 +1100, Noons wrote:


Souto. Not Suoto. Unless of course you are from PCWorld or
Computerworld...

I humbly apologize.
Don't worrt, you wouldn't be the first one!
Where's Nial these days anyways? Haven't seen
his posts except in oracle-l for a while.

Reply With Quote
  #26  
Old   
gazzag
 
Posts: n/a

Default Re: SQLPLUS Question - 01-18-2010 , 05:31 AM



On 18 Jan, 10:04, Noons <wizofo... (AT) yahoo (DOT) com.au> wrote:
Quote:
Don't worrt, you wouldn't be the first one!
Where's Nial these days anyways? *Haven't seen
his posts except in oracle-l for a while.
I saw Niall at UKOUG last November. He seems well. Sadly, a few
beers has clouded my memory. I forget now whether I mentioned c.d.o.s
to him or not

-g

Reply With Quote
  #27  
Old   
joel garry
 
Posts: n/a

Default Re: SQLPLUS Question - 01-18-2010 , 12:03 PM



On Jan 18, 2:04*am, Noons <wizofo... (AT) yahoo (DOT) com.au> wrote:
Quote:
Mladen Gogala wrote,on my timestamp of 18/01/2010 5:15 AM:

On Sun, 17 Jan 2010 19:00:23 +1100, Noons wrote:

Souto. Not Suoto. Unless of course you are from PCWorld or
Computerworld...

I humbly apologize.

Don't worrt, you wouldn't be the first one!
Where's Nial these days anyways? *Haven't seen
his posts except in oracle-l for a while.
Are you spelling _his_ name correctly? :-)

jg
--
@home.com is bogus.
These folks were in their big psychedelic bus in the Xmas parade:
http://www.signonsandiego.com/news/2...ult-depiction/
http://photos1.blogger.com/blogger/6...lveTribes1.jpg
http://2.bp.blogspot.com/_B6gyINLrSB...lveTribes2.jpg

Reply With Quote
  #28  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: SQLPLUS Question - 01-18-2010 , 01:58 PM



On Mon, 18 Jan 2010 10:03:18 -0800, joel garry wrote:


Quote:
Are you spelling _his_ name correctly? :-)
He is.



--
http://mgogala.byethost5.com

Reply With Quote
  #29  
Old   
Noons
 
Posts: n/a

Default Re: SQLPLUS Question - 01-19-2010 , 03:08 AM



joel garry wrote,on my timestamp of 19/01/2010 5:03 AM:

Quote:
Are you spelling _his_ name correctly? :-)
Dunno, jgarr. Did I get yours?
Lost track somewhere between the last beer
and the first scotch...
<g,d&r>

Reply With Quote
  #30  
Old   
gazzag
 
Posts: n/a

Default Re: SQLPLUS Question - 01-19-2010 , 04:34 AM



On 18 Jan, 19:58, Mladen Gogala <n... (AT) email (DOT) here.invalid> wrote:
Quote:
On Mon, 18 Jan 2010 10:03:18 -0800, joel garry wrote:
Are you spelling _his_ name correctly? *:-)

He is.

--http://mgogala.byethost5.com
I'm a frayed knot:

http://groups.google.co.uk/group/com...rch+this+group

HTH

-g

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.