1. Platform Compaq GS60 Server (2 nodes) 2GB RAM, 4GB Swap 9GB local disk HSG80 Disk array, 10 X 18GB disks, RAID 1 Compaq Tru64 UNIX 4.0F, TruCluster 1.62. UNIX kernel parameters Add following lines to /etc/sysconfigtab and reboot server ################################## ipc: shm-max = 1073741824 shm-mni = 128 shm-seg = 32 dlm: dlm_disable_grptx = 0 ################################## 3. Create unix group and user account 用addgroup和adduser命令创建组和用户 group name: dba group id: 101 use adduser to add an user username: oracle userid: 101 home dir: /oracle/oracle primary group: dba password: Oracle 4. add following line to /oracle/oracle/.profile ################################## ORACLE_BASE=/oracle/oracle ORACLE_HOME=$ORACLE_BASE ORACLE_SID=ORA8 ORACLE_TERM=vt100 ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data NLS_LANG=american_america.us7ascii LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib DISPLAY=localhost:0.0 export ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM ORA_NLS33 NLS_LANG LD_LIBRARY_PATH DISPLAY PATH=$ORACLE_HOME/bin:$PATH:. umask 022 ################################## 5. mount oracle cdrom mount -t cdfs -r -o nodefperm,noversion,rrip /dev/rz28c /mnt 6. execute /mnt/orainst/oratab.sh as root user ORACLE_OWNER=oracle export ORACLE_OWNER cd /mnt/orainst sh oratab.sh 7. confirm that TruCluster is running cnxshow 8. startup oracle installer as oracle user cd /mnt/orainst orainst /c select install software, not create database select necessary products 9. distribute oracle software to another node in the cluster tar cvf /tmpdir/oracle.tar /oracle/oracle/* rcp /tmpdir/oracle.tar xjqssv2:/tmpdir rlogin xjqssv2 tar xvpf /tmpdir/oracle.tar 10. change owner of drd device on both nodes chown oracle:dba /dev/rdrd/drd* 11. create database with oracle installer (login as oracle user) cd $ORACLE_HOME/orainst orainst /c select create database objects 12. run root.sh as root user ORACLE_OWNER=oracle export ORACLE_OWNER ORACLE_SID=ORA8 export ORACLE_SID cd /oracle/oracle/orainst sh root.sh 13. change database to archivelog mode svrmgrl <<EOF connect internal shutdown immediate startup mount alter database archivelog; shutdown exit EOF 14. copy all sub-directory and file under /oracle/oracle/admin/ORA8 to another node cd $ORACLE_HOME/dbs ln -s /oracle/oracle/admin/ORA8/pfile/initORA8.ora initORA8.ora ln -s /oracle/oracle/admin/ORA8/pfile/configORA8.ora configORA8.ora 15. confirm the followin parameters in initORA8.ora on node 1 log_archive_start = true # if you want automatic archiving log_archive_dest = /archive1/ORA8/arch log_archive_format = %t_%s.dbf rollback_segments= (r01,r02,r03,r04) PARALLEL_SERVER=TRUE instance_number=1 thread=1 16. confirm the followin parameters in initORA8.ora on node 2 log_archive_start = true # if you want automatic archiving log_archive_dest = /archive2/ORA8/arch log_archive_format = %t_%s.dbf rollback_segments= (rbs2) PARALLEL_SERVER=TRUE instance_number=2 thread=2 17. run root.sh as root user on the second node ORACLE_OWNER=oracle export ORACLE_OWNER ORACLE_SID=ORA8 export ORACLE_SID cd /oracle/oracle/orainst sh root.sh 18. create dbstart_ops and dbshut_ops in $ORACLE_HOME/bin on both nodes # dbstart_ops, used to startup OPS ORACLE_HOME=/oracle/oracle ORACLE_SID=ORA8 ogmsctl start lsnrctl start svrmgrl <<EOF connect internal startup exit EOF # dbshut_ops, used to shutdown OPS ORACLE_HOME=/oracle/oracle ORACLE_SID=ORA8 lsnrctl stop svrmgrl <<EOF connect internal shutdown immediate exit EOF ogmsctl stop 19. create another database for rman by using $ORACLE_HOME/orainst/orainst ORACLE_SID=rman (datafiles, control files and online redologs stored in /backup/rman/oradata/rman) create tablespace rcvcat; create user rman identified by rman default tablespace rcvcat temporary tablespace temp quota unlimited on rcvcat; grant recover_catalog_owner to rman; connect rman/rman @?/rdbms/admin/catrman.sql 20. copy all sub-directory and file under /oracle/oracle/admin/rman to another node cd $ORACLE_HOME/dbs ln -s /oracle/oracle/admin/rman/pfile/initrman.ora initrman.ora ln -s /oracle/oracle/admin/rman/pfile/configrman.ora configrman.ora 21. create dbstart_rman and dbshut_rman in $ORACLE_HOME/bin on both nodes # dbstart_rman, used to startup rman catalog database ORACLE_HOME=/oracle/oracle ORACLE_SID=rman export ORACLE_HOME ORACLE_SID lsnrctl start lsnr_rman svrmgrl <<EOF connect internal startup exit EOF # dbshut_ops, used to shutdown rman catalog database ORACLE_HOME=/oracle/oracle ORACLE_SID=rman export ORACLE_HOME ORACLE_SID lsnrctl stop lsnr_rman svrmgrl <<EOF connect internal shutdown immediate exit EOF 22. config listener.ora an tnsnames.ora by using $ORACLE_HOME/bin/net8asst.sh Please refer to $ORACLE_HOME/network/admin/listener.ora and $ORACLE_HOME/network/admin/tnsnames.ora 23. reserve 1521 and 1526 port in /etc/services Please refer to this file Note: 1. OPS should be startup after TruCluster is up 2. OPS should be shutdown before shutdown TruCluster 3. passwords of system and sys user are manager 4. drd devices and disk partitions, please refer to "drd" and "disks" files 5. rman database should be startup on the node owner filesystem "backup" 6. for using rman, please refer to files in /oracle/oracle/docs/rman
|