2017. 5. 31. 16:14 카테고리 없음
$GRID_HOME 권한 및 소유권 변경 테스트
$GRID_HOME 밑에 화일들은 root:dba 와 oracle:dba 가 혼재해 있기 때문에 자칫 권한변경으로 인한 문제가 많이 발생한다.
잘못된 $GRID_HOME 의 permission & ownership 변경 테스트를 해본다.
1. 현재 $GRID_HOME/bin 의 권한 확인
[root:/oragrid/product/11.2.0.4/bin]#ls -al
total 837600
drwxr-xr-x 2 root dba 12288 Dec 27 11:25 .
drwxr-xr-x 69 root dba 4096 Dec 27 11:25 ..
-rwxr-xr-x 1 oracle dba 9172 Jun 8 2010 AgentLifeCycle.pm
-rwxr-xr-x 1 oracle dba 2343 Jul 26 2006 AgentMisc.pm
-rwxr-xr-x 1 oracle dba 17833 Sep 13 2007 AgentStatus.pm
-rwxr-xr-x 1 oracle dba 3265 Jul 31 2008 AgentSubAgent.pm
-rwxr-xr-x 1 oracle dba 2923 May 25 2007 CompEMagent.pm
-rwxr-xr-x 1 oracle dba 5693 Jan 19 2008 CompEMcentral.pm
-rwxr-xr-x 1 oracle dba 5199 Jan 19 2008 CompEMcore.pm
-rwxr-xr-x 1 oracle dba 2952 Oct 17 2005 Directory.pm
-rwxr-xr-x 1 oracle dba 24310 Sep 12 2008 EMAgent.pm
-rwxr-xr-x 1 oracle dba 1404 Oct 17 2005 EMAgentPatch.pm
-rwxr-xr-x 1 oracle dba 24550 Mar 24 2009 EMDeploy.pm
-rwxr-xr-x 1 oracle dba 3451 May 1 2006 EMDiag.pm
-rwxr-xr-x 1 oracle dba 5653 Sep 6 2006 EMSAConsoleCommon.pm
-rwxr-xr-x 1 oracle dba 6612 Dec 14 2006 EMconnectorCmds.pm
-rwxr-xr-x 1 oracle dba 16758 Mar 18 2009 EMomsCmds.pm
-rwxr-xr-x 1 oracle dba 2194 Oct 17 2005 EmCommonCmdDriver.pm
-rwxr-xr-x 1 oracle dba 6741 Oct 3 2006 EmKeyCmds.pm
-rwxr-xr-x 1 oracle dba 44107 Dec 27 10:47 EmctlCommon.pm
-rwxr-xr-x 1 oracle dba 16979 Jul 27 2007 LaunchEMagent.pm
-rwxr-xr-x 1 oracle dba 1488 Oct 17 2005 Path.pm
-rwxr-xr-x 1 oracle dba 4442 Jan 19 2008 RegisterTType.pm
-rwxr-xr-x 1 oracle dba 28900 Jul 31 2008 SecureAgentCmds.pm
-rwxr-xr-x 1 oracle dba 70807 Jun 23 2009 SecureOMSCmds.pm
-rwxr-xr-x 1 oracle dba 34604 May 23 2008 SecureUtil.pm
-rwxr-x--- 1 oracle dba 281 Oct 17 2005 StartAgent.pl
-rwxr-xr-x 1 root dba 2797 Dec 27 11:28 acfsdriverstate
-rwxr-xr-x 1 root dba 1116 Dec 27 11:28 acfsload
-rwxr-xr-x 1 root dba 1197 Dec 27 11:28 acfsregistrymount
-rwxr-xr-x 1 root dba 2421 Dec 27 11:28 acfsrepl_apply
-rwxr-xr-x 1 root dba 822723 Jul 7 2013 acfsrepl_apply.bin
-rwxr-xr-x 1 root dba 802995 Jul 7 2013 acfsrepl_initializer
-rwxr-xr-x 1 oracle dba 730118 Jul 7 2013 acfsrepl_monitor
-rwxr-xr-x 1 oracle dba 736368 Jul 7 2013 acfsrepl_preapply
-rwxr-xr-x 1 oracle dba 705847 Jul 7 2013 acfsrepl_transport
-rwxr-xr-x 1 oracle dba 3114 Dec 27 11:28 acfsreplcrs
-rwxr-xr-x 1 oracle dba 12921 Jul 7 2013 acfsreplcrs.pl
-rwxr-xr-x 1 root dba 1567 Jul 7 2013 acfsroot
-rwxr-xr-x 1 root dba 1209 Dec 27 11:28 acfssinglefsmount
-rwxr-xr-x 1 oracle dba 13394 Jul 15 2013 adapters
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrci
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrciO
-rwxr-x--x 1 oracle dba 51676 Dec 27 10:47 agtctl
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 agtctlO
-rwxr-x--x 1 oracle dba 3414284 Dec 27 10:47 amdu
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 amduO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 appagent
-rwxr-xr-x 1 oracle dba 13023072 Aug 16 2014 appagent.bin
-rwxr-xr-x 1 root dba 545 Dec 27 11:25 appvipcfg
-rwxr-xr-x 1 oracle dba 9051 Aug 16 2014 appvipcfg.pl
-rwxr-x--x 1 oracle dba 1536 Dec 27 10:47 aqxmlctl
-rw-r--r-- 1 oracle dba 9069 Oct 5 2008 aqxmlctl.pl
-rwxr-xr-x 1 oracle dba 6582 Dec 27 10:47 asmca
-rwxr-x--- 1 oracle dba 5469 Apr 21 2010 asmcmd
-rwxr-xr-x 1 oracle dba 34558 Jan 12 2012 asmcmdcore
-rwxr-xr-x 1 oracle dba 2966 Aug 16 2014 asmproxy
-rwxr-xr-x 1 oracle dba 2412 Dec 27 10:47 bndlchk
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 cemutlo
-rwxr-xr-x 1 oracle dba 15266 Aug 16 2014 cemutlo.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 cemutls
-rwxr-xr-x 1 oracle dba 16861 Aug 16 2014 cemutls.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 clscfg
-rwxr-xr-x 1 root dba 121377 Aug 16 2014 clscfg.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 clsecho
-rwxr-xr-x 1 root dba 204728 Aug 16 2014 clsecho.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 clsfmt
-rwxr-xr-x 1 root dba 89377 Aug 16 2014 clsfmt.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clsid
-rwxr-xr-x 1 oracle dba 30979 Aug 16 2014 clsid.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clssproxy
-rwxr-xr-x 1 oracle dba 156551 Aug 16 2014 clssproxy.bin
-rwxr-xr-x 1 oracle dba 3707 Dec 27 11:25 cluutil
-rwxr-xr-x 1 root dba 8557 Dec 27 11:25 cluvfy
-rwxr-xr-x 1 oracle dba 1303 Feb 3 2010 cluvfyrac.sh
-rwxr-xr-x 1 oracle dba 489 Dec 27 10:47 commonenv
-rwxr-xr-x 1 oracle dba 495 Apr 14 2006 commonenv.template
-rwxr-xr-x 1 oracle dba 5778 Jan 1 2000 coraenv
-rwxr-x--- 1 root dba 700 Dec 27 11:25 crfsetenv
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_getperm
-rwxr-xr-x 1 oracle dba 4458460 Aug 16 2014 crs_getperm.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_profile
-rwxr-xr-x 1 oracle dba 4525320 Aug 16 2014 crs_profile.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_register
-rwxr-xr-x 1 oracle dba 5506277 Aug 16 2014 crs_register.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_relocate
-rwxr-xr-x 1 oracle dba 4426465 Aug 16 2014 crs_relocate.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_setperm
-rwxr-xr-x 1 oracle dba 4381281 Aug 16 2014 crs_setperm.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_start
-rwxr-xr-x 1 oracle dba 4426549 Aug 16 2014 crs_start.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_stat
-rwxr-xr-x 1 oracle dba 4598281 Aug 16 2014 crs_stat.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_stop
-rwxr-xr-x 1 oracle dba 4426738 Aug 16 2014 crs_stop.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_unregister
-rwxr-xr-x 1 oracle dba 4352677 Aug 16 2014 crs_unregister.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 crsctl
-rwxr-xr-x 1 root dba 38742730 Aug 16 2014 crsctl.bin
-rwxr----x 1 root dba 8664 Dec 27 11:25 crsd
-rwxr----x 1 root dba 106197723 Aug 16 2014 crsd.bin
-rwxr-xr-x 1 oracle dba 2823 Mar 24 2010 crsdiag.pl
-rwxr-xr-x 1 oracle dba 13438 Aug 16 2014 crstmpl.scr
-rwxr--r-- 1 root dba 6189 Dec 27 11:25 crswrapexece.pl
-rwxr-xr-x 1 oracle dba 422997 Jul 17 2013 csscan
-rwxr----x 1 root dba 12840619 Aug 16 2014 cssdagent
-rwxr----x 1 root dba 0 Dec 27 11:25 cssdagent.bin
-rwxr----x 1 root dba 12840619 Aug 16 2014 cssdmonitor
-rwxr----x 1 root dba 0 Dec 27 11:25 cssdmonitor.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 cssvfupgd
-rwxr-xr-x 1 root dba 309543 Aug 16 2014 cssvfupgd.bin
-rwxr-x--x 1 oracle dba 16027 Dec 27 10:47 cursize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 cursizeO
-rwxr-xr-x 1 oracle dba 2794 Dec 27 11:25 cvures
-rwxr-x--- 1 oracle dba 897413 Aug 24 2013 dbfs_client
-rwxr-x--x 1 oracle dba 16291 Dec 27 10:47 dbfsize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbfsizeO
-rw-r--r-- 1 oracle dba 5297 Oct 3 2006 dbgeu_run_action.pl
-rwxr-xr-x 1 oracle dba 2415 Jan 1 2000 dbhome
-rwxr-x--- 1 oracle dba 6088 Jan 1 2000 dbshut
-rwxr-x--- 1 oracle dba 13855 Jan 1 2000 dbstart
-rwxr-x--x 1 oracle dba 550231 Dec 27 10:47 dbv
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbvO
-rwxr-xr-x 1 oracle dba 1526 Dec 27 10:47 deploync
-rwxr-x--x 1 oracle dba 30294 Dec 27 10:47 dg4pwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dg4pwdO
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrl
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrlO
-rwxr-xr-x 1 root dba 44304 Aug 16 2014 diagcollection.pl
-rwxr-xr-x 1 root dba 509 Dec 27 11:25 diagcollection.sh
-rwxr-xr-x 1 oracle dba 7470 Dec 27 10:47 diagsetup
-rwxr----x 1 root dba 8664 Dec 27 11:25 diskmon
-rwxr----x 1 root dba 927175 Aug 24 2013 diskmon.bin
-rwxr-xr-x 1 oracle dba 1485 Dec 27 10:47 dropjava
-rwxr-xr-x 1 oracle dba 920746 Dec 27 10:47 dsml2ldif
-rwxr-x--x 1 oracle dba 508208 Dec 27 10:47 dumpsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dumpsga0
-rwxr-xr-x 1 oracle dba 153 Nov 6 1997 echodo
-rwxr-xr-x 1 oracle dba 3508 Dec 27 10:47 emca
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 emcrsp
-rwxr-xr-x 1 oracle dba 1227466 Aug 16 2014 emcrsp.bin
-rwxr--r-- 1 oracle dba 15508 Dec 27 10:47 emctl
-rwxr-xr-x 1 oracle dba 18340 Dec 27 10:47 emctl.pl
-rwxr-xr-x 1 oracle dba 15615 Mar 25 2010 emctl.template
-rwxr-xr-x 1 oracle dba 1226 Oct 17 2005 emdfail.command
-rwxr-xr-x 1 oracle dba 12614 Dec 27 10:47 emutil
-rwxr-xr-x 1 oracle dba 10174 Jan 19 2008 emutil.bat.template
-rwxr-xr-x 1 oracle dba 39794 Aug 5 2011 emwd.pl
-rwxr-xr-x 1 oracle dba 1605 Dec 27 10:47 eusm
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmd
-rwxr-xr-x 1 oracle dba 6165556 Aug 16 2014 evmd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evminfo
-rwxr-xr-x 1 oracle dba 506299 Aug 16 2014 evminfo.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmlogger
-rwxr-xr-x 1 oracle dba 1732979 Aug 16 2014 evmlogger.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmmkbin
-rwxr-xr-x 1 oracle dba 642038 Aug 16 2014 evmmkbin.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmmklib
-rwxr-xr-x 1 oracle dba 174345 Aug 16 2014 evmmklib.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmpost
-rwxr-xr-x 1 oracle dba 787914 Aug 16 2014 evmpost.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmshow
-rwxr-xr-x 1 oracle dba 1028649 Aug 16 2014 evmshow.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmsort
-rwxr-xr-x 1 oracle dba 592466 Aug 16 2014 evmsort.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmwatch
-rwxr-xr-x 1 oracle dba 1160535 Aug 16 2014 evmwatch.bin
-rwxr-xr-x 1 oracle dba 4109 Aug 16 2014 evt.sh
-rwxr-x--x 1 oracle dba 987367 Dec 27 10:47 exp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expO
-rwxr-x--x 1 oracle dba 174478 Dec 27 10:47 expdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expdpO
-rwsr-x--- 1 root dba 1248420 Dec 27 10:47 extjob
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjobO
-rwx------ 1 oracle dba 1248420 Dec 27 10:47 extjobo
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjoboO
-rwxr-x--x 1 oracle dba 15793 Dec 27 10:47 extproc
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 extprocO
-rwxr-x--- 1 oracle dba 306 Dec 27 10:47 extusrupgrade
-rwxr-x--- 1 oracle dba 1293858 Aug 24 2013 fmputl
-rwxr-x--- 1 oracle dba 39726 Aug 24 2013 fmputlhp
-rwxr-xr-x 1 oracle dba 4265 Feb 22 2012 genagtsh
-rwxr-xr-x 1 oracle dba 9324 Aug 5 2010 genclntsh
-rwxr-xr-x 1 oracle dba 4987 Jun 8 2007 genclntst
-rwxr-x--x 1 oracle dba 47137 Dec 27 10:47 genezi
-rwxr-xr-x 1 oracle dba 47860 Aug 24 2013 geneziO
-rwxr-xr-x 1 oracle dba 1539891 Aug 24 2013 genksms
-rwxr-xr-x 1 oracle dba 2893 Jul 15 2013 gennfgt
-rwxr-xr-x 1 oracle dba 4471 Jul 15 2013 gennttab
-rwxr-xr-x 1 oracle dba 3318 Aug 5 2010 genoccish
-rwxr-xr-x 1 oracle dba 9443 Aug 5 2010 genorasdksh
-rwxr-xr-x 1 oracle dba 2332 Jan 1 2000 gensyslib
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gipcd
-rwxr-xr-x 1 oracle dba 1318691 Aug 16 2014 gipcd.bin
-rwxr----x 1 root dba 8664 Dec 27 11:25 gnsd
-rwxr----x 1 root dba 36247 Aug 16 2014 gnsd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gpnpd
-rwxr-xr-x 1 oracle dba 370484 Aug 16 2014 gpnpd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gpnptool
-rwxr-xr-x 1 oracle dba 533533 Aug 16 2014 gpnptool.bin
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 grdcscan
-rwxr-xr-x 1 oracle dba 24941 Aug 16 2014 gsd
-rwxr-xr-x 1 oracle dba 6571 Dec 27 11:25 gsd.sh
-rwxr-xr-x 1 oracle dba 5923 Dec 27 11:25 gsdctl
-rwxr-x--x 1 oracle dba 171639 Dec 27 10:47 hsalloci
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsallociO
-rwxr-x--x 1 oracle dba 32188 Dec 27 10:47 hsdepxa
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsdepxaO
-rwxr-x--x 1 oracle dba 35121 Dec 27 10:47 hsots
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsotsO
-rwxr-x--x 1 oracle dba 468769 Dec 27 10:47 imp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impO
-rwxr-x--x 1 oracle dba 184182 Dec 27 10:47 impdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impdpO
-rwsr-x--- 1 root dba 43040 Dec 27 10:47 jssu
-rwxr-x--x 1 oracle dba 2402717 Dec 27 10:47 kfed
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfedO
-rwxr-x--x 1 oracle dba 27716166 Dec 27 10:47 kfod
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfodO
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgr
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgrO
lrwxrwxrwx 1 oracle dba 47 Dec 27 10:47 lbuilder -> /oragrid/product/11.2.0.4/nls/lbuilder/lbuilder
-rwxr-xr-x 1 oracle dba 1960152 Aug 24 2013 lcsscan
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapadd
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapaddmt
-rwxr-xr-x 1 oracle dba 857554 Dec 27 10:47 ldapbind
-rwxr-xr-x 1 oracle dba 857636 Dec 27 10:47 ldapcompare
-rwxr-xr-x 1 oracle dba 857719 Dec 27 10:47 ldapdelete
-rwxr-xr-x 1 oracle dba 857441 Dec 27 10:47 ldapmoddn
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapmodify
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapmodifymt
-rwxr-xr-x 1 oracle dba 886907 Dec 27 10:47 ldapsearch
-rwxr-xr-x 1 oracle dba 3428 Dec 27 10:47 ldifmigrator
-rwxr-xr-x 1 oracle dba 1459 May 12 2009 linkshlib
-rwxr-xr-x 1 oracle dba 1598817 Aug 24 2013 lmsgen
-rwxr-xr-x 1 oracle dba 1746 Dec 27 10:47 loadjava
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpsp
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpspO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 lsdb
-rwxr-xr-x 1 oracle dba 22979 Aug 16 2014 lsdb.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 lsnodes
-rwxr-xr-x 1 oracle dba 60809 Jul 25 2013 lsnodes.bin
-rwxr-x--x 1 oracle dba 154940 Dec 27 10:47 lsnrctl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 lsnrctl0
-rwxr-xr-x 1 oracle dba 1094684 Aug 24 2013 lxchknlb
-rwxr-xr-x 1 oracle dba 1675585 Aug 24 2013 lxegen
-rwxr-xr-x 1 oracle dba 4914972 Aug 24 2013 lxinst
-rwxr-x--x 1 oracle dba 508573 Dec 27 10:47 mapsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 mapsga0
-rwxr-x--x 1 oracle dba 16633 Dec 27 10:47 maxmem
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 maxmemO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 mdnsd
-rwxr-xr-x 1 oracle dba 943257 Aug 16 2014 mdnsd.bin
-rwxr-x--x 1 oracle dba 141299 Dec 27 10:47 mkpatch
-rwxr-xr-x 1 oracle dba 138676 Aug 24 2013 mkpatchO
-rwxr-xr-x 1 oracle dba 2796 Dec 27 10:47 mkstore
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 ncomp
-rwxr-x--- 1 oracle dba 3852 Dec 27 11:25 ndfnceca
-rwxr-xr-x 1 oracle dba 6503 Dec 27 10:47 netca
-rw-r--r-- 1 oracle dba 100 Dec 27 10:47 netca_deinst.sh
-rwxr-xr-x 1 oracle dba 6438 Dec 27 10:47 netmgr
-rwxr-x--- 1 oracle dba 2835 Sep 17 2007 nfsPatchPlugin.pm
-rwxr-x--x 1 oracle dba 88163 Dec 27 10:47 nid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 nidO
-rwxr-xr-x 1 oracle dba 5736 Dec 27 11:25 oc4jctl
-rwxr-xr-x 1 oracle dba 2769 Aug 16 2014 oc4jctl.pl
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 oclskd
-rwxr-x--x 1 root dba 144940 Aug 16 2014 oclskd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oclsomon
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oclsvmon
-rwxr-x--- 1 root dba 1561 Dec 27 11:25 oclumon
-rwxr-x--- 1 root dba 121780 Aug 16 2014 oclumon.bin
-rwxr-x--- 1 oracle dba 2030 Dec 27 11:25 oclumon.pl
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 ocrcheck
-rwxr-xr-x 1 root dba 127661 Aug 16 2014 ocrcheck.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 ocrconfig
-rwxr-xr-x 1 root dba 231002 Aug 16 2014 ocrconfig.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 ocrdump
-rwxr-xr-x 1 root dba 135650 Aug 16 2014 ocrdump.bin
-rwxr-xr-x 1 root dba 8664 Dec 27 11:25 ocrpatch
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocssd
-rwxr-xr-x 1 oracle dba 4370417 Aug 16 2014 ocssd.bin
-rwxr----x 1 root dba 8664 Dec 27 11:25 octssd
-rwxr----x 1 root dba 649063 Aug 16 2014 octssd.bin
-rwxr-xr-x 1 oracle dba 1290 Dec 27 10:47 odisrvreg
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 odnsd
-rwxr-xr-x 1 oracle dba 135071 Jul 25 2013 odnsd.bin
-rwxr-xr-x 1 oracle dba 2567 Jan 1 2000 oerr
-rwxr----x 1 root dba 8664 Dec 27 11:25 ohasd
-rwxr----x 1 root dba 105987214 Aug 16 2014 ohasd.bin
-rwxr-xr-x 1 oracle dba 2149 Dec 27 10:47 oidca
-rwxr-xr-x 1 oracle dba 3574 Dec 27 10:47 oidprovtool
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oifcfg
-rwxr-xr-x 1 oracle dba 150213 Aug 16 2014 oifcfg.bin
-rwxr-xr-x 1 oracle dba 1418 Dec 27 10:47 ojvmjava
-rwxr-xr-x 1 oracle dba 1340 Dec 27 10:47 ojvmtc
-rwxr-xr-x 1 oracle dba 23286 Dec 27 10:47 okdstry
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okdstry0
-rwxr-xr-x 1 oracle dba 15416 Dec 27 10:47 okinit
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okinit0
-rwxr-xr-x 1 oracle dba 24003 Dec 27 10:47 oklist
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 oklist0
-rwxr-x--- 1 oracle dba 873 Dec 27 11:25 ologdbg
-rwxr-x--- 1 oracle dba 4270 Dec 27 11:25 ologdbg.pl
-rwxr-x--- 1 root dba 130613 Aug 16 2014 ologgerd
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 olsnodes
-rwxr-xr-x 1 oracle dba 76025 Aug 16 2014 olsnodes.bin
-rwxr-xr-x 1 oracle dba 1193 Dec 27 11:25 onsctl
-rwxr-xr-x 1 oracle dba 69912 Aug 16 2014 oprocd
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oraagent
-rwxr-xr-x 1 oracle dba 29454508 Aug 16 2014 oraagent.bin
-rwxr-xr-x 1 oracle dba 3814782 Aug 24 2013 orabase
-rwsr-s--x 1 oracle dba 209854189 Dec 27 10:47 oracle
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 oracleO
-rw-r--r-- 1 root root 8664 Dec 27 11:25 oradaemonagent
-rwsr-x--- 1 root dba 71790 Aug 24 2013 oradism
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oradnssd
-rwxr-xr-x 1 oracle dba 130715 Aug 16 2014 oradnssd.bin
-rwxr-xr-x 1 oracle dba 6183 Jan 1 2000 oraenv
-rwxr-xr-x 1 oracle dba 44 Dec 4 2002 orajaxb
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oranetmonitor
-rwxr-xr-x 1 oracle dba 798003 Aug 16 2014 oranetmonitor.bin
-rwxr-xr-x 1 oracle dba 3180 Dec 27 10:47 orapki
-rwxr-x--x 1 oracle dba 33573 Dec 27 10:47 orapwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 orapwdO
-rwxr----x 1 root dba 8664 Dec 27 11:25 orarootagent
-rwxr----x 1 root dba 29379057 Aug 16 2014 orarootagent.bin
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxml
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxsl
-rwxr-x--x 1 oracle dba 20370218 Dec 27 10:47 orion
-rwxr-xr-x 1 oracle dba 20370310 Aug 24 2013 orionO
-rwxr-xr-x 1 oracle dba 31882 Dec 27 11:19 osdbagrp
-rwxr-xr-x 1 oracle dba 31882 Dec 27 10:47 osdbagrp0
-rwxr-x--- 1 oracle dba 31484 Aug 24 2013 osh
-rwxr-x--- 1 root dba 8664 Dec 27 11:25 osysmond
-rwxr-x--- 1 root dba 130932 Aug 16 2014 osysmond.bin
-rwxr-xr-x 1 oracle dba 6819 Dec 27 10:47 owm
-rwxr-x--- 1 oracle dba 4472 Apr 14 2008 patchAgtStPlugin.pm
-rw-r--r-- 1 oracle dba 3659 Dec 27 10:47 platform_common
-rwxr-x--x 1 oracle dba 5453855 Dec 27 10:47 plshprof
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 plshprofO
-rwxr-xr-x 1 oracle dba 2499 Dec 27 11:25 qosctl
-rwxr-xr-x 1 oracle dba 1717171 Aug 16 2014 racgeut
-rwxr-xr-x 1 oracle dba 1699678 Aug 16 2014 racgevtf
-rwxr-xr-x 1 oracle dba 1945593 Aug 16 2014 racgmain
-rwxr-xr-x 1 oracle dba 24344 Aug 16 2014 racgvip
-rwxr-xr-x 1 oracle dba 1654 Dec 27 11:25 racgwrap
-rwxr-xr-x 1 oracle dba 1498 Oct 30 2009 racgwrap.sbs
-rwxr-xr-x 1 oracle dba 17958 Dec 27 10:47 rawutl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 rawutl0
-rwxr-xr-x 1 oracle dba 7047 Dec 27 10:47 rconfig
-rwxr-xr-x 1 oracle dba 3899 Dec 27 11:25 rdtool
-rwxr-xr-x 1 oracle dba 5770 Nov 21 2010 relink
-rwxr-x--x 1 oracle dba 27799590 Dec 27 10:47 renamedg
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 renamedg0
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rman
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rmanO
-rwxr-xr-x 1 oracle dba 2523 Jul 17 2007 sAgentUtils.pm
-rwxr-x--x 1 oracle dba 120805 Dec 27 10:47 sbttest
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sbttestO
-rwxr-xr-x 1 oracle dba 4119874 Jul 3 2013 schema
-rwxr-xr-x 1 oracle dba 2840 Dec 27 10:47 schemasync
-rwxr-xr-x 1 oracle dba 19325 Aug 16 2014 sclsspawn
-rwxr-x--- 1 oracle dba 7103 Dec 27 11:25 scrctl
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 scriptagent
-rwxr-xr-x 1 oracle dba 12645944 Aug 16 2014 scriptagent.bin
-rwxr-x--x 1 oracle dba 2260801 Dec 27 10:47 setasmgid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 setasmgid0
-rwxr-xr-x 1 oracle dba 2389 Dec 27 11:25 setasmgidwrap
-rwxr-x--x 1 oracle dba 12306 Dec 27 10:47 skgxpinfo
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 skgxpinfoO
-rwxr-x--x 1 oracle dba 1492711 Dec 27 10:47 sqlldr
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sqlldrO
-rwxr-x--x 1 oracle dba 10413 Dec 27 10:47 sqlplus
-rwxr-xr-x 1 oracle dba 4749 Dec 27 10:47 srvconfig
-rwxr-xr-x 1 root dba 9039 Dec 27 11:25 srvctl
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 statusnc
-rwxr-xr-x 1 oracle dba 3261 Aug 18 2010 symfind
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv0
-rwxr-xr-x 1 oracle dba 6947 Dec 27 10:47 targetdeploy.pl
-rwxr-x--x 1 oracle dba 129985 Dec 27 10:47 tkprof
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tkprofO
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnnfg
-rwxr-x--x 1 oracle dba 974062 Dec 27 10:47 tnslsnr
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnslsnr0
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping0
-rwxr-xr-x 1 oracle dba 2993 Dec 27 10:47 trcasst
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 trcldr
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute0
-rwxr-xr-x 1 oracle dba 2052 Dec 27 10:47 trcsess
-rwxr-x--x 1 oracle dba 23680 Dec 27 10:47 tstshm
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tstshmO
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvci
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvciO
-rwxr-xr-x 1 oracle dba 3830 Dec 27 10:47 umu
-rwxr-xr-x 1 oracle dba 145976 Jul 10 2013 unzip
-rwxr-xr-x 1 root dba 1276 Dec 27 11:25 usrvip
-rwxr-xr-x 1 oracle dba 0 Dec 27 11:25 vipca
-rwxr-x--x 1 oracle dba 8928988 Dec 27 10:47 wrap
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 wrapO
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrc
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrcO
-rwxr-xr-x 1 oracle dba 4283581 Jul 3 2013 xml
-rwx------ 1 oracle dba 31268 Jul 21 2011 xmlwf
-rwxr-xr-x 1 oracle dba 230027 Jul 10 2013 zip
2. CRS stop 후 강제로 $GRID_HOME 을 oracle:dba 로 모두 바꿈
crsctl stop crs
chown -R oracle:dba /oragrid
oracle:dba 로 모두 바뀌었다.
ls -al $GRID_HOME/bin
[root:/]#ls -al $GRID_HOME/bin
total 837600
drwxr-xr-x 2 oracle dba 12288 Dec 27 11:25 .
drwxr-xr-x 69 oracle dba 4096 Dec 27 11:25 ..
-rwxr-xr-x 1 oracle dba 9172 Jun 8 2010 AgentLifeCycle.pm
-rwxr-xr-x 1 oracle dba 2343 Jul 26 2006 AgentMisc.pm
-rwxr-xr-x 1 oracle dba 17833 Sep 13 2007 AgentStatus.pm
-rwxr-xr-x 1 oracle dba 3265 Jul 31 2008 AgentSubAgent.pm
-rwxr-xr-x 1 oracle dba 2923 May 25 2007 CompEMagent.pm
-rwxr-xr-x 1 oracle dba 5693 Jan 19 2008 CompEMcentral.pm
-rwxr-xr-x 1 oracle dba 5199 Jan 19 2008 CompEMcore.pm
-rwxr-xr-x 1 oracle dba 2952 Oct 17 2005 Directory.pm
-rwxr-xr-x 1 oracle dba 24310 Sep 12 2008 EMAgent.pm
-rwxr-xr-x 1 oracle dba 1404 Oct 17 2005 EMAgentPatch.pm
-rwxr-xr-x 1 oracle dba 24550 Mar 24 2009 EMDeploy.pm
-rwxr-xr-x 1 oracle dba 3451 May 1 2006 EMDiag.pm
-rwxr-xr-x 1 oracle dba 5653 Sep 6 2006 EMSAConsoleCommon.pm
-rwxr-xr-x 1 oracle dba 6612 Dec 14 2006 EMconnectorCmds.pm
-rwxr-xr-x 1 oracle dba 16758 Mar 18 2009 EMomsCmds.pm
-rwxr-xr-x 1 oracle dba 2194 Oct 17 2005 EmCommonCmdDriver.pm
-rwxr-xr-x 1 oracle dba 6741 Oct 3 2006 EmKeyCmds.pm
-rwxr-xr-x 1 oracle dba 44107 Dec 27 10:47 EmctlCommon.pm
-rwxr-xr-x 1 oracle dba 16979 Jul 27 2007 LaunchEMagent.pm
-rwxr-xr-x 1 oracle dba 1488 Oct 17 2005 Path.pm
-rwxr-xr-x 1 oracle dba 4442 Jan 19 2008 RegisterTType.pm
-rwxr-xr-x 1 oracle dba 28900 Jul 31 2008 SecureAgentCmds.pm
-rwxr-xr-x 1 oracle dba 70807 Jun 23 2009 SecureOMSCmds.pm
-rwxr-xr-x 1 oracle dba 34604 May 23 2008 SecureUtil.pm
-rwxr-x--- 1 oracle dba 281 Oct 17 2005 StartAgent.pl
-rwxr-xr-x 1 oracle dba 2797 Dec 27 11:28 acfsdriverstate
-rwxr-xr-x 1 oracle dba 1116 Dec 27 11:28 acfsload
-rwxr-xr-x 1 oracle dba 1197 Dec 27 11:28 acfsregistrymount
-rwxr-xr-x 1 oracle dba 2421 Dec 27 11:28 acfsrepl_apply
-rwxr-xr-x 1 oracle dba 822723 Jul 7 2013 acfsrepl_apply.bin
-rwxr-xr-x 1 oracle dba 802995 Jul 7 2013 acfsrepl_initializer
-rwxr-xr-x 1 oracle dba 730118 Jul 7 2013 acfsrepl_monitor
-rwxr-xr-x 1 oracle dba 736368 Jul 7 2013 acfsrepl_preapply
-rwxr-xr-x 1 oracle dba 705847 Jul 7 2013 acfsrepl_transport
-rwxr-xr-x 1 oracle dba 3114 Dec 27 11:28 acfsreplcrs
-rwxr-xr-x 1 oracle dba 12921 Jul 7 2013 acfsreplcrs.pl
-rwxr-xr-x 1 oracle dba 1567 Jul 7 2013 acfsroot
-rwxr-xr-x 1 oracle dba 1209 Dec 27 11:28 acfssinglefsmount
-rwxr-xr-x 1 oracle dba 13394 Jul 15 2013 adapters
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrci
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrciO
-rwxr-x--x 1 oracle dba 51676 Dec 27 10:47 agtctl
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 agtctlO
-rwxr-x--x 1 oracle dba 3414284 Dec 27 10:47 amdu
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 amduO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 appagent
-rwxr-xr-x 1 oracle dba 13023072 Aug 16 2014 appagent.bin
-rwxr-xr-x 1 oracle dba 545 Dec 27 11:25 appvipcfg
-rwxr-xr-x 1 oracle dba 9051 Aug 16 2014 appvipcfg.pl
-rwxr-x--x 1 oracle dba 1536 Dec 27 10:47 aqxmlctl
-rw-r--r-- 1 oracle dba 9069 Oct 5 2008 aqxmlctl.pl
-rwxr-xr-x 1 oracle dba 6582 Dec 27 10:47 asmca
-rwxr-x--- 1 oracle dba 5469 Apr 21 2010 asmcmd
-rwxr-xr-x 1 oracle dba 34558 Jan 12 2012 asmcmdcore
-rwxr-xr-x 1 oracle dba 2966 Aug 16 2014 asmproxy
-rwxr-xr-x 1 oracle dba 2412 Dec 27 10:47 bndlchk
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 cemutlo
-rwxr-xr-x 1 oracle dba 15266 Aug 16 2014 cemutlo.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 cemutls
-rwxr-xr-x 1 oracle dba 16861 Aug 16 2014 cemutls.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clscfg
-rwxr-xr-x 1 oracle dba 121377 Aug 16 2014 clscfg.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clsecho
-rwxr-xr-x 1 oracle dba 204728 Aug 16 2014 clsecho.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clsfmt
-rwxr-xr-x 1 oracle dba 89377 Aug 16 2014 clsfmt.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clsid
-rwxr-xr-x 1 oracle dba 30979 Aug 16 2014 clsid.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 clssproxy
-rwxr-xr-x 1 oracle dba 156551 Aug 16 2014 clssproxy.bin
-rwxr-xr-x 1 oracle dba 3707 Dec 27 11:25 cluutil
-rwxr-xr-x 1 oracle dba 8557 Dec 27 11:25 cluvfy
-rwxr-xr-x 1 oracle dba 1303 Feb 3 2010 cluvfyrac.sh
-rwxr-xr-x 1 oracle dba 489 Dec 27 10:47 commonenv
-rwxr-xr-x 1 oracle dba 495 Apr 14 2006 commonenv.template
-rwxr-xr-x 1 oracle dba 5778 Jan 1 2000 coraenv
-rwxr-x--- 1 oracle dba 700 Dec 27 11:25 crfsetenv
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_getperm
-rwxr-xr-x 1 oracle dba 4458460 Aug 16 2014 crs_getperm.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_profile
-rwxr-xr-x 1 oracle dba 4525320 Aug 16 2014 crs_profile.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_register
-rwxr-xr-x 1 oracle dba 5506277 Aug 16 2014 crs_register.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_relocate
-rwxr-xr-x 1 oracle dba 4426465 Aug 16 2014 crs_relocate.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_setperm
-rwxr-xr-x 1 oracle dba 4381281 Aug 16 2014 crs_setperm.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_start
-rwxr-xr-x 1 oracle dba 4426549 Aug 16 2014 crs_start.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_stat
-rwxr-xr-x 1 oracle dba 4598281 Aug 16 2014 crs_stat.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_stop
-rwxr-xr-x 1 oracle dba 4426738 Aug 16 2014 crs_stop.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crs_unregister
-rwxr-xr-x 1 oracle dba 4352677 Aug 16 2014 crs_unregister.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 crsctl
-rwxr-xr-x 1 oracle dba 38742730 Aug 16 2014 crsctl.bin
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 crsd
-rwxr----x 1 oracle dba 106197723 Aug 16 2014 crsd.bin
-rwxr-xr-x 1 oracle dba 2823 Mar 24 2010 crsdiag.pl
-rwxr-xr-x 1 oracle dba 13438 Aug 16 2014 crstmpl.scr
-rwxr--r-- 1 oracle dba 6189 Dec 27 11:25 crswrapexece.pl
-rwxr-xr-x 1 oracle dba 422997 Jul 17 2013 csscan
-rwxr----x 1 oracle dba 12840619 Aug 16 2014 cssdagent
-rwxr----x 1 oracle dba 0 Dec 27 11:25 cssdagent.bin
-rwxr----x 1 oracle dba 12840619 Aug 16 2014 cssdmonitor
-rwxr----x 1 oracle dba 0 Dec 27 11:25 cssdmonitor.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 cssvfupgd
-rwxr-xr-x 1 oracle dba 309543 Aug 16 2014 cssvfupgd.bin
-rwxr-x--x 1 oracle dba 16027 Dec 27 10:47 cursize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 cursizeO
-rwxr-xr-x 1 oracle dba 2794 Dec 27 11:25 cvures
-rwxr-x--- 1 oracle dba 897413 Aug 24 2013 dbfs_client
-rwxr-x--x 1 oracle dba 16291 Dec 27 10:47 dbfsize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbfsizeO
-rw-r--r-- 1 oracle dba 5297 Oct 3 2006 dbgeu_run_action.pl
-rwxr-xr-x 1 oracle dba 2415 Jan 1 2000 dbhome
-rwxr-x--- 1 oracle dba 6088 Jan 1 2000 dbshut
-rwxr-x--- 1 oracle dba 13855 Jan 1 2000 dbstart
-rwxr-x--x 1 oracle dba 550231 Dec 27 10:47 dbv
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbvO
-rwxr-xr-x 1 oracle dba 1526 Dec 27 10:47 deploync
-rwxr-x--x 1 oracle dba 30294 Dec 27 10:47 dg4pwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dg4pwdO
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrl
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrlO
-rwxr-xr-x 1 oracle dba 44304 Aug 16 2014 diagcollection.pl
-rwxr-xr-x 1 oracle dba 509 Dec 27 11:25 diagcollection.sh
-rwxr-xr-x 1 oracle dba 7470 Dec 27 10:47 diagsetup
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 diskmon
-rwxr----x 1 oracle dba 927175 Aug 24 2013 diskmon.bin
-rwxr-xr-x 1 oracle dba 1485 Dec 27 10:47 dropjava
-rwxr-xr-x 1 oracle dba 920746 Dec 27 10:47 dsml2ldif
-rwxr-x--x 1 oracle dba 508208 Dec 27 10:47 dumpsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dumpsga0
-rwxr-xr-x 1 oracle dba 153 Nov 6 1997 echodo
-rwxr-xr-x 1 oracle dba 3508 Dec 27 10:47 emca
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 emcrsp
-rwxr-xr-x 1 oracle dba 1227466 Aug 16 2014 emcrsp.bin
-rwxr--r-- 1 oracle dba 15508 Dec 27 10:47 emctl
-rwxr-xr-x 1 oracle dba 18340 Dec 27 10:47 emctl.pl
-rwxr-xr-x 1 oracle dba 15615 Mar 25 2010 emctl.template
-rwxr-xr-x 1 oracle dba 1226 Oct 17 2005 emdfail.command
-rwxr-xr-x 1 oracle dba 12614 Dec 27 10:47 emutil
-rwxr-xr-x 1 oracle dba 10174 Jan 19 2008 emutil.bat.template
-rwxr-xr-x 1 oracle dba 39794 Aug 5 2011 emwd.pl
-rwxr-xr-x 1 oracle dba 1605 Dec 27 10:47 eusm
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmd
-rwxr-xr-x 1 oracle dba 6165556 Aug 16 2014 evmd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evminfo
-rwxr-xr-x 1 oracle dba 506299 Aug 16 2014 evminfo.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmlogger
-rwxr-xr-x 1 oracle dba 1732979 Aug 16 2014 evmlogger.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmmkbin
-rwxr-xr-x 1 oracle dba 642038 Aug 16 2014 evmmkbin.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmmklib
-rwxr-xr-x 1 oracle dba 174345 Aug 16 2014 evmmklib.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmpost
-rwxr-xr-x 1 oracle dba 787914 Aug 16 2014 evmpost.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmshow
-rwxr-xr-x 1 oracle dba 1028649 Aug 16 2014 evmshow.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmsort
-rwxr-xr-x 1 oracle dba 592466 Aug 16 2014 evmsort.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 evmwatch
-rwxr-xr-x 1 oracle dba 1160535 Aug 16 2014 evmwatch.bin
-rwxr-xr-x 1 oracle dba 4109 Aug 16 2014 evt.sh
-rwxr-x--x 1 oracle dba 987367 Dec 27 10:47 exp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expO
-rwxr-x--x 1 oracle dba 174478 Dec 27 10:47 expdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expdpO
-rwxr-x--- 1 oracle dba 1248420 Dec 27 10:47 extjob
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjobO
-rwx------ 1 oracle dba 1248420 Dec 27 10:47 extjobo
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjoboO
-rwxr-x--x 1 oracle dba 15793 Dec 27 10:47 extproc
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 extprocO
-rwxr-x--- 1 oracle dba 306 Dec 27 10:47 extusrupgrade
-rwxr-x--- 1 oracle dba 1293858 Aug 24 2013 fmputl
-rwxr-x--- 1 oracle dba 39726 Aug 24 2013 fmputlhp
-rwxr-xr-x 1 oracle dba 4265 Feb 22 2012 genagtsh
-rwxr-xr-x 1 oracle dba 9324 Aug 5 2010 genclntsh
-rwxr-xr-x 1 oracle dba 4987 Jun 8 2007 genclntst
-rwxr-x--x 1 oracle dba 47137 Dec 27 10:47 genezi
-rwxr-xr-x 1 oracle dba 47860 Aug 24 2013 geneziO
-rwxr-xr-x 1 oracle dba 1539891 Aug 24 2013 genksms
-rwxr-xr-x 1 oracle dba 2893 Jul 15 2013 gennfgt
-rwxr-xr-x 1 oracle dba 4471 Jul 15 2013 gennttab
-rwxr-xr-x 1 oracle dba 3318 Aug 5 2010 genoccish
-rwxr-xr-x 1 oracle dba 9443 Aug 5 2010 genorasdksh
-rwxr-xr-x 1 oracle dba 2332 Jan 1 2000 gensyslib
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gipcd
-rwxr-xr-x 1 oracle dba 1318691 Aug 16 2014 gipcd.bin
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 gnsd
-rwxr----x 1 oracle dba 36247 Aug 16 2014 gnsd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gpnpd
-rwxr-xr-x 1 oracle dba 370484 Aug 16 2014 gpnpd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 gpnptool
-rwxr-xr-x 1 oracle dba 533533 Aug 16 2014 gpnptool.bin
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 grdcscan
-rwxr-xr-x 1 oracle dba 24941 Aug 16 2014 gsd
-rwxr-xr-x 1 oracle dba 6571 Dec 27 11:25 gsd.sh
-rwxr-xr-x 1 oracle dba 5923 Dec 27 11:25 gsdctl
-rwxr-x--x 1 oracle dba 171639 Dec 27 10:47 hsalloci
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsallociO
-rwxr-x--x 1 oracle dba 32188 Dec 27 10:47 hsdepxa
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsdepxaO
-rwxr-x--x 1 oracle dba 35121 Dec 27 10:47 hsots
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsotsO
-rwxr-x--x 1 oracle dba 468769 Dec 27 10:47 imp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impO
-rwxr-x--x 1 oracle dba 184182 Dec 27 10:47 impdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impdpO
-rwxr-x--- 1 oracle dba 43040 Dec 27 10:47 jssu
-rwxr-x--x 1 oracle dba 2402717 Dec 27 10:47 kfed
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfedO
-rwxr-x--x 1 oracle dba 27716166 Dec 27 10:47 kfod
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfodO
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgr
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgrO
lrwxrwxrwx 1 oracle dba 47 Dec 27 10:47 lbuilder -> /oragrid/product/11.2.0.4/nls/lbuilder/lbuilder
-rwxr-xr-x 1 oracle dba 1960152 Aug 24 2013 lcsscan
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapadd
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapaddmt
-rwxr-xr-x 1 oracle dba 857554 Dec 27 10:47 ldapbind
-rwxr-xr-x 1 oracle dba 857636 Dec 27 10:47 ldapcompare
-rwxr-xr-x 1 oracle dba 857719 Dec 27 10:47 ldapdelete
-rwxr-xr-x 1 oracle dba 857441 Dec 27 10:47 ldapmoddn
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapmodify
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapmodifymt
-rwxr-xr-x 1 oracle dba 886907 Dec 27 10:47 ldapsearch
-rwxr-xr-x 1 oracle dba 3428 Dec 27 10:47 ldifmigrator
-rwxr-xr-x 1 oracle dba 1459 May 12 2009 linkshlib
-rwxr-xr-x 1 oracle dba 1598817 Aug 24 2013 lmsgen
-rwxr-xr-x 1 oracle dba 1746 Dec 27 10:47 loadjava
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpsp
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpspO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 lsdb
-rwxr-xr-x 1 oracle dba 22979 Aug 16 2014 lsdb.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 lsnodes
-rwxr-xr-x 1 oracle dba 60809 Jul 25 2013 lsnodes.bin
-rwxr-x--x 1 oracle dba 154940 Dec 27 10:47 lsnrctl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 lsnrctl0
-rwxr-xr-x 1 oracle dba 1094684 Aug 24 2013 lxchknlb
-rwxr-xr-x 1 oracle dba 1675585 Aug 24 2013 lxegen
-rwxr-xr-x 1 oracle dba 4914972 Aug 24 2013 lxinst
-rwxr-x--x 1 oracle dba 508573 Dec 27 10:47 mapsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 mapsga0
-rwxr-x--x 1 oracle dba 16633 Dec 27 10:47 maxmem
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 maxmemO
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 mdnsd
-rwxr-xr-x 1 oracle dba 943257 Aug 16 2014 mdnsd.bin
-rwxr-x--x 1 oracle dba 141299 Dec 27 10:47 mkpatch
-rwxr-xr-x 1 oracle dba 138676 Aug 24 2013 mkpatchO
-rwxr-xr-x 1 oracle dba 2796 Dec 27 10:47 mkstore
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 ncomp
-rwxr-x--- 1 oracle dba 3852 Dec 27 11:25 ndfnceca
-rwxr-xr-x 1 oracle dba 6503 Dec 27 10:47 netca
-rw-r--r-- 1 oracle dba 100 Dec 27 10:47 netca_deinst.sh
-rwxr-xr-x 1 oracle dba 6438 Dec 27 10:47 netmgr
-rwxr-x--- 1 oracle dba 2835 Sep 17 2007 nfsPatchPlugin.pm
-rwxr-x--x 1 oracle dba 88163 Dec 27 10:47 nid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 nidO
-rwxr-xr-x 1 oracle dba 5736 Dec 27 11:25 oc4jctl
-rwxr-xr-x 1 oracle dba 2769 Aug 16 2014 oc4jctl.pl
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oclskd
-rwxr-x--x 1 oracle dba 144940 Aug 16 2014 oclskd.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oclsomon
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oclsvmon
-rwxr-x--- 1 oracle dba 1561 Dec 27 11:25 oclumon
-rwxr-x--- 1 oracle dba 121780 Aug 16 2014 oclumon.bin
-rwxr-x--- 1 oracle dba 2030 Dec 27 11:25 oclumon.pl
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocrcheck
-rwxr-xr-x 1 oracle dba 127661 Aug 16 2014 ocrcheck.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocrconfig
-rwxr-xr-x 1 oracle dba 231002 Aug 16 2014 ocrconfig.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocrdump
-rwxr-xr-x 1 oracle dba 135650 Aug 16 2014 ocrdump.bin
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocrpatch
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 ocssd
-rwxr-xr-x 1 oracle dba 4370417 Aug 16 2014 ocssd.bin
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 octssd
-rwxr----x 1 oracle dba 649063 Aug 16 2014 octssd.bin
-rwxr-xr-x 1 oracle dba 1290 Dec 27 10:47 odisrvreg
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 odnsd
-rwxr-xr-x 1 oracle dba 135071 Jul 25 2013 odnsd.bin
-rwxr-xr-x 1 oracle dba 2567 Jan 1 2000 oerr
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 ohasd
-rwxr----x 1 oracle dba 105987214 Aug 16 2014 ohasd.bin
-rwxr-xr-x 1 oracle dba 2149 Dec 27 10:47 oidca
-rwxr-xr-x 1 oracle dba 3574 Dec 27 10:47 oidprovtool
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oifcfg
-rwxr-xr-x 1 oracle dba 150213 Aug 16 2014 oifcfg.bin
-rwxr-xr-x 1 oracle dba 1418 Dec 27 10:47 ojvmjava
-rwxr-xr-x 1 oracle dba 1340 Dec 27 10:47 ojvmtc
-rwxr-xr-x 1 oracle dba 23286 Dec 27 10:47 okdstry
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okdstry0
-rwxr-xr-x 1 oracle dba 15416 Dec 27 10:47 okinit
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okinit0
-rwxr-xr-x 1 oracle dba 24003 Dec 27 10:47 oklist
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 oklist0
-rwxr-x--- 1 oracle dba 873 Dec 27 11:25 ologdbg
-rwxr-x--- 1 oracle dba 4270 Dec 27 11:25 ologdbg.pl
-rwxr-x--- 1 oracle dba 130613 Aug 16 2014 ologgerd
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 olsnodes
-rwxr-xr-x 1 oracle dba 76025 Aug 16 2014 olsnodes.bin
-rwxr-xr-x 1 oracle dba 1193 Dec 27 11:25 onsctl
-rwxr-xr-x 1 oracle dba 69912 Aug 16 2014 oprocd
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oraagent
-rwxr-xr-x 1 oracle dba 29454508 Aug 16 2014 oraagent.bin
-rwxr-xr-x 1 oracle dba 3814782 Aug 24 2013 orabase
-rwxr-x--x 1 oracle dba 209854189 Dec 27 10:47 oracle
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 oracleO
-rw-r--r-- 1 oracle dba 8664 Dec 27 11:25 oradaemonagent
-rwxr-x--- 1 oracle dba 71790 Aug 24 2013 oradism
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oradnssd
-rwxr-xr-x 1 oracle dba 130715 Aug 16 2014 oradnssd.bin
-rwxr-xr-x 1 oracle dba 6183 Jan 1 2000 oraenv
-rwxr-xr-x 1 oracle dba 44 Dec 4 2002 orajaxb
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 oranetmonitor
-rwxr-xr-x 1 oracle dba 798003 Aug 16 2014 oranetmonitor.bin
-rwxr-xr-x 1 oracle dba 3180 Dec 27 10:47 orapki
-rwxr-x--x 1 oracle dba 33573 Dec 27 10:47 orapwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 orapwdO
-rwxr----x 1 oracle dba 8664 Dec 27 11:25 orarootagent
-rwxr----x 1 oracle dba 29379057 Aug 16 2014 orarootagent.bin
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxml
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxsl
-rwxr-x--x 1 oracle dba 20370218 Dec 27 10:47 orion
-rwxr-xr-x 1 oracle dba 20370310 Aug 24 2013 orionO
-rwxr-xr-x 1 oracle dba 31882 Dec 27 11:19 osdbagrp
-rwxr-xr-x 1 oracle dba 31882 Dec 27 10:47 osdbagrp0
-rwxr-x--- 1 oracle dba 31484 Aug 24 2013 osh
-rwxr-x--- 1 oracle dba 8664 Dec 27 11:25 osysmond
-rwxr-x--- 1 oracle dba 130932 Aug 16 2014 osysmond.bin
-rwxr-xr-x 1 oracle dba 6819 Dec 27 10:47 owm
-rwxr-x--- 1 oracle dba 4472 Apr 14 2008 patchAgtStPlugin.pm
-rw-r--r-- 1 oracle dba 3659 Dec 27 10:47 platform_common
-rwxr-x--x 1 oracle dba 5453855 Dec 27 10:47 plshprof
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 plshprofO
-rwxr-xr-x 1 oracle dba 2499 Dec 27 11:25 qosctl
-rwxr-xr-x 1 oracle dba 1717171 Aug 16 2014 racgeut
-rwxr-xr-x 1 oracle dba 1699678 Aug 16 2014 racgevtf
-rwxr-xr-x 1 oracle dba 1945593 Aug 16 2014 racgmain
-rwxr-xr-x 1 oracle dba 24344 Aug 16 2014 racgvip
-rwxr-xr-x 1 oracle dba 1654 Dec 27 11:25 racgwrap
-rwxr-xr-x 1 oracle dba 1498 Oct 30 2009 racgwrap.sbs
-rwxr-xr-x 1 oracle dba 17958 Dec 27 10:47 rawutl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 rawutl0
-rwxr-xr-x 1 oracle dba 7047 Dec 27 10:47 rconfig
-rwxr-xr-x 1 oracle dba 3899 Dec 27 11:25 rdtool
-rwxr-xr-x 1 oracle dba 5770 Nov 21 2010 relink
-rwxr-x--x 1 oracle dba 27799590 Dec 27 10:47 renamedg
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 renamedg0
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rman
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rmanO
-rwxr-xr-x 1 oracle dba 2523 Jul 17 2007 sAgentUtils.pm
-rwxr-x--x 1 oracle dba 120805 Dec 27 10:47 sbttest
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sbttestO
-rwxr-xr-x 1 oracle dba 4119874 Jul 3 2013 schema
-rwxr-xr-x 1 oracle dba 2840 Dec 27 10:47 schemasync
-rwxr-xr-x 1 oracle dba 19325 Aug 16 2014 sclsspawn
-rwxr-x--- 1 oracle dba 7103 Dec 27 11:25 scrctl
-rwxr-xr-x 1 oracle dba 8664 Dec 27 11:25 scriptagent
-rwxr-xr-x 1 oracle dba 12645944 Aug 16 2014 scriptagent.bin
-rwxr-x--x 1 oracle dba 2260801 Dec 27 10:47 setasmgid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 setasmgid0
-rwxr-xr-x 1 oracle dba 2389 Dec 27 11:25 setasmgidwrap
-rwxr-x--x 1 oracle dba 12306 Dec 27 10:47 skgxpinfo
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 skgxpinfoO
-rwxr-x--x 1 oracle dba 1492711 Dec 27 10:47 sqlldr
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sqlldrO
-rwxr-x--x 1 oracle dba 10413 Dec 27 10:47 sqlplus
-rwxr-xr-x 1 oracle dba 4749 Dec 27 10:47 srvconfig
-rwxr-xr-x 1 oracle dba 9039 Dec 27 11:25 srvctl
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 statusnc
-rwxr-xr-x 1 oracle dba 3261 Aug 18 2010 symfind
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv0
-rwxr-xr-x 1 oracle dba 6947 Dec 27 10:47 targetdeploy.pl
-rwxr-x--x 1 oracle dba 129985 Dec 27 10:47 tkprof
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tkprofO
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnnfg
-rwxr-x--x 1 oracle dba 974062 Dec 27 10:47 tnslsnr
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnslsnr0
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping0
-rwxr-xr-x 1 oracle dba 2993 Dec 27 10:47 trcasst
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 trcldr
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute0
-rwxr-xr-x 1 oracle dba 2052 Dec 27 10:47 trcsess
-rwxr-x--x 1 oracle dba 23680 Dec 27 10:47 tstshm
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tstshmO
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvci
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvciO
-rwxr-xr-x 1 oracle dba 3830 Dec 27 10:47 umu
-rwxr-xr-x 1 oracle dba 145976 Jul 10 2013 unzip
-rwxr-xr-x 1 oracle dba 1276 Dec 27 11:25 usrvip
-rwxr-xr-x 1 oracle dba 0 Dec 27 11:25 vipca
-rwxr-x--x 1 oracle dba 8928988 Dec 27 10:47 wrap
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 wrapO
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrc
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrcO
-rwxr-xr-x 1 oracle dba 4283581 Jul 3 2013 xml
-rwx------ 1 oracle dba 31268 Jul 21 2011 xmlwf
-rwxr-xr-x 1 oracle dba 230027 Jul 10 2013 zip
3. 다시 올림, 잘 올라가지만 확인해 보면 oracle:dba 그대로 되어있다.
crsctl start crs
4. root 유저에서
cd $GRID_HOME/crs/install
./rootcrs.pl -unlock <<<<----- 여기까지는 그냥 변화없음..unlock 후 crs 내림
./rootcrs.pl -patch <<<<----- 권한을 체크하면서 crs 를 올림..
만약 $ORACLE_HOME 쪽도 permission & ownership 을 바꾸었다면 rootcrs.pl -patch 전에
$GRID_HOME/rdbms/install/rootadd_rdbms.sh
5. root 유저에서 원복되었는지 확인
[root:/]#ls -al $GRID_HOME/bin
[root:/oragrid/product/11.2.0.4/bin]#ls -al
total 837600
drwxr-xr-x 2 root dba 12288 May 31 15:50 .
drwxr-xr-x 69 root dba 4096 Dec 27 11:25 ..
-rwxr-xr-x 1 oracle dba 9172 Jun 8 2010 AgentLifeCycle.pm
-rwxr-xr-x 1 oracle dba 2343 Jul 26 2006 AgentMisc.pm
-rwxr-xr-x 1 oracle dba 17833 Sep 13 2007 AgentStatus.pm
-rwxr-xr-x 1 oracle dba 3265 Jul 31 2008 AgentSubAgent.pm
-rwxr-xr-x 1 oracle dba 2923 May 25 2007 CompEMagent.pm
-rwxr-xr-x 1 oracle dba 5693 Jan 19 2008 CompEMcentral.pm
-rwxr-xr-x 1 oracle dba 5199 Jan 19 2008 CompEMcore.pm
-rwxr-xr-x 1 oracle dba 2952 Oct 17 2005 Directory.pm
-rwxr-xr-x 1 oracle dba 24310 Sep 12 2008 EMAgent.pm
-rwxr-xr-x 1 oracle dba 1404 Oct 17 2005 EMAgentPatch.pm
-rwxr-xr-x 1 oracle dba 24550 Mar 24 2009 EMDeploy.pm
-rwxr-xr-x 1 oracle dba 3451 May 1 2006 EMDiag.pm
-rwxr-xr-x 1 oracle dba 5653 Sep 6 2006 EMSAConsoleCommon.pm
-rwxr-xr-x 1 oracle dba 6612 Dec 14 2006 EMconnectorCmds.pm
-rwxr-xr-x 1 oracle dba 16758 Mar 18 2009 EMomsCmds.pm
-rwxr-xr-x 1 oracle dba 2194 Oct 17 2005 EmCommonCmdDriver.pm
-rwxr-xr-x 1 oracle dba 6741 Oct 3 2006 EmKeyCmds.pm
-rwxr-xr-x 1 oracle dba 44107 Dec 27 10:47 EmctlCommon.pm
-rwxr-xr-x 1 oracle dba 16979 Jul 27 2007 LaunchEMagent.pm
-rwxr-xr-x 1 oracle dba 1488 Oct 17 2005 Path.pm
-rwxr-xr-x 1 oracle dba 4442 Jan 19 2008 RegisterTType.pm
-rwxr-xr-x 1 oracle dba 28900 Jul 31 2008 SecureAgentCmds.pm
-rwxr-xr-x 1 oracle dba 70807 Jun 23 2009 SecureOMSCmds.pm
-rwxr-xr-x 1 oracle dba 34604 May 23 2008 SecureUtil.pm
-rwxr-x--- 1 oracle dba 281 Oct 17 2005 StartAgent.pl
-rwxr-xr-x 1 root dba 2797 Dec 27 11:28 acfsdriverstate
-rwxr-xr-x 1 root dba 1116 Dec 27 11:28 acfsload
-rwxr-xr-x 1 root dba 1197 Dec 27 11:28 acfsregistrymount
-rwxr-xr-x 1 root dba 2421 Dec 27 11:28 acfsrepl_apply
-rwxr-xr-x 1 root dba 822723 Jul 7 2013 acfsrepl_apply.bin
-rwxr-xr-x 1 root dba 802995 Jul 7 2013 acfsrepl_initializer
-rwxr-xr-x 1 oracle dba 730118 Jul 7 2013 acfsrepl_monitor
-rwxr-xr-x 1 oracle dba 736368 Jul 7 2013 acfsrepl_preapply
-rwxr-xr-x 1 oracle dba 705847 Jul 7 2013 acfsrepl_transport
-rwxr-xr-x 1 oracle dba 3114 Dec 27 11:28 acfsreplcrs
-rwxr-xr-x 1 oracle dba 12921 Jul 7 2013 acfsreplcrs.pl
-rwxr-xr-x 1 root dba 1567 Jul 7 2013 acfsroot
-rwxr-xr-x 1 root dba 1209 Dec 27 11:28 acfssinglefsmount
-rwxr-xr-x 1 oracle dba 13394 Jul 15 2013 adapters
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrci
-rwxr-x--x 1 oracle dba 27897 Dec 27 10:47 adrciO
-rwxr-x--x 1 oracle dba 51676 Dec 27 10:47 agtctl
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 agtctlO
-rwxr-x--x 1 oracle dba 3414284 Dec 27 10:47 amdu
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 amduO
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 appagent
-rwxr-xr-x 1 oracle dba 13023072 Aug 16 2014 appagent.bin
-rwxr-xr-x 1 root dba 545 May 31 15:50 appvipcfg
-rwxr-xr-x 1 oracle dba 9051 Aug 16 2014 appvipcfg.pl
-rwxr-x--x 1 oracle dba 1536 Dec 27 10:47 aqxmlctl
-rw-r--r-- 1 oracle dba 9069 Oct 5 2008 aqxmlctl.pl
-rwxr-xr-x 1 oracle dba 6582 Dec 27 10:47 asmca
-rwxr-x--- 1 oracle dba 5469 Apr 21 2010 asmcmd
-rwxr-xr-x 1 oracle dba 34558 Jan 12 2012 asmcmdcore
-rwxr-xr-x 1 oracle dba 2966 Aug 16 2014 asmproxy
-rwxr-xr-x 1 oracle dba 2412 Dec 27 10:47 bndlchk
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 cemutlo
-rwxr-xr-x 1 oracle dba 15266 Aug 16 2014 cemutlo.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 cemutls
-rwxr-xr-x 1 oracle dba 16861 Aug 16 2014 cemutls.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 clscfg
-rwxr-xr-x 1 root dba 121377 Aug 16 2014 clscfg.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 clsecho
-rwxr-xr-x 1 root dba 204728 Aug 16 2014 clsecho.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 clsfmt
-rwxr-xr-x 1 root dba 89377 Aug 16 2014 clsfmt.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 clsid
-rwxr-xr-x 1 oracle dba 30979 Aug 16 2014 clsid.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 clssproxy
-rwxr-xr-x 1 oracle dba 156551 Aug 16 2014 clssproxy.bin
-rwxr-xr-x 1 oracle dba 3707 May 31 15:50 cluutil
-rwxr-xr-x 1 root dba 8557 May 31 15:50 cluvfy
-rwxr-xr-x 1 oracle dba 1303 Feb 3 2010 cluvfyrac.sh
-rwxr-xr-x 1 oracle dba 489 Dec 27 10:47 commonenv
-rwxr-xr-x 1 oracle dba 495 Apr 14 2006 commonenv.template
-rwxr-xr-x 1 oracle dba 5778 Jan 1 2000 coraenv
-rwxr-x--- 1 root dba 700 May 31 15:50 crfsetenv
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_getperm
-rwxr-xr-x 1 oracle dba 4458460 Aug 16 2014 crs_getperm.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_profile
-rwxr-xr-x 1 oracle dba 4525320 Aug 16 2014 crs_profile.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_register
-rwxr-xr-x 1 oracle dba 5506277 Aug 16 2014 crs_register.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_relocate
-rwxr-xr-x 1 oracle dba 4426465 Aug 16 2014 crs_relocate.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_setperm
-rwxr-xr-x 1 oracle dba 4381281 Aug 16 2014 crs_setperm.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_start
-rwxr-xr-x 1 oracle dba 4426549 Aug 16 2014 crs_start.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_stat
-rwxr-xr-x 1 oracle dba 4598281 Aug 16 2014 crs_stat.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_stop
-rwxr-xr-x 1 oracle dba 4426738 Aug 16 2014 crs_stop.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 crs_unregister
-rwxr-xr-x 1 oracle dba 4352677 Aug 16 2014 crs_unregister.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 crsctl
-rwxr-xr-x 1 root dba 38742730 Aug 16 2014 crsctl.bin
-rwxr----x 1 root dba 8664 May 31 15:50 crsd
-rwxr----x 1 root dba 106197723 Aug 16 2014 crsd.bin
-rwxr-xr-x 1 oracle dba 2823 Mar 24 2010 crsdiag.pl
-rwxr-xr-x 1 oracle dba 13438 Aug 16 2014 crstmpl.scr
-rwxr--r-- 1 root dba 6189 May 31 15:50 crswrapexece.pl
-rwxr-xr-x 1 oracle dba 422997 Jul 17 2013 csscan
-rwxr----x 1 root dba 12840619 Aug 16 2014 cssdagent
-rwxr----x 1 root dba 0 Dec 27 11:25 cssdagent.bin
-rwxr----x 1 root dba 12840619 Aug 16 2014 cssdmonitor
-rwxr----x 1 root dba 0 Dec 27 11:25 cssdmonitor.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 cssvfupgd
-rwxr-xr-x 1 root dba 309543 Aug 16 2014 cssvfupgd.bin
-rwxr-x--x 1 oracle dba 16027 Dec 27 10:47 cursize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 cursizeO
-rwxr-xr-x 1 oracle dba 2794 May 31 15:50 cvures
-rwxr-x--- 1 oracle dba 897413 Aug 24 2013 dbfs_client
-rwxr-x--x 1 oracle dba 16291 Dec 27 10:47 dbfsize
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbfsizeO
-rw-r--r-- 1 oracle dba 5297 Oct 3 2006 dbgeu_run_action.pl
-rwxr-xr-x 1 oracle dba 2415 Jan 1 2000 dbhome
-rwxr-x--- 1 oracle dba 6088 Jan 1 2000 dbshut
-rwxr-x--- 1 oracle dba 13855 Jan 1 2000 dbstart
-rwxr-x--x 1 oracle dba 550231 Dec 27 10:47 dbv
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dbvO
-rwxr-xr-x 1 oracle dba 1526 Dec 27 10:47 deploync
-rwxr-x--x 1 oracle dba 30294 Dec 27 10:47 dg4pwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dg4pwdO
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrl
-rwxr-x--x 1 oracle dba 448983 Dec 27 10:47 dgmgrlO
-rwxr-xr-x 1 root dba 44304 Aug 16 2014 diagcollection.pl
-rwxr-xr-x 1 root dba 509 May 31 15:50 diagcollection.sh
-rwxr-xr-x 1 oracle dba 7470 Dec 27 10:47 diagsetup
-rwxr----x 1 root dba 8664 May 31 15:50 diskmon
-rwxr----x 1 root dba 927175 Aug 24 2013 diskmon.bin
-rwxr-xr-x 1 oracle dba 1485 Dec 27 10:47 dropjava
-rwxr-xr-x 1 oracle dba 920746 Dec 27 10:47 dsml2ldif
-rwxr-x--x 1 oracle dba 508208 Dec 27 10:47 dumpsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 dumpsga0
-rwxr-xr-x 1 oracle dba 153 Nov 6 1997 echodo
-rwxr-xr-x 1 oracle dba 3508 Dec 27 10:47 emca
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 emcrsp
-rwxr-xr-x 1 oracle dba 1227466 Aug 16 2014 emcrsp.bin
-rwxr--r-- 1 oracle dba 15508 Dec 27 10:47 emctl
-rwxr-xr-x 1 oracle dba 18340 Dec 27 10:47 emctl.pl
-rwxr-xr-x 1 oracle dba 15615 Mar 25 2010 emctl.template
-rwxr-xr-x 1 oracle dba 1226 Oct 17 2005 emdfail.command
-rwxr-xr-x 1 oracle dba 12614 Dec 27 10:47 emutil
-rwxr-xr-x 1 oracle dba 10174 Jan 19 2008 emutil.bat.template
-rwxr-xr-x 1 oracle dba 39794 Aug 5 2011 emwd.pl
-rwxr-xr-x 1 oracle dba 1605 Dec 27 10:47 eusm
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmd
-rwxr-xr-x 1 oracle dba 6165556 Aug 16 2014 evmd.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evminfo
-rwxr-xr-x 1 oracle dba 506299 Aug 16 2014 evminfo.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmlogger
-rwxr-xr-x 1 oracle dba 1732979 Aug 16 2014 evmlogger.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmmkbin
-rwxr-xr-x 1 oracle dba 642038 Aug 16 2014 evmmkbin.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmmklib
-rwxr-xr-x 1 oracle dba 174345 Aug 16 2014 evmmklib.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmpost
-rwxr-xr-x 1 oracle dba 787914 Aug 16 2014 evmpost.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmshow
-rwxr-xr-x 1 oracle dba 1028649 Aug 16 2014 evmshow.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmsort
-rwxr-xr-x 1 oracle dba 592466 Aug 16 2014 evmsort.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 evmwatch
-rwxr-xr-x 1 oracle dba 1160535 Aug 16 2014 evmwatch.bin
-rwxr-xr-x 1 oracle dba 4109 Aug 16 2014 evt.sh
-rwxr-x--x 1 oracle dba 987367 Dec 27 10:47 exp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expO
-rwxr-x--x 1 oracle dba 174478 Dec 27 10:47 expdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 expdpO
-rwxr-x--- 1 oracle dba 1248420 Dec 27 10:47 extjob
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjobO
-rwx------ 1 oracle dba 1248420 Dec 27 10:47 extjobo
-rwxr-xr-x 1 oracle dba 1255589 Aug 24 2013 extjoboO
-rwxr-x--x 1 oracle dba 15793 Dec 27 10:47 extproc
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 extprocO
-rwxr-x--- 1 oracle dba 306 Dec 27 10:47 extusrupgrade
-rwxr-x--- 1 oracle dba 1293858 Aug 24 2013 fmputl
-rwxr-x--- 1 oracle dba 39726 Aug 24 2013 fmputlhp
-rwxr-xr-x 1 oracle dba 4265 Feb 22 2012 genagtsh
-rwxr-xr-x 1 oracle dba 9324 Aug 5 2010 genclntsh
-rwxr-xr-x 1 oracle dba 4987 Jun 8 2007 genclntst
-rwxr-x--x 1 oracle dba 47137 Dec 27 10:47 genezi
-rwxr-xr-x 1 oracle dba 47860 Aug 24 2013 geneziO
-rwxr-xr-x 1 oracle dba 1539891 Aug 24 2013 genksms
-rwxr-xr-x 1 oracle dba 2893 Jul 15 2013 gennfgt
-rwxr-xr-x 1 oracle dba 4471 Jul 15 2013 gennttab
-rwxr-xr-x 1 oracle dba 3318 Aug 5 2010 genoccish
-rwxr-xr-x 1 oracle dba 9443 Aug 5 2010 genorasdksh
-rwxr-xr-x 1 oracle dba 2332 Jan 1 2000 gensyslib
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 gipcd
-rwxr-xr-x 1 oracle dba 1318691 Aug 16 2014 gipcd.bin
-rwxr----x 1 root dba 8664 May 31 15:50 gnsd
-rwxr----x 1 root dba 36247 Aug 16 2014 gnsd.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 gpnpd
-rwxr-xr-x 1 oracle dba 370484 Aug 16 2014 gpnpd.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 gpnptool
-rwxr-xr-x 1 oracle dba 533533 Aug 16 2014 gpnptool.bin
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 grdcscan
-rwxr-xr-x 1 oracle dba 24941 Aug 16 2014 gsd
-rwxr-xr-x 1 oracle dba 6571 May 31 15:50 gsd.sh
-rwxr-xr-x 1 oracle dba 5923 May 31 15:50 gsdctl
-rwxr-x--x 1 oracle dba 171639 Dec 27 10:47 hsalloci
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsallociO
-rwxr-x--x 1 oracle dba 32188 Dec 27 10:47 hsdepxa
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsdepxaO
-rwxr-x--x 1 oracle dba 35121 Dec 27 10:47 hsots
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 hsotsO
-rwxr-x--x 1 oracle dba 468769 Dec 27 10:47 imp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impO
-rwxr-x--x 1 oracle dba 184182 Dec 27 10:47 impdp
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 impdpO
-rwxr-x--- 1 oracle dba 43040 Dec 27 10:47 jssu
-rwxr-x--x 1 oracle dba 2402717 Dec 27 10:47 kfed
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfedO
-rwxr-x--x 1 oracle dba 27716166 Dec 27 10:47 kfod
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 kfodO
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgr
-rwxr-x--x 1 oracle dba 565925 Dec 27 10:47 kgmgrO
lrwxrwxrwx 1 oracle dba 47 Dec 27 10:47 lbuilder -> /oragrid/product/11.2.0.4/nls/lbuilder/lbuilder
-rwxr-xr-x 1 oracle dba 1960152 Aug 24 2013 lcsscan
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapadd
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapaddmt
-rwxr-xr-x 1 oracle dba 857554 Dec 27 10:47 ldapbind
-rwxr-xr-x 1 oracle dba 857636 Dec 27 10:47 ldapcompare
-rwxr-xr-x 1 oracle dba 857719 Dec 27 10:47 ldapdelete
-rwxr-xr-x 1 oracle dba 857441 Dec 27 10:47 ldapmoddn
-rwxr-xr-x 1 oracle dba 942419 Dec 27 10:47 ldapmodify
-rwxr-xr-x 1 oracle dba 954796 Dec 27 10:47 ldapmodifymt
-rwxr-xr-x 1 oracle dba 886907 Dec 27 10:47 ldapsearch
-rwxr-xr-x 1 oracle dba 3428 Dec 27 10:47 ldifmigrator
-rwxr-xr-x 1 oracle dba 1459 May 12 2009 linkshlib
-rwxr-xr-x 1 oracle dba 1598817 Aug 24 2013 lmsgen
-rwxr-xr-x 1 oracle dba 1746 Dec 27 10:47 loadjava
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpsp
-rwxr-x--x 1 oracle dba 25125 Dec 27 10:47 loadpspO
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 lsdb
-rwxr-xr-x 1 oracle dba 22979 Aug 16 2014 lsdb.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 lsnodes
-rwxr-xr-x 1 oracle dba 60809 Jul 25 2013 lsnodes.bin
-rwxr-x--x 1 oracle dba 154940 Dec 27 10:47 lsnrctl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 lsnrctl0
-rwxr-xr-x 1 oracle dba 1094684 Aug 24 2013 lxchknlb
-rwxr-xr-x 1 oracle dba 1675585 Aug 24 2013 lxegen
-rwxr-xr-x 1 oracle dba 4914972 Aug 24 2013 lxinst
-rwxr-x--x 1 oracle dba 508573 Dec 27 10:47 mapsga
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 mapsga0
-rwxr-x--x 1 oracle dba 16633 Dec 27 10:47 maxmem
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 maxmemO
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 mdnsd
-rwxr-xr-x 1 oracle dba 943257 Aug 16 2014 mdnsd.bin
-rwxr-x--x 1 oracle dba 141299 Dec 27 10:47 mkpatch
-rwxr-xr-x 1 oracle dba 138676 Aug 24 2013 mkpatchO
-rwxr-xr-x 1 oracle dba 2796 Dec 27 10:47 mkstore
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 ncomp
-rwxr-x--- 1 oracle dba 3852 May 31 15:50 ndfnceca
-rwxr-xr-x 1 oracle dba 6503 Dec 27 10:47 netca
-rw-r--r-- 1 oracle dba 100 Dec 27 10:47 netca_deinst.sh
-rwxr-xr-x 1 oracle dba 6438 Dec 27 10:47 netmgr
-rwxr-x--- 1 oracle dba 2835 Sep 17 2007 nfsPatchPlugin.pm
-rwxr-x--x 1 oracle dba 88163 Dec 27 10:47 nid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 nidO
-rwxr-xr-x 1 oracle dba 5736 May 31 15:50 oc4jctl
-rwxr-xr-x 1 oracle dba 2769 Aug 16 2014 oc4jctl.pl
-rwxr-xr-x 1 root dba 8664 May 31 15:50 oclskd
-rwxr-x--x 1 root dba 144940 Aug 16 2014 oclskd.bin
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oclsomon
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oclsvmon
-rwxr-x--- 1 root dba 1561 May 31 15:50 oclumon
-rwxr-x--- 1 root dba 121780 Aug 16 2014 oclumon.bin
-rwxr-x--- 1 oracle dba 2030 May 31 15:50 oclumon.pl
-rwxr-xr-x 1 root dba 8664 May 31 15:50 ocrcheck
-rwxr-xr-x 1 root dba 127661 Aug 16 2014 ocrcheck.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 ocrconfig
-rwxr-xr-x 1 root dba 231002 Aug 16 2014 ocrconfig.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 ocrdump
-rwxr-xr-x 1 root dba 135650 Aug 16 2014 ocrdump.bin
-rwxr-xr-x 1 root dba 8664 May 31 15:50 ocrpatch
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 ocssd
-rwxr-xr-x 1 oracle dba 4370417 Aug 16 2014 ocssd.bin
-rwxr----x 1 root dba 8664 May 31 15:50 octssd
-rwxr----x 1 root dba 649063 Aug 16 2014 octssd.bin
-rwxr-xr-x 1 oracle dba 1290 Dec 27 10:47 odisrvreg
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 odnsd
-rwxr-xr-x 1 oracle dba 135071 Jul 25 2013 odnsd.bin
-rwxr-xr-x 1 oracle dba 2567 Jan 1 2000 oerr
-rwxr----x 1 root dba 8664 May 31 15:50 ohasd
-rwxr----x 1 root dba 105987214 Aug 16 2014 ohasd.bin
-rwxr-xr-x 1 oracle dba 2149 Dec 27 10:47 oidca
-rwxr-xr-x 1 oracle dba 3574 Dec 27 10:47 oidprovtool
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oifcfg
-rwxr-xr-x 1 oracle dba 150213 Aug 16 2014 oifcfg.bin
-rwxr-xr-x 1 oracle dba 1418 Dec 27 10:47 ojvmjava
-rwxr-xr-x 1 oracle dba 1340 Dec 27 10:47 ojvmtc
-rwxr-xr-x 1 oracle dba 23286 Dec 27 10:47 okdstry
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okdstry0
-rwxr-xr-x 1 oracle dba 15416 Dec 27 10:47 okinit
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 okinit0
-rwxr-xr-x 1 oracle dba 24003 Dec 27 10:47 oklist
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 oklist0
-rwxr-x--- 1 oracle dba 873 May 31 15:50 ologdbg
-rwxr-x--- 1 oracle dba 4270 May 31 15:50 ologdbg.pl
-rwxr-x--- 1 root dba 130613 Aug 16 2014 ologgerd
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 olsnodes
-rwxr-xr-x 1 oracle dba 76025 Aug 16 2014 olsnodes.bin
-rwxr-xr-x 1 oracle dba 1193 May 31 15:50 onsctl
-rwxr-xr-x 1 oracle dba 69912 Aug 16 2014 oprocd
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oraagent
-rwxr-xr-x 1 oracle dba 29454508 Aug 16 2014 oraagent.bin
-rwxr-xr-x 1 oracle dba 3814782 Aug 24 2013 orabase
-rwxr-x--x 1 oracle dba 209854189 Dec 27 10:47 oracle
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 oracleO
-rw-r--r-- 1 root root 8664 May 31 15:50 oradaemonagent
-rwxr-x--- 1 oracle dba 71790 Aug 24 2013 oradism
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oradnssd
-rwxr-xr-x 1 oracle dba 130715 Aug 16 2014 oradnssd.bin
-rwxr-xr-x 1 oracle dba 6183 Jan 1 2000 oraenv
-rwxr-xr-x 1 oracle dba 44 Dec 4 2002 orajaxb
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 oranetmonitor
-rwxr-xr-x 1 oracle dba 798003 Aug 16 2014 oranetmonitor.bin
-rwxr-xr-x 1 oracle dba 3180 Dec 27 10:47 orapki
-rwxr-x--x 1 oracle dba 33573 Dec 27 10:47 orapwd
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 orapwdO
-rwxr----x 1 root dba 8664 May 31 15:50 orarootagent
-rwxr----x 1 root dba 29379057 Aug 16 2014 orarootagent.bin
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxml
-rwxr-xr-x 1 oracle dba 48 Sep 25 2000 oraxsl
-rwxr-x--x 1 oracle dba 20370218 Dec 27 10:47 orion
-rwxr-xr-x 1 oracle dba 20370310 Aug 24 2013 orionO
-rwxr-xr-x 1 oracle dba 31882 Dec 27 11:19 osdbagrp
-rwxr-xr-x 1 oracle dba 31882 Dec 27 10:47 osdbagrp0
-rwxr-x--- 1 oracle dba 31484 Aug 24 2013 osh
-rwxr-x--- 1 root dba 8664 May 31 15:50 osysmond
-rwxr-x--- 1 root dba 130932 Aug 16 2014 osysmond.bin
-rwxr-xr-x 1 oracle dba 6819 Dec 27 10:47 owm
-rwxr-x--- 1 oracle dba 4472 Apr 14 2008 patchAgtStPlugin.pm
-rw-r--r-- 1 oracle dba 3659 Dec 27 10:47 platform_common
-rwxr-x--x 1 oracle dba 5453855 Dec 27 10:47 plshprof
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 plshprofO
-rwxr-xr-x 1 oracle dba 2499 May 31 15:50 qosctl
-rwxr-xr-x 1 oracle dba 1717171 Aug 16 2014 racgeut
-rwxr-xr-x 1 oracle dba 1699678 Aug 16 2014 racgevtf
-rwxr-xr-x 1 oracle dba 1945593 Aug 16 2014 racgmain
-rwxr-xr-x 1 oracle dba 24344 Aug 16 2014 racgvip
-rwxr-xr-x 1 oracle dba 1654 May 31 15:50 racgwrap
-rwxr-xr-x 1 oracle dba 1498 Oct 30 2009 racgwrap.sbs
-rwxr-xr-x 1 oracle dba 17958 Dec 27 10:47 rawutl
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 rawutl0
-rwxr-xr-x 1 oracle dba 7047 Dec 27 10:47 rconfig
-rwxr-xr-x 1 oracle dba 3899 May 31 15:50 rdtool
-rwxr-xr-x 1 oracle dba 5770 Nov 21 2010 relink
-rwxr-x--x 1 oracle dba 27799590 Dec 27 10:47 renamedg
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 renamedg0
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rman
-rwxr-x--x 1 oracle dba 17720203 Dec 27 10:47 rmanO
-rwxr-xr-x 1 oracle dba 2523 Jul 17 2007 sAgentUtils.pm
-rwxr-x--x 1 oracle dba 120805 Dec 27 10:47 sbttest
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sbttestO
-rwxr-xr-x 1 oracle dba 4119874 Jul 3 2013 schema
-rwxr-xr-x 1 oracle dba 2840 Dec 27 10:47 schemasync
-rwxr-xr-x 1 oracle dba 19325 Aug 16 2014 sclsspawn
-rwxr-x--- 1 oracle dba 7103 May 31 15:50 scrctl
-rwxr-xr-x 1 oracle dba 8664 May 31 15:50 scriptagent
-rwxr-xr-x 1 oracle dba 12645944 Aug 16 2014 scriptagent.bin
-rwxr-x--x 1 oracle dba 2260801 Dec 27 10:47 setasmgid
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 setasmgid0
-rwxr-xr-x 1 oracle dba 2389 May 31 15:50 setasmgidwrap
-rwxr-x--x 1 oracle dba 12306 Dec 27 10:47 skgxpinfo
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 skgxpinfoO
-rwxr-x--x 1 oracle dba 1492711 Dec 27 10:47 sqlldr
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 sqlldrO
-rwxr-x--x 1 oracle dba 10413 Dec 27 10:47 sqlplus
-rwxr-xr-x 1 oracle dba 4749 Dec 27 10:47 srvconfig
-rwxr-xr-x 1 root dba 9039 May 31 15:50 srvctl
-rwxr-xr-x 1 oracle dba 1360 Dec 27 10:47 statusnc
-rwxr-xr-x 1 oracle dba 3261 Aug 18 2010 symfind
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv
-rwxr-x--x 1 oracle dba 22451 Dec 27 10:47 sysresv0
-rwxr-xr-x 1 oracle dba 6947 Dec 27 10:47 targetdeploy.pl
-rwxr-x--x 1 oracle dba 129985 Dec 27 10:47 tkprof
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tkprofO
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnnfg
-rwxr-x--x 1 oracle dba 974062 Dec 27 10:47 tnslsnr
-rwxr-xr-x 1 oracle dba 0 Aug 24 2013 tnslsnr0
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping
-rwxr-x--x 1 oracle dba 20793 Dec 27 10:47 tnsping0
-rwxr-xr-x 1 oracle dba 2993 Dec 27 10:47 trcasst
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 trcldr
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute
-rwxr-x--x 1 oracle dba 34386 Dec 27 10:47 trcroute0
-rwxr-xr-x 1 oracle dba 2052 Dec 27 10:47 trcsess
-rwxr-x--x 1 oracle dba 23680 Dec 27 10:47 tstshm
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 tstshmO
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvci
-rwxr-x--x 1 oracle dba 191002 Dec 27 10:47 uidrvciO
-rwxr-xr-x 1 oracle dba 3830 Dec 27 10:47 umu
-rwxr-xr-x 1 oracle dba 145976 Jul 10 2013 unzip
-rwxr-xr-x 1 root dba 1276 May 31 15:50 usrvip
-rwxr-xr-x 1 oracle dba 0 Dec 27 11:25 vipca
-rwxr-x--x 1 oracle dba 8928988 Dec 27 10:47 wrap
-rwxr-x--- 1 oracle dba 0 Aug 24 2013 wrapO
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrc
-rwxr-x--x 1 oracle dba 572253 Dec 27 10:47 wrcO
-rwxr-xr-x 1 oracle dba 4283581 Jul 3 2013 xml
-rwx------ 1 oracle dba 31268 Jul 21 2011 xmlwf
-rwxr-xr-x 1 oracle dba 230027 Jul 10 2013 zip
6. 결론 : 잘못 바꾸어도 쫄보 될 필요없다.
또한 rootcrs.pl -init 하면 원래 권한으로 Reset 해주는 것으로 최근 확인.
- 참고 rootadd_rdbms.sh 의 내용 -
[root:/oragrid/product/11.2.0.4/rdbms/install]#cat rootadd_rdbms.sh
#!/bin/sh
ORACLE_HOME=/oragrid/product/11.2.0.4
CHOWN=/bin/chown
CHMOD=/bin/chmod
RM=/bin/rm
AWK=/bin/awk
ECHO=/bin/echo
CP=/bin/cp
#
# check for zero UID
#
RUID=`/usr/bin/id|$AWK -F\( '{print $1}'|$AWK -F= '{print $2}'`
if [ $RUID -ne 0 ];then
$ECHO "You must be logged in as user with UID as zero (e.g. root user) to run root.sh."
$ECHO "Log in as user with UID as zero (e.g. root user) and restart root.sh execution."
exit 1
fi
if [ -f $ORACLE_HOME/bin/oradism ]; then
$CHOWN root $ORACLE_HOME/bin/oradism
$CHMOD 4750 $ORACLE_HOME/bin/oradism
fi
# remove backup copy
if [ -f $ORACLE_HOME/bin/oradism.old ]; then
$RM -f $ORACLE_HOME/bin/oradism.old
fi
# copy extjobo to extjob if it doesn't exist
if [ ! -f $ORACLE_HOME/bin/extjob -a -f $ORACLE_HOME/bin/extjobo ]; then
$CP -p $ORACLE_HOME/bin/extjobo $ORACLE_HOME/bin/extjob
fi
if [ -f $ORACLE_HOME/bin/extjob ]; then
$CHOWN root $ORACLE_HOME/bin/extjob
$CHMOD 4750 $ORACLE_HOME/bin/extjob
fi
if [ -f $ORACLE_HOME/rdbms/admin/externaljob.ora ]; then
$CHOWN root $ORACLE_HOME/rdbms/admin/externaljob.ora
$CHMOD 640 $ORACLE_HOME/rdbms/admin/externaljob.ora
fi
# properly setup job scheduler switch user executable
if [ -f $ORACLE_HOME/bin/jssu ]; then
$CHOWN root $ORACLE_HOME/bin/jssu
$CHMOD 4750 $ORACLE_HOME/bin/jssu
fi
# remove backup copy
if [ -f $ORACLE_HOME/rdbms/admin/externaljob.ora.orig ]; then
$RM -f $ORACLE_HOME/rdbms/admin/externaljob.ora.orig
fi
# tighten permissions on $ORACLE_HOME/scheduler/wallet
$CHMOD 0700 $ORACLE_HOME/scheduler/wallet
# Add a large number to file-max kernel param for memory_target on Linux
OSINFO=`/bin/uname -a`
SYSCTL=/sbin/sysctl
FSMAXFILE=/proc/sys/fs/file-max
FSMVAL=""
SYSCTLCONF=/etc/sysctl.conf
AWK=/bin/awk
SED=/bin/sed
case $OSINFO in
Linux*)
# Read value from /etc/sysctl.conf
if [ -w $SYSCTLCONF ]; then
while read line
do
case ${line} in
fs.file-max*)
# Value exists in /etc/sysctl.conf. Strip space/tabs and store its value.
FSMVAL=`$ECHO ${line} | $SED 's/fs.file-max\s*=\s*//g'`
;;
esac
done < $SYSCTLCONF
fi
# Update the filemax for current usage
# bug 9797468: change value from 6.4M to 6815744 (due to validated configs)
if [ -z $FSMVAL ] || [ $FSMVAL -lt 6815744 ]; then
# Value is less than our 6815744, update it
$SYSCTL -q -w fs.file-max=6815744
if [ -f $FSMAXFILE ]; then
$ECHO 6815744 > $FSMAXFILE
fi
fi
# Update the filemax across machine reboots by persisting to /etc/sysctl.conf
if [ $FSMVAL ]; then
# Value exists, but less than our requirement. So overwrite it.
if [ $FSMVAL -lt 6815744 ]; then
# Persist it to /etc/sysctl.conf using sed
# Take into account tabs/spaces - bug 9462640
if [ -f $SED ]; then
$SED -i.bak -e "s/^fs.file-max\s*=.*/fs.file-max = 6815744/" $SYSCTLCONF
fi
fi
else
# Value does not exist, so append our required value.
FSMVAL="fs.file-max = 6815744"
$ECHO $FSMVAL >> $SYSCTLCONF
fi
;;
esac
- 참고 rootcrs.pl 의 내용 -
[root:/oragrid/product/11.2.0.4/crs/install]#cat rootcrs.pl
#!/usr/bin/perl
#
# $Header: has/install/crsconfig/rootcrs.pl /st_has_11.2.0/51 2013/07/14 23:20:44 xyuan Exp $
#
# rootcrs.pl
#
# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
#
# NAME
# rootcrs.pl - root configuration script for Oracle Clusterware home
#
# DESCRIPTION
# rootcrs.pl - root configuration script for Oracle Clusterware home
#
# NOTES
# This is run once during configuration or patching of Oracle
# clusterware home.
# This script does the following:
# 1) Setup permissions of binaries and DSOs in Oracle Clusterware home
# 2) Setup OLR for storing Oracle local registry data
# 3) Setup GPnP wallet and profile
# 4) Setup and copy files for CLSINIT daemon
# 5) Start CLSINIT daemon
# 6) Copy required CRS resources for CLSINIT to start
#
# NOTE: This is run during Oracle Clusterware home configurations only.
# It should not be used for any other homes such as SI HA home,
# or Oracle RAC homes.
#
# MODIFIED (MM/DD/YY)
# xyuan 07/12/13 - Fix bug 17155536
# xyuan 05/27/13 - Fix bug 16867099
# xyuan 05/24/13 - Fix bug 16854157
# gadiga 05/23/13 - setup TFA
# xyuan 02/21/13 - Fix bug 16367315
# shullur 01/23/13 - Backport
# arpshukl_ci_backport_14168708_11.2.0.3.5gipsu from
# st_has_11.2.0.3.0gipsu
# xyuan 01/18/13 - BACKPORT OF BUG 14535011
# pckamath 06/17/12 - Backport pckamath_bug_13806545 from st_has_11.2.0
# shullur 09/29/11 - For fixing rerun case of root scripts. Bug 12976590.
# xesquive 08/16/11 - Add two function set_bold and reset_bold, refer to
# bug-12765467
# sidshank 07/29/11 - Move help option processing before other tasks
# begin (Bug 12802690)
# xyuan 07/18/11 - Fix bug 12727247
# xyuan 07/14/11 - Fix bug 12698968,12728939
# xyuan 07/12/11 - Fix bug 12585291 & add -keepdg option
# xyuan 07/11/11 - Fix Bug 12701521
# xyuan 06/04/11 - Fix Bug 12630162.
# sidshank 05/31/11 - adding noterm option, to be used internally, only on Windows.
# ksviswan 05/16/11 - Fix Bug 12554154.
# sidshank 05/10/11 - Backport sidshank_bug-12393931 from main
# rdasari 05/10/11 - remove OCR check
# ksviswan 05/08/11 - Remove ORA_CRS_HOME env setting
# sbezawad 05/03/11 - Backport sbezawad_bug-11936601 from main
# ksviswan 05/01/11 - implement forceupgrade
# rdasari 04/29/11 - check for OCR corruption before retrieving any
# config data
# ksviswan 04/13/11 - XbranchMerge ksviswan_opauto_segregate from main
# agraves 04/08/11 - Add oraacfs.pm to this.
# dpham 04/06/11 - Backport dpham_bug-9842464 from main
# rdasari 04/04/11 - add preUpgradeChecks
# ksviswan 03/08/11 - Backport ksviswan_febbugs2 from main
# ksviswan 01/20/11 - Backport ksviswan_janbugs2 from main
# ksviswan 01/18/11 - Backport ksviswan_janbugs1 from main
# dpham 11/23/10 - Fix bug 10327539 & 10325472
# ksviswan 02/23/11 - Fix Bug 11787406,11719836
# dpham 11/16/10 - XbranchMerge dpham_bug-10273727 from st_has_11.2.0
# - XbranchMerge dpham_bug-10273236 from st_has_11.2.0
# dpham 11/09/10 - Fix bug 10273727
# dpham 11/09/10 - Fix bug 10273236
# dpham 09/29/10 - Fix bug 10056987
# dpham 09/11/10 - Fix bug 10099673
# dpham 08/10/10 - Fix bug 10029119
# dpham 08/10/10 - Fix bug 10006758
# ksviswan 08/03/10 - Fix Bug 9954172
# samjo 07/07/10 - Disable CHM/OS in Windows 11.2.0.2.0
# ksviswan 07/30/10 - Fix Bug 9957944
# ksviswan 07/27/10 - Fix Bug 9945578
# dpham 07/16/10 - Backport dpham_bug-9859193 from main
# dpham 06/30/10 - Add set_perms_ocr_vdisk() function (9850696)
# dpham 06/15/10 - Fix bug 9776829
# ksviswan 06/03/10 - Fix Bugs 9732945,9737629,9773975,9723851 and 9785215
# dpham 05/19/10 - XbranchMerge dpham_bug9282344 from st_has_11.2.0.1.0
# khsingh 04/26/10 - add checkpoints
# dpham 05/15/10 - Fix bug 9697577
# dpham 05/03/10 - Fix REMOTENODE on NT
# dpham 04/27/10 - Add UNLOCK (9446443
# dpham 04/02/10 - Fix bug 7565887
# dpham 03/18/10 - Call ModActionScript (bug 9257105)
# sujkumar 02/14/10 - BDB checks only on supported platforms
# ksviswan 01/18/10 - Implemented logic for 11.2 patchset upgrade
# dpham 12/07/09 - Increase wait time to 30 mins for ohasd & crsd
# dpham 11/17/09 - Increase wait time for ohasd to start
# dpham 01/07/09 - Execute 'oifcfg setif -global' when upgrade completes
# - backupOLR() should be unconditional (8573570)
# dpham 12/28/09 - Remove -delete option
# dpham 01/06/09 - Add start/stop "ora.asm" resource (8309620)
# sujkumar 12/03/09 - Create config and db in symlink -> has_work/crf
# dpham 11/18/09 - Remove obsolete options
# dpham 11/24/09 - XbranchMerge dpham_bug-9080632 from st_has_11.2.0.1.0
# sujkumar 11/16/09 - Dirs and files for IPD/OS in has_work
# anutripa 11/10/09 - Create run directories for IPD
# sukumar 11/05/09 - Add hostname to bdbloc to safely create bdb files
# dpham 10/15/09 - Add '-remotenode' option
# ksviswan 10/01/09 - CheckPoint Implementation for fresh Clusterware install
# sujkumar 09/25/09 - Add changes for IPD/OS
# dpham 07/15/09 - XbranchMerge dpham_bug-8416640_2 from st_has_11.2.0.1.0
# dpham 07/13/09 - Add 'no_auto_abbrev' to Getopt() function
# ksviswan 06/26/09 - change default perl path
# dpham 06/17/09 - Add '-deconfig' option
# hchau 05/28/09 - Rewrite Step 9 to clean up the code for stack startup
# dpham 05/25/09 - Call 'clscfg -lastnode' if it's last node to upgrade
# dpham 05/21/09 - Add '-lastnode' option in "clscfg -upgrade"
# hchau 05/12/09 - Start ctssd resource with env var CTSS_REBOOT=TRUE
# when starting the stack
# mimili 05/10/09 - Bug 8496223 and 8488395: remove 'clscfg -upgradeevm', which
# is only used for OCR permission problem in evmd upgrade
# ksviswan 05/07/09 - Implement downgrade
# dpham 05/12/09 - Call getUpgradeConfig, configNode, backupOLR
# dpham 05/05/09 - update_ons_config() function should be called after
# get_OldVipInfo or get_OldVipInfoFromOCRDump
# dpham 05/05/09 - Backup OLR (8484172)
# hchau 04/29/09 - Swap startup sequence to 'ctssd' then 'asm'
# dpham 04/29/09 - Add start_resource(ora.asm) and stop_resource(ora.asm) (8309620).
# - Bypass isInterfaceValid() if it's new node (8438342).
# dpham 04/27/09 - Call s_houseCleaning after successfully upgrade
# ksviswan 04/25/09 - Add Patching support
# dpham 04/22/09 - Call isLastNodeToUpgrade for upgrede
# spavan 03/23/09 - install cvuqdisk rpm as part of root
# dpham 03/17/09 - Check return code from configLastNode and configNewNode
# dpham 03/10/09 - Add ORACLE_BASE
# dpham 03/09/09 - isInterfaceValid() should be called if not UPGRADE
# jleys 03/07/09 - Remove merge lines
# jleys 03/07/09 - Remove merge lines
# agraves 03/06/09 - Add -g option to pass ASMGRP for SYSTEM.ACFS to
# clscfg.
# dpham 02/22/09 - Call isCRSAlreadyConfigured to check if CRS is
# already configured
# jleys 02/06/09 - Remove expansion of VF discovery string
# dpham 02/26/09 - Remove add_acfs_registry
# dpham 02/23/09 - Call isInterfaceValid to check if interface is valid
# dpham 02/22/09 - Call isCRSAlreadyConfigured to check if CRS is already configured
# dpham 02/11/09 - Call add_acfs_registry
# sravindh 02/11/09 - Bugfix 7714358
# dpham 02/04/09 - Add isRAC_appropriate to check for rac_on/rac_off
# dpham 01/27/09 - Add -unlock option
# dpham 01/20/09 - Remove configure_ACFS
# rsreekum 01/16/09 - fix bug 7678799
# dpham 12/29/08 - Fix syntax error on isLastNodeToStart function
# ksviswan 12/26/08 - Fix bug 7561694
# jleys 11/29/08 - Set delete flag in $cfg
# jleys 11/26/08 - Correct case of method
# jleys 11/14/08 - Packagize perl scripts
# dpham 12/11/08 - Remove -firstNode option
# - Configure HASD as "NT AUTHORITY\SYSTEM"
# - Call "crssetup install" to configure remote nodes
# dpham 11/24/08 - Add 'clscfg -upgradeevm'
# dpham 11/13/08 - remove ORA_CRS_HOME param from validate_9iGSD
# dpham 10/27/08 - add 'srvctl config nodeapps' in get_OldVipInfo
# psankara 10/23/08 - Use a new crsctl command to obtain VF Disc. string
# ysharoni 10/20/08 - save results of make_vf_discovery_string in %param
# rdasari 10/15/08 - remove the temporary changes to copy onsctl
# dpham 10/09/08 - Trap error output from usm_root so that it gets written
# to the CRS log.
# dpham 10/08/08 - The rootcrs.log is overwritten if ORACLE_HOME is shared.
# jtellez 10/08/08 - fix asm start w/ storage_option==2
# jleys 09/24/08 - Do not complete if initial config not successful
# ppallapo 09/22/08 - Get OCRID and CLUSTER_GUID for GPnP Profile.
# rdasari 09/12/08 - mv CH/bin/onsctl CH/opmn/bin/onsctli
# dpham 08/12/08 - OCRCONFIGBIN is undefined.
# jleys 07/11/08 - Put this program path into perl search path
# jleys 07/07/08 - Correct typo
# jleys 04/09/08 - Change css_start to CSS_start
# jleys 04/05/08 - Change CSS package name
# jleys 04/01/08 - Consolidate gpnp setup
# jleys 03/29/08 - Make it easier to get debugging output
# jleys 02/29/08 - Break out CSS functionality
# dpham 06/27/08 - pass trace parameters to hasdconfig.pl (bug 6903750)
# dpham 06/17/08 - fix usmca (bug 7159411)
# dpham 06/16/08 - Add new node logic
# averhuls 06/04/08 - Change externally visible USM text to ACFS.
# srisanka 05/13/08 - replace ORA_CRS_HOME with ORACLE_HOME
# averhuls 05/06/08 - Add usmfs.Add usmfs
# samjo 05/02/08 - Use hostname in olr file name
# hkanchar 05/05/08 - Remove CRS_HOME_ENV for upgrade
# samjo 05/02/08 - Use hostname in olr file name
# rxkumar 04/30/08 - remove srvctl add asm
# srisanka 04/30/08 - Bug 7010466: fix typo
# srisanka 04/30/08 - pass ASM_DISCOVERY_STRINGto USMCA only if non-NULL
# dpham 04/28/08 - Add '-delete' for root deconfig
# jleys 04/21/08 - Add function call to determine if this is the last
# node
# priagraw 04/16/08 - add gipcd agent start
# srisanka 04/09/08 - use USMCA path
# samjo 04/03/08 - Pass owner and group during OLR format
# ysharoni 03/31/08 - bug 6895319
# skakarla 03/27/08 - fixing srvctl path
# hkanchar 03/30/08 - Refactor upgrade scripts
# srisanka 03/18/08 - handle stdout/stderr
# samjo 02/25/08 - Add CTSSD start
# jtellez 02/20/08 - trace files
# jtellez 02/18/08 - srvctl clobbers rootcrs.pl output
# srisanka 02/12/08 - do OSD actions
# yizhang 02/18/08 - Fix bug 6822550
# skakarla 01/18/08 - adding upgrade specific changes
# srisanka 01/09/08 - separate generic and OSD code
# jleys 01/22/08 - Tolerate failure to star in exclusive mode
# jachang 01/13/08 - Modify the order of clscfg in script
# jleys 01/07/08 - Remove cssvfupgd
# yizhang 01/08/08 - Add scan listener as oracle owner
# khsingh 01/08/08 - Add asm resource
# yizhang 01/02/08 - Start scan listener after adding scan listener
# ysharoni 12/27/07 - Static CSS_LEASEDURATION and ASM_SPFILE to paramf
# jleys 12/21/07 - Workaround the lack of VF discovery string
# yizhang 12/10/07 - Add scan and scan_listener
# minzhu 12/19/07 - update css mode
# ysharoni 12/14/07 - gpnp cont-d
# jachang 12/07/07 - Add exclusive mode processing
# samjo 12/07/07 - Making OCR and OLR names consistent
# srisanka 11/30/07 - bug 6661111: fix CRS_NODEVIPS parsing
# jachang 11/29/07 - Adding exclusive mode steps
# ysharoni 11/28/07 - Add gpnp
# srisanka 11/19/07 - add use Net::Ping
# srisanka 08/23/07 - Creation
#
################ Documentation ################
# The SYNOPSIS section is printed out as usage when incorrect parameters
# are passed
=head1 NAME
rootcrs.pl - Configure Oracle Clusterware
=head1 SYNOPSIS
rootcrs.pl [-verbose] [-upgrade [-force] | -patch]
[-paramfile <parameter-file>]
[-deconfig [-deinstall] [-keepdg] [-force] [-lastnode]]
[-downgrade -oldcrshome <old crshome path> -version <old crs version> [-force] [-lastnode]]
[-unlock [-crshome <path to crs home>] [-nocrsstop]]
[-init]
Options:
-verbose Run this script in verbose mode
-upgrade Oracle HA is being upgraded from previous version
-patch Oracle HA is being upgraded to a patch version
-paramfile Complete path of file specifying HA parameter values
-lastnode Force the node this script is executing on to be considered
as the last node of deconfiguration or downgrade, and perform
actions associated with deconfiguring or downgrading the
last node
-downgrade Downgrade the clusterware
-version For use with downgrade; special handling is required if
downgrading to 9i. This is the old crs version in the format
A.B.C.D.E (e.g 11.1.0.6.0).
-deconfig Remove Oracle Clusterware to allow it to be uninstalled or reinstalled
-force Force the execution of steps in delete or dwongrade that cannot
be verified to be safe
-deinstall Reset the permissions on CRS home during de-configuration
-keepdg Keep existing diskgroups during de-configuration
-unlock Unlock CRS home
-crshome Complete path of crs home. Use with unlock option
-oldcrshome For use with downgrade. Complete path of the old crs home
-nocrsstop used with unlock option to reset permissions on an inactive grid home
-init Reset the permissions of all files and directories under CRS home
If neither -upgrade nor -patch is supplied, a new install is performed
To see the full manpage for this program, execute:
perldoc rootcrs.pl
=head1 DESCRIPTION
This script performs the operations necessary to install the Oracle
Clusterware stack on a node of a cluster. It must be run once on
each node and it must be run by an authorized user, e.g. root on UNIX
platforms, Administrator on Windows.
Upon successful completion on each node, the Oracle Clusterware will
be executing on that node.
=cut
################ End Documentation ################
use strict;
use English;
use File::Basename;
use File::Spec::Functions;
use Term::ANSIColor;
BEGIN {
# Add the directory of this file to the search path
push @INC, dirname($PROGRAM_NAME);
}
use Net::Ping;
use Getopt::Long qw(:config no_auto_abbrev);
use Pod::Usage;
use crsconfig_lib;
require crsdelete;
use crspatch;
use oracss;
use oraacfs;
my $OLD_CRS_HOME;
# Global variables
our $g_force = 0;
our $g_delete = 0;
our $g_lastnode = 0;
our $g_downgrade = 0;
our $g_unlock = 0;
our $g_version;
our $g_help = 0;
our $g_patch = 0;
our $g_noterm = 0;
our $g_deinstall = 0;
our $g_keepdg = 0;
our $DEBUG;
# pull all parameters defined in crsconfig_params and s_crsconfig_defs (if
# it exists) as variables in Perl
my $paramfile_default = catfile (dirname ($0), "crsconfig_params");
# pull all parameters defined in crsconfig_addparams
my $addparams = catfile (dirname ($0), "crsconfig_addparams");
# pull all definitions in s_crsconfig_defs (if it exists) as variables in Perl
# this file might not exist for all platforms
my $defsfile = catfile (dirname ($0), "s_crsconfig_defs");
my $UPGRADE;
my $firstNode;
our $PARAM_FILE_PATH = $paramfile_default;
my $unlock_crshome;
my $DOWNGRADE;
my $oldcrshome;
my $oldcrsver;
my $REMOTENODE;
my @oldcrs_ver;
my $ckptcrsver;
my $crsrelver;
my $destcrshome;
my $SUCC_REBOOT = 0;
my $INIT = 0;
# Parse command line args
# If an incorrect option is specified, the perl POD at the beginning
# of the file is parsed into a man page
# the return code to give when the incorrect parameters are passed
# noterm option is to be used internally by the installer in Win environment.
my $usage_rc = 1;
GetOptions('verbose!' => \$DEBUG,
'upgrade!' => \$UPGRADE,
'patch!' => \$g_patch,
'paramfile=s' => \$PARAM_FILE_PATH,
'deconfig' => \$g_delete,
'force' => \$g_force,
'deinstall' => \$g_deinstall,
'keepdg' => \$g_keepdg,
'lastnode' => \$g_lastnode,
'downgrade' => \$DOWNGRADE,
'version=s' => \$oldcrsver,
'unlock' => \$g_unlock,
'crshome=s' => \$unlock_crshome,
'destcrshome=s' => \$destcrshome,
'oldcrshome=s'=> \$oldcrshome,
'remotenode' => \$REMOTENODE,
'nocrsstop!' => \$NOCRSSTOP,
'init' => \$INIT,
'help!' => \$g_help,
'noterm!' => \$g_noterm) or pod2usage($usage_rc);
# Check validity of command line args
pod2usage(-msg => "Invalid extra options passed: @ARGV",
-exitval => $usage_rc) if (@ARGV);
if ($g_help) { pod2usage(0); }
#
# MAIN SCRIPT BODY
#
local $SIG{'__DIE__'} = sub { dietrap(@_); };
# Catch Control-C
local $SIG{INT} = sub { dietrap(@_); };
# Catch termination signal (kill)
# Kill signal (kill -9) can be neither trapped nor ignored
local $SIG{TERM} = sub { dietrap(@_); };
if (!$DEBUG) { $DEBUG = $ENV{'ORA_INSTALL_DEBUG'}; }
### Set this host name (lower case and no domain name)
our $HOST = tolower_host();
# Set the following vars appropriately for cluster env
### check if run as super user
our $SUPERUSER = check_SuperUser ();
if (!$SUPERUSER) {
error("Insufficient privileges to execute this script.");
error("root or administrative privileges needed to run the script.");
exit 2;
}
# Read the config files and set up the configuration data for
# subsequent processing
my $cfg =
crsconfig_lib->new(IS_SIHA => FALSE,
paramfile => $PARAM_FILE_PATH,
osdfile => $defsfile,
addfile => $addparams,
crscfg_trace => TRUE,
CRSDelete => $g_delete,
DEBUG => $DEBUG,
HAS_USER => $SUPERUSER,
HOST => $HOST,
UPGRADE => $UPGRADE,
UNLOCK => $g_unlock,
unlock_crshome => $unlock_crshome,
CRSPatch => $g_patch,
DOWNGRADE => $DOWNGRADE,
oldcrshome => $oldcrshome,
oldcrsver => $oldcrsver,
force => $g_force,
deinstall => $g_deinstall,
keepdg => $g_keepdg,
lastnode => $g_lastnode,
REMOTENODE => $REMOTENODE,
destcrshome => $destcrshome
);
if($g_noterm)
{
# redirect stdout/stderr as appropriate for Windows only
s_redirect_souterr ($cfg->crscfg_trace_file . "_OUT");
}
my $ORACLE_HOME = $cfg->params('ORACLE_HOME');
my $ORACLE_BASE = $cfg->params('ORACLE_BASE');
my $ORA_HA_HOME = $ORACLE_HOME;
my $ORA_CRS_HOME = $ORACLE_HOME;
my $asmgrp = $CFG->params('ORA_ASM_GROUP');
$ENV{'ORACLE_HOME'} = $ORACLE_HOME;
$ENV{'ORACLE_BASE'} = $ORACLE_BASE;
# set some stuff we were not able to set until we had read params
my $CLSCFGBIN = catfile ($ORACLE_HOME, "bin", "clscfg");
if ($g_unlock && $destcrshome) {unlockPatchHome($destcrshome);}
elsif ($g_patch && $destcrshome) {CRSPatchhome($destcrshome);}
elsif ($g_delete) { CRSDelete(); }
elsif ($g_unlock) { unlockCRSHome(); }
elsif ($g_patch) { CRSPatch(); }
elsif ($DOWNGRADE)
{
if ((! $oldcrshome) || (! $oldcrsver))
{
print("One or more options required but missing: -oldcrshome -version\n");
pod2usage(0);
}
CRSDelete();
}
elsif ($INIT) { InitEnv(); }
else
{
if (isPrereqIgnored())
{
error("User ignored Prerequisites during installation");
}
# run directory creation, script instantiation, files creation/permissions
# modules
run_env_setup_modules ();
# Setup TFA
setup_tfa ();
rscPreChecks();
#hack to get crs ver from sqlplus. use getcrsrelver once bug
#11077430 is fixed.
$crsrelver = getcrsrelver1();
if (!isCkptexist("ROOTCRS_STACK"))
{
trace("Oracle clusterware configuration has started");
writeCkpt("ROOTCRS_STACK", CKPTSTART);
writeCkptProperty("ROOTCRS_STACK", "VERSION", $crsrelver);
$wipCkptName = "ROOTCRS_STACK";
}
else
{
if (!isCkptPropertyExists("ROOTCRS_STACK", "VERSION"))
{
trace("Removing older checkpoints");
remove_checkpoints();
trace("Oracle clusterware configuration has started");
writeCkpt("ROOTCRS_STACK", CKPTSTART);
writeCkptProperty("ROOTCRS_STACK", "VERSION", $crsrelver);
$wipCkptName = "ROOTCRS_STACK";
}
else {
my $ckptcrsver = getCkptPropertyValue("ROOTCRS_STACK", "VERSION");
if (!isVersionMatch($ckptcrsver, $crsrelver))
{
trace("Removing older checkpoints");
remove_checkpoints();
trace("Oracle clusterware configuration has started");
writeCkpt("ROOTCRS_STACK", CKPTSTART);
writeCkptProperty("ROOTCRS_STACK", "VERSION", $crsrelver);
$wipCkptName = "ROOTCRS_STACK";
}
else
{
$isRerun = TRUE;
}
my $ckptStatus = getCkptStatus("ROOTCRS_STACK");
if ($ckptStatus eq CKPTSTART)
{
## It likely that the node crashed. Hence this ckpt is not labeled FAILED
$isNodeCrashed = TRUE;
}
$wipCkptName = "ROOTCRS_STACK";
}
}
my @nodes_to_del;
if ($UPGRADE)
{
trace("Querying previous clusterware configuration");
get_oldconfig_info();
if (($CFG->force) && (FAILED == preForceUpgradeChecks(\@nodes_to_del)))
{
set_bold();
print "The force upgrade pre-checks failed. Aborting the force upgrade\n";
reset_bold();
exit(1);
}
if (!preUpgradeChecks($crsrelver))
{
set_bold();
print "The pre-upgrade checks failed, aborting the upgrade\n";
reset_bold();
exit 1;
}
}
my $success = TRUE;
# validate filesystem
if (! isFilesystemSupported())
{
writeCkpt("ROOTCRS_STACK", CKPTFAIL);
exit 1;
}
# validate RAC_ON/RAC_OFF
if (! is_dev_env () && ! isRAC_appropriate())
{
writeCkpt("ROOTCRS_STACK", CKPTFAIL);
exit 1;
}
if (! $UPGRADE &&
(! isAddNode($HOST, $cfg->params('NODE_NAME_LIST'))) &&
(! isInterfaceValid()))
{
writeCkpt("ROOTCRS_STACK", CKPTFAIL);
exit 1;
}
my $ckptstatus = getCkptStatus("ROOTCRS_STACK");
trace("Saving the configuration parameter file data");
trace("checkpoint status of ROOTCRS_STACK is $ckptstatus");
if (!isCkptexist("ROOTCRS_PARAM") && ($ckptstatus ne CKPTSUC))
{
writeCkpt("ROOTCRS_PARAM", CKPTSTART);
$wipCkptName = "ROOTCRS_PARAM";
}
if (isCkptexist("ROOTCRS_PARAM") && (! isCkptSuccess("ROOTCRS_PARAM")))
{
trace("inside rootcrs_param");
writeCkptPropertyFile("ROOTCRS_PARAM", $PARAM_FILE_PATH);
writeCkpt("ROOTCRS_PARAM", CKPTSUC);
$wipCkptName = "ROOTCRS_STACK";
}
if (! $UPGRADE) {
if (!isCkptexist("ROOTCRS_OSDSETUP")) {
#This checkpoint is mainly required on windows
trace("Writing a checkpoint for platform specific OSD setup");
writeCkpt("ROOTCRS_OSDSETUP", CKPTSTART);
$wipCkptName = "ROOTCRS_OSDSETUP";
}
if (!isCkptSuccess("ROOTCRS_OSDSETUP")) {
$wipCkptName = "ROOTCRS_OSDSETUP";
# perform platform-specific setup actions
# only for fresh install
if (SUCCESS != s_osd_setup ()) {
error ("Platform-specific setup failed");
writeCkpt("ROOTCRS_OSDSETUP", CKPTFAIL);
exit 1;
}
else {
trace("Platform specific setup actions are done");
writeCkpt("ROOTCRS_OSDSETUP", CKPTSUC);
$wipCkptName = "ROOTCRS_STACK";
}
}
}
# perform platform-specific setup actions
if (!isCkptexist("ROOTCRS_ONETIME"))
{
trace("Writing checkpoint for first node actions");
writeCkpt("ROOTCRS_ONETIME", CKPTSTART);
$wipCkptName = "ROOTCRS_ONETIME";
}
if (!isCkptSuccess("ROOTCRS_ONETIME"))
{
$wipCkptName = "ROOTCRS_ONETIME";
# If $firstNode is set, perform cluster-wide one-time actions and exit
if (SUCCESS != first_node_tasks ()) {
error ("Cluster-wide one-time actions failed");
writeCkpt("ROOTCRS_ONETIME", CKPTFAIL);
exit 1;
}
else {
trace ("Cluster-wide one-time actions... Done!");
writeCkpt("ROOTCRS_ONETIME", CKPTSUC);
$wipCkptName = "ROOTCRS_STACK";
}
}
# on NT, set_perms_ocr_vdisk() function cannot be executed until
# s_osd_setup() and first_node_tasks() functions are finhish
set_perms_ocr_vdisk();
## FIXME: This should not be required
$ENV{'ORA_PCW_AGENTS'} = "true";
## Step3: Check if CRS is already configured
# check_CRSConfig outers
my $crsConfigured = FALSE;
my $gpnp_setup_type = GPNP_SETUP_BAD ;
check_CRSConfig ($ORA_CRS_HOME, $cfg->HOST,
$cfg->params('ORACLE_OWNER'),
$cfg->params('ORA_DBA_GROUP'),
$cfg->params('GPNPGCONFIGDIR'),
$cfg->params('GPNPCONFIGDIR'),
$crsConfigured, $gpnp_setup_type)
or die "Clusterware configuration check failed";
# Verify bdb location. Initially its in CRS HOME. oclumon changes later
my $bdbloc;
$bdbloc = catfile("$ORA_CRS_HOME", "crf", "db", "$HOST");
if (isCRFSupported() && !is_dev_env())
{
# no verification in ade, just create dirs
trace("CHM/OS repository directory $bdbloc checks");
s_crf_check_bdbloc($bdbloc, $cfg->params('NODE_NAME_LIST'));
}
if ($UPGRADE)
{
trace("Querying previous clusterware configuration");
queryClusterConfig();
}
if (!isCkptSuccess("ROOTCRS_STACK"))
{
#set $crscConfigured to false for checkpoint logic
$crsConfigured = FALSE;
}
# In case of upgrade crs stack is always configured. But to upgrade to
# 11.2 we still need to do same things as we do for fresh install.
# TODO: going forward when we upgrade from 11.2 to higher versions
# this step may not be required.
if (!$crsConfigured)
{
## Step5: Check existing configuration, Create and populate OLR and OCR keys
perform_olr_config() or die("OLR configuration failed\n");
if ((!$UPGRADE) || ($UPGRADE && !isVersion112()))
{
# Initialize the SCR settings.
s_init_scr ();
# incase of upgrade voting files would be upgraded from previous
# version
## create GPnP wallet/profile
initialize_local_gpnp($HOST, $gpnp_setup_type);
}
# Create CHM/OS config
my $crfconfig;
my $tmpcrfconfig;
$crfconfig = catfile ("$ORA_CRS_HOME", "crf", "admin", "crf${HOST}.ora");
trace ("Creating CHM/OS config file $crfconfig");
$tmpcrfconfig = crf_config_generate($HOST, "default", $cfg->params('ORACLE_OWNER'), $cfg->params('NODE_NAME_LIST'));
# Delete older existing CHM/OS repository for Upgrade but for new installation delete the newer location.
# If not removed, leads to CHM/OS repository corruption.
if ($UPGRADE)
{
my $old_crshome = $CFG->OLD_CRS_HOME;
my $oldcrfconfig = catfile($old_crshome, 'crf', 'admin',
'crf' . $CFG->HOST . '.ora');
$bdbloc = getCHMAttrib("BDBLOC", $oldcrfconfig);
if ($bdbloc eq "default")
{
$bdbloc = catfile($old_crshome, 'crf', 'db', $CFG->HOST);
}
}
my $new_crs_running = FALSE;
# Check if New Grid Infrastructure is running
if ($isRerun)
{
trace("Trying to check if new CRS stack is partially up");
$new_crs_running = check_NewCrsStack();
}
# Dont delete the bdb only if the new stack is running.
if (!$new_crs_running)
{
trace ("Deleting older CHM/OS repository at $bdbloc");
crf_delete_bdb($bdbloc);
}
copy_file($tmpcrfconfig, $crfconfig);
unlink $tmpcrfconfig;
# delete older CHM/OS installation
crf_do_delete();
if (!$crsConfigured || (($UPGRADE) && (!isVersion112())))
{
## Step8: Setup OHASD service/daemon
trace ("Registering ohasd");
perform_register_service("ohasd") or die "Failed to register Oracle ohasd service";
}
# Start OHASD service/daemon
trace ("Starting ohasd");
perform_start_service("ohasd") or die "Failed to start Oracle ohasd service";
###FIXME: Change once we know types of resources to be created
trace ("Creating CRS resources and dependencies");
my $hasdconfig_superuser = $SUPERUSER;
if ($OSNAME eq 'MSWin32' && is_dev_env ())
{
$hasdconfig_superuser = $cfg->params('ORACLE_OWNER');
}
trace("Configuring HASD");
my $status;
if ($cfg->platform_family eq "windows") {
my $NT_AUTHORITY = '';
if (is_dev_env()) {
$NT_AUTHORITY = $cfg->params('ORACLE_OWNER');
}
$status = perform_configure_hasd('crs', $HOST, $NT_AUTHORITY,
$NT_AUTHORITY,
$cfg->params('ORA_DBA_GROUP'));
}
else {
$status = perform_configure_hasd('crs', $HOST,
$cfg->params('ORACLE_OWNER'),
$hasdconfig_superuser,
$cfg->params('ORA_DBA_GROUP'));
}
if ($status)
{
trace ("Successfully created CRS resources for cluster and ASM");
} else {
error ("Failed to create CRS resources for cluster and ASM");
}
if (!isCkptexist("ROOTCRS_ACFSINST"))
{
trace("Writing checkpoint for USM driver install");
writeCkpt("ROOTCRS_ACFSINST", CKPTSTART);
$wipCkptName = "ROOTCRS_ACFSINST";
}
if (!isCkptSuccess("ROOTCRS_ACFSINST"))
{
$wipCkptName = "ROOTCRS_ACFSINST";
# install USM driver
my $ret = installUSMDriver();
if (FAILED == $ret) {
error ("USM driver install actions failed");
writeCkpt("ROOTCRS_ACFSINST", CKPTFAIL);
exit 1;
}
else {
trace ("USM drivers installation completed");
writeCkpt("ROOTCRS_ACFSINST", CKPTSUC);
$wipCkptName = "ROOTCRS_STACK";
if (WARNING == $ret)
{
trace("Set reboot flag to 1");
$SUCC_REBOOT = 1;
}
}
}
# perform CSS config or upgrade, propagate cluster-wide config if needed
if ($UPGRADE)
{
if (! perform_upgrade_config($gpnp_setup_type))
{
my $trace_file = $CFG->crscfg_trace_file;
error ("Cluster configuration upgrade failed. " .
"collect the $trace_file and contact Oracle Support");
exit 1;
}
}
elsif (! perform_init_config())
{
my $trace_file = $CFG->crscfg_trace_file;
error ("Initial cluster configuration failed. " .
"See $trace_file for details");
exit 1;
}
## Step9: Start Oracle Clusterware stack
perform_start_cluster();
}
if ($UPGRADE) {
# execute clscfg -upgrade
my $status;
if ($CFG->force) {
$status = run_crs_cmd('clscfg', '-upgrade', '-g', $asmgrp, '-lastnode');
} else {
$status = run_crs_cmd('clscfg', '-upgrade', '-g', $asmgrp);
}
if ($status == 0) {
trace ("$CLSCFGBIN -upgrade completed successfully");
} else {
error ("$CLSCFGBIN -upgrade failed");
exit 1;
}
# execute 'oifcfg setif -global'
if (isLastNodeToUpgrade ($HOST, $CFG->params('NODE_NAME_LIST'))) {
$status = run_crs_cmd('oifcfg', 'setif', '-global');
# modify ACTION_SCRIPT
ModActionScript();
}
}
elsif (isAddNode($HOST, $cfg->params('NODE_NAME_LIST')))
{
if (!isCkptexist("ROOTCRS_ADDNODE"))
{
trace("Writing checkpoint for add node actions");
writeCkpt("ROOTCRS_ADDNODE", CKPTSTART);
$wipCkptName = "ROOTCRS_ADDNODE";
}
if (!isCkptSuccess("ROOTCRS_ADDNODE"))
{
$wipCkptName = "ROOTCRS_ADDNODE";
writeCkpt("ROOTCRS_ADDNODE", CKPTSTART);
my $status = run_crs_cmd('clscfg', '-add');
if ($status == 0)
{
writeCkpt("ROOTCRS_ADDNODE", CKPTSUC);
trace ("$CLSCFGBIN -add completed successfully");
} else {
writeCkpt("ROOTCRS_ADDNODE", CKPTFAIL);
error ("$CLSCFGBIN -add failed");
exit 1;
}
}
}
# configure node
$success = perform_configNode();
if ($UPGRADE && (! isVersion112())) {
# set permissions on voting disks
if (! setperm_vdisks()) {
trace ("Failed to set permission on voting disks during upgrade");
}
}
if ($UPGRADE) {
# modify CLUSTER_NAME in crsconfig_params (bug 10062301
modifyClusterName();
}
#Workaround fix for bug 8309620 and 9954172 and 10056987.
#The start of asm resource pulled up acfs resource due to
#startup dependency , but didn't get stopped as part of asm stop.
if (isFirstNodeToStart() && ! $UPGRADE &&
! isAddNode($HOST, $CFG->params('NODE_NAME_LIST')) &&
! $CFG->ASM_STORAGE_USED)
{
start_asm();
stop_asm();
stop_resource("ora.registry.acfs", "-f");
}
backupOLR();
configureCvuRpm();
# This code is getting in 11203, so we only check old version < 11203 here.
if ($UPGRADE && isVersionLT11203($CFG->oldconfig('ORA_CRS_VERSION')))
{
trace("Cleaning up ASM files ...");
s_cleanASMFiles();
}
if ($success) {
set_bold();
print "Configure Oracle Grid Infrastructure for a Cluster ... succeeded\n";
if (($CFG->force) && scalar(@nodes_to_del) > 0)
{
my $nodelist = join(',', @nodes_to_del);
print "The following nodes:\n";
print " $nodelist\n";
print "are not upgraded, and must be deleted from the cluster after the force upgrade\n";
}
if (1 == $SUCC_REBOOT)
{
print "A system reboot is recommended before using ACFS\n";
}
reset_bold();
trace ("Configure Oracle Grid Infrastructure for a Cluster ... succeeded");
writeCkpt("ROOTCRS_STACK", CKPTSUC);
}
else {
set_bold();
print "Configure Oracle Grid Infrastructure for a Cluster ... failed\n";
reset_bold();
trace ("Configure Oracle Grid Infrastructure for a Cluster ... failed");
exit 100;
}
if ($success && ($cfg->platform_family eq "windows")) {
if (!isCkptexist("ROOTCRS_REMOTENODES"))
{
trace("Writing checkpoint for remotenode actions");
writeCkpt("ROOTCRS_REMOTENODES", CKPTSTART);
$wipCkptName = "ROOTCRS_REMOTENODES";
}
if (!isCkptSuccess("ROOTCRS_REMOTENODES"))
{
$wipCkptName = "ROOTCRS_REMOTENODES";
writeCkpt("ROOTCRS_REMOTENODES", CKPTSTART);
# for windows only, configure all remote nodes
$success = configureAllRemoteNodes();
if ($success)
{
writeCkpt("ROOTCRS_REMOTENODES", CKPTSUC);
trace ("Configure Oracle Grid Infrastructure on remote nodes... succeeded");
}
else
{
writeCkpt("ROOTCRS_REMOTENODES", CKPTFAIL);
trace ("Configure Oracle Grid Infrastructure on remote nodes... failed");
exit 100;
}
}
}
}
if($g_noterm)
{
# restore stdout/stderr as appropriate
s_restore_souterr ();
}
0;