oracle linux 5.8安装oracle 10数据库

1.下载oracle luinux 5.8和oracle 10g数据库软件

2.操作系统安装

(1).图形化界面安装

(2).系统分区

/       根分区(9G)

/home    安装oracle分区(10G)

swap     交换分区(1G)

(3).禁用防火墙

(4).禁用Selinux

3.搭建yum网络源

[[email protected] Server]# cd /etc/yum.repos.d/

[[email protected] yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo

[[email protected] yum.repos.d]# vim public-yum-el5.repo

[ol5_u8_base]

name=Oracle Linux $releasever Update 8 installation media copy ($basearch)

baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/8/base/$basearch/

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

gpgcheck=1

enabled=1     --开启

[[email protected] yum.repos.d]# yum repolist

4.安装系统依赖包

[[email protected] ]# yum install

binutils

compat-*

gcc-*

glibc-*

libXp

libXt

libXtst

libaio*

libgcc

libstdc++-*

libgomp

make

numactl-devel

sysstat -y

5.修改内核参数

[[email protected] ~]# vim /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

[[email protected] ~]# sysctl -p      --添加的参数生效

6.用户对系统的限制

[[email protected] ~]# vim /etc/security/limits.conf

oracle soft nproc 16384

oracle hard nproc 16384

oracle soft nofile 65536

oracle hard nofile 65536

[[email protected] ~]#

7.用户对shell的限制

[[email protected] ~]# vim /etc/profile

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

[[email protected] ~]# . /etc/profile

8.用户登陆验证模块

[[email protected] security]# vim /etc/pam.d/login

session   required     /lib/security/pam_limits.so

session   required     pam_limits.so

[[email protected] security]#

9.主机各与IP地址解析,修改系统版本

[[email protected] ~]# vim /etc/hosts

192.168.2.143  oracle1

[[email protected] ~]# vim /etc/redhat-release

Red Hat Enterprise Linux Server release 4 (Tikanga)

[[email protected] ~]# vim /etc/oracle-release

Oracle Linux Server release 4

[[email protected] ~]#

10.创建用户和用户组

[[email protected] ~]# groupadd  -g 500 oinstall

[[email protected] ~]# groupadd  -g 501 dba

[[email protected] ~]# useradd  -g oinstall -G dba oracle -d /home/oracle

[[email protected] ~]# chown -R oracle:oinstall /home/oracle

[[email protected] ~]# password oracle    --设置密码

11.用oracle用户登陆设置环境变量

[[email protected] ~]# su - oracle

[[email protected] ~]$ vim ~/.bash_profile

export ORACLE_BASE=/home/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1/db_1

export ORACLE_SID=orcl10

export PATH=$ORACLE_HOME/bin:$PATH

[[email protected] ~]$

12.解压oracle 10g软件并安装

[[email protected] ~]# zcat 10201_database_linux_x86_64.cpio.gz  | cpio  -idvm

[[email protected] ~]# xhost +

[[email protected] ~]# su - oracle

[[email protected] ~]# cd database/

[[email protected] database]# ./runInstaller

13.登陆oracle数据库

[[email protected] ~]# su - oracle

[[email protected] ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 22 14:41:09 2016

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

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options

SQL> show user;

USER is "SYS"

SQL>

时间: 07-21

oracle linux 5.8安装oracle 10数据库的相关文章

RAC分解步骤之一,在oracle linux 4u4上安装oracle 10.2.0.1.0操作日志

练习oracle的rac组建过程,第一步,先练习4u4上安装oracle 10.2.0.1.0.直接安装rac,有些难度.从简单的做起.总RAC步骤,参照小布老师的RAC组建. 1. 启动vc,登陆vsphere 5.1 , 2. 新建一个虚拟机,Redhat 4 32bit 兼容的虚拟机,内存1G,硬盘30G.移除软驱,把光驱选择为ISO镜像文件. 3. 启动虚拟机,选择英文,选择美式键盘,选择custom,选择自己手动分区.分区为2个,一个swap,2100M,强制主分区,另一个为ext3,

Oracle Linux 5.8安装Oracle 10.2.0.5 x64

一.正常方式全新安装 1. oracle安装环境准备 (1) 确认安装以下包 # rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-d

oracle linux 6.5 安装 oracle 12cR2数据库(3)-手工静默建CDB库

? 参考步骤: dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oradb.example.com -sid oradb -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 30 -emConfiguration LOCAL ? Enter SYSTEM user password: password Enter SYS us

oracle linux 4.8安装oracle 10g rac环境之cluster安装

安装环境: 操作系统:oracle linux 4.8 64位 集群软件:10201_clusterware_linux_x86_64.cpio.gz 数据库:10201_database_linux_x86_64.cpio.gz cpu:1颗 内存:必须1.5G以上(一般是2G) 本地磁盘:20G(根分区17G,swap是4G,boot分区是512M) asm下载地址:http://www.oracle.com/technetwork/server-storage/linux/download

Oracle Linux 6.5安装Oracle 11.2.0.4 x64

1. oracle11g安装环境准备 采用OEL6.5 x64安装,安装过程与Redhat一致,安装过程中选中桌面,开发包,开发库,其它默认选项.   Desktops > X Window System    Development > Additional Development    Development > Development Tools 安装好后:   (1) 关闭selinux    (2) 关闭iptables    (3) 重启 2. 开始安装基础包(放入光盘.或挂

oracle linux 5.5安装oracle 11g rac环境

安装环境: 操作系统:oracle linux 5.5 64位 集群软件:linux.x64_11gR2_grid.zip 数据库:linux.x64_11gR2_database_1of1.zip,linux.x64_11gR2_database_1of2.zip asm软件:oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm       oracleasmlib-2.0.4-1.el5.x86_64.rpm       oracleasm-supp

Oracle Linux 6.5安装Oracle 11gr2

终于开始安装ASM和RAC的行程了. Linux下准备工作 vi /etc/selinux/config-------永久关闭selinux SELINUX=disabled--------然后重启服务器   chkconfig iptables off 重启永久关闭防火墙 安装包 mount /dev/cdrom /mnt cd /mnt/cdrom/Server/Packages rpm -Uvh binutils-2*x86_64*   rpm -Uvh glibc-2*x86_64* n

oracle linux 4.8安装oracle 10g rac环境之database安装

1.安装oracle database软件 [[email protected] ~]$ cd database/ [[email protected] database]$ ./runInstaller rac10g01节点: [[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh Running Oracle10 root.sh script... The following environment variab

linux 之静默安装oracle

Web服务器上面的Linux一般是不会有图形界面的,所有通过图形界面来安装Linux的方式在没有图形界面的Linux上面是行不通的,我们要使用的安装方式叫做Linux的静默安装.即在没有图形界面的Linux上面安装. 1. 下载地址 http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html 下载.tar.gz文件即可,oracle在Window上面是有分位数的,但在linux上面没有分,只