TNSNames.ora alias extraction problem GetOraServerList
Posted: Thu 07 Jul 2005 08:00
Hello
With ODAC 5.10.2.8, Delphi 7, Oracle 10g there is a small problem when ODAC extracts the alias names from the TNSNames.ora file va the GetOraServerList procedure.
An alias such as :
xxx-aaa-10g.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sss-bbb-ccc)(PORT = 0000))
)
(CONNECT_DATA =
(SERVICE_NAME = xxx)
)
)
becomes xxx-aaa-g.world. If we remove the - before the 10g ie: xxx-aaa10g.world or use xxx-aaa_10g.world then the returned value is correct.
In ODacGui.inc GetOraServerList there is a test on the '-' ,
if (Bracket = 0) and ((Code = lcIdent) or (St = '-')) then
but I'm not sure what the significance is, nor what is going on...
Is there a way to fix this my modifiying the source code ?
Best Regards
Paul
With ODAC 5.10.2.8, Delphi 7, Oracle 10g there is a small problem when ODAC extracts the alias names from the TNSNames.ora file va the GetOraServerList procedure.
An alias such as :
xxx-aaa-10g.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sss-bbb-ccc)(PORT = 0000))
)
(CONNECT_DATA =
(SERVICE_NAME = xxx)
)
)
becomes xxx-aaa-g.world. If we remove the - before the 10g ie: xxx-aaa10g.world or use xxx-aaa_10g.world then the returned value is correct.
In ODacGui.inc GetOraServerList there is a test on the '-' ,
if (Bracket = 0) and ((Code = lcIdent) or (St = '-')) then
but I'm not sure what the significance is, nor what is going on...
Is there a way to fix this my modifiying the source code ?
Best Regards
Paul