ORA-02194: event specification syntax error 231 (minor error 286) near 'CONTEXTFOREVER'
2012-07-31 09:08
435 查看
原来修改ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024' scope=spfile;
误操作ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXTFOREVER, LEVEL 1024' scope=spfile;
报错
SQL> ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXTFOREVER, LEVEL 1024' scope=spfile;
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-02194: event specification syntax error 231 (minor error 286) near 'CONTEXTFOREVER'
解决:
进入$ORACLE_HOME/dbs
将原来spfile文件strings一份到其它地方
strings /dev/rgxspfile >/home/oracle/kfc
vi /home/oracle/kfc--将报错相关指示的内容先删除
SQL> startup pfile='/home/oracle/kfc'
ORACLE instance started.
Total System Global Area 2.1475E+10 bytes
Fixed Size 2122472 bytes
Variable Size 1392512280 bytes
Database Buffers 2.0066E+10 bytes
Redo Buffers 14651392 bytes
Database mounted.
Database opened.
--创建回spfile
SQL> create spfile from pfile='/home/oracle/kfc';
File created.
spfilegxtest.ora
SQL> ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024' scope=spfile;
System altered.
[oracle@gxtest] $strings spfilegxtest.ora |grep CONTEXT
*.event='44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024'
--修改成功并正常重启
误操作ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXTFOREVER, LEVEL 1024' scope=spfile;
报错
SQL> ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXTFOREVER, LEVEL 1024' scope=spfile;
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-02194: event specification syntax error 231 (minor error 286) near 'CONTEXTFOREVER'
解决:
进入$ORACLE_HOME/dbs
将原来spfile文件strings一份到其它地方
strings /dev/rgxspfile >/home/oracle/kfc
vi /home/oracle/kfc--将报错相关指示的内容先删除
SQL> startup pfile='/home/oracle/kfc'
ORACLE instance started.
Total System Global Area 2.1475E+10 bytes
Fixed Size 2122472 bytes
Variable Size 1392512280 bytes
Database Buffers 2.0066E+10 bytes
Redo Buffers 14651392 bytes
Database mounted.
Database opened.
--创建回spfile
SQL> create spfile from pfile='/home/oracle/kfc';
File created.
spfilegxtest.ora
SQL> ALTER SYSTEM SET EVENT='44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024' scope=spfile;
System altered.
[oracle@gxtest] $strings spfilegxtest.ora |grep CONTEXT
*.event='44951 TRACE NAME CONTEXT FOREVER, LEVEL 1024'
--修改成功并正常重启
相关文章推荐
- syntax error near unexpected token `('解决方法
- syntax error near unexpected token `then'问题的解决
- test.sh: line 8: syntax error near unexpected token `fi'
- 关于Cygwin中运行sh文件出现syntax error near unexpected token `$'{\r''
- libtool: syntax error near unexpected token `]*'
- 用git 下载android x86出错(syntax error near unexpected token `newline',`<!DOCTYPE HTML PUBLIC "-//IETF//)
- shell script中的syntax error near unexpected token `then' 问题
- quartusII报错(Error (10170): Verilog HDL syntax error at sdram_control.v(152) near text "'h"; expect)
- : syntax error near unexpected token `done'
- repo error : line 1:syntax error near unexpected token 'newline'
- linux--shell错误:syntax error near unexpected token ‘('
- syntax error near unexpected token `('
- keil c 的错误error C141: syntax error near '='
- shell if判断语句 报错:syntax error near unexpected token `elif'
- 交叉编译libupnp,make时提示libtool: eval: line 944: syntax error near unexpected token `|'的解决办法
- Android-~/bin/repo: line 1: syntax error near unexpected token `newline' 3修改
- Linux 中出现的-bash: syntax error near unexpected token `('错误-------终端中无法识别“()”问题解决
- syntax error near unexpected token `then'问题的解决
- 测试sqlplus连接遇到错误 syntax error near unexpected token `('
- syntax error near&nbsp…