首頁 資料庫 mysql教程 Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(2)

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(2)

Jun 07, 2016 pm 04:36 PM
oracle solaris 建構 環境 系統 配置

Solaris10(x86)构建Oracle10gRAC之--配置系统环境(2)系统环境:操作系统:Solaris10(x86-64)Cluster:OracleCRS10.2.0.1.0Oracle:Oracle10.2.0.1.0如图所示

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(2)


系统环境:

操作系统:Solaris 10(x86-64)

Cluster: Oracle CRS 10.2.0.1.0

Oracle:  Oracle 10.2.0.1.0


如图所示:RAC 系统架构

wKiom1S_b-OSHjhcAAGktznT6W4920.jpg


一、建立主机之间的信任关系(在所有node)


1、配置主机hosts.equiv文件

[root@node1:/]# cat /etc/hosts.equiv  node1  root node1  oracle node1-vip root node1-vip oracle node1-priv root node1-priv oracle node2  root node2  oracle node2-vip  root node2-vip  oracle node2-priv  root node2-priv  oracle

2、配置Oracle用户.rhosts文件

[oracle@node1:/export/home/oracle]$ cat .rhosts  node1  root node1  oracle node1-vip root node1-vip oracle node1-priv root node1-priv oracle node2  root node2  oracle node2-vip  root node2-vip  oracle node2-priv  root node2-priv  oracle

3、启动相关的服务,验证

[root@node1:/]# svcs -a |grep rlogin disabled       10:05:17 svc:/network/login:rlogin [root@node1:/]# svcadm enable svc:/network/login:rlogin [root@node1:/]# svcadm enable svc:/network/rexec:default [root@node1:/]# svcadm enable svc:/network/shell:default [root@node1:/]# svcs -a |grep rlogin online         11:37:34 svc:/network/login:rlogin [root@node1:/]# su - oracle Oracle Corporation      SunOS 5.10      Generic Patch   January 2005 [oracle@node1:/export/home/oracle]$ rlogin node1 Last login: Wed Jan 21 11:29:36 from node2-priv Oracle Corporation      SunOS 5.10      Generic Patch   January 2005

二、安装CRS前系统环境的检测(在node1)

[oracle@node1:/export/home/oracle]$ unzip 10201_clusterware_solx86_64.zip [oracle@node1:/export/home/oracle/clusterware/cluvfy]$ ./runcluvfy.sh     USAGE: cluvfy [ -help ] cluvfy stage { -list | -help } cluvfy stage {-pre|-post}    [-verbose] cluvfy comp  { -list | -help } cluvfy comp     [-verbose] [oracle@node1:/export/home/oracle/clusterware/cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose Performing pre-checks for cluster services setup  Checking node reachability... Check: Node reachability from node "node1"   Destination Node                      Reachable?                 ------------------------------------  ------------------------   node1                                 yes                        node2                                 yes                      Result: Node reachability check passed from node "node1". Checking user equivalence... Check: User equivalence for user "oracle"   Node Name                             Comment                    ------------------------------------  ------------------------   node2                                 passed                     node1                                 passed                   Result: User equivalence check passed for user "oracle". Checking administrative privileges... Check: Existence of user "oracle"   Node Name     User Exists               Comment                    ------------  ------------------------  ------------------------   node2         yes                       passed                     node1         yes                       passed                   Result: User existence check passed for "oracle". Check: Existence of group "oinstall"   Node Name     Status                    Group ID                   ------------  ------------------------  ------------------------   node2         exists                    200                        node1         exists                    200                      Result: Group existence check passed for "oinstall". Check: Membership of user "oracle" in group "oinstall" [as Primary]   Node Name         User Exists   Group Exists  User in Group  Primary       Comment        ----------------  ------------  ------------  ------------  ------------  ------------   node2             yes           yes           yes           yes           passed         node1             yes           yes           yes           yes           passed       Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed. Administrative privileges check passed. Checking node connectivity... Interface information for node "node2"   Interface Name                  IP Address                      Subnet             ------------------------------  ------------------------------  ----------------   e1000g0                         192.168.8.12                    192.168.8.0        e1000g1                         10.10.10.12                     10.10.10.0       Interface information for node "node1"   Interface Name                  IP Address                      Subnet             ------------------------------  ------------------------------  ----------------   e1000g0                         192.168.8.11                    192.168.8.0        e1000g1                         10.10.10.11                     10.10.10.0       Check: Node connectivity of subnet "192.168.8.0"   Source                          Destination                     Connected?         ------------------------------  ------------------------------  ----------------   node2:e1000g0                   node1:e1000g0                   yes              Result: Node connectivity check passed for subnet "192.168.8.0" with node(s) node2,node1. Check: Node connectivity of subnet "10.10.10.0"   Source                          Destination                     Connected?         ------------------------------  ------------------------------  ----------------   node2:e1000g1                   node1:e1000g1                   yes              Result: Node connectivity check passed for subnet "10.10.10.0" with node(s) node2,node1. Suitable interfaces for the private interconnect on subnet "192.168.8.0": node2 e1000g0:192.168.8.12 node1 e1000g0:192.168.8.11 Suitable interfaces for the private interconnect on subnet "10.10.10.0": node2 e1000g1:10.10.10.12 node1 e1000g1:10.10.10.11 ERROR:  Could not find a suitable set of interfaces for VIPs. Result: Node connectivity check failed. ---vip 网络检测失败 Checking system requirements for 'crs'... Check: Total memory    Node Name     Available                 Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         1.76GB (1843200KB)        512MB (524288KB)          passed       node1         1.76GB (1843200KB)        512MB (524288KB)          passed     Result: Total memory check passed. Check: Free disk space in "/tmp" dir   Node Name     Available                 Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         3GB (3150148KB)           400MB (409600KB)          passed       node1         2.74GB (2875128KB)        400MB (409600KB)          passed     Result: Free disk space check passed. Check: Swap space    Node Name     Available                 Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         2GB (2096476KB)           512MB (524288KB)          passed       node1         2GB (2096476KB)           512MB (524288KB)          passed     Result: Swap space check passed. Check: System architecture    Node Name     Available                 Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         64-bit                    64-bit                    passed       node1         64-bit                    64-bit                    passed     Result: System architecture check passed. Check: Operating system version    Node Name     Available                 Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         SunOS 5.10                SunOS 5.10                passed       node1         SunOS 5.10                SunOS 5.10                passed     Result: Operating system version check passed. Check: Operating system patch for "118345-03"    Node Name     Applied                   Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         unknown                   118345-03                 failed       node1         unknown                   118345-03                 failed     Result: Operating system patch check failed for "118345-03". Check: Operating system patch for "119961-01"    Node Name     Applied                   Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         119961-06                 119961-01                 passed       node1         119961-06                 119961-01                 passed     Result: Operating system patch check passed for "119961-01". Check: Operating system patch for "117837-05"    Node Name     Applied                   Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         unknown                   117837-05                 failed       node1         unknown                   117837-05                 failed     Result: Operating system patch check failed for "117837-05". Check: Operating system patch for "117846-08"    Node Name     Applied                   Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         unknown                   117846-08                 failed       node1         unknown                   117846-08                 failed     Result: Operating system patch check failed for "117846-08". Check: Operating system patch for "118682-01"    Node Name     Applied                   Required                  Comment      ------------  ------------------------  ------------------------  ----------   node2         unknown                   118682-01                 failed       node1         unknown                   118682-01                 failed     Result: Operating system patch check failed for "118682-01". ---系统补丁检测失败 Check: Group existence for "dba"    Node Name     Status                    Comment                    ------------  ------------------------  ------------------------   node2         exists                    passed                     node1         exists                    passed                   Result: Group existence check passed for "dba". Check: Group existence for "oinstall"    Node Name     Status                    Comment                    ------------  ------------------------  ------------------------   node2         exists                    passed                     node1         exists                    passed                   Result: Group existence check passed for "oinstall". Check: User existence for "oracle"    Node Name     Status                    Comment                    ------------  ------------------------  ------------------------   node2         exists                    passed                     node1         exists                    passed                   Result: User existence check passed for "oracle". Check: User existence for "nobody"    Node Name     Status                    Comment                    ------------  ------------------------  ------------------------   node2         exists                    passed                     node1         exists                    passed                   Result: User existence check passed for "nobody". System requirement failed for 'crs' Pre-check for cluster services setup was unsuccessful on all the nodes.

----在以上的系统环境检测中,VIP网络检查失败;

如果在检测前没有配置VIP网络,,可以用一下方式进行配置;如果已经配置过,就不会检测失败。

配置vip network(node1):

[root@node1:/]# ifconfig e1000g0:1 plumb up

[root@node1:/]# ifconfig e1000g0:1 192.168.8.13 netmask 255.255.255.0

[root@node1:/]# ifconfig -a

lo0: flags=2001000849 mtu 8232 index 1

        inet 127.0.0.1 netmask ff000000 

e1000g0: flags=1000843 mtu 1500 index 2

        inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255

        ether 8:0:27:28:b1:8c 

e1000g0:1: flags=4001000842 mtu 1500 index 2

        inet 192.168.8.13 netmask ffffff00 broadcast 192.168.8.255

e1000g1: flags=1000843 mtu 1500 index 3

        inet 10.10.10.11 netmask ffffff00 broadcast 10.10.10.255

        ether 8:0:27:6e:16:1 

         

配置vip network(node2):

[root@node2:/]# ifconfig e1000g0:1 plumb up

[root@node2:/]# ifconfig e1000g0:1 192.168.8.14 netmask 255.255.255.0     

[root@node2:/]# ifconfig -a

lo0: flags=2001000849 mtu 8232 index 1

        inet 127.0.0.1 netmask ff000000 

e1000g0: flags=1000843 mtu 1500 index 2

        inet 192.168.8.12 netmask ffffff00 broadcast 192.168.8.255

        ether 8:0:27:1f:bf:4c 

e1000g0:1: flags=1000843 mtu 1500 index 2

        inet 192.168.8.14 netmask ffffff00 broadcast 192.168.8.255

e1000g1: flags=1000843 mtu 1500 index 3

        inet 10.10.10.12 netmask ffffff00 broadcast 10.10.10.255

        ether 8:0:27:a5:2c:db

----在以上的系统环境检测中,部分补丁没有安装(可以通过Oracle官方网站下载,本机为测试环境暂不安装)

wKiom1TAdVXiJfiMAALB9MzZMrs024.jpg



本文出自 “天涯客的blog” 博客,请务必保留此出处

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

<🎜>:泡泡膠模擬器無窮大 - 如何獲取和使用皇家鑰匙
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
北端:融合系統,解釋
3 週前 By 尊渡假赌尊渡假赌尊渡假赌
Mandragora:巫婆樹的耳語 - 如何解鎖抓鉤
3 週前 By 尊渡假赌尊渡假赌尊渡假赌

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

熱門話題

Java教學
1669
14
CakePHP 教程
1428
52
Laravel 教程
1329
25
PHP教程
1273
29
C# 教程
1256
24
oracle打不開怎麼辦 oracle打不開怎麼辦 Apr 11, 2025 pm 10:06 PM

Oracle 打不開的解決辦法包括:1. 啟動數據庫服務;2. 啟動監聽器;3. 檢查端口衝突;4. 正確設置環境變量;5. 確保防火牆或防病毒軟件未阻止連接;6. 檢查服務器是否已關閉;7. 使用 RMAN 恢復損壞的文件;8. 檢查 TNS 服務名稱是否正確;9. 檢查網絡連接;10. 重新安裝 Oracle 軟件。

oracle游標關閉怎麼解決 oracle游標關閉怎麼解決 Apr 11, 2025 pm 10:18 PM

解決 Oracle 游標關閉問題的方法包括:使用 CLOSE 語句顯式關閉游標。在 FOR UPDATE 子句中聲明游標,使其在作用域結束後自動關閉。在 USING 子句中聲明游標,使其在關聯的 PL/SQL 變量關閉時自動關閉。使用異常處理確保在任何異常情況下關閉游標。使用連接池自動關閉游標。禁用自動提交,延遲游標關閉。

oracle怎麼循環創建游標 oracle怎麼循環創建游標 Apr 12, 2025 am 06:18 AM

Oracle 中,FOR LOOP 循環可動態創建游標, 步驟為:1. 定義游標類型;2. 創建循環;3. 動態創建游標;4. 執行游標;5. 關閉游標。示例:可循環創建游標,顯示前 10 名員工姓名和工資。

oracle視圖怎麼導出 oracle視圖怎麼導出 Apr 12, 2025 am 06:15 AM

可以通過 EXP 實用程序導出 Oracle 視圖:登錄 Oracle 數據庫。啟動 EXP 實用程序,指定視圖名稱和導出目錄。輸入導出參數,包括目標模式、文件格式和表空間。開始導出。使用 impdp 實用程序驗證導出。

oracle日誌寫滿怎麼辦 oracle日誌寫滿怎麼辦 Apr 12, 2025 am 06:09 AM

Oracle 日誌文件寫滿時,可採用以下解決方案:1)清理舊日誌文件;2)增加日誌文件大小;3)增加日誌文件組;4)設置自動日誌管理;5)重新初始化數據庫。在實施任何解決方案前,建議備份數據庫以防數據丟失。

甲骨文在商業世界中的作用 甲骨文在商業世界中的作用 Apr 23, 2025 am 12:01 AM

Oracle不僅是數據庫公司,還是雲計算和ERP系統的領導者。 1.Oracle提供從數據庫到雲服務和ERP系統的全面解決方案。 2.OracleCloud挑戰AWS和Azure,提供IaaS、PaaS和SaaS服務。 3.Oracle的ERP系統如E-BusinessSuite和FusionApplications幫助企業優化運營。

HDFS配置CentOS需要哪些步驟 HDFS配置CentOS需要哪些步驟 Apr 14, 2025 pm 06:42 PM

在CentOS系統上搭建Hadoop分佈式文件系統(HDFS)需要多個步驟,本文提供一個簡要的配置指南。一、前期準備安裝JDK:在所有節點上安裝JavaDevelopmentKit(JDK),版本需與Hadoop兼容。可從Oracle官網下載安裝包。環境變量配置:編輯/etc/profile文件,設置Java和Hadoop的環境變量,使系統能夠找到JDK和Hadoop的安裝路徑。二、安全配置:SSH免密登錄生成SSH密鑰:在每個節點上使用ssh-keygen命令

oracle數據庫怎麼停止 oracle數據庫怎麼停止 Apr 12, 2025 am 06:12 AM

要停止 Oracle 數據庫,請執行以下步驟:1. 連接到數據庫;2. 優雅關機數據庫(shutdown immediate);3. 完全關機數據庫(shutdown abort)。

See all articles