Thursday, February 19, 2015

RAC Tips (1)

This is a simple thing but one I like. It slightly reformats the output of crsctl into a readable state.

alias crsstat_jcdm="crsctl stat res -t | sed 's/^      /                          /'| sed 's/TARGET/                    TARGET/'"

All it does is move the detail lines across a bit so they don't overlap with the NAME above.


For example

ora.LISTENER.lnsr
             ONLINE ONLINE ol5-112-rac1
             ONLINE ONLINE ol5-112-rac2

becomes

ora.LISTENER.lsnr
                                 ONLINE ONLINE ol5-112-rac1
                                 ONLINE ONLINE ol5-112-rac2


Its nothing in the great scope of things, but in the heat of the moment, it can make a difference.


Happyjohn






No comments:

Post a Comment