Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: How to insert a TStringList with the databasename
How to insert a TStringList with the databasename
Posted: 2008/03/19 12:44
 
Hi,

In the NCOCI I used the code below to insert a TStringList with the database name, but as I can make the same thing in the AnyDAC 1.x, of form that I get the same resulted.


 var   StrTStringList; begin     Str:= TStringList.Create;     TOCICustomDatabase.GetObjectsList(OCIDatabase.DatabaseNameStr''okServiceFalse);     Str.Add(OCIDatabase.ServerName);



With my best regards,

Christian Balz
Re:How to insert a TStringList with the databasename
Posted: 2008/03/19 12:50
 
Do you need to get the list of TNS names ?
Re:How to insert a TStringList with the databasename
Posted: 2008/03/19 13:25
 
Yes. I need the list of TNS names.

regards,

Christian Balz
Re:How to insert a TStringList with the databasename
Posted: 2008/03/20 01:47
 

 uses   uADPhysOraclWrapper; ..... var   oLibTOCILib; ..... oLib := TOCILib.Create(''''nil); try   oLib.GetTNSServicesList(Str); finally   oLib.Free; end;

Re:How to insert a TStringList with the databasename
Posted: 2008/03/20 06:03
 
thank you Diman

att,
Christian Balz