Skip to main content

Posts

Showing posts from March, 2016

Usefull Find Commands

find . -name '*.trc' -mtime +1 -exec rm -f {} \; find . -name 'aukornbr_evmlog.20*' -mtime +10 -exec rm -f   {} \; find . -name '*.trm' -mtime +1 -exec rm -f {} \; find . -name '*.aud' -mtime +1 -exec rm -f {} \; & ls -l |grep "Oct 27"|awk '{print "rm "$9}'|sh ls -l |grep "Oct 27"|awk '{print "rm "$9}'|sh =============================================================================== for i in G M K; do du -kh | grep [0-9]$i | sort -nr -k 1; done | head -n 11 =============================================================================== find . -name "+ASM3_*" -mtime +01 -exec rm -f {} \; find . -name "avosorbr_evmlog*" -mtime +30 -exec rm -f {} \; find . -name "avoadt3r_evmlog*" -mtime +25 -exec ls -ltr {} \; find . -name "recover_OLAPPRO*" -mtime +90 -exec rm -rf {} \; find . -name "avoadp4r_evmlog.2014*" -mtime +30 -exec rm -f {} \; find . -na...

Hard dependency with ip address Oracle RAC Cluster.

Command error out due to hard dependency with ip address [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource RDBMS_DB -n Node2 CRS-2527: Unable to start 'RDBMS_DB' because it has a 'hard' dependency on 'sDB' CRS-2525: All instances of the resource 'sDB' are already running; relocate is not allowed because the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource sDB  -n Node2 CRS-2529: Unable to act on 'DB' because that would require stopping or relocating 'LISTENER_DB', but the force option was not specified CRS-4000: Command Relocate failed, or completed with errors. [-Node1]/app/grid/oracle/product/11.2.0/grid/bin>./crsctl relocate resource LISTENER_DB  -n Node2 CRS-2527: Unable to start 'LISTENER_DB' because it has a 'hard' dependency on 'sD...