Solaris 10(x86)構建Oracle 10g RAC之--建立資料庫

來源:互聯網
上載者:User

標籤:oracle

Solaris 10(x86)構建Oracle 10g RAC之--建立資料庫

系統內容:

作業系統:Solaris 10(x86-64)

Cluster: Oracle CRS 10.2.0.1.0

Oracle:  Oracle 10.2.0.1.0


:RAC 系統架構

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E3/wKiom1S_b-OSHjhcAAGktznT6W4920.jpg" title="rac.jpg" alt="wKiom1S_b-OSHjhcAAGktznT6W4920.jpg" width="650" style="padding:0px;margin:0px;vertical-align:top;border:none;" />


四、通過netca建立監聽器

     對於listener可以通過netca在建庫之前建立,也可以在用dbca建庫時來建立。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E7/wKioL1TAl56xSNlmAALoQZqnPW0979.jpg" style="float:none;" title="n1.png" alt="wKioL1TAl56xSNlmAALoQZqnPW0979.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E7/wKioL1TAl5-C1eceAAMJCYaIYt4401.jpg" style="float:none;" title="n2.png" alt="wKioL1TAl5-C1eceAAMJCYaIYt4401.jpg" />


Listener建立成功,驗證:

[[email protected]:/]# crs_stat -tName           Type           Target    State     Host        ------------------------------------------------------------ora....E1.lsnr application    ONLINE    ONLINE    node1       ora.node1.gsd  application    ONLINE    ONLINE    node1       ora.node1.ons  application    ONLINE    ONLINE    node1       ora.node1.vip  application    ONLINE    ONLINE    node1       ora....E2.lsnr application    ONLINE    ONLINE    node2       ora.node2.gsd  application    ONLINE    ONLINE    node2       ora.node2.ons  application    ONLINE    ONLINE    node2       ora.node2.vip  application    ONLINE    ONLINE    node2       [[email protected]:/]# su - oracleOracle Corporation      SunOS 5.10      Generic Patch   January 2005[[email protected]:/export/home/oracle]$ lsnrctl statusLSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 21-JAN-2015 15:51:45Copyright (c) 1991, 2005, Oracle.  All rights reserved.Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))STATUS of the LISTENER------------------------Alias                     LISTENER_NODE1Version                   TNSLSNR for Solaris: Version 10.2.0.1.0 - ProductionStart Date                21-JAN-2015 15:50:43Uptime                    0 days 0 hr. 1 min. 2 secTrace Level               offSecurity                  ON: Local OS AuthenticationSNMP                      OFFListener Parameter File   /export/home/ora10/product/10.2.0/db_1/network/admin/listener.oraListener Log File         /export/home/ora10/product/10.2.0/db_1/network/log/listener_node1.logListening Endpoints Summary...  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.13)(PORT=1521)))  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.8.11)(PORT=1521)))Services Summary...Service "PLSExtProc" has 1 instance(s).  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...The command completed successfully

五、通過DBCA建立資料庫

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E7/wKioL1TAmEewikJBAAMMuS4G2SA257.jpg" style="float:none;" title="d1.png" alt="wKioL1TAmEewikJBAAMMuS4G2SA257.jpg" />


建立叢集庫

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E7/wKioL1TAmEnSnie_AAHnRU_RlQM456.jpg" style="float:none;" title="d2.png" alt="wKioL1TAmEnSnie_AAHnRU_RlQM456.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/EA/wKiom1TAl3OjMxTyAAKyoesYAcM960.jpg" style="float:none;" title="d3.png" alt="wKiom1TAl3OjMxTyAAKyoesYAcM960.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E7/wKioL1TAmEuhQWgSAAM-ZXZvCcU142.jpg" style="float:none;" title="d4.png" alt="wKioL1TAmEuhQWgSAAM-ZXZvCcU142.jpg" />


資料庫儲存ASM裝置

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/EA/wKiom1TAl3bDPaEdAANlFEJKxDc609.jpg" style="float:none;" title="d5.png" alt="wKiom1TAl3bDPaEdAANlFEJKxDc609.jpg" />


建立ASM Instance的pfile

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E7/wKioL1TAmE3waBgIAAJWPTAdi1Q655.jpg" style="float:none;" title="d6.png" alt="wKioL1TAmE3waBgIAAJWPTAdi1Q655.jpg" />


建立ASM DISKGROUP

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E7/wKioL1TAmE2wAqafAALmC3k8qqM358.jpg" style="float:none;" title="d7.png" alt="wKioL1TAmE2wAqafAALmC3k8qqM358.jpg" />


通過RAW建立ASM diskgroup

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/EA/wKiom1TAl3jAhkF8AAKwqddg3lc157.jpg" style="float:none;" title="d8.png" alt="wKiom1TAl3jAhkF8AAKwqddg3lc157.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/EA/wKiom1TAl3jTRkltAAKWNeaILM4231.jpg" style="float:none;" title="d9.png" alt="wKiom1TAl3jTRkltAAKWNeaILM4231.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E7/wKioL1TAmFCi7sKTAALd6GH0Et0509.jpg" style="float:none;" title="d10.png" alt="wKioL1TAmFCi7sKTAALd6GH0Et0509.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/EA/wKiom1TAl3vxsJe0AAKYrJDxKG4772.jpg" style="float:none;" title="d11.png" alt="wKiom1TAl3vxsJe0AAKYrJDxKG4772.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E7/wKioL1TAmFPiFDT8AAKmLOppX9I679.jpg" style="float:none;" title="d12.png" alt="wKioL1TAmFPiFDT8AAKmLOppX9I679.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/EA/wKiom1TAl32RthFPAAL4Zts5ZF4375.jpg" style="float:none;" title="d13.png" alt="wKiom1TAl32RthFPAAL4Zts5ZF4375.jpg" />


650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E7/wKioL1TAmFWCcxxZAAMw_tE4vz0963.jpg" style="float:none;" title="d14.png" alt="wKioL1TAmFWCcxxZAAMw_tE4vz0963.jpg" />


驗證:

[[email protected]:/]# crs_stat -tName           Type           Target    State     Host        ------------------------------------------------------------ora....SM1.asm application    ONLINE    ONLINE    node1       ora....E1.lsnr application    ONLINE    ONLINE    node1       ora.node1.gsd  application    ONLINE    ONLINE    node1       ora.node1.ons  application    ONLINE    ONLINE    node1       ora.node1.vip  application    ONLINE    ONLINE    node1       ora....SM2.asm application    ONLINE    ONLINE    node2       ora....E2.lsnr application    ONLINE    ONLINE    node2       ora.node2.gsd  application    ONLINE    ONLINE    node2       ora.node2.ons  application    ONLINE    ONLINE    node2       ora.node2.vip  application    ONLINE    ONLINE    node2       ora.prod.db    application    ONLINE    ONLINE    node2       ora....d1.inst application    ONLINE    ONLINE    node1       ora....d2.inst application    ONLINE    ONLINE    node2  查詢ASM diskgroup:SQL> col name for a20SQL> select GROUP_NUMBER,name,STATE,TOTAL_MB,FREE_MB,TYPE from v$asm_diskgroupGROUP_NUMBER NAME                 STATE         TOTAL_MB    FREE_MB TYPE------------ -------------------- ----------- ---------- ---------- ------           1 DG1                  MOUNTED          10244       5962 NORMAL           2 RCY1                 MOUNTED           8204       7268 NORMAL查詢RDBMS Instance:[[email protected]:/export/home/oracle]$ sqlplus ‘/as sysdba‘SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 21 17:13:50 2015Copyright (c) 1982, 2005, Oracle.  All rights reserved.Connected to:Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining optionsSQL> select instance_name,status from gv$instance;INSTANCE_NAME    STATUS---------------- ------------prod1            OPENprod2            OPENSQL> alter user scott identified by tiger account unlock;User altered.SQL> conn scott/tigerConnected.SQL> select * from tab;TNAME                          TABTYPE  CLUSTERID------------------------------ ------- ----------DEPT                           TABLEEMP                            TABLEBONUS                          TABLESALGRADE                       TABLE

@至此,整個Oracle 10g的RAC已經架構完成 !


本文出自 “天涯客的blog” 部落格,請務必保留此出處http://tiany.blog.51cto.com/513694/1606987

Solaris 10(x86)構建Oracle 10g RAC之--建立資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.