Home > Database > Mysql Tutorial > body text

Linux下安装Oracle数据库完整笔记

WBOY
Release: 2016-06-07 16:51:29
Original
971 people have browsed it

1.Linux下安装 jdk(Linux)建议从sun的主页上下载bin文件,运行后在/usr/会建立好java目录的Linux下相关命令bin#chmod +x j2sdk-1_4_2_04-Lin

1.Linux下安装 jdk(Linux)
建议从sun的主页上下载bin文件,运行后在/usr/会建立好java目录的

Linux下相关命令

bin

#chmod +x j2sdk-1_4_2_04-Linux-i586-rpm.bin

#./j2sdk-1_4_2_04-Linux-i586-rpm.bin

rpm

#rpm -ivh j2sdk-1_4_2_04-Linux-i586-rpm

2.配置好java的环境变量

# vi /etc/profile

在该文件中加入:

export JAVA_HOME = /usr/java/jdk1.6.0_05

export CLASSPATH = $JAVA_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH = $PATH:$JAVA_HOME/bin

3.安装Oracle需要的文件

以下的RPM开发包

gcc

cpp

glibc-devel

compat-libstdc++

glibc-kernheaders

binutils

可以使用命令来查看是否已安装了这些包

[root@pkuLinuxbosun root]# rpm -q gcc cpp compat-libstdc++ glibc-devel glibc-kernheaders binutils

然后安装,或者在系统设置/添加删除程序...选 开发工具

如果都不清楚的话,就把所有的开发工具都装上,Linux会计算包依赖关系

4.添加安装过程中需要用到的用户和组,这当中会用到二个用户一个是root,一个是Oracle

#groupadd oinstall

#groupadd dba

#useradd –g oinstall –G dba Oracle

#passwd Oracle

//然后输入新密码

5.新建安装目录

#mkdir –p /opt/Oracle/product/9.2.0

#chown –R Oracle.oinstall /opt/Oracle

#mkdir /var/opt/Oracle

#chown Oracle.dba /var/opt/Oracle

#chmod 755 /var/opt/Oracle

6.设置内核参数,调节信号灯及共享内存

(1)设置内核参数,,调节信号灯及共享内存:

vi /etc/sysctl.conf

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.shmall = 2097152

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

//输入完,按ESC,按:,输入wq 退出

7. Oracle对文件的要求:

编辑文件:/etc/security/limits.conf 加入以下语句:

Oracle    soft    nofile    65536

Oracle    hard    nofile   65536

Oracle    soft    nproc    16384

Oracle    hard    nproc    16384

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