Updating the TNSNames.ora file

Updating the TNSNames.ora file

Post by Matt Janofsk » Wed, 30 Jul 1997 04:00:00



How does one update the TNSNames.ora file programmatically?  I know there
is already a TNSNames file in use on the PC.  I'd like to add mine to it
during the installation and setup.  Is there a DDE command or other tool
for doing this or do I have to actually open the file and write directly to
it?

Matt

 
 
 

Updating the TNSNames.ora file

Post by Roy Klasse » Fri, 01 Aug 1997 04:00:00


The Oracle Network Manger tool is the best for creating all SQL*Net files
(LISTENER.ORA, SQLNET.ORA and TNSNAMES.ORA).  

I would trust this tool more than editing the TNSNAMES.ORA file manually,
because I think there are some hidden tabs and spaces in these files.  If
you don't have them, it does not work.



Quote:> How does one update the TNSNames.ora file programmatically?  I know there
> is already a TNSNames file in use on the PC.  I'd like to add mine to it
> during the installation and setup.  Is there a DDE command or other tool
> for doing this or do I have to actually open the file and write directly
to
> it?

> Matt


 
 
 

Updating the TNSNames.ora file

Post by Matt Janofsk » Sat, 02 Aug 1997 04:00:00


But does it expose an API so I can do it from a VB program or Setup
routine?



> The Oracle Network Manger tool is the best for creating all SQL*Net files
> (LISTENER.ORA, SQLNET.ORA and TNSNAMES.ORA).  

> I would trust this tool more than editing the TNSNAMES.ORA file manually,
> because I think there are some hidden tabs and spaces in these files.  If
> you don't have them, it does not work.



> > How does one update the TNSNames.ora file programmatically?  I know
there
> > is already a TNSNames file in use on the PC.  I'd like to add mine to
it
> > during the installation and setup.  Is there a DDE command or other
tool
> > for doing this or do I have to actually open the file and write
directly
> to
> > it?

> > Matt

 
 
 

Updating the TNSNames.ora file

Post by Jian M » Thu, 07 Aug 1997 04:00:00


Quote:> > I would trust this tool more than editing the TNSNAMES.ORA file
manually,
> > because I think there are some hidden tabs and spaces in these files.
If
> > you don't have them, it does not work.

I'm trying to create these .ora files for my Unix environment. Where can I
find this Network Manager in Unix? Or I can use Network Manager for Windows
to create a set of files for my Unix box?

Thanks

 
 
 

Updating the TNSNames.ora file

Post by terryg » Thu, 07 Aug 1997 04:00:00



> > > I would trust this tool more than editing the TNSNAMES.ORA file
> manually,
> > > because I think there are some hidden tabs and spaces in these files.
> If
> > > you don't have them, it does not work.

> I'm trying to create these .ora files for my Unix environment. Where can I
> find this Network Manager in Unix? Or I can use Network Manager for Windows
> to create a set of files for my Unix box?

> Thanks

Yes you can use your windows version.  The tnsnames.ora and
sqlnet.ora files are portable.
Cheers,
TRG