码迷,mamicode.com
首页 > 数据库 > 详细

调整参数导致数据库无法启动

时间:2017-07-02 16:18:32      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:oracle 参数 参数文件


.oraenv xxx

alter system set sga_max_size=4g scope=spfile;

sql>alter system set sga_target=4g;

sql>startup force;

ORA-27102: out of memory

SQL> startup nomount

ORA-27102: out of memory

SQL> shutdown immediate

ORA-01034: ORACLE not available

ORA-27101: shared memory realm does not exist

Linux Error: 2: No such file or directory

SQL> quit

Disconnected

--做一个pfile,进去修改设置出错的参数,注意strings出来的控制文件格式可能有问题

[oracle@edsir1p8- dbs]$ strings spfilePROD4.ora >>/home/oracle/aa.ora

[oracle@edsir1p8-PROD4 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Wed Jun 21 09:14:12 2017

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup pfile=‘/home/oracle/aa.ora‘

ORACLE instance started.

Total System Global Area  129724416 bytes

Fixed Size    1334996 bytes

Variable Size  113246508 bytes

Database Buffers    8388608 bytes

Redo Buffers    6754304 bytes

Database mounted.

Database opened.

SQL> show parameter spfile;

NAME     TYPE VALUE

-spfile     string

SQL> create spfile from pfile=‘/home/oracle/aa.ora‘  ;

File created.

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

otal System Global Area  129724416 bytes

Fixed Size    1334996 bytes

Variable Size  113246508 bytes

Database Buffers    8388608 bytes

Redo Buffers    6754304 bytes

Database mounted.

Database opened.

SQL> show parameter spfile;

NAME     TYPE VALUE

------------------------------------ ----------- --------------------------

----spfile     string /u01/app/oracle/product/11.2.0



本文出自 “yangwang” 博客,请务必保留此出处http://yangwang.blog.51cto.com/10855137/1943759

调整参数导致数据库无法启动

标签:oracle 参数 参数文件

原文地址:http://yangwang.blog.51cto.com/10855137/1943759

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!