oracle12c单实例安装,Oracle 12c 单实例安装

一、准备工作

实验环境:Redhat 6.6   Oracle 12c 12.2.0.1

1、官网下载

2、安装所需rpm包

# rpm -q binutils compat-libcap1 gcc-c++ compat-libstdc++-33 gcc gcc-c++e2fsprogs e2fsprogs-libs glibc glibc-devel ksh libaio-devel libaio libgcc libstdc++ libstdc++-devel libxcb libX11 libXau libXi libXtst make net-tools nfs-utils smartmontools sysstat

所需要镜像中都包含,所以可以通过本地yum方式进行安装

3、创建用户组

[root@RmanDB tools]# groupadd -g 54321oinstall

[root@RmanDB tools]# groupadd-g 54322dba

[root@RmanDB tools]# groupadd-g 54323 oper

4、创建用户

[root@RmanDB tools]# useradd -u 54321 -g oinstall -G dba,oper oracle

5、创建目录

mkdir -p /u01/app/oracle/product/12.2.0/db_1

[root@RmanDB tools]# chown-R oracle:oinstall /u01/app

[root@RmanDB tools]# chmod-R 775 /u01/app

6、配置环境变量

配置oracle用户

vim .bash_profile

#ORACLE

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/12.2.0/db_1

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/bin:$PATH

export ORACLE_SID=gnnt1

ORACLE_HOSTNAME=RmanDB

export ORACLE_OWNER=oracle

export ORACLE_TERM=vt100

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

export DISPLAY=192.168.10.2:0.0

7、配置内核

注意:配置大于系统数据需要配置更改,否则不需要配置。

d2e92b1ba4e1a99f102028d7fd49c7f5.png

vim /etc/sysctl.conf

添加如下配置

#ORACLE

fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.sem= 250 32000 100 128kernel.shmmni= 4096kernel.shmall= 1073741824kernel.shmmax= 6597069766656kernel.panic_on_oops= 1net.ipv4.ip_local_port_range= 9000 65500net.core.rmem_default= 262144net.core.rmem_max= 4194304net.core.wmem_default= 262144net.core.wmem_max= 1048576

配置完成 sysctl -p 刷新生效

8、设置进程数和最大会话数

vi /etc/security/limits.conf

添加使用如下设置。

oracle soft nproc2047oracle hard nproc16384oracle soft nofile1024oracle hard nofile65536oracle soft stack10240oracle hard stack10240

二、安装过程

1、解压

[root@RmanDB tools]# mkdir -p /u01/app/tmp

[root@RmanDB tools]# chown -R oracle:oinstall /u01/app/tmp

[root@RmanDB tools]# chmod -R 775 /u01/app/tmp

将下载的安装包解压

[oracle@RmanDB tmp]$ unzip /tools/linuxx64_12201_database.zip

[oracle@RmanDB tmp]$ ll

total4drwxr-xr-x. 7 oracle oinstall 4096 Jan 27 2017 database

2、执行安装

[oracle@RmanDB ~]$ /u01/app/tmp/database/runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than500 MB. Actual 175476MB Passed

Checking swap space: must be greater than150 MB. Actual 81019MB Passed

Checking monitor: must be configured to display at least256colors>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<

continuing with the installation,

Continue? (y/n) [n] y>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installerfrom /tmp/OraInstall2018-11-23_04-21-02PM. Please wait ...

52d4d8995f01265ed6ae634c3782de96.png

看你的需求选择是要只安装数据库软件还是软件+配置库

383bb6b51f30a63a735c447bfb25563e.png

安装单实例

4654aeed335c2f0b46712e52355fd122.png

cbb131959efd6bfa6037a33a8ff9a21f.png

acee04ab72cc18fa0df6242fe0abb9e9.png

a0622571eb0325990da1053db287f4f1.png

55806fd0a9a1763b84429239ee1660da.png

a29f68a45e82413ce4ebce4eb11196f9.png

如果检查出问题,请先解决再行安装否则可能安装失败

1fbb99b4cf022ae398e4ad740a8b709a.png

等待安装

6d8d3b1961b2f393f15d7ce1b29d6c58.png

使用root用户执行脚本

[root@RmanDB tmp]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of/u01/app/oraInventory.

Adding read,write permissionsforgroup.

Removing read,write,execute permissionsforworld.

Changing groupname of/u01/app/oraInventory to oinstall.

The execution of the scriptiscomplete.

[root@RmanDB tmp]#/u01/app/oracle/product/12.2.0/db_1/root.sh

Performing root user operation.

The following environment variables areset as:

ORACLE_OWNER=oracle

ORACLE_HOME= /u01/app/oracle/product/12.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of"dbhome"have not changed. No need to overwrite.

The contents of"oraenv"have not changed. No need to overwrite.

The contents of"coraenv"have not changed. No need to overwrite.

Entries will be added to the/etc/oratab file asneeded by

Database Configuration Assistant when a databaseiscreated

Finished running generic part of root script.

Now product-specific root actions will be performed.

Do you want to setup Oracle Trace File Analyzer (TFA) now? yes|[no] :

yes

Installing Oracle Trace File Analyzer (TFA).

Log File:/u01/app/oracle/product/12.2.0/db_1/install/root_RmanDB_2018-11-23_16-58-31-820480200.log

Finished installing Oracle Trace File Analyzer (TFA)

a274fe80daa7998655638faf7e11d8a0.png

到此,数据库软件安装完成!

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值