Hi, I am using UniDac 7.3.10 / Delphi XE10 Seattle and trying to user direct mode to an oracle 10g RAC database. In my tnsnames.ora file this entry is used for oci access:
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.95)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.96)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wawioltp_prim)
)
What is the correct way to connect to the RAC server using direct mode?
When setting the server property to 10.1.50.95,10.1.50.96:1521:wawi1 (the sid) I sometimes (?) can connect to the database but more often I get an error "wrong username/password", although I am using the correct username/password
Many thanks in advance
Moehre
Login Error in Direct Mode to RAC Server
Re: Login Error in Direct Mode to RAC Server
To enable Oracle RAC, such connection string, as follows can be used in the Direct Mode :
You can also use TNS alias description when working in the Direct Mode. For this, assign a necessary value to the Server property :
Code: Select all
OraSession.ConnectString :='Direct=True;Server=10.1.50.95:1521:wawioltp_prim,10.1.50.96:1521:wawioltp_prim;User ID=UserName;Password=UserPassword';
Code: Select all
OraSession.Server := '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.95)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.50.96)(PORT = 1521)))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = wawioltp_prim))';
Re: Login Error in Direct Mode to RAC Server
Thank u very much for your assistance!
Using the TNSNAMES.ORA entry in SERVER property did the trick ;)
Greetings
Detlev
Using the TNSNAMES.ORA entry in SERVER property did the trick ;)
Greetings
Detlev
Re: Login Error in Direct Mode to RAC Server
Please don't hesitate to contact us with questions concerning our product usage.