有時候需要重新配置asm,比如伺服器名稱改變
10gasm重新配置方式
[13:56:03 root@new-testdb admin]# /u01/app/oracle/product/10.2.0/db/bin/localconfig delete
Stopping CSSD.
Unable to communicate with the CSS daemon.
Shutdown has begun. The daemons should exit soon.
[13:56:26 root@new-testdb admin]# /u01/app/oracle/product/10.2.0/db/bin/localconfig add
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
11g asm重新配置
[16:11:32 root@new-testdb1 bin]# ./crs_start -all
CRS-0184: Cannot communicate with the CRS daemon.
[16:11:40 root@new-testdb1 bin]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Usage: srvctl []
commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
srvctl -h or
srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware #
################################################################
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node
[16:12:51 root@new-testdb1 bin]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node new-testdb1 successfully pinned.
Adding Clusterware entries to upstart
new-testdb1 2013/08/19 16:14:13 /u01/app/11.2.0/grid/cdata/new-testdb1/backup_20130819_161413.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
rac節點改為單節點
[17:18:15 root(grid)@racdg ~]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
The oracle binary is currently linked with RAC enabled.
Please execute the following steps to relink oracle binary
and rerun the command with RAC disabled:
setenv ORACLE_HOME
cd /rdbms/lib
make -f ins_rdbms.mk rac_off ioracle
[17:18:20 root(grid)@racdg ~]# setenv ORACLE_HOME='/u01/app/
11.2.0/ oracle/ oraInventory/
[17:18:20 root(grid)@racdg ~]# setenv ORACLE_HOME='/u01/app/11.2.0/grid/
> '
-bash: setenv: command not found
[17:19:03 root(grid)@racdg ~]# setenv ORACLE_HOME='/u01/app/11.2.0/grid/'
-bash: setenv: command not found
[17:19:07 root(grid)@racdg ~]# export ORACLE_HOME='/u01/app/11.2.0/grid/'
[17:19:27 root()@racdg ~]# cd &ORACLE_HOME
[1] 3685
-bash: ORACLE_HOME: command not found
[1]+ Done cd
[17:19:47 root()@racdg ~]# cd $ORACLE_HOME
[17:19:54 root()@racdg grid]# cd rdbms/lib/
[17:20:09 root()@racdg lib]# make -f ins_rdbms.mk rac_off ioracle
rm -f /u01/app/11.2.0/grid//lib/libskgxp11.so
cp /u01/app/11.2.0/grid//lib//libskgxpg.so /u01/app/11.2.0/grid//lib/libskgxp11.so
rm -f /u01/app/11.2.0/grid//lib/libskgxn2.so
cp /u01/app/11.2.0/grid//lib//libskgxns.so \
/u01/app/11.2.0/grid//lib/libskgxn2.so
/usr/bin/ar d /u01/app/11.2.0/grid//rdbms/lib/libknlopt.a kcsm.o
/usr/bin/ar cr /u01/app/11.2.0/grid//rdbms/lib/libknlopt.a /u01/app/11.2.0/grid//rdbms/lib/ksnkcs.o
chmod 755 /u01/app/11.2.0/grid//bin
- Linking Oracle
rm -f /u01/app/11.2.0/grid//rdbms/lib/oracle
gcc -o /u01/app/11.2.0/grid//rdbms/lib/oracle -m64 -L/u01/app/11.2.0/grid//rdbms/lib/ -L/u01/app/11.2.0/grid//lib/ -L/u01/app/11.2.0/grid//lib/stubs/ -Wl,-E /u01/app/11.2.0/grid//rdbms/lib/opimai.o /u01/app/11.2.0/grid//rdbms/lib/ssoraed.o /u01/app/11.2.0/grid//rdbms/lib/ttcsoi.o -Wl,--whole-archive -lperfsrv11 -Wl,--no-whole-archive /u01/app/11.2.0/grid//lib/nautab.o /u01/app/11.2.0/grid//lib/naeet.o /u01/app/11.2.0/grid//lib/naect.o /u01/app/11.2.0/grid//lib/naedhs.o /u01/app/11.2.0/grid//rdbms/lib/config.o -lserver11 -lodm11 -lcell11 -lnnet11 -lskgxp11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lvsn11 -lcommon11 -lgeneric11 -lknlopt `if /usr/bin/ar tv /u01/app/11.2.0/grid//rdbms/lib/libknlopt.a | grep xsyeolap.o > /dev/null 2>&1 ; then echo "-loraolap11" ; fi` -lslax11 -lpls11 -lrt -lplp11 -lserver11 -lclient11 -lvsn11 -lcommon11 -lgeneric11 `if [ -f /u01/app/11.2.0/grid//lib/libavserver11.a ] ; then echo "-lavserver11" ; else echo "-lavstub11"; fi` `if [ -f /u01/app/11.2.0/grid//lib/libavclient11.a ] ; then echo "-lavclient11" ; fi` -lknlopt -lslax11 -lpls11 -lrt -lplp11 -ljavavm11 -lserver11 -lwwg `cat /u01/app/11.2.0/grid//lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/11.2.0/grid//lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lmm -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lztkg11 `cat /u01/app/11.2.0/grid//lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/11.2.0/grid//lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 `if /usr/bin/ar tv /u01/app/11.2.0/grid//rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo11"; fi` -L/u01/app/11.2.0/grid//ctx/lib/ -lctxc11 -lctx11 -lzx11 -lgx11 -lctx11 -lzx11 -lgx11 -lordimt11 -lclsra11 -ldbcfg11 -lhasgen11 -lskgxn2 -lnnz11 -lzt11 -lxml11 -locr11 -locrb11 -locrutl11 -lhasgen11 -lskgxn2 -lnnz11 -lzt11 -lxml11 -loraz -llzopro -lorabz2 -lipp_z -lipp_bz2 -lippdcemerged -lippsemerged -lippdcmerged -lippsmerged -lippcore -lippcpemerged -lippcpmerged -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lsnls11 -lunls11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lasmclnt11 -lcommon11 -lcore11 -laio `cat /u01/app/11.2.0/grid//lib/sysliblist` -Wl,-rpath,/u01/app/11.2.0/grid//lib -lm `cat /u01/app/11.2.0/grid//lib/sysliblist` -ldl -lm -L/u01/app/11.2.0/grid//lib
test ! -f /u01/app/11.2.0/grid//bin/oracle ||\
mv -f /u01/app/11.2.0/grid//bin/oracle /u01/app/11.2.0/grid//bin/oracleO
mv /u01/app/11.2.0/grid//rdbms/lib/oracle /u01/app/11.2.0/grid//bin/oracle
chmod 6751 /u01/app/11.2.0/grid//bin/oracle
[17:20:35 root()@racdg lib]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node racdg successfully pinned.
Adding Clusterware entries to upstart
racdg 2014/12/15 17:22:14 /u01/app/11.2.0/grid/cdata/racdg/backup_20141215_172214.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29033984/viewspace-768803/,如需轉載,請註明出處,否則將追究法律責任。