IFILE - tnsnames.Ora

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Daril
Posts: 27
Joined: Fri 07 Oct 2011 09:58

IFILE - tnsnames.Ora

Post by Daril » Tue 17 Jun 2014 13:22

Hello,
does Unidac support IFILE parameter in tnsnames.ORA? I found that ODAC support it, but I'm not sure if Unidac too.

IFILE info:
http://docs.oracle.com/cd/B19306_01/ser ... ams081.htm

Thank you

Daril
Posts: 27
Joined: Fri 07 Oct 2011 09:58

Re: IFILE - tnsnames.Ora

Post by Daril » Tue 17 Jun 2014 13:42

I see it is work fine, only problem is when to IFILE parameter include network path "\\..."

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: IFILE - tnsnames.Ora

Post by AlexP » Wed 18 Jun 2014 08:34

Hello,

UniDAC, as well as ODAC, supports the IFILE parameter in tnsnames.ora (both local and network paths). Please describe the problem you have encountered when specifying the network path.

Daril
Posts: 27
Joined: Fri 07 Oct 2011 09:58

Re: IFILE - tnsnames.Ora

Post by Daril » Wed 18 Jun 2014 11:29

Hello Alex,
I tested this situation. I have one tnsNames.Ora on default location (network\admin). In this file I have
OstOracle10g_12 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.11.40.22)(PORT = 1521))
)(CONNECT_DATA =(SERVICE_NAME = qa))
)

IFILE = \\ostnas\Shared\Daril\Network.Ora
In file Network.Ora I have:
OstOracle10g_Network =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.11.40.22)(PORT = 1521))
)(CONNECT_DATA =(SERVICE_NAME = qa))
)
I created simple project in Delphi 7 and Unidac 5.1.4. Only TUniConnection I Added and button to test connection.
When I set to TUniConnection.Server to OstOracle10g_12 everythink is OK and I'm able connect to database. When I set TUniConnection.Server to OstOracle10g_Network I obtain

ORA-12154: TNS:could not resolve the connect identifier specified.

When I try IFILE parametr with other not network path everythink run ok.

Thank you

Daril
Posts: 27
Joined: Fri 07 Oct 2011 09:58

Re: IFILE - tnsnames.Ora

Post by Daril » Wed 18 Jun 2014 12:28

I find solution
Oracle supports only this path
//ostnas\...
not
\\ostnas\...

view
https://community.oracle.com/message/9692439#9692439

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: IFILE - tnsnames.Ora

Post by AlexP » Thu 19 Jun 2014 06:49

Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.

Post Reply