- 17.9K All Categories
- 3.3K Industry Applications
- 3.2K Intelligent Advisor
- 59 Insurance
- 534.1K On-Premises Infrastructure
- 137.6K Analytics Software
- 38.5K Application Development Software
- 5.3K Cloud Platform
- 109.1K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 70.8K Infrastructure Software
- 105.1K Integration
- 41.5K Security Software
Reading Oracle Instance Names from /etc/oratab file
I have oracle RAC setup and wanted to read database instance entries from /etc/oratab file Now I have put in the Instance SID for the databases DBTEST and DBQA.
/etc/oratab from Node 1 which is running 2 oracle instances DBTEST1 and DBQA1 and one ASM instance +ASM1
I need to extract the Oracleinstance Name from these oratab files. I am using the following command which is returning the instance name and database name.
cat /etc/oratab|egrep ':N|:Y'|grep -v \*|cut -f1 -d':'
But i need the output as follows
Please help me which the script or command which will give me the instance name only from the /etc/oratab file.