久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

如何安裝oracle12c單實(shí)例數(shù)據(jù)庫(kù)軟件

共計(jì) 4274 個(gè)字符,預(yù)計(jì)需要花費(fèi) 11 分鐘才能閱讀完成。

這篇文章主要介紹如何安裝 oracle12c 單實(shí)例數(shù)據(jù)庫(kù)軟件,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

一、環(huán)境準(zhǔn)備

[oracle@localhost ~]$ df -hl 查看內(nèi)存情況

磁盤空間需要 6.4GB,/tmp 分區(qū)需要 1GB 

[oracle@localhost ~]$ df -hl /tmp 

內(nèi)存配置 4G,swap 配置 2G

[oracle@localhost ~]$ grep MemTotal /proc/meminfo

[oracle@localhost ~]$ cat /proc/swaps

操作系統(tǒng):Red Hat Enterprise Linux Server
release 7

[oracle@localhost ~]$ cat
/etc/redhat-release

安裝包 yum -y install package*
把所有包安裝

binutils-2.23.52.0.1-12.el7.x86_64 
compat-libcap1-1.10-3.el7.x86_64
compat-libstdc++-33-3.2.3-71.el7.i686 
compat-libstdc++-33-3.2.3-71.el7.x86_64
gcc-4.8.2-3.el7.x86_64 
gcc-c++-4.8.2-3.el7.x86_64 
glibc-2.17-36.el7.i686 
glibc-2.17-36.el7.x86_64 
glibc-devel-2.17-36.el7.i686 
glibc-devel-2.17-36.el7.x86_64 
libaio-0.3.109-9.el7.i686 
libaio-0.3.109-9.el7.x86_64 
libaio-devel-0.3.109-9.el7.i686 
libaio-devel-0.3.109-9.el7.x86_64 
libgcc-4.8.2-3.el7.i686 
libgcc-4.8.2-3.el7.x86_64 
libstdc++-4.8.2-3.el7.i686 
libstdc++-4.8.2-3.el7.x86_64 
libstdc++-devel-4.8.2-3.el7.i686 
libstdc++-devel-4.8.2-3.el7.x86_64 
libXi-1.7.2-1.el7.i686 
libXi-1.7.2-1.el7.x86_64 
libXtst-1.2.2-1.el7.i686 
libXtst-1.2.2-1.el7.x86_64 
make-3.82-19.el7.x86_64 
sysstat-10.1.5-1.el7.x86_64

查看組是否存在  

[root@localhost ~]# grep oinstall
/etc/group

[root@localhost ~]# grep dba /etc/group

創(chuàng)建組 oninstall 與 dba

[root@localhost ~]# /usr/sbin/groupadd
oinstall

[root@localhost ~]# /usr/sbin/groupadd dba

[root@localhost ~]# /usr/sbin/groupadd oper

查看 oracle 用戶 是否存在

[root@localhost ~]# id oracle

創(chuàng)建 oracle 用戶

[root@localhost ~]# /usr/sbin/useradd -g
oinstall -G dba,oper oracle

若已有 oracle 則報(bào)錯(cuò)存在

[root@localhost ~]# passwd oracle

為 oracle 創(chuàng)建密碼

設(shè)置資源限制:

[root@localhost ~]# vi /etc/sysctl.conf

在文末添加:

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

使更改生效

[root@localhost ~]# /sbin/sysctl -p

設(shè)置安裝用戶的資源限制:

[root@localhost ~]# vi
/etc/security/limits.conf

在 root 下,添加

oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 10240

創(chuàng)建 oracle 安裝目錄并分配權(quán)限

[root@localhost ~]# mkdir /u01

[root@localhost ~]# chown -R
oracle:oinstall /u01

[root@localhost ~]# chmod -R 775 /u01

為 oracle 用戶設(shè)置環(huán)境變量

[li@localhost ~]$ su – oracle

Password:

[oracle@localhost ~]$

[oracle@localhost ~]$ vi ~/.bash_profile

# .bash_profile

# Get the aliases and functions

if [-f ~/.bashrc]; then

 
. ~/.bashrc

fi

# User specific environment and startup
programs

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_BASE=/u01/app/oracle

export
ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1

export PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_SID=db12c

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

如何切換到 oracle 用戶

Su – oracle

在 temp 下創(chuàng)建 oracle 然后把 12c 壓縮包解壓在里面

在 oracle 用戶下

[li@localhost ~]$ su oracle

Password:

[oracle@localhost]$ cd /u01/software/database

[oracle@localhost database]$ ls

install 
response  rpm  runInstaller 
sshsetup  stage  welcome.html

執(zhí)行安裝
[oracle@localhost database]$ ./runInstaller
1、彈出此界面,不勾選選項(xiàng)(如果有也可以填寫)然后 next

2、此處選擇僅安裝數(shù)據(jù)庫(kù)軟件,然后 next

3、選擇安裝單實(shí)例數(shù)據(jù)庫(kù),然后 next

4、選擇安裝企業(yè)版,然后 next
5、安裝路徑默認(rèn)安裝
6、默認(rèn)安裝 next

7、組默認(rèn) next

8、這里會(huì)檢查是否有安裝相關(guān)的包,可以新打開(kāi)一個(gè)窗口 yum 安裝包,然后檢查
(這里檢查的錯(cuò)誤最好都想辦法使得沒(méi)有錯(cuò)誤,不然在啟動(dòng)時(shí)會(huì)報(bào)錯(cuò))

9、點(diǎn)擊 install 開(kāi)始安裝

10、在 root 下執(zhí)行兩條腳本

[root@localhost ~]#
/u01/app/oraInventory/orainstRoot.sh

Changing permissions of
/u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for
world.

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

The execution of the script is complete.

[root@localhost ~]#
/u01/app/oracle/product/12.2.0/dbhome_1/root.sh

Performing root user operation.

The following environment variables are set
as:

 
ORACLE_OWNER= oracle

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

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

 
Copying dbhome to /usr/local/bin …

 
Copying oraenv to /usr/local/bin …

 
Copying coraenv to /usr/local/bin …

Creating /etc/oratab file…

Entries will be added to the /etc/oratab
file as needed by

Database Configuration Assistant when a
database is created

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/dbhome_1/install/root_localhost.localdomain_2018-04-30_07-56-19-938348191.log

Finished installing Oracle Trace File
Analyzer (TFA)

執(zhí)行完腳本,數(shù)據(jù)庫(kù)軟件安裝完成

以上是“如何安裝 oracle12c 單實(shí)例數(shù)據(jù)庫(kù)軟件”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道!

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-24發(fā)表,共計(jì)4274字。
轉(zhuǎn)載說(shuō)明:除特殊說(shuō)明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請(qǐng)注明出處。
評(píng)論(沒(méi)有評(píng)論)
主站蜘蛛池模板: 武夷山市| 承德市| 辽宁省| 道真| 华阴市| 湖北省| 宁国市| 遂宁市| 青河县| 儋州市| 卓资县| 剑川县| 蒙山县| 山东| 白水县| 怀安县| 尤溪县| 旬阳县| 佛山市| 沁水县| 闽侯县| 永寿县| 龙口市| 天长市| 陈巴尔虎旗| 曲沃县| 乌兰浩特市| 屯昌县| 中牟县| 西充县| 吐鲁番市| 屯昌县| 舒兰市| 微山县| SHOW| 峨边| 华亭县| 衢州市| 高阳县| 宝应县| 长寿区|