Solaris10下Silent模式安裝Oracle1106RAC環境(六)
主機環境基本上和前面文章中描述的SOLARIS10安裝Oracle1106rac的環境基本完全一致,最主要的區別在於沒有了VOLUMN CLUSTER MANAGER,於是這裡打算使用Oracle的ASM。由於安裝操作沒有什麼區別,所以這次安裝選擇了SILENT靜默模式來安裝RAC。
描述SILENT模式下ASM例項的建立。
Solaris10下Silent模式安裝Oracle1106RAC環境(一):http://yangtingkun.itpub.net/post/468/477442
Solaris10下Silent模式安裝Oracle1106RAC環境(二):http://yangtingkun.itpub.net/post/468/477443
Solaris10下Silent模式安裝Oracle1106RAC環境(三):http://yangtingkun.itpub.net/post/468/477444
Solaris10下Silent模式安裝Oracle1106RAC環境(四):http://yangtingkun.itpub.net/post/468/477446
Solaris10下Silent模式安裝Oracle1106RAC環境(五):http://yangtingkun.itpub.net/post/468/477447
Oracle的軟體安裝完成後,就可以建立ASM例項了。
首先仍然是編輯RESPONSE檔案,這次可以利用dbca.rsp作為模板進行修改,編輯一個my_asm.rsp檔案,輸入下面的引數:
[GENERAL]
RESPONSEFILE_VERSION = "11.1.0"
OPERATION_TYPE = "configureASM"
[CONFIGUREASM]
DISKLIST="/dev/rdsk/emcpower0g"
NODELIST=ser1,ser2
DISKGROUPNAME=DATA
REDUNDANCY=EXTERNAL
ASM_SYS_PASSWORD="asm"
對一些引數進行簡單的說明:
DISKLIST設定ASM磁碟組可以使用的裸裝置磁碟,由於當前只分配了一個大的裸裝置,所以這裡只設定了一個裸裝置,如果設定多個裸裝置,使用逗號將裸裝置名稱分割開。
NODELIST設定RAC的節點列表。
DISKGROUPNAME設定ASM磁碟組的名稱,這裡使用了預設磁碟組名稱DATA。當ASM磁碟組建立成功後,Oracle中訪問ASM磁碟組的方式為+DATA。
REDUNDANCY設定ASM的冗餘策略。由於裸裝置來自儲存裝置,本身已經進行了RAID,這裡選擇外部方式EXTERNAL。
ASM_SYS_PASSWORD設定ASM順利的SYS使用者密碼。
需要額外注意NODELIST引數,這裡不要在節點引數兩邊新增雙引號或大括弧,這會導致Oracle檢測節點名稱時出現錯誤:
Failed to retrieve network listener resources required for the Real Application Clusters high availability extensions configurations
on the following nodes: [{"ser1", "ser2"}].
Do you want listeners on port 1521 with prefix LISTENER to be created on nodes [{"ser1", "ser2"}] automatically? If you would like
to configure the listener with different properties, run NetCA before continuing.
Listener creation failed with error: Failed to create a profile for listener "[LISTENER_{"SER1"]" on node "{"ser1"", "PRKC-1056 : Fa
iled to get the hostname for node {"ser1"
PRKH-1001 : HASContext Internal Error
[OCR Error(Native: getHostName:[21])]"..
It is strongly recommended to run NetCA to configure listeners before continuing. Do you want to continue with the operation?
The operation will be stopped. Re-run DBCA after successfully running NetCA.
這裡直接輸入ser1,ser2即可。
$ dbca -silent -responseFile /data/database/response/my_asm.rsp
Look at the log file "/data/oracle/cfgtoollogs/dbca/silent3.log" for further details.
$ more /data/oracle/cfgtoollogs/dbca/silent3.log
對應的日誌沒有額外的資訊,說明ASM配置成功了,dbca的輸出相比oui來說,人性化要差一些,不直接顯示是否安裝成功,而是讓你自己去檢查輸出日誌。
下面登陸ASM例項進行檢視:
$ ps -ef|grep asm
oracle 7477 1 0 15:45:46 ? 0:06 asm_dia0_+ASM1
oracle 7483 1 0 15:45:47 ? 0:03 asm_lms0_+ASM1
oracle 7493 1 0 15:45:47 ? 0:00 asm_ckpt_+ASM1
oracle 7491 1 0 15:45:47 ? 0:00 asm_lgwr_+ASM1
oracle 7487 1 0 15:45:47 ? 0:00 asm_mman_+ASM1
oracle 7465 1 0 15:45:46 ? 0:02 asm_vktm_+ASM1
oracle 7469 1 0 15:45:46 ? 0:01 asm_diag_+ASM1
oracle 7481 1 0 15:45:47 ? 0:03 asm_lmd0_+ASM1
oracle 7463 1 0 15:45:46 ? 0:01 asm_pmon_+ASM1
oracle 7489 1 0 15:45:47 ? 0:00 asm_dbw0_+ASM1
oracle 7471 1 0 15:45:46 ? 0:00 asm_ping_+ASM1
oracle 7503 1 0 15:45:47 ? 0:00 asm_smon_+ASM1
oracle 7479 1 0 15:45:46 ? 0:02 asm_lmon_+ASM1
oracle 7507 1 0 15:45:47 ? 0:00 asm_gmon_+ASM1
oracle 7473 1 0 15:45:46 ? 0:00 asm_psp0_+ASM1
oracle 7505 1 0 15:45:47 ? 0:01 asm_rbal_+ASM1
oracle 7514 1 0 15:45:47 ? 0:00 asm_lck0_+ASM1
oracle 7635 1 0 15:45:56 ? 0:01 /data/oracle/product/11.1/database/bin/racgimon daemon ora.ser1.ASM1.asm
oracle 9007 24235 0 16:32:59 pts/1 0:00 grep asm
oracle 8601 1 0 16:32:19 ? 0:00 asm_pz98_+ASM1
oracle 8208 1 0 16:31:50 ? 0:00 asm_pz99_+ASM1
$ bash
bash-3.00$ export ORACLE_SID=+ASM1
bash-3.00$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.1.0.6.0 - Production on 星期二 9月 2 16:33:16 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
連線到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> set pages 100 lines 120
SQL> select group_number, name, state, type, total_mb, free_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TYPE TOTAL_MB FREE_MB
------------ ------------------- ------------------- ------------ ---------- ----------
1 DATA MOUNTED EXTERN 963503 963402
SQL> select group_number, disk_number, mount_status, header_status, mode_status, path
2 from v$asm_disk;
GROUP_NUMBER DISK_NUMBER MOUNT_STATUS HEADER_STATUS MODE_STATUS PATH
------------ ----------- -------------- ----------------- ------------ -----------------
0 0 CLOSED CANDIDATE ONLINE /dev/rdsk/emcpower0b
0 1 CLOSED FOREIGN ONLINE /dev/rdsk/emcpower0e
1 0 CACHED MEMBER ONLINE /dev/rdsk/emcpower0g
在節點2檢查ASM的配置情況:
$ ps -ef|grep asm
oracle 23504 1 0 15:47:11 ? 0:01 asm_pmon_+ASM2
oracle 23506 1 0 15:47:11 ? 0:03 asm_vktm_+ASM2
oracle 23510 1 0 15:47:11 ? 0:02 asm_diag_+ASM2
oracle 23514 1 0 15:47:12 ? 0:00 asm_psp0_+ASM2
oracle 23520 1 0 15:47:12 ? 0:03 asm_lmon_+ASM2
oracle 23512 1 0 15:47:11 ? 0:00 asm_ping_+ASM2
oracle 23598 1 0 15:47:17 ? 0:01 /data/oracle/product/11.1/database/bin/racgimon daemon ora.ser2.ASM2.asm
oracle 103 18054 0 16:42:55 pts/1 0:00 grep asm
oracle 23532 1 0 15:47:12 ? 0:00 asm_lgwr_+ASM2
oracle 23522 1 0 15:47:12 ? 0:03 asm_lmd0_+ASM2
oracle 23524 1 0 15:47:12 ? 0:04 asm_lms0_+ASM2
oracle 23518 1 0 15:47:12 ? 0:06 asm_dia0_+ASM2
oracle 23528 1 0 15:47:12 ? 0:00 asm_mman_+ASM2
oracle 23530 1 0 15:47:12 ? 0:00 asm_dbw0_+ASM2
oracle 23534 1 0 15:47:12 ? 0:00 asm_ckpt_+ASM2
oracle 23536 1 0 15:47:12 ? 0:00 asm_smon_+ASM2
oracle 23538 1 0 15:47:12 ? 0:01 asm_rbal_+ASM2
oracle 23540 1 0 15:47:12 ? 0:00 asm_gmon_+ASM2
oracle 23555 1 0 15:47:13 ? 0:00 asm_lck0_+ASM2
$ bash
bash-3.00$ export ORACLE_SID=+ASM2
bash-3.00$ sqlplus "/ as sysdba"
SQL*Plus: Release 11.1.0.6.0 - Production on 星期二 9月 2 16:43:45 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
連線到:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> set pages 100 lines 120
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Solaris: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> select instance_name from v$instance;
INSTANCE_NAME
--------------------------------
+ASM2
至此,ASM的SILENT配置完成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-544612/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Windows 環境下 Python 環境安裝WindowsPython
- Linux下安裝Go環境LinuxGo
- docker環境下安裝tensorflowDocker
- linux環境下redis安裝LinuxRedis
- Windows環境下安裝LinuxWindowsLinux
- Windows環境下安裝NexusWindows
- Windows 環境下安裝 RedisWindowsRedis
- Windows 環境下安裝 LaravelWindowsLaravel
- Mac環境下安裝PodMac
- Linux下Java環境安裝LinuxJava
- Windows環境下安裝RabbitMQWindowsMQ
- kali環境下安裝dvwa
- Linux環境下安裝NginxLinuxNginx
- Jetson Nano( 六)Deepstream5.0環境安裝NaN
- linux或者CentOS環境下安裝.NET Core環境LinuxCentOS
- ubuntu環境下安裝perf工具Ubuntu
- Linux環境下nginx安裝配置LinuxNginx
- 在Ubuntu環境下安裝eclipseUbuntuEclipse
- Docker 下安裝配置 lnmp 環境DockerLNMP
- Mac環境下安裝配置RedisMacRedis
- Linux環境下ApacheActiveMQ基本安裝LinuxApacheMQ
- Linux環境下安裝配置vsftpd服務(三種認證模式)LinuxFTP模式
- window環境下安裝和切換兩個python環境Python
- WAMPSERVER整合環境下載與安裝Server
- HMMer在Windows環境下的安裝HMMWindows
- linux環境下安裝nginx步驟LinuxNginx
- Linux 環境下編譯安裝 RedisLinux編譯Redis
- Centos7環境下安裝curlCentOS
- Linux環境下Apache ActiveMQ 基本安裝LinuxApacheMQ
- Linux 下使用 Docker 安裝lnmp環境LinuxDockerLNMP
- Linux環境下 RabbitMQ 的下載與安裝LinuxMQ
- Linux 下 Go 環境搭建以及 Gin 安裝LinuxGo
- Window離線環境下如何安裝pyhanlpHanLP
- 如何下載安裝jdk和配置環境JDK
- VirtualBox + Vagrant + homesteadbox 環境下 yaf 的安裝
- 如何在 Linux 環境下安裝使用 pycharm?LinuxPyCharm
- 在 Ubuntu18.04 下安裝 LNMP 環境UbuntuLNMP
- Linux環境下nodejs和cnpm的安裝LinuxNodeJSNPM
- linux環境下軟體安裝之MavenLinuxMaven