版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Oracle 11g 數(shù)據(jù)庫單機(jī)安裝文檔1.配置Linux Kernel在sysctl.conf文件添加一下內(nèi)容kernel.shmmax = 68719476736kernel.shmall = 4294967296kernel.shmmni = 4096kernel.sem = 250 32000 100 142fs.file-max = 6815744net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 1048576net.core.rmem_max = 4194304net.core.wmem_default
2、 = 262144net.core.wmem_max = 2097152vm.swappiness=40vm.vfs_cache_pressure=200vm.min_free_kbytes=409600fs.aio-max-nr=3145728rootORACLEDB data# sysctl -pnet.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ip
3、v4.tcp_syncookies = 1error: net.bridge.bridge-nf-call-ip6tables is an unknown keyerror: net.bridge.bridge-nf-call-iptables is an unknown keyerror: net.bridge.bridge-nf-call-arptables is an unknown keykernel.msgmnb = 65536kernel.msgmax = 65536kernel.shmmax = 68719476736kernel.shmall = 4294967296kerne
4、l.shmmax = 68719476736kernel.shmall = 4294967296kernel.shmmni = 4096kernel.sem = 250 32000 100 142fs.file-max = 6815744net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 1048576net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 2097152vm.swappiness = 40vm.vfs_
5、cache_pressure = 200vm.min_free_kbytes = 409600fs.aio-max-nr = 31457282.為oracle用戶配置Resource Limit 參數(shù)在/etc/security/limits.conf 文件末尾添加如下內(nèi)容oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 655363.檢查防火墻、SElinux配置 rootORACLEDB # iptables -LChain INPUT (policy ACCEPT)
6、target prot opt source destination Chain FORWARD (policy ACCEPT)target prot opt source destination Chain OUTPUT (policy ACCEPT)target prot opt source destination rootORACLEDB #rootORACLEDB # /usr/sbin/sestatus -vSELinux status: disabled4.創(chuàng)建oracle用戶及其用戶組rootORACLEDB # groupadd oinstallrootORACLEDB #
7、groupadd dbarootORACLEDB # groupadd operrootORACLEDB # rootORACLEDB # useradd -g oinstall -G dba,oper oraclerootORACLEDB # passwd oracle Changing password for user oracle.New password: Retype new password: passwd: all authentication tokens updated successfully.5.創(chuàng)建oracle software安裝目錄及賦予相應(yīng)權(quán)限r(nóng)ootORACL
8、EDB # mkdir -p /u01/app/oracle/product/11.2.0/db_1rootORACLEDB # chown -R oracle:oinstall /u01/approotORACLEDB # rootORACLEDB # chmod -R 775 /u01/app6.安裝相應(yīng)軟件包yum install compat-libcap1yum install compat-libstdc+-33yum install libstdc+-develyum install gccyum install gcc-c+yum install kshyum install
9、glibc-develyum install libaio-devel7.配置用戶環(huán)境變量oracleORACLEDB $ vim .bash_profile # .bash_profile# Get the aliases and functionsif -f /.bashrc ; then . /.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHORACLE_BASE=/u01/app/oracleORACLE_HOME=$ORACLE_BASE/product/1
10、1.2.0/db_1ORACLE_SID=bjbdPATH=$PATH:$ORACLE_HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID PATHoracleORACLEDB $ oracleORACLEDB $ . .bash_profile8.通過xmanager連接oracle用戶安裝,步驟如下:使用root用戶執(zhí)行此處兩個腳本:rootORACLEDB # /u01/app/oraInventory/orainstRoot.shChanging permissions of /u01/app/oraInventory.Adding re
11、ad,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.rootORACLEDB # /u01/app/oracle/product/11.2.0/db_1/root.shPerforming root user operation for Oracle 11g The following envir
12、onment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1Enter 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.Ent
13、ries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.Finished product-specific root actions.9.配置監(jiān)聽服務(wù)檢查監(jiān)聽服務(wù)oracleORACLEDB $ lsnrctl statusLSNRC
14、TL for Linux: Version 11.2.0.4.0 - Production on 15-DEC-2015 13:15:25Copyright (c) 1991, 2013, Oracle. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ORACLEDB)(PORT=1521)STATUS of the LISTENER-Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.4.0 - ProductionStart Date 15-DEC-2015 13:14:35Uptime 0 days 0 hr. 0 min. 51 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.oraListener Log File /u01/app/oracle/diag/tnslsnr/ORACLEDB/listener/a
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 內(nèi)分泌科科普
- 內(nèi)分泌用藥官方培訓(xùn)課件
- 冀時調(diào)培訓(xùn)課件
- 獸藥質(zhì)檢流程培訓(xùn)課件
- 計量確認(rèn)記錄的管理制度(3篇)
- 車站精細(xì)管理制度(3篇)
- 酒店給水設(shè)備區(qū)管理制度(3篇)
- 獸藥GSP培訓(xùn)課件
- 《GA 447-2003警服材料 精梳滌棉混紡格子布》專題研究報告
- 2026年及未來5年市場數(shù)據(jù)中國KTV點(diǎn)歌系統(tǒng)行業(yè)市場競爭格局及發(fā)展趨勢預(yù)測報告
- 《山東省市政工程消耗量定額》2016版交底培訓(xùn)資料
- 《中醫(yī)六經(jīng)辨證》課件
- 掛名合同協(xié)議書
- 蘇教版高中化學(xué)必修二知識點(diǎn)
- 2024年國家公務(wù)員考試國考中國人民銀行結(jié)構(gòu)化面試真題試題試卷及答案解析
- 2025年中考語文一輪復(fù)習(xí):民俗類散文閱讀 講義(含練習(xí)題及答案)
- 高中數(shù)學(xué)選擇性必修一課件第一章 空間向量與立體幾何章末復(fù)習(xí)(人教A版)
- 標(biāo)準(zhǔn)商品房買賣合同文本大全
- LY/T 3408-2024林下經(jīng)濟(jì)術(shù)語
- 2025年湖南邵陽市新邵縣經(jīng)濟(jì)開發(fā)區(qū)建設(shè)有限公司招聘筆試參考題庫附帶答案詳解
- 2023-2024學(xué)年八年級(上)期末數(shù)學(xué)試卷
評論
0/150
提交評論