Re: Purge command
Date: Tue, 7 Oct 2008 08:37:48 +0200
"mathewbutler" <mathewbutler_at_yahoo.com> a écrit dans le message de news:
On Oct 4, 7:34 am, "astalavista" <nob..._at_nowhere.com> 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 ?
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 Tue Oct 07 2008 - 01:37:48 CDT