Re: Illegal option for "ALTER SYSTEM"???

From: Mark D Powell <Mark.Powell2_at_hp.com>
Date: Wed, 7 Jul 2010 06:22:52 -0700 (PDT)
Message-ID: <306d3576-166b-4707-9229-2368b3442557_at_c10g2000yqi.googlegroups.com>



On Jul 7, 8:21 am, Mladen Gogala <gogala.mla..._at_gmail.com> wrote:
> This is 10.2.0.4 on Linux x86-64:
>
> SQL> alter system set events='1013 trace name context off' scope=both
> sid='*';
> alter system set events='1013 trace name context off' scope=both sid='*'
>                                                       *
> ERROR at line 1:
> ORA-02065: illegal option for ALTER SYSTEM
>
> What's going on? When I try something else, this works:
>
> SQL> alter system set global_names=false scope=both sid='*';
>
> System altered.
>
> Elapsed: 00:00:00.17
> SQL>
>
> Why are "SCOPE=BOTH SID='*'" illegal options for alter system set events
> and yet work perfectly well with set global_names?
>
> --http://mgogala.byethost5.com

Maybe because the correct spelling is event, not events, in the ALTER SYSTEM command per the SQL manual which also says the parameter is not modifiable

SQL> alter system set event = '1013 trace name context off' scope=spfile;

System altered.

SQL> /
alter system set event = '1013 trace name context off' scope=both

                 *

ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

Though strangely enough if you leave scope= off the command works with events:

SQL> alter system set events = '1013 trace name context off';

System altered.

Posted tests use 9.2.0.6 and appear to match initial posted results, but reference to SQL manual based on 10.2.

HTH -- Mark D Powell -- Received on Wed Jul 07 2010 - 08:22:52 CDT

Original text of this message