@(description=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=211.67.48.11)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=211.67.48.12)(PORT=1521)))(FAILOVER=yes)(LOAD_BALANCE=yes)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = YWKDB)))"
above is the oracle connect str, I want to use grep or sed or awk to get all IP and PORT info, like 211.67.48.11:1521,211.67.48.12:1521
and sidname:YWKDB
the str is in TOMCAT_HOME/conf/context.xml, I need to get the IP info.