虚拟化容器,大数据,DBA,中间件,监控。

Installation Oracle 10gR2(10.2.0.5) RAC with RAW on RHEL5

28 10月
作者:admin|分类:DBA运维

Installation Oracle 10gR2(10.2.0.5) RAC with RAW on RHEL5

The generic steps to follow when adding the new node to the cluster are:
Install Operating System
Install required software
Add/modify users and groups required for the installation
Configure network
Configure kernel parameters

Configure services required such as NTP

Configure /etc/hosts,sshKey

Configure storage (multipathing, zoning, storage discovery,UDEV, RAW)




modify /etc/udev/rules.d/60-raw.rules

  1. [root@vzwc1 ~]# cat /etc/udev/rules.d/60-raw.rules   
  2. # Enter raw device bindings here.  
  3. #  
  4. # An example would be:  
  5. #   ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"  
  6. # to bind /dev/raw/raw1 to /dev/sda, or  
  7. #   ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"  
  8. # to bind /dev/raw/raw2 to the device with major 8, minor 1.  
  9.   
  10.   
  11. ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"  
  12. ACTION=="add", KERNEL=="sdb2", RUN+="/bin/raw /dev/raw/raw2 %N"  
  13. ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw3 %N"  
  14. ACTION=="add", KERNEL=="sdc2", RUN+="/bin/raw /dev/raw/raw4 %N"  
  15. ACTION=="add", KERNEL=="sdc3", RUN+="/bin/raw /dev/raw/raw5 %N"  
  16. ACTION=="add", KERNEL=="sdd1", RUN+="/bin/raw /dev/raw/raw6 %N"  
  17. ACTION=="add", KERNEL=="sdd2", RUN+="/bin/raw /dev/raw/raw7 %N"  
  18. ACTION=="add", KERNEL=="sdd3", RUN+="/bin/raw /dev/raw/raw8 %N"  
  19. ACTION=="add", KERNEL=="sdd4", RUN+="/bin/raw /dev/raw/raw9 %N"  
  20. ACTION=="add", KERNEL=="sde1", RUN+="/bin/raw /dev/raw/raw10 %N"  
  21. ACTION=="add", KERNEL=="sde2", RUN+="/bin/raw /dev/raw/raw11 %N"  
  22. ACTION=="add", KERNEL=="sde3", RUN+="/bin/raw /dev/raw/raw12 %N"  
  23. ACTION=="add", KERNEL=="sde4", RUN+="/bin/raw /dev/raw/raw13 %N"  
  24. ACTION=="add", KERNEL=="sdf1", RUN+="/bin/raw /dev/raw/raw14 %N"  
  25. ACTION=="add", KERNEL=="sdf2", RUN+="/bin/raw /dev/raw/raw15 %N"  
  26. ACTION=="add", KERNEL=="sdf3", RUN+="/bin/raw /dev/raw/raw16 %N"  
  27. ACTION=="add", KERNEL=="sdf4", RUN+="/bin/raw /dev/raw/raw17 %N"  
  28. ACTION=="add", KERNEL=="sdg1", RUN+="/bin/raw /dev/raw/raw18 %N"  
  29. ACTION=="add", KERNEL=="sdg2", RUN+="/bin/raw /dev/raw/raw19 %N"  
  30. ACTION=="add", KERNEL=="sdg3", RUN+="/bin/raw /dev/raw/raw20 %N"  
  31. ACTION=="add", KERNEL=="sdg4", RUN+="/bin/raw /dev/raw/raw21 %N"  
  32. ACTION=="add", KERNEL=="raw*", OWNER=="oracle", GROUP=="oinstall", MODE=="0660"  
  33. [root@vzwc1 ~]#   
  34. [root@vzwc1 ~]#   
  35. [root@vzwc1 ~]#   
  36. [root@vzwc1 ~]# ls -l /dev/raw/*  
  37. crw-rw---- 1 oracle oinstall 162,  1 Oct 22 18:52 /dev/raw/raw1  
  38. crw-rw---- 1 oracle oinstall 162, 10 Oct 22 18:52 /dev/raw/raw10  
  39. crw-rw---- 1 oracle oinstall 162, 11 Oct 22 18:52 /dev/raw/raw11  
  40. crw-rw---- 1 oracle oinstall 162, 12 Oct 22 18:52 /dev/raw/raw12  
  41. crw-rw---- 1 oracle oinstall 162, 13 Oct 22 18:52 /dev/raw/raw13  
  42. crw-rw---- 1 oracle oinstall 162, 14 Oct 22 18:52 /dev/raw/raw14  
  43. crw-rw---- 1 oracle oinstall 162, 15 Oct 22 18:52 /dev/raw/raw15  
  44. crw-rw---- 1 oracle oinstall 162, 16 Oct 22 18:52 /dev/raw/raw16  
  45. crw-rw---- 1 oracle oinstall 162, 17 Oct 22 18:52 /dev/raw/raw17  
  46. crw-rw---- 1 oracle oinstall 162, 18 Oct 22 18:52 /dev/raw/raw18  
  47. crw-rw---- 1 oracle oinstall 162, 19 Oct 22 18:52 /dev/raw/raw19  
  48. crw-rw---- 1 oracle oinstall 162,  2 Oct 22 18:52 /dev/raw/raw2  
  49. crw-rw---- 1 oracle oinstall 162, 20 Oct 22 18:52 /dev/raw/raw20  
  50. crw-rw---- 1 oracle oinstall 162, 21 Oct 22 18:52 /dev/raw/raw21  
  51. crw-rw---- 1 oracle oinstall 162,  3 Oct 22 18:52 /dev/raw/raw3  
  52. crw-rw---- 1 oracle oinstall 162,  4 Oct 22 18:52 /dev/raw/raw4  
  53. crw-rw---- 1 oracle oinstall 162,  5 Oct 22 18:52 /dev/raw/raw5  
  54. crw-rw---- 1 oracle oinstall 162,  6 Oct 22 18:52 /dev/raw/raw6  
  55. crw-rw---- 1 oracle oinstall 162,  7 Oct 22 18:52 /dev/raw/raw7  
  56. crw-rw---- 1 oracle oinstall 162,  8 Oct 22 18:52 /dev/raw/raw8  
  57. crw-rw---- 1 oracle oinstall 162,  9 Oct 22 18:52 /dev/raw/raw9  



Configuration NFS Using Archivelog

vzwc1

  1. [root@vzwc1 ~]# chkconfig --level 2345 portmap on  
  2. [root@vzwc1 ~]# chkconfig --level 2345 nfs on  
  3. [root@vzwc1 ~]# echo "/u01/app/oracle/arch1 vzwc2(rw,sync)" > /etc/exports  
  4. [root@vzwc1 ~]# /etc/init.d/portmap start  
  5. Starting portmap: [  OK  ]  
  6. [root@vzwc1 ~]# /etc/init.d/nfs start  
  7. Starting NFS services:  exportfs: arch2 has non-inet addr  
  8. exportfs: arch2 has non-inet addr  
  9. [  OK  ]  
  10. Starting NFS quotas: [  OK  ]  
  11. Starting NFS daemon: [  OK  ]  
  12. Starting NFS mountd: [  OK  ]  
  13. Stopping RPC idmapd: [  OK  ]  
  14. Starting RPC idmapd: [  OK  ]  
  15. [root@vzwc1 ~]# mount -t nfs -o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 vzwc2:/u01/app/oracle/arch2 /u01/app/oracle/arch2  
  16. [root@vzwc1 ~]#   
  17. [root@vzwc1 ~]#   
  18. [root@vzwc1 ~]# df -TH  
  19. Filesystem    Type     Size   Used  Avail Use% Mounted on  
  20. /dev/mapper/VolGroup00-LogVol00  
  21.               ext3      58G   5.7G    49G  11% /  
  22. /dev/sda1     ext3     104M    26M    74M  26% /boot  
  23. tmpfs        tmpfs     1.6G      0   1.6G   0% /dev/shm  
  24. vzwc2:/u01/app/oracle/arch2  
  25.                nfs      58G   5.7G    49G  11% /u01/app/oracle/arch2  

vzwc2

  1. [root@vzwc2 ~]# chkconfig --level 2345 portmap on  
  2. [root@vzwc2 ~]# chkconfig --level 2345 nfs on  
  3. [root@vzwc2 ~]# echo "/u01/app/oracle/arch2 vzwc1(rw,sync)" > /etc/exports  
  4. [root@vzwc2 ~]# /etc/init.d/portmap start  
  5. Starting portmap: [  OK  ]  
  6. [root@vzwc2 ~]# /etc/init.d/nfs start  
  7. Starting NFS services:  exportfs: arch1 has non-inet addr  
  8. exportfs: arch1 has non-inet addr  
  9. [  OK  ]  
  10. Starting NFS quotas: [  OK  ]  
  11. Starting NFS daemon: [  OK  ]  
  12. Starting NFS mountd: [  OK  ]  
  13. Stopping RPC idmapd: [  OK  ]  
  14. Starting RPC idmapd: [  OK  ]  
  15. [root@vzwc2 ~]# mount -t nfs -o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 vzwc1:/u01/app/oracle/arch1 /u01/app/oracle/arch1  
  16. [root@vzwc2 ~]#   
  17. [root@vzwc2 ~]#   
  18. [root@vzwc2 ~]# df -h  
  19. Filesystem            Size  Used Avail Use% Mounted on  
  20. /dev/mapper/VolGroup00-LogVol00  
  21.                        54G  5.3G   46G  11% /  
  22. /dev/sda1              99M   24M   70M  26% /boot  
  23. tmpfs                 1.5G     0  1.5G   0% /dev/shm  
  24. vzwc1:/u01/app/oracle/arch1  
  25.                        54G  5.3G   46G  11% /u01/app/oracle/arch1  


Configuration RAW Mapping File

  1. [oracle@vzwc1 ~]$ cat raw_mapp.txt   
  2. system=/dev/raw/raw14  
  3. sysaux=/dev/raw/raw15  
  4. example=/dev/raw/raw16  
  5. temp=/dev/raw/raw/raw17  
  6. users=/dev/raw/raw18  
  7. undotbs1=/dev/raw/raw20  
  8. undotbs2=/dev/raw/raw21  
  9. redo1_1=/dev/raw/raw6  
  10. redo1_2=/dev/raw/raw7  
  11. redo2_1=/dev/raw/raw8  
  12. redo2_2=/dev/raw/raw9  
  13. control1=/dev/raw/raw10  
  14. control2=/dev/raw/raw11  
  15. pwdfile=/dev/raw/raw12  
  16. spfile=/dev/raw/raw13  



Install ClusterWare

  1. [oracle@vzwc1 clusterware]$ ./runInstaller -ignoresysprereqs  




















vzwc2 Ignore Error

CSS is active on these nodes.
        vzwc1
        vzwc2
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
/u01/app/oracle/product/10.2.0/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory




Upgrade ClusterWare to 10.2.0.5














  1. [root@vzwc1 ~]# /u01/app/oracle/product/10.2.0/crs/bin/crsctl stop crs  
  2. Stopping resources.  
  3. Successfully stopped CRS resources   
  4. Stopping CSSD.  
  5. Shutting down CSS daemon.  
  6. Shutdown request successfully issued.  
  7. [root@vzwc1 ~]# /u01/app/oracle/product/10.2.0/crs/install/root102.sh  
  8. Creating pre-patch directory for saving pre-patch clusterware files  
  9. Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs  
  10. Relinking some shared libraries.  
  11. Relinking of patched files is complete.  
  12. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  13. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  14. WARNING: directory '/u01/app/oracle' is not owned by root  
  15. WARNING: directory '/u01/app' is not owned by root  
  16. Preparing to recopy patched init and RC scripts.  
  17. Recopying init and RC scripts.  
  18. Startup will be queued to init within 30 seconds.  
  19. Starting up the CRS daemons.  
  20. Waiting for the patched CRS daemons to start.  
  21.   This may take a while on some systems.  
  22. .  
  23. 10205 patch successfully applied.  
  24. clscfg: EXISTING configuration version 3 detected.  
  25. clscfg: version 3 is 10G Release 2.  
  26. Successfully deleted 1 values from OCR.  
  27. Successfully deleted 1 keys from OCR.  
  28. Successfully accumulated necessary OCR keys.  
  29. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.  
  30. node <nodenumber>: <nodename> <private interconnect name> <hostname>  
  31. node 1: vzwc1 vzwc1-priv vzwc1  
  32. Creating OCR keys for user 'root', privgrp 'root'..  
  33. Operation successful.  
  34. clscfg -upgrade completed successfully  
  35. Creating '/u01/app/oracle/product/10.2.0/crs/install/paramfile.crs' with data used for CRS configuration  
  36. Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs/install/paramfile.crs  
  1. [root@vzwc2 ~]# /u01/app/oracle/product/10.2.0/crs/bin/crsctl stop crs  
  2. Stopping resources.  
  3. Successfully stopped CRS resources   
  4. Stopping CSSD.  
  5. Shutting down CSS daemon.  
  6. Shutdown request successfully issued.  
  7. [root@vzwc2 ~]# /u01/app/oracle/product/10.2.0/crs/install/root102.sh  
  8. Creating pre-patch directory for saving pre-patch clusterware files  
  9. Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs  
  10. Relinking some shared libraries.  
  11. Relinking of patched files is complete.  
  12. WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root  
  13. WARNING: directory '/u01/app/oracle/product' is not owned by root  
  14. WARNING: directory '/u01/app/oracle' is not owned by root  
  15. WARNING: directory '/u01/app' is not owned by root  
  16. Preparing to recopy patched init and RC scripts.  
  17. Recopying init and RC scripts.  
  18. Startup will be queued to init within 30 seconds.  
  19. Starting up the CRS daemons.  
  20. Waiting for the patched CRS daemons to start.  
  21.   This may take a while on some systems.  
  22. .  
  23. 10205 patch successfully applied.  
  24. clscfg: EXISTING configuration version 3 detected.  
  25. clscfg: version 3 is 10G Release 2.  
  26. Successfully deleted 1 values from OCR.  
  27. Successfully deleted 1 keys from OCR.  
  28. Successfully accumulated necessary OCR keys.  
  29. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.  
  30. node <nodenumber>: <nodename> <private interconnect name> <hostname>  
  31. node 2: vzwc2 vzwc2-priv vzwc2  
  32. Creating OCR keys for user 'root', privgrp 'root'..  
  33. Operation successful.  
  34. clscfg -upgrade completed successfully  
  35. Creating '/u01/app/oracle/product/10.2.0/crs/install/paramfile.crs' with data used for CRS configuration  
  36. Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs/install/paramfile.crs  



Configuration VIPCA

  1. [root@vzwc1 ~]# export DISPLAY=192.168.1.100:0.0  
  2. [root@vzwc1 ~]# /u01/app/oracle/product/10.2.0/crs/bin/vipca  










  1. [oracle@vzwc1 crs]$ crs_stat -t -v  
  2. Name           Type           R/RA   F/FT   Target    State     Host          
  3. ----------------------------------------------------------------------  
  4. ora.vzwc1.gsd  application    0/5    0/0    ONLINE    ONLINE    vzwc1         
  5. ora.vzwc1.ons  application    0/3    0/0    ONLINE    ONLINE    vzwc1         
  6. ora.vzwc1.vip  application    0/0    0/0    ONLINE    ONLINE    vzwc1         
  7. ora.vzwc2.gsd  application    0/5    0/0    ONLINE    ONLINE    vzwc2         
  8. ora.vzwc2.ons  application    0/3    0/0    ONLINE    ONLINE    vzwc2         
  9. ora.vzwc2.vip  application    0/0    0/0    ONLINE    ONLINE    vzwc2         
  10. [oracle@vzwc1 crs]$   
  11. [oracle@vzwc1 crs]$   
  12. [oracle@vzwc1 crs]$   
  13. [oracle@vzwc1 crs]$ crsctl query crs activeversion  
  14. CRS active version on the cluster is [10.2.0.5.0]  
  15. [oracle@vzwc1 crs]$ crsctl query css votedisk  
  16.  0.     0    /dev/raw/raw3  
  17.  1.     0    /dev/raw/raw4  
  18.  2.     0    /dev/raw/raw5  
  19.   
  20. located 3 votedisk(s).  
  21. [oracle@vzwc1 crs]$   
  22. [oracle@vzwc1 crs]$ ocrcheck  
  23. Status of Oracle Cluster Registry is as follows :  
  24.          Version                  :          2  
  25.          Total space (kbytes)     :     497744  
  26.          Used space (kbytes)      :       2020  
  27.          Available space (kbytes) :     495724  
  28.          ID                       :  358473670  
  29.          Device/File Name         : /dev/raw/raw1  
  30.                                     Device/File integrity check succeeded  
  31.          Device/File Name         : /dev/raw/raw2  
  32.                                     Device/File integrity check succeeded  
  33.   
  34.          Cluster registry integrity check succeeded  



Installation Database SoftWare



















  1. [root@vzwc1 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh  
  2. Running Oracle10 root.sh script...  
  3.   
  4. The following environment variables are set as:  
  5.     ORACLE_OWNER= oracle  
  6.     ORACLE_HOME=  /u01/app/oracle/product/10.2.0/db_1  
  7.   
  8. Enter the full pathname of the local bin directory: [/usr/local/bin]:   
  9.    Copying dbhome to /usr/local/bin ...  
  10.    Copying oraenv to /usr/local/bin ...  
  11.    Copying coraenv to /usr/local/bin ...  
  12.   
  13.   
  14. Creating /etc/oratab file...  
  15. Entries will be added to the /etc/oratab file as needed by  
  16. Database Configuration Assistant when a database is created  
  17. Finished running generic part of root.sh script.  
  18. Now product-specific root actions will be performed.  
  1. [root@vzwc2 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh  
  2. Running Oracle10 root.sh script...  
  3.   
  4. The following environment variables are set as:  
  5.     ORACLE_OWNER= oracle  
  6.     ORACLE_HOME=  /u01/app/oracle/product/10.2.0/db_1  
  7.   
  8. Enter the full pathname of the local bin directory: [/usr/local/bin]:   
  9.    Copying dbhome to /usr/local/bin ...  
  10.    Copying oraenv to /usr/local/bin ...  
  11.    Copying coraenv to /usr/local/bin ...  
  12.   
  13.   
  14. Creating /etc/oratab file...  
  15. Entries will be added to the /etc/oratab file as needed by  
  16. Database Configuration Assistant when a database is created  
  17. Finished running generic part of root.sh script.  
  18. Now product-specific root actions will be performed.  



Upgrade Database SoftWare to 10.2.0.5

















Create RAC Database









































Validated RAC Database


  1. [oracle@vzwc2 ~]$ srvctl status database -d zhongwc  
  2. Instance zhongwc1 is running on node vzwc1  
  3. Instance zhongwc2 is running on node vzwc2  
  4. [oracle@vzwc2 ~]$   
  5. [oracle@vzwc2 ~]$ srvctl status service -d zhongwc -s erp  
  6. Service erp is running on instance(s) zhongwc1  
  7. [oracle@vzwc2 ~]$   
  8. [oracle@vzwc2 ~]$ srvctl status nodeapps -n vzwc1  
  9. VIP is running on node: vzwc1  
  10. GSD is running on node: vzwc1  
  11. Listener is running on node: vzwc1  
  12. ONS daemon is running on node: vzwc1  
  13. [oracle@vzwc2 ~]$   
  14. [oracle@vzwc2 ~]$ srvctl status nodeapps -n vzwc2  
  15. VIP is running on node: vzwc2  
  16. GSD is running on node: vzwc2  
  17. Listener is running on node: vzwc2  
  18. ONS daemon is running on node: vzwc2  
  19. [oracle@vzwc2 ~]$   
  20. [oracle@vzwc2 ~]$ srvctl status asm -n vzwc1  
  21. [oracle@vzwc2 ~]$ srvctl status asm -n vzwc2  
  22. [oracle@vzwc2 ~]$   
  23. [oracle@vzwc2 ~]$ srvctl config database  
  24. zhongwc  
  25. [oracle@vzwc2 ~]$ srvctl config database -d zhongwc  
  26. vzwc1 zhongwc1 /u01/app/oracle/product/10.2.0/db_1  
  27. vzwc2 zhongwc2 /u01/app/oracle/product/10.2.0/db_1  

  1. [oracle@vzwc2 ~]$ crs_stat -t -v  
  2. Name           Type           R/RA   F/FT   Target    State     Host          
  3. ----------------------------------------------------------------------  
  4. ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    vzwc1         
  5. ora.vzwc1.gsd  application    0/5    0/0    ONLINE    ONLINE    vzwc1         
  6. ora.vzwc1.ons  application    0/3    0/0    ONLINE    ONLINE    vzwc1         
  7. ora.vzwc1.vip  application    0/0    0/0    ONLINE    ONLINE    vzwc1         
  8. ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    vzwc2         
  9. ora.vzwc2.gsd  application    0/5    0/0    ONLINE    ONLINE    vzwc2         
  10. ora.vzwc2.ons  application    0/3    0/0    ONLINE    ONLINE    vzwc2         
  11. ora.vzwc2.vip  application    0/0    0/0    ONLINE    ONLINE    vzwc2         
  12. ora.zhongwc.db application    0/0    0/1    ONLINE    ONLINE    vzwc1         
  13. ora.....erp.cs application    0/0    0/1    ONLINE    ONLINE    vzwc1         
  14. ora....wc1.srv application    0/0    0/0    ONLINE    ONLINE    vzwc1         
  15. ora....c1.inst application    0/5    0/0    ONLINE    ONLINE    vzwc1         
  16. ora....c2.inst application    0/5    0/0    ONLINE    ONLINE    vzwc2         
  17. [oracle@vzwc2 ~]$   
  18. [oracle@vzwc2 ~]$ crsctl check crs  
  19. CSS appears healthy  
  20. CRS appears healthy  
  21. EVM appears healthy  
  22. [oracle@vzwc2 ~]$ crsctl query crs activeversion  
  23. CRS active version on the cluster is [10.2.0.5.0]  
  24. [oracle@vzwc2 ~]$   
  25. [oracle@vzwc2 ~]$ crsctl query css votedisk  
  26.  0.     0    /dev/raw/raw3  
  27.  1.     0    /dev/raw/raw4  
  28.  2.     0    /dev/raw/raw5  
  29.   
  30. located 3 votedisk(s).  
  31. [oracle@vzwc2 ~]$   
  32. [oracle@vzwc2 ~]$ ocrcheck  
  33. Status of Oracle Cluster Registry is as follows :  
  34.          Version                  :          2  
  35.          Total space (kbytes)     :     497744  
  36.          Used space (kbytes)      :       3804  
  37.          Available space (kbytes) :     493940  
  38.          ID                       :  358473670  
  39.          Device/File Name         : /dev/raw/raw1  
  40.                                     Device/File integrity check succeeded  
  41.          Device/File Name         : /dev/raw/raw2  
  42.                                     Device/File integrity check succeeded  
  43.   
  44.          Cluster registry integrity check succeeded  

  1. [oracle@vzwc1 ~]$ sqlplus system@zhongwc1  
  2.   
  3. SQL*Plus: Release 10.2.0.5.0 - Production on Tue Oct 22 22:23:52 2013  
  4.   
  5. Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.  
  6.   
  7. Enter password:   
  8.   
  9. Connected to:  
  10. Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  11. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  12. and Real Application Testing options  
  13.   
  14. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  15. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  16. and Real Application Testing options  
  17. [oracle@vzwc1 ~]$ sqlplus system@zhongwc2  
  18.   
  19. SQL*Plus: Release 10.2.0.5.0 - Production on Tue Oct 22 22:23:58 2013  
  20.   
  21. Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.  
  22.   
  23. Enter password:   
  24.   
  25. Connected to:  
  26. Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  27. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  28. and Real Application Testing options  
  29.   
  30. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  31. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  32. and Real Application Testing options  
  33. [oracle@vzwc1 ~]$ sqlplus system@zhongwc  
  34.   
  35. SQL*Plus: Release 10.2.0.5.0 - Production on Tue Oct 22 22:24:02 2013  
  36.   
  37. Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.  
  38.   
  39. Enter password:   
  40.   
  41. Connected to:  
  42. Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  43. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  44. and Real Application Testing options  
  45.   
  46. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  47. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  48. and Real Application Testing options  
  49. [oracle@vzwc1 ~]$ sqlplus system@erp  
  50.   
  51. SQL*Plus: Release 10.2.0.5.0 - Production on Tue Oct 22 22:24:12 2013  
  52.   
  53. Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.  
  54.   
  55. Enter password:   
  56.   
  57. Connected to:  
  58. Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  59. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  60. and Real Application Testing options  
  61.   
  62. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  63. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  64. and Real Application Testing options  
  65. [oracle@vzwc1 ~]$   
  66. [oracle@vzwc1 ~]$ lsnrctl status  
  67.   
  68. LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 22-OCT-2013 22:24:20  
  69.   
  70. Copyright (c) 1991, 2010, Oracle.  All rights reserved.  
  71.   
  72. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))  
  73. STATUS of the LISTENER  
  74. ------------------------  
  75. Alias                     LISTENER_VZWC1  
  76. Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production  
  77. Start Date                22-OCT-2013 22:03:37  
  78. Uptime                    0 days 0 hr. 20 min. 43 sec  
  79. Trace Level               off  
  80. Security                  ON: Local OS Authentication  
  81. SNMP                      OFF  
  82. Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora  
  83. Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener_vzwc1.log  
  84. Listening Endpoints Summary...  
  85.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.161)(PORT=1521)))  
  86.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.61)(PORT=1521)))  
  87.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))  
  88. Services Summary...  
  89. Service "erp" has 1 instance(s).  
  90.   Instance "zhongwc1", status READY, has 2 handler(s) for this service...  
  91. Service "zhongwc" has 2 instance(s).  
  92.   Instance "zhongwc1", status READY, has 2 handler(s) for this service...  
  93.   Instance "zhongwc2", status READY, has 1 handler(s) for this service...  
  94. Service "zhongwcXDB" has 2 instance(s).  
  95.   Instance "zhongwc1", status READY, has 1 handler(s) for this service...  
  96.   Instance "zhongwc2", status READY, has 1 handler(s) for this service...  
  97. Service "zhongwc_XPT" has 2 instance(s).  
  98.   Instance "zhongwc1", status READY, has 2 handler(s) for this service...  
  99.   Instance "zhongwc2", status READY, has 1 handler(s) for this service...  
  100. The command completed successfully  

  1. SQL> select tablespace_name, file_name from dba_data_files  
  2.   2  union all  
  3.   3  select tablespace_name, file_name from dba_temp_files;  
  4.   
  5. TABLESPACE_NAME                FILE_NAME  
  6. ------------------------------ --------------------  
  7. USERS                          /dev/raw/raw18  
  8. SYSAUX                         /dev/raw/raw15  
  9. UNDOTBS1                       /dev/raw/raw20  
  10. SYSTEM                         /dev/raw/raw14  
  11. EXAMPLE                        /dev/raw/raw16  
  12. UNDOTBS2                       /dev/raw/raw21  
  13. TEMP                           /dev/raw/raw17  
  14.   
  15. 7 rows selected.  
  16.   
  17. SQL> create tablespace zwc datafile '/dev/raw/raw19' size 800M autoextend off;  
  18.   
  19. Tablespace created.  
  20.   
  21. SQL> select tablespace_name, file_name from dba_data_files  
  22.   2  union all  
  23.   3  select tablespace_name, file_name from dba_temp_files;  
  24.   
  25. TABLESPACE_NAME                FILE_NAME  
  26. ------------------------------ --------------------  
  27. USERS                          /dev/raw/raw18  
  28. SYSAUX                         /dev/raw/raw15  
  29. UNDOTBS1                       /dev/raw/raw20  
  30. SYSTEM                         /dev/raw/raw14  
  31. EXAMPLE                        /dev/raw/raw16  
  32. UNDOTBS2                       /dev/raw/raw21  
  33. ZWC                            /dev/raw/raw19  
  34. TEMP                           /dev/raw/raw17  
  35.   
  36. 8 rows selected.  
  37.   
  38. SQL> select name from v$controlfile;  
  39.   
  40. NAME  
  41. ------------------------------  
  42. /dev/raw/raw10  
  43. /dev/raw/raw11  
  44.   
  45. SQL> select member from v$logfile;  
  46.   
  47. MEMBER  
  48. ------------------------------  
  49. /dev/raw/raw7  
  50. /dev/raw/raw6  
  51. /dev/raw/raw8  
  52. /dev/raw/raw9  
  53.   
  54. SQL> show parameter spfile  
  55.   
  56. NAME                                 TYPE        VALUE  
  57. ------------------------------------ ----------- ------------------------------  
  58. spfile                               string      /dev/raw/raw13  

  1. SQL> select AUTOEXTENSIBLE,tablespace_name,file_name from dba_data_files  
  2.   2  union all  
  3.   3  select AUTOEXTENSIBLE,tablespace_name,file_name from dba_temp_files  
  4.   4  /  
  5.   
  6. AUT TABLESPACE_NAME                FILE_NAME  
  7. --- ------------------------------ ------------------------------  
  8. NO  USERS                          /dev/raw/raw18  
  9. NO  SYSAUX                         /dev/raw/raw15  
  10. NO  UNDOTBS1                       /dev/raw/raw20  
  11. NO  SYSTEM                         /dev/raw/raw14  
  12. NO  EXAMPLE                        /dev/raw/raw16  
  13. NO  UNDOTBS2                       /dev/raw/raw21  
  14. NO  ZWC                            /dev/raw/raw19  
  15. NO  TEMP                           /dev/raw/raw17  
  16.   
  17. 8 rows selected.  

  1. [oracle@vzwc2 ~]$ sqlplus system@zhongwc  
  2.   
  3. SQL*Plus: Release 10.2.0.5.0 - Production on Tue Oct 22 22:55:25 2013  
  4.   
  5. Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.  
  6.   
  7. Enter password:   
  8.   
  9. Connected to:  
  10. Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production  
  11. With the Partitioning, Real Application Clusters, OLAP, Data Mining  
  12. and Real Application Testing options  
  13.   
  14. SQL> col host_name format a11  
  15. SQL> set line 300   
  16. SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';  
  17.   
  18. Session altered.  
  19.   
  20. SQL> select INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS,ACTIVE_STATE,INSTANCE_ROLE,DATABASE_STATUS from gv$INSTANCE;  
  21.   
  22. INSTANCE_NAME    HOST_NAME   VERSION           STARTUP_TIME        STATUS       ACTIVE_ST INSTANCE_ROLE      DATABASE_STATUS  
  23. ---------------- ----------- ----------------- ------------------- ------------ --------- ------------------ -----------------  
  24. zhongwc1         vzwc1       10.2.0.5.0        2013-10-22 22:53:16 OPEN         NORMAL    PRIMARY_INSTANCE   ACTIVE  
  25. zhongwc2         vzwc2       10.2.0.5.0        2013-10-22 22:54:17 OPEN         NORMAL    PRIMARY_INSTANCE   ACTIVE 

浏览1730 评论0
返回
目录
返回
首页
虚拟机安装10g rac的几点备忘 Oracle10gR2 RAC实时应用集群(三)在Redhat Enterprise Linux5 x86_64下的集群(RAW+ASM篇)