Home > Database > Mysql Tutorial > body text

Linux操作系统下Oracle数据库多实例启动方式及修改内存

WBOY
Release: 2016-06-07 16:51:39
Original
1785 people have browsed it

因为工作的需要,需要在一台Linux操作系统下安装Oracle的另外一个实例。在得到众多网友帮助之后,终于解决以下问题一,安装新的实例用Linux

因为工作的需要,需要在一台Linux操作系统下安装Oracle的另外一个实例。

在得到众多网友帮助之后,终于解决以下问题

一,,安装新的实例
用Linux账户Oracle登录,找到bin目录下的dbca,然后创建了。默认是用pfile(init.ora)方式启动的.

二,解决启动多个实例的问题。
后来需要重启,于是:
使用Oracle远程登录(telnet),然后执行
export Oracle_SID=SID2
sqlplus /nolog
conn /as sysdba
startup

三,修改SGA
首先需要修改启动方式:
CREATE SPFILE='/Oracle/SPFILESID2.ORA' FROM PFILE;
SHUTDOWN IMMEDIATE
STARTUP
ALTER SYSTEM SET SGA_MAX_SIZE=3072M SCOPE=SPFILE (scope=memory|spfile|both)
SHUTDOWN IMMEDIATE
STARTUP
ALTER SYSTEM SET SGA_TARGET=3072M 

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!