linux上安装Oracle 11g r1详解说明

1、用unzip解压Oracle 11g文件

unzip linux_x86_11gR1_database.zip 解压后在datebase 目录中

启动监听:切换到oracle 输入:lsnrctl start

启动SQLplus 输入:sqlplus /nolog SQL>conn / as sysdba

防止出现乱码:export LANG=en_US

安装oracle指向目录:rpm -i --prefix=/路径/(在不经过图形界面的情况下)

把rpm安装包拷贝到linux上进行挂载:

mount -t iso9660 -o loop XXX.iso /media/cdrom

2、安装包安装

首先把安装系统的光盘mount到/mnt下,具体命令是mount /dev/cdrom /mnt

然后配置yum源:

vim /etc/yum.repos.d/server.repo

以下为此文件内容:

[base]

name=base

baseurl=file:///mnt/Server

enabled=1

gpgcheck=0

配置完后执行yum clean all,然后执行安装以下包:

yum install compat-db-4* compat-gcc-34-3* compat-gcc-34-c++-* compat-libstdc++-* elfutils-libelf-devel-* glibc-* glibc-devel-* gcc-* gcc-c++-* libaio-* libaio-devel-* libstdc++-devel-* libXp-* make-3* openmotif-* setarch-* sysstat-* unixODBC-* -y

3、系统参数和用户及目录设置

//系统参数设置

vi /etc/sysctl。conf

以下为此文件更改后的内容:

# Kernel sysctl configuration file for Red Hat Linux

#

# For binary values, 0 is disabled, 1 is enabled。See sysctl(8) and

# sysctl.conf(5) for more details.

# Controls IP packet forwarding

net。ipv4。ip_forward = 0

# Controls source route verification

net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing

net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel

kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename

# Useful for debugging multi-threaded applications

kernel。core_uses_pid = 1

# Controls the use of TCP syncookies

net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes

相关文档
有什么平台可以玩极速赛车 广西快3开奖 千禧彩票计划群 必发彩票计划群 9号棋牌APP 极速赛车开奖结果app pk10机器人 河北快3开奖 J8彩票计划群 智慧彩票投注