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: possible to use alter system or alter session commands dynamically?

Re: possible to use alter system or alter session commands dynamically?

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 14 Feb 2003 13:05:54 -0800
Message-ID: <92eeeff0.0302141305.6b60ebee@posting.google.com>


rgaffuri_at_cox.net (Ryan Gaffuri) wrote in message news:<1efdad5b.0302140555.7bb9a8db_at_posting.google.com>...
> I asked this in another thread related to a specific task and got an
> answer on how to do that task, which I appreciate.
>
> However, I'm still wondering if its possible to do this?
>
> I tried:
>
> EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '':1,:2'''
> USING v_sid, v_serial#;
>
> and it gave me some kind of parsing error. Is it functionally possible
> to do this? Dont need to use it now. Just really curious. Its not in
> the documentation.

How about,
EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION '||chr(39)||to_char(v_sid)||','||to_char(v_serial#)||chr(39);

Regards
/Rauf Sarwar Received on Fri Feb 14 2003 - 15:05:54 CST

Original text of this message

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