Home > Database > Mysql Tutorial > body text

CentOS 上的Oracle dba之路:安装完Oracle后的启动配置问题

WBOY
Release: 2016-06-07 17:00:38
Original
1062 people have browsed it

1.无法数据库初始化文件当我们安装玩oracle后,当然是迫不及待的把他启动起来,come on使用oracle用户登录系统$ dbstart $ORACLE

1.无法数据库初始化文件

当我们安装玩Oracle后,当然是迫不及待的把他启动起来,come on

使用oracle用户登录系统

$ dbstart $ORACLE_HOME

结果唰的报错了:

cannot read $ORACLE_BASE/admin/dbs/initORCL.ora

无法读取$ORACLE_BASE/admin/dbs/initORCL.ora文件

原因:

    初始化数据库无法读取该文件


解决方案:

    生成数据库初始化文件
    源文件 $ORACLE_BASE/admin/dbs/init.ora
    目标文件 $ORACLE_BASE/admin/dbs/initORCL.ora
    讲文件中的改为相应的地址

OK,重新启动oracle服务

2.memory_target大于/dev/shm

$ sqlplus / as sysdba

连接到数据库上,现在来启动oracle实例

 idel>startup

唰唰唰,又报错了:

memory_target not supported on this system

内存容量无法满足系统需要

原因:sga,pga大于/dev/shm

sga是oracle的系统全局区,是数据库非常重要的区域

/dev/shm 是linux下的一块共享内存结构。默认情况下他的大小受物理内存的限制.其实它的实际大小可以设置为(物理内存+swap),用来存储进程间通讯时的一些共享数据结构,通常在物理内存足够时,会在内存中进行数据交换,如果物理内存缺乏时,会用swap进行数据交换. 支持动态在线调整.在我们需要时可以增加或缩减它的大小.

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!