Tuesday, November 21, 2017

Display Oracle RAC Information

# Run as grid user

echo "======================================/etc/hosts======================================================"
# Display /etc/hosts
cat /etc/hosts

echo "=====================================Nodes in Cluster================================================="
# List all nodes
olsnodes

echo "=======================================Cluster Name==================================================="
# Display Cluster Name
olsnodes -c

echo "=================================the Public and VIP Node Name========================================="
# Display the Public and VIP Node Name
olsnodes -n -i

echo "====================================the Private IP Details============================================"
# Display the Private IP Details
olsnodes -n -i -l -p

echo "======================================Subnet Info====================================================="
# Display Subnet Info in Oracle Clusterware
oifcfg getif

exit

No comments:

Post a Comment