| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.oracle -> Re: union of tnsnames.ora
bdjensen wrote...
>
>Hi!
>This would be easy, if the files are small.
>But the files are big - some hundred db's
>and I know that file A is better than file B (both files can describe the
>same instances, but sometime there may be differences!)
>
>Also important:
>The tns-name should only be listet a single time in the resulting file, in
>other
>case, it could be that the wrong would be edited in future.
>Greetings Bjørn
For each tnsnames.ora
Do
vi $file
Join the lines so that one SID per line
Done
Cat all tnsnames.ora | sort | uniq > a_big_tnsnames.ora_sorted
Hope this help. Received on Sun Feb 29 2004 - 19:59:54 CST
![]() |
![]() |