View the following script:
if [ -r /etc/oratab ]
then
ORATAB=/etc/oratab
else
if [ -r /var/opt/oracle/oratab ]
then
ORATAB=/var/opt/oracle/oratab
else
echo “Can’t find any oratab file”
exit 1
fi
fi
grep -v [#*] $ORATAB | cut -d “:” -f1
Which statement is true about the execution and output of the script?
A.
It will execute only in the /etc/oratab directory.
B.
It will show all the Oracle homes listed in the oratab file on the local machine.
C.
It will show all Oracle database SIDs listed in the oratab file on the local machine.
D.
The script output will depend on the command-line arguments passed while executing the script.