Hi all,
is there a solution to connect form TOraSession to Real Application cluster?
I am using version 6.25.1.13 for Delphi7
connect to RAC via TOraSession
Hi, I can't connect...Plash wrote:You should make an alias for RAC in the tnsnames.ora file and assign the alias name to the Server property of TOraSession.
in tnsnames.ora I have this record:
XXX_SERVICE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX1-vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX2-vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XXX_service)
)
)
In delphi -> TOraSession:
Direct mode is ON
Prefilled right username and password,
server: XXX1-vip:1521:XXX_SERVICE
login prompt: False
connect mode: cmNormal
but I can't connect...
where is the problem?
OK but how to connect to RAC which is in network with TOraSession?Plash wrote:The Direct mode does not support RAC. In the Direct mode you can connect only to one server in RAC (if you specify the host, port and service name for that server). The tnsnames.ora file is not used in the Direct mode.
You should connect in OCI mode to use RAC.
I solved that problem:tomos81 wrote:OK but how to connect to RAC which is in network with TOraSession?Plash wrote:The Direct mode does not support RAC. In the Direct mode you can connect only to one server in RAC (if you specify the host, port and service name for that server). The tnsnames.ora file is not used in the Direct mode.
You should connect in OCI mode to use RAC.
I downloaded Oracle instant client, set up enviroment variables for TNS_ADMIN (path to oci.dll from Oracle instant client) help is on http://www.oracle.com/technology/tech/o ... ic-faq.htm
in TOraSession:
Direct is false
connection string is: username/password@alias
I have copied tnsnames.ora with my alias (alias from connection string) into oracle instant client directory.
it works fine, fast and stable...