## Installing part 1 of 1.
/usr/cluster/lib/ucmm/reconf.d/rc1.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc10.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc2.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc3.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc8.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc9.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcA.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcK.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcR.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcS.d/10_cvm <symbolic link>
[ verifying class <none> ]
Installation of <SUNWcvmr> was successful.
Processing package instance <SUNWcvm> from </opt//suncluster_3_1/SunCluster_3
.1/Sol_9/Packages>
Sun Cluster Support for Veritas CVM, (opt)
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWcvm> [y,n,?]y
Installing Sun Cluster Support for Veritas CVM, (opt) as <SUNWcvm>
## Installing part 1 of 1.
21 blocks
Installation of <SUNWcvm> was successful.
十四、安装Oracle 9i RAC的分布式文件锁的包
root@rac1 #cd /opt//racpatch
root@rac1 # pkgadd -d . ORCLudlm
Processing package instance <ORCLudlm> from </opt//racpatch>
Oracle UNIX Distributed Lock Manager
(sparc) Dev Release 02/02/02, 3.3.4.5
Copyright (C) Oracle Corporation 1993, 1994, 1995, 1996, 1997
This software/documentation contains proprietary information of Oracle
Corporation; it is provided under a license agreement containing
restrictions on use and disclosure and is also protected by copyright
law. Reverse engineering of the software is prohibited.
If this software/documentation is delivered to a U.S. Government Agency
of the Department of Defense, then it is delivered with Restricted Rights
and the following legend is applicable:
RESTRICTED RIGHTS LEGEND:
Use, duplication, or disclosure by the Government is subject to restrictions
as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013, Rights in
Technical Data and Computer Software (October 1988).
If this software/documentation is delivered to a U.S. Government Agency
not within the Department of Defense, then it is delivered with
"Restricted Rights," as defined in FAR 52.227-14, Rights in Data -
General, including Alternate III (June 1987).
Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.
The information in this document is subject to change without notice.
If you find any problems in the documentation, please report them to us in
writing. Oracle Corporation does not warrant that this document is error free.
Oracle, CASE*Dictionary, Pro*Ada, Pro*COBOL, Pro*FORTRAN, Pro*Pascal,
Pro*PL/I, SQL*Connect, SQL*Forms, SQL*Loader, SQL*Net, and
SQL*Plus are registered trademarks of Oracle Corporation. CASE*Designer,
CASE*Method, Oracle7, Oracle Parallel Server, PL/SQL, Pro*C/C++,
SQL*Module, Oracle Server Manager and Trusted Oracle7 are trademarks of
Oracle Corporation.
All trade names referenced are the service mark, trademark, or registered
trademark of the respective manufacturer.
Installation of ORCLudlm on Solaris 2.9
You will now be prompted for the name of the group which will be used by Oracle.
- You will need to create this group before attempting to bringup pdb
- Oracle install will ask you for this information as well. Be sure
to give the same response for the group name.
Please enter the group which should be able to act as the DBA of the database
(dba): [?]
Sun Cluster release: 3.0
- no udlm_shmem_addr_file.txt file found
- /opt/SUNWcluster/lib/udlm_shmem_addr_file.txt will be created
- with 0x12000000 as the shmem attach address for udlm
Package classes: none sol_2.8 sc30 cpusaf
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
3 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <ORCLudlm> [y,n,?]y
Installing Oracle UNIX Distributed Lock Manager as <ORCLudlm>
## Installing part 1 of 1.
/opt/ORCLcluster/lib/libskgxn2.so
/opt/SUNWcluster/TEMPLATE.conf
[ verifying class <none> ]
/opt/SUNWcluster/bin/dlmdump
/opt/SUNWcluster/bin/dlmstat
/opt/SUNWcluster/bin/dlmtctl
/opt/SUNWcluster/bin/lkdbx
/opt/SUNWcluster/bin/lkmgr
/opt/SUNWcluster/bin/lktest
/opt/SUNWcluster/lib/sparcv9/libudlm.so
/opt/SUNWcluster/lib/sparcv9 <implied directory>
/opt/SUNWcluster/lib/sparcv9/libudlmsvr.so
[ verifying class <sol_2.8> ]
/opt/SUNWcluster/lib/libcdb.so <symbolic link>
/opt/SUNWcluster/lib/libcdb.so.1 <symbolic link>
/opt/SUNWcluster/lib/libcluster.so <symbolic link>
/opt/SUNWcluster/lib/libcluster.so.1 <symbolic link>
/opt/SUNWcluster/lib/libclustm.so <symbolic link>
/opt/SUNWcluster/lib/libclustm.so.1 <symbolic link>
/opt/SUNWcluster/lib/libhaops.so <symbolic link>
/opt/SUNWcluster/lib/libhaops.so.1 <symbolic link>
/opt/SUNWcluster/lib/libudlmlib.so <symbolic link>
/opt/SUNWcluster/lib/libudlmlib.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcdb.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcdb.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcluster.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcluster.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libclustm.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libclustm.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libhaops.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libhaops.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libudlmlib.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libudlmlib.so.1 <symbolic link>
[ verifying class <sc30> ]
/opt/SUNWcluster/lib/udlm_shmem_addr_file.txt
[ verifying class <cpusaf> ]
## Executing postinstall script.
/etc/opt/SUNWcluster/conf/udlm.conf NOT found.
It will be created with the values in the
/etc/opt/SUNWcluster/conf/udlm.conf.template file.
/opt/SUNWcluster/TEMPLATE.conf
Installation of <ORCLudlm> was successful.
root@rac2 # pkgadd -d . SUNWudlm
Processing package instance <SUNWudlm> from </opt//suncluster_3_1/SunCluster_
3.1/Sol_9/Packages>
Sun Cluster Support for Oracle Parallel Server UDLM, (opt)
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWudlm> [y,n,?] y
Installing Sun Cluster Support for Oracle Parallel Server UDLM, (opt) as <SUNWud
lm>
## Installing part 1 of 1.
204 blocks
Installation of <SUNWudlm> was successful.
root@rac2 # pkgadd -d . SUNWscucm SUNWudlmr SUNWcvmr SUNWcvm
Processing package instance <SUNWscucm> from </opt//suncluster_3_1/SunCluster
_3.1/Sol_9/Packages>
Sun Cluster UCMM reconfiguration interface
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWscucm> [y,n,?] y
Installing Sun Cluster UCMM reconfiguration interface as <SUNWscucm>
## Installing part 1 of 1.
520 blocks
## Executing postinstall script.
Installation of <SUNWscucm> was successful.
Processing package instance <SUNWudlmr> from </opt//suncluster_3_1/SunCluster
_3.1/Sol_9/Packages>
Sun Cluster Support for Oracle Parallel Server UDLM, (root)
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
13 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing Sun Cluster Support for Oracle Parallel Server UDLM, (root) as <SUNWu
dlmr>
## Installing part 1 of 1.
/usr/cluster/lib/ucmm/reconf.d/rc2.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc4.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc5.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc6.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc7.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcA.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcK.d/05_udlm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcS.d/05_udlm <symbolic link>
[ verifying class <none> ]
Installation of <SUNWudlmr> was successful.
Processing package instance <SUNWcvmr> from </opt//suncluster_3_1/SunCluster_
3.1/Sol_9/Packages>
Sun Cluster Support for Veritas CVM, (root)
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
15 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing Sun Cluster Support for Veritas CVM, (root) as <SUNWcvmr>
## Installing part 1 of 1.
/usr/cluster/lib/ucmm/reconf.d/rc1.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc10.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc2.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc3.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc8.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rc9.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcA.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcK.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcR.d/05_cvm <symbolic link>
/usr/cluster/lib/ucmm/reconf.d/rcS.d/10_cvm <symbolic link>
[ verifying class <none> ]
Installation of <SUNWcvmr> was successful.
Processing package instance <SUNWcvm> from </opt//suncluster_3_1/SunCluster_3
.1/Sol_9/Packages>
Sun Cluster Support for Veritas CVM, (opt)
(sparc) 3.1.0,REV=2003.03.25.13.14
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <SUNWcvm> [y,n,?] y
Installing Sun Cluster Support for Veritas CVM, (opt) as <SUNWcvm>
## Installing part 1 of 1.
21 blocks
Installation of <SUNWcvm> was successful.
root@rac2 # cd /opt//racpatch
root@rac2 # pkgadd -d . ORCLudlm
Processing package instance <ORCLudlm> from </opt//racpatch>
Oracle UNIX Distributed Lock Manager
(sparc) Dev Release 02/02/02, 3.3.4.5
Copyright (C) Oracle Corporation 1993, 1994, 1995, 1996, 1997
This software/documentation contains proprietary information of Oracle
Corporation; it is provided under a license agreement containing
restrictions on use and disclosure and is also protected by copyright
law. Reverse engineering of the software is prohibited.
If this software/documentation is delivered to a U.S. Government Agency
of the Department of Defense, then it is delivered with Restricted Rights
and the following legend is applicable:
RESTRICTED RIGHTS LEGEND:
Use, duplication, or disclosure by the Government is subject to restrictions
as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013, Rights in
Technical Data and Computer Software (October 1988).
If this software/documentation is delivered to a U.S. Government Agency
not within the Department of Defense, then it is delivered with
"Restricted Rights," as defined in FAR 52.227-14, Rights in Data -
General, including Alternate III (June 1987).
Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.
The information in this document is subject to change without notice.
If you find any problems in the documentation, please report them to us in
writing. Oracle Corporation does not warrant that this document is error free.
Oracle, CASE*Dictionary, Pro*Ada, Pro*COBOL, Pro*FORTRAN, Pro*Pascal,
Pro*PL/I, SQL*Connect, SQL*Forms, SQL*Loader, SQL*Net, and
SQL*Plus are registered trademarks of Oracle Corporation. CASE*Designer,
CASE*Method, Oracle7, Oracle Parallel Server, PL/SQL, Pro*C/C++,
SQL*Module, Oracle Server Manager and Trusted Oracle7 are trademarks of
Oracle Corporation.
All trade names referenced are the service mark, trademark, or registered
trademark of the respective manufacturer.
Installation of ORCLudlm on Solaris 2.9
You will now be prompted for the name of the group which will be used by Oracle.
- You will need to create this group before attempting to bringup pdb
- Oracle install will ask you for this information as well. Be sure
to give the same response for the group name.
Please enter the group which should be able to act as the DBA of the database
(dba): [?]
Sun Cluster release: 3.0
- no udlm_shmem_addr_file.txt file found
- /opt/SUNWcluster/lib/udlm_shmem_addr_file.txt will be created
- with 0x12000000 as the shmem attach address for udlm
Package classes: none sol_2.8 sc30 cpusaf
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
3 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <ORCLudlm> [y,n,?] y
Installing Oracle UNIX Distributed Lock Manager as <ORCLudlm>
## Installing part 1 of 1.
/opt/ORCLcluster/lib/libskgxn2.so
/opt/SUNWcluster/TEMPLATE.conf
[ verifying class <none> ]
/opt/SUNWcluster/bin/dlmdump
/opt/SUNWcluster/bin/dlmstat
/opt/SUNWcluster/bin/dlmtctl
/opt/SUNWcluster/bin/lkdbx
/opt/SUNWcluster/bin/lkmgr
/opt/SUNWcluster/bin/lktest
/opt/SUNWcluster/lib/sparcv9/libudlm.so
/opt/SUNWcluster/lib/sparcv9 <implied directory>
/opt/SUNWcluster/lib/sparcv9/libudlmsvr.so
[ verifying class <sol_2.8> ]
/opt/SUNWcluster/lib/libcdb.so <symbolic link>
/opt/SUNWcluster/lib/libcdb.so.1 <symbolic link>
/opt/SUNWcluster/lib/libcluster.so <symbolic link>
/opt/SUNWcluster/lib/libcluster.so.1 <symbolic link>
/opt/SUNWcluster/lib/libclustm.so <symbolic link>
/opt/SUNWcluster/lib/libclustm.so.1 <symbolic link>
/opt/SUNWcluster/lib/libhaops.so <symbolic link>
/opt/SUNWcluster/lib/libhaops.so.1 <symbolic link>
/opt/SUNWcluster/lib/libudlmlib.so <symbolic link>
/opt/SUNWcluster/lib/libudlmlib.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcdb.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcdb.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcluster.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libcluster.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libclustm.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libclustm.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libhaops.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libhaops.so.1 <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libudlmlib.so <symbolic link>
/opt/SUNWcluster/lib/sparcv9/libudlmlib.so.1 <symbolic link>
[ verifying class <sc30> ]
/opt/SUNWcluster/lib/udlm_shmem_addr_file.txt
[ verifying class <cpusaf> ]
## Executing postinstall script.
/etc/opt/SUNWcluster/conf/udlm.conf NOT found.
It will be created with the values in the
/etc/opt/SUNWcluster/conf/udlm.conf.template file.
/opt/SUNWcluster/TEMPLATE.conf
Installation of <ORCLudlm> was successful.
root@rac2 #
十五、加Veritas Cluster Volume Manager License
root@rac1 # /opt/VRTSvlic/bin/vxlicinst -k RRP9-UDDP-CRPP-8LBP-PPPP-PP3Z-PP
VERITAS License Manager vxlicinst utility version 3.00.007d
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.
Number of days left for Demo = 60
License key successfully installed for VERITAS Volume Manager
root@rac2 # /opt/VRTSvlic/bin/vxlicinst -k RRP9-UDDP-CRPP-8LBP-PPPP-PP3Z-PP
VERITAS License Manager vxlicinst utility version 3.00.007d
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.
Number of days left for Demo = 60
License key successfully installed for VERITAS Volume Manager
十六、修改Solaris关于安装oracle的内核参数
在两个节点的/etc/system加入如下内容:
set shmsys:shminfo_shmmax=4294967296
set shmsys:shminfo_shmmin=200
set shmsys:shminfo_shmmni=200
set shmsys:shminfo_shmseg=200
set semsys:seminfo_semmap=1024
set semsys:seminfo_semmns=2048
set semsys:seminfo_semmni=2048
set semsys:seminfo_semmsl=2048
set semsys:seminfo_semmnu=2048
set semsys:seminfo_semume=200
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
forceload: sys/shmsys
forceload: sys/semsys
forceload: sys/msgsys
十六、重起机器
root@rac1 # scshutdown -y -g 30
在rac1:
OK boot
rac1启动后,在rac2
OK boot十七、准备VxVM Disk
root@rac1 # vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform:1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [<pattern-list>,all,list,q,?] c2
Here are the disks selected. Output format: [Device_Name]
c2t5d0 c2t5d1 c2t5d2 c2t5d3 c2t5d4
Continue operation? [y,n,q,?] (default: y)
You can choose to add these disks to an existing disk group, a
new disk group, or you can leave these disks available for use
by future add or replacement operations. To create a new disk
group, select a disk group name that does not yet exist. To
leave the disks available for future use, specify a disk group
name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg) none
All disks will be initialized and left free for use as replacement
disks.
c2t5d0 c2t5d1 c2t5d2 c2t5d3 c2t5d4
Continue with operation? [y,n,q,?] (default: y)
Initializing device c2t5d0.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c2t5d1.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c2t5d2.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c2t5d3.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c2t5d4.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Add or initialize other disks? [y,n,q,?] (default: n) y
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [<pattern-list>,all,list,q,?] c3
Here are the disks selected. Output format: [Device_Name]
c3t5d0 c3t5d1 c3t5d2 c3t5d3 c3t5d4
Continue operation? [y,n,q,?] (default: y)
You can choose to add these disks to an existing disk group, a
new disk group, or you can leave these disks available for use
by future add or replacement operations. To create a new disk
group, select a disk group name that does not yet exist. To
leave the disks available for future use, specify a disk group
name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg) none
All disks will be initialized and left free for use as replacement
disks.
c3t5d0 c3t5d1 c3t5d2 c3t5d3 c3t5d4
Continue with operation? [y,n,q,?] (default: y)
Initializing device c3t5d0.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c3t5d1.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c3t5d2.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c3t5d3.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Initializing device c3t5d4.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Add or initialize other disks? [y,n,q,?] (default: n) y
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [<pattern-list>,all,list,q,?] c1t1d0
Here is the disk selected. Output format: [Device_Name]
c1t1d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg) none
The disk will be initialized and left free for use as a replacement
disk.
c1t1d0
Continue with operation? [y,n,q,?] (default: y)
The following disk device appears to have been initialized already.
The disk is currently available as a replacement disk.
Output format: [Device_Name]
c1t1d0
Use this device? [y,n,q,?] (default: y)
The following disk you selected for use appears to already have
been initialized for the Volume Manager. If you are certain the
disk has already been initialized for the Volume Manager, then you
do not need to reinitialize the disk device.
Output format: [Device_Name]
c1t1d0
Reinitialize this device? [y,n,q,?] (default: y)
Initializing device c1t1d0.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Add or initialize other disks? [y,n,q,?] (default: n)n
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform:q
Goodbye.
root@rac1 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced rootdisk_1 rootdg online
c1t1d0s2 sliced - - online
c2t5d0s2 sliced - - online
c2t5d1s2 sliced - - online
c2t5d2s2 sliced - - online
c2t5d3s2 sliced - - online
c2t5d4s2 sliced - - online
c3t5d0s2 sliced - - online
c3t5d1s2 sliced - - online
c3t5d2s2 sliced - - online
c3t5d3s2 sliced - - online
c3t5d4s2 sliced - - online
root@rac2 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced rootdisk_2 rootdg online
c1t1d0s2 sliced - - error
c2t5d0s2 sliced - - online
c2t5d1s2 sliced - - online
c2t5d2s2 sliced - - online
c2t5d3s2 sliced - - online
c2t5d4s2 sliced - - online
c3t5d0s2 sliced - - online
c3t5d1s2 sliced - - online
c3t5d2s2 sliced - - online
c3t5d3s2 sliced - - online
c3t5d4s2 sliced - - online
root@rac2 # vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
list List disk information
? Display help about menu
?? Display help about the menuing system
Hit RETURN to continue.
q Exit from menus
Select an operation to perform:1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can
add the selected disks to an existing disk group or to a new disk group
that will be created as a part of the operation. The selected disks may
also be added to a disk group as spares. Or they may be added as
nohotuses to be excluded from hot-relocation use. The selected
disks may also be initialized without adding them to a disk group
leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are
some disk selection examples:
all: all disks
c3 c4t2: all disks on both controller 3 and controller 4, target 2
c3t4d2: a single disk (in the c#t#d# naming scheme)
xyz_0 : a single disk (in the enclosure based naming scheme)
xyz_ : all disks on the enclosure whose name is xyz
Select disk devices to add: [<pattern-list>,all,list,q,?] c1t1d0
Here is the disk selected. Output format: [Device_Name]
c1t1d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg) none
The disk will be initialized and left free for use as a replacement
disk.
c1t1d0
Continue with operation? [y,n,q,?] (default: y)
The following disk device has a valid VTOC, but does not appear to have
been initialized for the Volume Manager. If there is data on the disk
that should NOT be destroyed you should encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name]
c1t1d0
Encapsulate this device? [y,n,q,?] (default: y)n
c1t1d0
Instead of encapsulating, initialize? [y,n,q,?] (default: n)y
Initializing device c1t1d0.
Use a default private region length for this disk?
[y,n,q,?] (default: y)
Add or initialize other disks? [y,n,q,?] (default: n)
Volume Manager Support Operations
Menu: VolumeManager/Disk
1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
20 Change the disk naming scheme
21 Get the newly connected/zoned disks in VxVM view
list List disk information
? Display help about menu
?? Display help about the menuing system
Hit RETURN to continue.
q Exit from menus
Select an operation to perform: q
Goodbye.
root@rac2 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 sliced rootdisk_2 rootdg online
c1t1d0s2 sliced - - online
c2t5d0s2 sliced - - online
c2t5d1s2 sliced - - online
c2t5d2s2 sliced - - online
c2t5d3s2 sliced - - online
c2t5d4s2 sliced - - online
c3t5d0s2 sliced - - online
c3t5d1s2 sliced - - online
c3t5d2s2 sliced - - online
c3t5d3s2 sliced - - online
c3t5d4s2 sliced - - online
十八、重起机器
root@rac1 # scshutdown -y -g 30
在rac1:
OK boot
rac1启动后,在rac2
OK boot
十九、创建Verista Volume Manager 共享卷组和共享逻辑卷
root@rac1 # vxdctl -c mode
mode: enabled: cluster active - MASTER
root@rac1 # cd /opt//InstallOracle
root@rac1 # ls
0createRacdg 2chmodRacVol dbcafile orasystem
1createRacVol dbca_rawconfigfile oraprofile system
root@rac1 # cat 0createRacdg
vxdg -s init ora-rac-dg data=c2t5d2 log=c2t5d1 datamir=c3t5d2 logmir=c3t5d1
vxdg -s init ora-arc-dg data=c2t5d4 log=c2t5d3 datamir=c3t5d4 logmir=c3t5d3
root@rac1 # sh 0createRacdg
root@rac1 # vxdg list
NAME STATE ID
rootdg enabled 1059976445.1025.rac1
ora-arc-dg enabled,shared 1059984657.1209.rac1
ora-rac-dg enabled,shared 1059984655.1206.rac1
root@rac1 # telnet rac2
Trying 192.168.0.202...
Connected to rac2.
Escape character is '^]'.
SunOS 5.9
login: root
Password:
Last login: Mon Aug 4 15:50:14 from 192.168.0.177
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
Sourcing //.profile-EIS.....
root@rac2 # vxdg list
NAME STATE ID
rootdg enabled 1059977287.1025.rac2
ora-arc-dg enabled,shared 1059984657.1209.rac1
ora-rac-dg enabled,shared 1059984655.1206.rac1
root@rac2 # exit
Connection to rac2 closed by foreign host.
root@rac1 # cd /opt//InstallOracle
root@rac1 # ls
0createRacdg 2chmodRacVol dbcafile orasystem
1createRacVol dbca_rawconfigfile oraprofile system
root@rac1 # cat 1*
vxassist -g ora-rac-dg make sun_raw_system_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_spfile_100m 100m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_users_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_temp_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_undotbs1_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_undotbs2_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_example_256m 256m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_cwmlite_256m 256m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_indx_1024m 1024m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_tools_100m 100m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_drsys_100m 100m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_controlfile1_110m 110m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_controlfile2_110m 110m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_xdb_256m 256m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log11_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log12_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log13_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log21_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log22_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_log23_120m 120m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_odm_256m 256m layout=mirror data datamir
vxassist -g ora-rac-dg make sun_raw_srvmconf_256m 256m layout=mirror data datamir
root@rac1 # sh 1createRacVol
root@rac1 # ls
0createRacdg 2chmodRacVol dbcafile orasystem
1createRacVol dbca_rawconfigfile oraprofile system
root@rac1 # cat 2chmodRacVol
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_system_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_spfile_100m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_users_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_temp_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_undotbs1_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_undotbs2_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_example_256m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_cwmlite_256m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_indx_1024m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_tools_100m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_drsys_100m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_controlfile1_110m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_controlfile2_110m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_xdb_256m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log11_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log12_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log13_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log21_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log22_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_log23_120m
vxedit -g ora-rac-dg set user=oracle group=dba sun_raw_odm_256m
root@rac1 # sh 2chmodRacVol
二十、重起机器
root@rac1 # scshutdown -y -g 30
在rac1:
OK boot
rac1启动后,在rac2
OK boot
启动后验证共享卷及共享卷组是否工作正常:
二十一、建立Oracle用户的环境文件,假设Oracle用户的Shell是B Shell
文件 /opt/oracle/.profile的内容如下:
$ cat .profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:.
export PATH
ORACLE_BASE=/opt/oracle
export ORACLE_BASE
ORACLE_OWNER=oracle
export ORACLE_OWNER
ORACLE_HOME=/opt/oracle/product/9i
export ORACLE_HOME
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORA_NLS33
#ORACLE_SID=oradb1
#export ORACLE_SID
LD_LIBRARY_PATH=$LD_LIBRARY_PATH

ORACLE_HOME/lib

ORACLE_HOME/jdbc/lib:/lib:/usr/lib:/usr/openwin/lib
export LD_LIBRARY_PATH
PATH=$PATH

ORACLE_HOME/bin
export PATH
ORACLE_DOC=$ORACLE_HOME/BIN
export ORACLE_DOC
CLASSPATH=$CLASSPATH

ORACLE_HOME/jdbc/lib/classes111.zip

ORACLE_HOME/JRE

ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export CLASSPATH
umask 022
二十二、设置r命令环境
在oracle用户的主目录下添加文件 .rhosts
vi /opt/oracle/.rhosts
rac1
rac2
二十三、下面开始安装Oracle 软件介质,安装Oracle时,选择企业版,和Soft only选项
应该还算详细,请大家指点。
