Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [100%]
[[root@localhost ~]# rpm -Uvh oracleasm-2.6.9-22.ELsmp-2.0.3-1.i686.rpm
Preparing... ########################################### [100%]
1:oracleasm-2.6.9-22.ELsm########################################### [100%]
[root@localhost ~]# rpm -Uvh oracleasmlib-2.0.2-1.i386.rpm
Preparing... ########################################### [100%]
1:oracleasmlib ########################################### [100%]
Configuring the Oracle ASM library driver.
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"
[FAILED]
oracleasm.ko
[root@localhost selinux]#
[root@localhost selinux]#
[root@localhost selinux]#
[root@localhost selinux]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default group to own the driver interface [dba]:
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
[root@localhost selinux]# /etc/init.d/oracleams disable
bash: /etc/init.d/oracleams: No such file or directory
[root@localhost selinux]# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: [ OK ]
Unmounting ASMlib driver filesystem: [ OK ]
Unloading module "oracleasm": [ OK ]
bash: /etc/init.d/oracleams: No such file or directory
[root@localhost selinux]# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: [ OK ]
Unmounting ASMlib driver filesystem: [ OK ]
Unloading module "oracleasm": [ OK ]
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
[root@localhost selinux]# cd
100000+0 records in
100000+0 records out
A52>dd if=/dev/zero of=_file_disk2 bs=1k count=100000
100000+0 records in
100000+0 records out
A52>ls -ltr
total 1291560
drwxr-xr-x 3 oracle oracle 4096 Aug 15 2003 product
-rw-r--r-- 1 oracle oracle 1058810367 Feb 3 2006 product1
drwxrwxr-x 3 oracle oracle 4096 Feb 5 2006 oradata1
drwxrwxr-x 7 oracle oracle 4096 Feb 8 2006 bak
drwxrwxr-x 2 oracle oracle 4096 Feb 8 2006 restore
-rw-rw-r-- 1 oracle oracle 87912 Mar 4 2006 report_2_3.lst
-rw-rw-r-- 1 oracle oracle 101981 Mar 4 2006 report_1_2.lst
-rw-rw-r-- 1 oracle oracle 90339 Mar 4 2006 report_3_4.lst
-rw-rw-r-- 1 oracle oracle 97867 Mar 4 2006 report_4_5.lst
-rw-r--r-- 1 oracle oracle 20765492 Mar 20 2006 deluser.sql.bak
-rw-r--r-- 1 oracle oracle 15457072 Mar 20 2006 deluser.sql
-rwxrwxr-x 1 oracle oracle 65 Mar 20 2006 deluser.sh
-rw------- 1 oracle oracle 20872970 Mar 20 2006 nohup.out
drwxrwxr-x 4 oracle oracle 4096 May 9 2006 admin
-rw-rw-r-- 1 oracle oracle 28 Feb 10 11:59 1.sql
-rw-rw-r-- 1 oracle oracle 144 Feb 10 12:04 2.sql
-rw-rw-r-- 1 oracle oracle 104 Feb 10 15:11 3.sql
drwxrwxr-x 5 oracle oracle 4096 Feb 10 16:52 oradata
-rw-rw-r-- 1 oracle oracle 102400000 Mar 24 18:45 _file_disk1
-rw-rw-r-- 1 oracle oracle 102400000 Mar 24 18:45 _file_disk2
[root@localhost ~]# losetup /dev/loop2 /home/oracle/_file_disk2
Marking disk "/dev/loop1" as an ASM disk: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/loop2
Marking disk "/dev/loop2" as an ASM disk: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
[root@localhost ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
[root@localhost ~]# /etc/init.d/oracleasm querydisk /dev/loop1
Disk "/dev/loop1" is marked an ASM disk with the label "VOL1"
[root@localhost ~]# /etc/init.d/oracleasm querydisk /dev/loop2
Disk "/dev/loop2" is marked an ASM disk with the label "VOL2"
*.background_dump_dest='/home/zzx/admin/db1/asm/bdump'
*.core_dump_dest='/home/zzx/admin/db1/asm/cdump'
*.user_dump_dest='/home/zzx/admin/db1/asm/udump'
*.asm_diskstring='ORCL:VOL*'
*.large_pool_size=12M
*.remote_login_passwordfile='SHARED'
ORA-29701: unable to connect to Cluster Manager
$ORACLE_HOME/bin/localconfig add
但是执行的时候,出现如下错误:
[root@localhost lib]# /home/zzx/product/10.2.0/db_1/bin/localconfig add
/home/zzx/product/10.2.0/db_1/bin/crsctl.bin: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
/home/zzx/product/10.2.0/db_1/bin/clscfg.bin: error while loading shared libraries: libuini10.so: cannot open shared object file: No such file or directory
查询系统下$ORACLE_HOME/lib下,发现libclntsh.so.10.1和libuini10.so都存在,而且localconfig 中的配置也正确:
。。。
SILENT=%s_silent%
CSS_ORACLE_HOME=/home/zzx/product/10.2.0/db_1
CSS_ORACLE_OWNER=zzx
CSS_DBA_GROUP=oinstall
CSS_LANGUAGE_ID=AMERICAN_AMERICA.WE8ISO8859P1
$CRSCTL /home/zzx/product/10.2.0/db_1/bin/crsctl
$CSS_ORACLE_OWNER zzx
LD_LIBRARY_PATH is: /home/zzx/product/10.2.0/db_1/lib
/home/zzx/product/10.2.0/db_1/bin/crsctl.bin: /home/zzx/product/10.2.0/db_1/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by /home/zzx/product/10.2.0/db_1/bin/crsctl.bin)
/home/zzx/product/10.2.0/db_1/bin/crsctl.bin: /home/zzx/product/10.2.0/db_1/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by /home/zzx/product/10.2.0/db_1/bin/crsctl.bin)
613
620
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
630
/etc/init.d/init.cssd: line 509: /etc/oracle/scls_scr/localhost/root/cssrun: No such file or directory
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
LD_LIBRARY_PATH is: /home/zzx/product/10.2.0/db_1/lib
/home/zzx/product/10.2.0/db_1/bin/crsctl.bin: /home/zzx/product/10.2.0/db_1/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by /home/zzx/product/10.2.0/db_1/bin/crsctl.bin)
/home/zzx/product/10.2.0/db_1/bin/crsctl.bin: /home/zzx/product/10.2.0/db_1/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by /home/zzx/product/10.2.0/db_1/bin/crsctl.bin)
Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started
warning: compat-libstdc++-33-3.2.3-56.fc5.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
compat-libstdc++-33 ########################################### [100%]