Database Administration (MOSC)

MOSC Banner

Reading data from multiple Oracle databases via ksh script

edited Jun 19, 2013 10:31AM in Database Administration (MOSC) 17 commentsAnswered ✓
my oratab file contains entries in the format:

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center