Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Q: is it possible to execute sqlplus from c program

Re: Q: is it possible to execute sqlplus from c program

From: Thomas J. Kyte <tkyte_at_us.oracle.com>
Date: 2000/06/06
Message-ID: <8hk16p$r18$1@nnrp1.deja.com>#1/1

In article <8hjvke$pv4$1_at_nnrp1.deja.com>,   tedchyn_at_yahoo.com wrote:
> Sir: is it possible to execure sqlplus from a c program.
>
> thax
> ted chyn
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>

sure, you do it all the time by typing in:

$ sqlplus

the sh is just a big C program ;)

you would use system() or fork()+exec() or maybe popen() to run sqlplus from C.

--
Thomas Kyte (tkyte_at_us.oracle.com) Oracle Service Industries
Howtos and such: http://osi.oracle.com/~tkyte/index.html
Oracle Magazine: http://www.oracle.com/oramag
Opinions are mine and do not necessarily reflect those of Oracle Corp


Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Jun 06 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US