oracle12c错误:ORA-00119,ORA-00136,ORA-00111
之前修改了oracle 中的LISTENER_NETWORKS参数。
SQL> alter system set listener_networks='NULL' scope=spfile;
没想到重置oracle后,oracle实例就不能启动了。
SQL> startup
ORA-00119: invalid specification for system parameter LISTENER_NETWORKSORA-00136: invalid LISTENER_NETWORKS specification #1
ORA-00111: invalid attribute NETWORK
经查oracle告警文件,得到以下内容:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production.
ORACLE_HOME: /data/oracle/app/product/12.2/db_1
System name: Linux
Node name: centos7
Release: 3.10.0-693.21.1.el7.x86_64
Version: #1 SMP Wed Mar 7 19:03:37 UTC 2018
Machine: x86_64
Using parameter settings in server-side spfile /data/oracle/app/product/12.2/db_1/dbs/spfileorcl12g.ora
System parameters with non-default values:
processes = 300
nls_language = "SIMPLIFIED CHINESE"
nls_territory = "CHINA"
memory_target = 784M
control_files = "/data/oracle/app/oradata/orcl12g/control01.ctl"
control_files = "/data/oracle/app/oradata/orcl12g/control02.ctl"
db_block_size = 8192
compatible = "12.2.0"
undo_tablespace = "UNDOTBS1"
remote_login_passwordfile= "EXCLUSIVE"
dispatchers = "(PROTOCOL=TCP) (SERVICE=orcl12gXDB)"
local_listener = "LISTENER_ORCL12G"
listener_networks = "NULL"
audit_file_dest = "/data/oracle/app/admin/orcl12g/adump"
audit_trail = "DB"
db_name = "orcl12g"
open_cursors = 300
diagnostic_dest = "/data/oracle/app"
enable_pluggable_database= TRUE
NOTE: remote asm mode is local (mode 0x1; from cluster type)
2018-06-01T09:36:46.921346+08:00
============================================================
NOTE: PatchLevel of this instance 0
============================================================
USER (ospid: 49038): terminating the instance due to error 119
解决方法:
先用sqlplus 连接。手动指定使用pfile,启动oracle,第一个pfile没有启动成功,然后又找到另外一个pfile,启动成功了。
[oracle@centos7 ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on 星期五 6月 1 09:42:44 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
已连接到空闲例程。
SQL> startup pfile='/data/oracle/app/product/12.2/db_1/dbs/init.ora';
ORA-00845: MEMORY_TARGET not supported on this system
内存配置不正确所以启动不了。spfile是memory_target = 784M,init.ora这里是1G。
可以手动修改init.ora,我这里使用另外一个文件。
SQL> startup mount pfile='/data/oracle/app/admin/orcl12g/pfile/init.ora.42201816225';
ORACLE 例程已经启动。
Total System Global Area 822083584 bytes
Fixed Size 8798120 bytes
Variable Size 633339992 bytes
Database Buffers 171966464 bytes
Redo Buffers 7979008 bytes
数据库装载完毕。
SQL>
由于spfile是pfile编译而来的文件,不能文本编辑,
所以这里先可以直接先利用有问题的spfile生成pfile。
数据库未启动时也可以生成。
SQL>
SQL> create pfile='/data/oracle/app/product/12.2/db_1/dbs/pfile.ora' from spfile;
File created.
然后文本编辑pfile.ora,删除有问题的参数。
再使用pfile.ora 生成新spfile。
SQL> create spfile='/data/oracle/app/product/12.2/db_1/dbs/spfileorcl12g.ora' from pfile='/data/oracle/app/product/12.2/db_1/dbs/pfile.ora';
File created.
SQL> show parameter listen
ORA-01034: ORACLE not available
ID: 0
ID: 0 0
最后启动数据库,测试正常。
SQL> startup
ORACLE instance started.
Total System Global Area 822083584 bytes
Fixed Size 8798120 bytes
Variable Size 591396952 bytes
Database Buffers 213909504 bytes
Redo Buffers 7979008 bytes
数据库已经打开。
查看参数已经为空或默认值。
SQL>
SQL> show parameter listen
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
listener_networks string
local_listener string LISTENER_ORCL12G
remote_listener string
SQL>
目录 返回
首页