Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to shutdown immediate in Pro*C
sl <susanzlam_at_yahoo.com> wrote:
> I would like to call 'shutdown immediate' in my proc program but I
> could not figure how to do it. Tried calling it using EXEC SQL but it
> failed with
> "ORA-00900: invalid SQL statement".
You cannot do this with embedded SQL.
SHUTDOWN is not an SQL command, it is an SQL*Plus command.
To shutdown an Oracle database from C, use the OCI interface.
Yours,
Laurenz Albe
Received on Fri Apr 28 2006 - 08:33:42 CDT