Reading data from multiple Oracle databases via ksh script
Databasename:OracleHome:Y
or
Databasename:OracleHome:N
I need to loop through the oratab file and retrieve only those lines that have Y at the end. Then I need to parse each line to retrieve and set ORACLE_SID, ORACLE_HOME and ORACLE_BASE
I know my sql statement retrieves correct data and my code parses correct ORACLE_SID, ORACLE_HOME and ORACLE_BASE. I tried printing them out and everything looked right. The only issue i have is if I look in the OUTPUT file created by my script, I see