473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

union of tnsnames.ora

bdj
Hello!
I have at set of tnsnames.ora. I wich to make an union, e.g. a single file
of it.
How can I do that easy?
Greetings
Bjørn
Jul 19 '05 #1
6 4656
cut and paste in notepad should work pretty well

(or yank and put in vi)

are there some issues or concerns you have that you've not described in your
post?

-- mcs

"bdj" <B.********@gmx.net> wrote in message
news:40*********************@dread11.news.tele.dk. ..
| Hello!
| I have at set of tnsnames.ora. I wich to make an union, e.g. a single file
| of it.
| How can I do that easy?
| Greetings
| Bjørn
|
|
Jul 19 '05 #2
> I have at set of tnsnames.ora. I wich to make an union, e.g. a single file
of it.
How can I do that easy?
Greetings
Bjørn


Hello Bjørn
My opinion is that you should avoid editing tnsnames.ora manually.
It is safer to use Oracle Net tools to enter the services.
At least in some versions Oracle can mess it up if you first edit
it manually and then use Oracles tools to change it.

Regards

Folke Larsson
Jul 19 '05 #3
"bdj" <B.********@gmx.net> wrote in message news:<40*********************@dread11.news.tele.dk >...
Hello!
I have at set of tnsnames.ora. I wich to make an union, e.g. a single file
of it.
How can I do that easy?
Greetings
Bjørn


In "init_A.ora" file,
----------------------------
ifile='/aa/../init_B.ora'
blabla...setting...
----------------------------

then "init_A.ora" file will be union of
"init_A.ora" and "init_B.ora".
Jul 19 '05 #4

"Christine" <ka******@hotmail.com> wrote in message
news:69**************************@posting.google.c om...
| "bdj" <B.********@gmx.net> wrote in message
news:<40*********************@dread11.news.tele.dk >...
| > Hello!
| > I have at set of tnsnames.ora. I wich to make an union, e.g. a single
file
| > of it.
| > How can I do that easy?
| > Greetings
| > Bjørn
|
| In "init_A.ora" file,
| ----------------------------
| ifile='/aa/../init_B.ora'
| blabla...setting...
| ----------------------------
|
| then "init_A.ora" file will be union of
| "init_A.ora" and "init_B.ora".

good answer to wrong question -- that's for the parameter file, not the
tnsnames.ora file

;-{ mcs
Jul 19 '05 #5
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

"Mark C. Stock" <mcstockX@Xenquery .com> wrote in message
news:Gs********************@comcast.com...
cut and paste in notepad should work pretty well

(or yank and put in vi)

are there some issues or concerns you have that you've not described in your post?

-- mcs

"bdj" <B.********@gmx.net> wrote in message
news:40*********************@dread11.news.tele.dk. ..
| Hello!
| I have at set of tnsnames.ora. I wich to make an union, e.g. a single file | of it.
| How can I do that easy?
| Greetings
| Bjørn
|
|

Jul 19 '05 #6
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.

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the...
2
by: Miori | last post by:
Dear all, We use TCP/IP for our Oracle networking to the database server but I see 2 formats for specifying the definition of a connection string of a database in tnsnames.ora. format 1:...
6
by: Neil Zanella | last post by:
Hello, I would like to know what the C standards (and in particular the C99 standard) have to say about union initializers with regards to the following code snippet (which compiles fine under...
2
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle 8.1 on clients. I have some client with 2 different...
30
by: Yevgen Muntyan | last post by:
Hey, Why is it legal to do union U {unsigned char u; int a;}; union U u; u.a = 1; u.u; I tried to find it in the standard, but I only found that
5
by: wugon.net | last post by:
question: db2 LUW V8 UNION ALL with table function month() have bad query performance Env: db2 LUW V8 + FP14 Problem : We have history data from 2005/01/01 ~ 2007/05/xx in single big...
7
by: lrg | last post by:
I'm writing an application in ASP.NET using C# for code behind and i'm also using oracle 10g. I thought when i retrieve data from the DB first tnsnames.ora is referred. But my experience is that...
6
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
0
by: wolfee | last post by:
I'm running 10gR2 RAC in Prod, Test and DEV and after doing a clone to the DEV environment I'm getting a wierd ORA-12514 error for only one node. I can tnsping the node and it comes back fine. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.