Script to check tnsnames.ora syntax
Hi guys,
I just inherited a tnsnames.ora file with 119 entries (one for each db).
Anyone have a ksh, awk or other script to check "basic" syntax of the tnsnames.ora file?
Actually I just need to make sure all parenthesis match (it's not loading in Oracle Net Manager) . :p
Thanks,
Mike.
PS: Or maybe a script to just "pretty print" the file so I can visually check the matching parenthesis.
THANK YOU! - script works great!
EXCELLENT - Script is still very useful over 10 years later (Oracle 11g and 12c). THANK YOU!
I took the supplied script and modified it to check the results for a "TNS-" response (which typically only occurs when unsuccessful). This was useful in my case as some tnsnames.ora files had many entries that made the results too tedious to visually scan.