关注分享主机优惠活动
国内外VPS云服务器

在linux上安装oracle需要注意哪些事项(在Linux上安装Oracle数据库的步骤)

本文主要介绍“在Linux上安装Oracle需要注意哪些事项”。在日常操作中,相信很多人都有疑问,在Linux上安装Oracle需要注意哪些事项。主机频道查阅了各种资料,整理了简单易用的操作方法,希望能帮你解答“在Linux上安装Oracle需要注意哪些事项”的疑惑!接下来请跟着主机频道学习!

准备工作/即将开始工作

在安装Oracle之前,您需要准备以下文件。

在Oracle官方网站下载Linux的Oracle安装文件。

(1)适用于Oracle Linux 7的Oracle database 12c第1版企业版下载地址:

http://download . Oracle . com/OTN/Linux/Oracle 12c/121020/Linux amd 64 _ 12102 _ database _ 1of 2 . zip

http://download . Oracle . com/OTN/Linux/Oracle 12c/121020/Linux amd 64 _ 12102 _ database _ 2of 2 . zip

(2)适用于Oracle Linux 7的Oracle database 11g第2版企业版下载地址:

http://download . Oracle . com/OTN/Linux/Oracle 11g/R2/Linux . x64 _ 11gr 2 _ database _ 1of 2 . zip

http://download . Oracle . com/OTN/Linux/Oracle 11g/R2/Linux . x64 _ 11gr 2 _ database _ 2of 2 . zip

(3) Oracle数据库10g第2版Oracle Linux 7企业版下载地址:

http://download . Oracle . com/OTN/Linux/Oracle 10g/10201/Linux _ 10201 _ database _ Linux _ x86 _ 64 . cpio . gz

安装必要的软件

在安装Oracle之前,您需要安装一些必要的软件:

sudo yum-y install binutils . x86 _ 64 compat-libcap 1 . x86 _ 64 gcc . x86 _ 64 gcc-c++ . x86 _ 64 glibc . i686 glibc . x86 _ 64 glibc-devel . i686 glibc-devel . x86 _ 64 ksh com pat-libstdc++-33 libaio . i686 libaio . x86 _ 64 libaio-devel . i686 libaio-devel . x86 _ 1

配置Linux系统参数

运行以下命令:

sudo vi /etc/sysctl.conf

在文本编辑器中添加以下内容:

fs . file-max = 6815744 kernel . SEM = 250 32000 100 128 net . IP v4 . IP _ local _ port _ range = 9000 65500 net . core . rmem _ default = 262144 net . core . rmem _ max = 41943 04 net . core . wmem _ default = 262144 net . core . wmem _ max = 1048586

运行以下命令:

sudo sysctl -p

添加用户

运行以下命令添加名为oracle的用户:

sudo组添加oinstall sudo组添加dba sudo用户add -g oinstall -G dba oracle

运行以下命令设置oracle用户密码:

密码oracle

配置环境变量

运行以下命令:

sudo vi /etc/profile

在文本编辑器中添加以下内容:

export ORACLE _ BASE =/opt/ORACLE export ORACLE _ HOME = $ ORACLE _ BASE/product/12 . 1 . 0/dbhome _ 1 export ORACLE _ SID = orcl export PATH = $ ORACLE _ HOME/bin:$ PATH

安装Oracle

解压缩Oracle安装文件:

解压Linux amd 64 _ 12102 _ database _ 1of 2 . zip-d/tmp/database unzil Linux amd 64 _ 12102 _ database _ 2of 2 . zip-d/tmp/database

或者

unzip Linux . x64 _ 11gr 2 _ database _ 1of 2 . zip-d/tmp/database unzil Linux . x64 _ 11gr 2 _ database _ 2of 2 . zip-d/tmp/database

或者

gunzip Linux _ 10201 _ database _ Linux _ x86 _ 64 . cpio . gz cpio-id & lt;linux _ 10201 _数据库_linux_x86_64.cpio

安装Oracle:

sudo su-Oracle/tmp/数据库/数据库/runInstaller

Oracle安装向导将启动。按照向导中的说明进行操作。

安装完成后的操作

Oracle安装完成后,您需要执行一些必要的操作:

(1)设置环境变量:

sudo vi /etc/profile

在文本编辑器中添加以下内容:

export ORACLE _ BASE =/opt/ORACLE export ORACLE _ HOME = $ ORACLE _ BASE/product/12 . 1 . 0/dbhome _ 1 export ORACLE _ SID = orcl export PATH = $ ORACLE _ HOME/bin:$ PATH

(2)重启服务器:

sudo重启

(3)启动Oracle:

在终端中执行以下命令:

sqlplus /nolog连接/作为sysdba启动

未经允许不得转载:主机频道 » 在linux上安装oracle需要注意哪些事项(在Linux上安装Oracle数据库的步骤)

评论 抢沙发

评论前必须登录!