- 17.9K All Categories
- 3.3K Industry Applications
- 3.3K Intelligent Advisor
- 60 Insurance
- 534.8K On-Premises Infrastructure
- 137.8K Analytics Software
- 38.6K Application Development Software
- 5.4K Cloud Platform
- 109.2K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 70.9K 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.