oracle12cR2单实例如何安装-创新互联

小编给大家分享一下oracle 12cR2单实例如何安装,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

为上饶等地区用户提供了全套网页设计制作服务,及上饶网站建设行业解决方案。主营业务为网站建设、做网站、上饶网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

[root@localhost ~]# cat /etc/yum.repos.d/kingsql.repo

[kingsql]

name=kingsql 

baseurl=file:///mnt

enabled=1

gpgcheck=0

gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release

yum -y install binutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC-devel pdksh compat-libcap1 libXext* libXtst* libX11* libXau* libxcb* libXi* nscd* libXp*  xorg*  xterm*  unzip* readline* compat*

[root@localhost ~]# chkconfig avahi-daemon off

注意:正在将请求转发到“systemctl disable avahi-daemon.service”。

Removed symlink /etc/systemd/system/multi-user.target.wants/avahi-daemon.service.

Removed symlink /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service.

[root@localhost ~]#  ps -ef | grep avahi

avahi      823     1  0 10:06 ?        00:00:00 avahi-daemon: running [linux.local]

avahi      859   823  0 10:06 ?        00:00:00 avahi-daemon: chroot helper

root     16790 16206  0 10:27 pts/0    00:00:00 grep --color=auto avahi

[root@localhost ~]# kill -9 823

[root@localhost ~]#  ps -ef | grep avahi

root     16794 16206  0 10:27 pts/0    00:00:00 grep --color=auto avahi

[root@localhost ~]# vi /etc/sysconfig/network

# Created by anaconda

NOZEROCONF=yes

vi /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

[root@localhost ~]# systemctl stop firewalld

[root@localhost ~]# systemctl disable firewalld  

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

[root@db12c ~]# firewall-cmd --state 

not running

groupadd -g 1000 oinstall

groupadd -g 1300 dba

groupadd -g 1301 oper

useradd -m -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle

passwd oracle

mkdir -p /u01/app/oracle

chown -R oracle:oinstall /u01

chmod -R 775 /u01

ls -lR /u01

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/12.2/dbhome_1

export ORACLE_SID=kingsql

export ORACLE_TERM=xterm

export PATH=/usr/sbin:$PATHexport PATH=/u01/app/ogg:$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=/u01/app/ogg:$ORACLE_HOME/lib:/lib:/usr/lib:$LD_LIBRARY_PATH

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

export ORACLE_UNQNAME=kingsql

vi /etc/sysctl.conf//加入下面参数

fs.file-max = 6815744

kernel.sem = 250 32000 100 128

kernel.shmmni = 4096

kernel.shmall = 1073741824

kernel.shmmax = 4398046511104

kernel.panic_on_oops = 1

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

net.ipv4.conf.all.rp_filter = 2

net.ipv4.conf.default.rp_filter = 2

fs.aio-max-nr = 1048576

net.ipv4.ip_local_port_range = 9000 65500 

/sbin/sysctl -p

vi /etc/security/limits.conf

//加入下面参数

oracle   soft    nofile   1024

oracle   hard    nofile   65536

oracle   soft    nproc    16384

oracle   hard    nproc    16384

oracle   soft    stack    10240

oracle   hard    stack    32768

oracle   hard    memlock  134217728

oracle   soft    memlock  134217728

[root@meihailetest1 ~]#vi /etc/pam.d/login

//加入下面参数

session    required     pam_limits.so

vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         

localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.242.133  dbora12c

vi /etc/hostname

dbora12c

以上是“oracle 12cR2单实例如何安装”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联-成都网站建设公司行业资讯频道!


网页名称:oracle12cR2单实例如何安装-创新互联
本文网址:http://azwzsj.com/article/ppsji.html