From: Thomas J. Kyte <tkyte@us.oracle.com>
Subject: Re: Q: is it possible to execute sqlplus from c program
Date: 2000/06/06
Message-ID: <8hk16p$r18$1@nnrp1.deja.com>#1/1
References: <8hjvke$pv4$1@nnrp1.deja.com>
X-Http-Proxy: 1.0 x55.deja.com:80 (Squid/1.1.22) for client 205.227.43.11
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Tue Jun 06 23:24:27 2000 GMT
X-MyDeja-Info: XMYDJUIDtkyte
Newsgroups: comp.databases.oracle.server
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)


In article <8hjvke$pv4$1@nnrp1.deja.com>,
  tedchyn@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@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.


