![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
On Jul 7, 8:21Â*am, Mladen Gogala <gogala.mla... (AT) gmail (DOT) 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 -- |
#4
| |||
| |||
|
|
On Jul 7, 8:21*am, Mladen Gogala <gogala.mla... (AT) gmail (DOT) 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 -- |
#5
| |||
| |||
|
|
On Wed, 07 Jul 2010 06:22:52 -0700, Mark D Powell wrote: On Jul 7, 8:21*am, Mladen Gogala <gogala.mla... (AT) gmail (DOT) 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 -- So, this shouldn't be working at all: SQL> alter system set events='1013 trace name context off'; System altered. Elapsed: 00:00:00.06 It does actually work. And using the undocumented "set events" has been around for years. It is even documented on some well respected websites, like Julian Dyke's:http://www.juliandyke.com/Diagnostic...ts/Events.html --http://mgogala.byethost5.com- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |