![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, real simple question and one I suspect the answer to which is "no". 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? -- jeremy |
#3
| |||
| |||
|
|
Hi, real simple question and one I suspect the answer to which is "no". 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? |
#4
| |||
| |||
|
|
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? |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
Jeremy schreef: Hi, real simple question and one I suspect the answer to which is "no". 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? I start sqlplus from a ksh script as a job, send queries to it and read the answers. ksh, which is also a full programming language, takes the decisions about how to continue. |
#7
| |||
| |||
|
|
On Sat, 16 Jan 2010 20:28:55 +0100, Gerard H. Pille wrote: I start sqlplus from a ksh script as a job, send queries to it and read the answers. ksh, which is also a full programming language, takes the decisions about how to continue. That is, of course, a dangerous baloney wasting system resources. Neither Korn shell nor Bash are the full fledged programming languages and adding sqlplus in the mix guarantees security breaches. When I encounter a site like that, the first thing I do is the following: |
#8
| |||
| |||
|
|
Please, Mladen Gogala, why don't you shut up about things you know nothing about? |
#9
| |||
| |||
|
|
In article<4b5212b2$0$2864$ba620e4c (AT) news (DOT) skynet.be>, ghp (AT) skynet (DOT) be says... Jeremy schreef: Hi, real simple question and one I suspect the answer to which is "no". 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? I start sqlplus from a ksh script as a job, send queries to it and read the answers. ksh, which is also a full programming language, takes the decisions about how to continue. Would this be through multiple invocations of sqlplus? |
|
awk '{print substr($NF,10)}' | while read ORACLE_SID do |
#10
| |||
| |||
|
|
On Sat, 16 Jan 2010 22:39:24 +0100, Gerard H. Pille wrote: Please, Mladen Gogala, why don't you shut up about things you know nothing about? Because I've written many scripts using ksh, bash and DCL as well Perl and PHP and because I actually know a bit about Oracle. |
![]() |
| Thread Tools | |
| Display Modes | |
| |