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

.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出来的控制文件格式可能有问题

[[email protected] dbs]$ strings spfilePROD4.ora >>/home/oracle/aa.ora

[[email protected] ~]$ 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

时间: 2024-07-29 03:31:50

调整参数导致数据库无法启动的相关文章

oracle初始参数设置错误导致数据库无法启动报ORA-00821的解决方案

今天为了修改数据库配置,将sga_max_size设置为了20G,但是sga_target没改,仍然为10G 结果改完后重启数据库就启动不了了,报ORA-00821错误 ORA-00821: Specified value of sga_target *** is too small, needs to be at least *** 而直接alter system set sga_target=20800M是不行的,因为数据库已经启动不了了,根本没法直接修改数据库参数,所以只能手动修改spfi

修改oracle系统参数spfile导致数据库无法启动解决

错误示范: SQL> alter system set nls_date_format='yyyy-mm-dd 24hh:mi:ss' scope=spfile;System altered.我更改了数据库的日期格式后,重启后,数据库打开不了了.ORA-01821: date format not recognized,有没有人知道怎么改回去. 大意 hh24 写成了24hh 解决步骤: 1.可能需要重配netca,启动监听到实例. 2.startup pfile=/u01/app/oracle

删除redo所有日志,数据库无法启动

半夜在itpub上看到有人发贴,说不小心删除了redo所有日志,导致数据库无法启动,因此模拟了一下.   如下: OS:  Oracle Linux Server release 5.7 DB:  Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production [[email protected] yoon]$ lscontrol01.ctl  redo01.log  redo02.log  redo03.

python中os.path.dirname(__file__) 命令行 参数没有绝对路径导致数据库找不到

(1).当"print os.path.dirname(__file__)"所在脚本是以完整路径被运行的, 那么将输出该脚本所在的完整路径,比如: python d:/pythonSrc/test/test.py 那么将输出 d:/pythonSrc/test (2).当"print os.path.dirname(__file__)"所在脚本是以相对路径被运行的, 那么将输出空目录,比如: python test.py 那么将输出空字符串 启动参数后来加上绝对路径

SPFILE导致数据库启动失败

服务器断电重启后,报数据库服务无法启动,在服务器上使用AS SYSDBA 登录后连接到空实例, 使用startup启动时报'ORA-24324: 未初始化服务句柄,ORA-01041: 内部错误, hostdef 扩展名不存在'错误. 分步启动startup nomount ,依然报以上错误,判断为spfile文件损坏造成.但本机没有使用pfile备份过spfile,而修改spfile要启动修改. 解决办法,手工创建pfile 文件INITSID.ORA,打开alert日志,找到数据库启动信息,

ORA-00119: invalid specification for system parameter LOCAL_LISTENER ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL' 导致Oracle数据库无法启动

前言 最近安装Oracle11g,重启电脑后,无法登陆数据库,到sqlplus登陆时就报错,没有例程...等等(忘记截图了),去看了下服务,监听器和实例服务都是开着的,就是无法启动数据库,到网上找了一些教程,通过 sqlplus / as sysdba 这种方式登录数据库,然后输入 startup 命令启动数据库就报了这两个错误. 个人分析,应该是监听器配置出现了问题,如果有知道的园友,麻烦告知一二. 解决步骤 1.先以 sqlplus / as sysdba 方式启动sqlplus sqlpl

Oracle 数据库实例启动关闭过程

--================================ -->Oracle 数据库实例启动关闭过程 --================================ /* Oracle数据库实例的启动,严格来说应该是实例的启动,数据库仅仅是在实例启动后进行装载.Oracle数据启动的过程被划分为 几个不同的步骤,在不同的启动过程中,我们可以对其实现不同的操作,系统修复等等工作,因此了解Oracle数据启动.关闭是非常 有必要的.下面详细了Oracle Database 10g 

mysql数据库无法启动恢复 mysql数据库崩溃恢复 mysql数据库恢复

客户名称 保密 数据类型 mysql 5.5 innodb 数据容量 1500 MB 故障类型 服务器断电导致mysql无法启动.客户自己尝试innodb崩溃恢复从参数1-6无效. InnoDB: for more information. InnoDB: Error: trying to access page number 805281720 in space 0, InnoDB: space name .\ibdata1, InnoDB: which is outside the tabl

相克军_Oracle体系_随堂笔记016-参数文件及数据库的启动和关闭

参数文件: spfile<SID>.ora    动态参数文件,是二进制文件,9i以后引入并建议使用 init<SID>.ora    静态参数文件,是文本文件 动态参数,部分参数可以动态修改.建议9i以后就使用spfile. 数据库启动三个阶段: nomount(根据参数文件配置参数启动实例) mount(根据参数文件中记录的控制文件位置打开控制文件) open(根据控制文件信息打开数据文件,redo日志文件,open数据库) 注:nomount之前就可以根据pfile创建spf