Re: Purge command

From: mathewbutler <>
Date: Mon, 6 Oct 2008 12:47:23 -0700 (PDT)
Message-ID: <>

On Oct 4, 7:34 am, "astalavista" <> wrote:
> <The 9i client doesn't know 10g SQL. If you call your command from the
> <9i client but wrapped in pl/sql the command will be executed in the
> <10g server successfully.
> SQL is not excuted by 10g engine ?
> some control is done by sql*plus ?
> Thanks

The client knows the SQL keywords and syntax - to enable SQL validation checks to take place without the expense of a trip to the server. In your case, it only knows about 9i SQL. To execute the 10G purge command you will need to send your statement as dynamic SQL ( purge is DDL) wrapped in PL/SQL. The PL/SQL block will be validated in the same way - keyword and syntax will be checked. However, the dynamic component will not be checked until execution time (after the PL/SQL has been shipped to the server and executed - on the server 10G SQL will be understood).

Try an anonymous PL/SQL block, with an "execute immediate" to make the call at runtime.

Mathew Butler Received on Mon Oct 06 2008 - 14:47:23 CDT

Original text of this message