在Red Hat 4 AS U7上安裝oracle10gR2

軟件:Red Hat 4 AS U7, Oracle 10g R2 for linux32, VMWare 7, Windows 7

?

詳細步驟清單:

在Red Hat 4 AS U7上安裝oracle10gR2 1. 硬件需求: =========================================== 至少1024MB物理內存 # grep MemTotal /proc/meminfo =========================================== 交換空間大小分配需求 物理內存:1024 MB ~ 2048 MB, 1.5倍物理內存 物理內存:2049 MB ~ 8192 MB, 1倍物理內存 物理內存:8192 MB ~,0.75倍物理內存 # grep SwapTotal /proc/meminfo =========================================== /tmp目錄至少留有400 MB空間 # df -k /tmp =========================================== 1.5 GB至3.5 GB用于安裝Oracle軟件 # df -k =========================================== 1.2 GB用于預安裝Oracle數據庫 # df -k =========================================== 2. 軟件需求: Red Hat Enterprise Linux 4.0需要安裝如下包: binutils-2.15.92.0.2-13.EL4 compat-db-4.1.25-9 compat-libstdc++-296-2.96-132.7.2 control-center-2.8.0-12 gcc-3.4.3-22.1.EL4 gcc-c++-3.4.3-22.1.EL44 glibc-2.3.4-2.9 glibc-common-2.3.4-2.9 gnome-libs-1.4.1.2.90-44.1 libstdc++-3.4.3-22.1 libstdc++-devel-3.4.3-22.1 make-3.80-5 pdksh-5.2.14-30 sysstat-5.0.5-1 xscreensaver-4.18-5.rhel4.2 setarch-1.6-1 =========================================== rpm -q binutils compat-db compat-libstdc++ control-center gcc gcc-c++ glibc glibc-common rpm -q gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch [root@ora10g ~]# cd /media/cdrom/RedHat/RPMS [root@ora10g RPMS]# rpm -Uvh compat-db* 在安裝rpm包時,如果遇到相關性檢查并報如下錯誤時,可通過安裝glibc-kernheaders-2.4-9.1.103.EL.i386.rpm 解決: kernel-headers is needed by glibc-headers-2.3.4-2.41.i386 kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.41.i386 Ref:http://hi.baidu.com/wa0362/blog/item/023337efffd4ff1efcfa3ca9.html =========================================== 檢查red hat發行版本號: # cat /etc/issue =========================================== 檢查內核版本號: # uname -r =========================================== 查詢相應package是否安裝: # rpm -q package_name =========================================== 3. 網絡需求: =========================================== 檢查是否使用/etc/hosts進行名字解析(name resolution),如下命名應有files結果返回 # cat /etc/nsswitch.conf | grep hosts [root@ora10g ~]# cat /etc/nsswitch.conf | grep hosts #hosts: db files ldap nis dns hosts: files dns =========================================== 檢查主機名是否設置,如下命令應有類似結果(myhost.mycomputer.com)返回: # hostname [root@ora10g ~]# hostname ora10g =========================================== 檢查域名是否沒有被動態設置,如下命令不應返回任何結果: # domainname [root@ora10g ~]# domainname (none) =========================================== 檢查hosts文件是否包含完整的描述名稱(the fully qualified host name),如下命令應有類似結果( 192.168.100.16 myhost.us.mycompany.com myhost 127.0.0.1 localhost localhost.localdomain )返回: # cat /etc/hosts | grep `eval hostname` [root@ora10g ~]# cat /etc/hosts | grep `eval hostname` 192.168.168.213 ora10g.kl.com ora10g [root@ora10g ~]# =========================================== 4. 創建必要的操作系統組和用戶: oinstall組,必需,Oracle產品目錄組(Oracle Inventory Group): 如果如下命令沒有類似結果( inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall )返回,則必需創建該組: # more /etc/oraInst.loc 創建oinstall組 # /usr/sbin/groupadd oinstall =========================================== dba組,必需,如果需要使用不同的名字,則需要在安裝Oracle是進行指定, 可為不同的oracle安裝指定不同的dba組: 創建dba組 # /usr/sbin/groupadd dba =========================================== oper組,可選,該組用來區分dba的普通用戶,權限為SYSOPER: 創建oper組 # /usr/sbin/groupadd oper =========================================== 創建oracle安裝用戶 確認用戶是否存在,如果存在如下命令將有類似結果( uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper) )返回: # id oracle 不存在則可使用如下命令創建用戶,存在請更換用戶名: # /usr/sbin/useradd -g oinstall -G dba[,oper] oracle 設置密碼: # passwd oracle =========================================== [root@ora10g RPMS]# more /etc/oraInst.loc /etc/oraInst.loc: No such file or directory [root@ora10g RPMS]# /usr/sbin/groupadd oinstall [root@ora10g RPMS]# /usr/sbin/groupadd dba [root@ora10g RPMS]# groupadd oper [root@ora10g RPMS]# id oracle id: oracle: No such user [root@ora10g RPMS]# useradd -g oinstall -G dba,oper oracle [root@ora10g RPMS]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. =========================================== 5. 配置內核參數 檢查/etc/sysctl.conf是否有如下配置,有且值比一下配置的大則保留,否則替換成以下值: kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144 以上內核參數需要重啟后生效。 =========================================== [root@ora10g RPMS]# cat /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 [root@ora10g RPMS]# vi /etc/sysctl.conf [root@ora10g RPMS]# cat /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename. # Useful for debugging multi-threaded applications. kernel.core_uses_pid = 1 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 1048576 net.core.rmem_max = 1048576 net.core.wmem_default = 262144 net.core.wmem_max = 262144 [root@ora10g RPMS]# =========================================== 針對oracle用戶設置Shell的限制以優化性能 ------------------------------------------- 在/etc/security/limits.conf 文件中增加如下配置: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 ------------------------------------------- 在/etc/pam.d/login 文件中增加如下配置: session required /lib/security/pam_limits.so session required pam_limits.so ------------------------------------------- 在/etc/profile 文件中增加如下配置,適用于 Bash或者Korn shell: if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi =========================================== 6. 標識必需的軟件目錄 檢查是否已經oracle根目錄(Oracle Base Directory)已經存在: # more /var/opt/oracle/oraInst.loc 沒有則使用如下命令創建oracle根目錄: # mkdir -p /mount_point/app/oracle_sw_owner # chown -R oracle:oinstall /mount_point/app/oracle_sw_owner # chmod -R 775 /mount_point/app/oracle_sw_owner mount_point:為掛載點,如u01。 oracle_sw_owner:為安裝oracle軟件的用戶名,如oracle。 ------------------------------------------- [root@ora10g ~]# mkdir -p /u01/app/oracle [root@ora10g ~]# chown -R oracle:oinstall /u01/app/oracle/ [root@ora10g ~]# chmod -R 775 /u01/app/oracle/ [root@ora10g ~]# ------------------------------------------- 目錄創建好后需要設置環境變量ORACLE_BASE,使其指向/mount_point/app/oracle_sw_owner。 Bourne, Bash, or Korn shell: $ ORACLE_BASE=/u01/app/oracle $ ORACLE_SID=sales $ export ORACLE_BASE ORACLE_SID ------------------------------------------- [oracle@ora10g ~]$ ORACLE_BASE=/u01/app/oracle [oracle@ora10g ~]$ ORACLE_SID=ora10g [oracle@ora10g ~]$ export ORACLE_BASE ORACLE_SID [oracle@ora10g ~]$ =========================================== 設置建立文件和文件夾時預設的權限掩碼: 如果是Bourne shell (sh), Bash shell (bash), or Korn shell (ksh),執行如下命名編輯用戶shell啟動文件: $ vi .bash_profile 然后編輯或者增加如下行(umask 022相當與每建立一個文件或文件夾時都chmod 755): umask 022 最后運行該啟動腳本使其生效: Bash shell: $ . ./.bash_profile Bourne or Korn shell: $ . ./.profile ------------------------------------------- [oracle@ora10g ~]$ vi .bash_profile [oracle@ora10g ~]$ . ./.bash_profile [oracle@ora10g ~]$ umask 0022 =========================================== 執行以下命令以確認 ORACLE_HOME 和 TNS_ADMIN 環境變量沒有被設置: $ unset ORACLE_HOME $ unset TNS_ADMIN =========================================== 注意:所有的環境變量都是在oracle用戶下設置的。 以上步驟完成后即可在oracle 10g r2的軟件安裝目錄下執行如下命令進行安裝: ./runInstaller 安裝的時候最好選擇custom方式的安裝,這樣可以看到很多環境變量里面自定義的參數被應用到了哪些地方。 ------------------------------------------- [oracle@ora10g database]$ ./runInstaller =========================================== 《全篇完》 Ref: 《Database Installation Guide for Linux x86》 - Preinstallation Tasks ===========================================

轉載于:https://www.cnblogs.com/zlja/archive/2011/06/15/2449103.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/275457.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/275457.shtml
英文地址,請注明出處:http://en.pswp.cn/news/275457.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

illustrator下載_平面設計:16個Illustrator快捷方式可加快工作流程

illustrator下載I know, I know — keyboard shortcuts sound so nerdy, and you’re a graphic designer, not an IT Director, why should you learn keyboard shortcuts?我知道,我知道—鍵盤快捷鍵聽起來很書呆,而且您是圖形設計師,而不是…

手把手教你五分鐘扒個源碼寫個無敵外掛

大家好,我是若川。源碼共讀《1個月,200人,一起讀了4周源碼》 活動進行到第五期了,歡迎點鏈接加我微信 ruochuan12 報名參加。前言前段時間群里分享了一個小游戲,多次懷疑自己的眼睛以后,嘗試去寫個外掛。中…

Kubernetes 1.14重磅來襲,多項關鍵特性生產可用

走過了突飛猛進的2018年,Kubernetes在2019年終于迎來了第一個大動作:Kubernetes 1.14版本的正式發布!Kubernetes 本次發布的 1.14 版本,包含了 31 項增強,其中 10 項為 GA,12 項進入 beta 試用階段&#xf…

中英文

http://it.freesion.com/3220/4888028/13606306/#轉載于:https://www.cnblogs.com/yqskj/articles/2082326.html

open ai gpt_讓我們來談談將GPT-3 AI推文震撼到核心的那條推文

open ai gpt重點 (Top highlight)“設計師”插件 (The ‘Designer’ plugin) A couple days ago, a tweet shared by Jordan Singer turned the heads of thousands of designers. With the capabilities of GPT-3 (from OpenAI), he shared a sample of what he was able to c…

我歷時3年才寫了10余篇源碼文章,但收獲了100w+閱讀

你好,我是若川。最近來了一些讀者朋友,在這里簡單介紹自己的經歷,也許對你有些啟發。之前發過這篇文章,現在修改下聲明原創,方便保護版權。最近組織了源碼共讀活動1個月,200人,一起讀了4周源碼&…

android onlescan 參數,Android BLE:從iOS外設廣告時,在onLeScan()回調中檢索服務UUID

我正在使用Nexus 4(4.4 kitkat)作為中央和iPad作為外設.外圍設備有廣告服務.廣告包有一些數據(22字節)的服務UUID.當我嘗試從Android掃描外圍設備時,iPad外圍設備被發現.但是當我嘗試從回調中的scanRecord參數獲取服務UUID時,我找不到它.我得到的是外設發送的20byte數據.當我嘗…

第 8 章 容器網絡 - 061 - flannel 的連通與隔離

flannel 的連通與隔離 測試 bbox1 和 bbxo2 的連通性: bbox1 能夠 ping 到位于不同 subnet 的 bbox2,通過 traceroute 分析一下 bbox1 到 bbox2 的路徑。 1) bbox1 與 bbox2 不是一個 subnet,數據包發送給默認網關 10.2.9.1&#…

Javascript 檢測 頁面是否在iframe中

//檢測是否在iframe中if(self.frameElement ! null && (self.frameElement.tagName "IFRAME" || self.frameElement.tagName "iframe")){parent.parent.location "login.jsp";}轉載于:https://www.cnblogs.com/kenkofox/archive/2011…

寫給前端的算法進階指南,我是如何兩個月零基礎刷200題 等推薦

大家好,我是若川。話不多說,這一次花了幾小時精心為大家挑選了20余篇好文,供大家閱讀學習。本文閱讀技巧,先粗看標題,感興趣可以都關注一波,一起共同進步。前端從進階到入院作者ssh就職于字節跳動基礎工程團…

計算機視覺筆記本推薦_視覺靈感:Mishti筆記本

計算機視覺筆記本推薦The Mishti Notebook is a project close to my heart, wherein I experimented with screen printing techniques at the Print Labs at the National Institute of Design, Ahmedabad. Dating back to the year 2012 when the NID Print Labs was first …

Google工程師:如何看待程序員普遍缺乏數據結構和算法知識?

出處:極客時間《數據結構與算法之美》很多技術人都很迷茫,覺得自己做的項目沒有技術含量,成天就是賣苦力。技術的東西,日新月異,有些人總在忙于追求熱點新技術,東學學、西學學,平時泛泛地看技術…

android guide 中文版,Sky Guide

Sky Guide是一款能讓小伙伴們觀察銀河的手機軟件,尤其是喜歡行星、星座的小伙伴們來講,這款軟件能很好的幫助小伙伴們觀看這些,讓小伙伴們體驗不一樣的觀星樂趣,因此想要觀看的小伙伴們,趕緊來試試吧。軟件介紹&#x…

Kinect for Windows SDK發布

轉載請注明出處為KlayGE游戲引擎,本文地址為http://www.klayge.org/2011/06/17/kinect-for-windows-sdk%e5%8f%91%e5%b8%83/ 前一段時間Microsoft研究院宣布了Kinect for Windows SDK。在眾人的期盼下,Kinect for Windows SDK Beta終于發布了&#xff01…

layui選項卡嵌套選項卡_在ProtoPie中使用嵌套組件構建選項卡欄

layui選項卡嵌套選項卡One of the powerful features of ProtoPie is the ability to build fully portable and interactive UI components. We are going to make use of nested components, SVG icons, and layout constraints to build a tab bar UI component that is sel…

50行代碼串行Promise,koa洋蔥模型原來這么有趣?

1. 前言大家好,我是若川,最近組織了源碼共讀活動《1個月,200人,一起讀了4周源碼》,感興趣的可以加我微信 ruochuan12 參與,長期交流學習。之前寫的《學習源碼整體架構系列》 包含jQuery、underscore、lodas…

如何定位死循環或高CPU使用率(linux)

如何定位死循環或高CPU使用率(linux) 確定是CPU過高 使用top觀察是否存在CPU使用率過高現象 找出線程 對CPU使用率過高的進程的所有線程進行排序 ps H -e -o pid,tid,pcpu,cmd --sortpcpu |grep xxx 得到如下結果,其中線程2909使用了7.8%的CPU. 2907 2913 0.0 ./xxx 2907…

js 用迭代器模式優雅的處理遞歸問題

2019獨角獸企業重金招聘Python工程師標準>>> 什么是迭代器 循環數組或對象內每一項值,在 js 里原生已經提供了一個迭代器。 var arr [1, 2, 3] arr.forEach(function (item) {console.log(item) })實現一個迭代器 var iterator function (arr, cb) {fo…

如何抓取html請求,請求獲取網頁的response,獲取網頁的html 怎么那么慢

HttpEntity multipart builder.build();httppost.setEntity(multipart);long start System.currentTimeMillis();// 發送請求response httpclient.execute(httppost);long end System.currentTimeMillis();System.out.println("查詢upsfreight消耗的時間是(毫秒):&quo…

Serverless 究竟是什么?

大家好,我是若川。說起 Serverless,我想你應該并不陌生,作為一種云開發的架構模式,在近兩年里,伴隨著云原生概念的推廣愈發火爆。作為一名 Serverless 的擁躉,在跟大家推薦的過程中,我經常能看到…