Page 1 of 1

Proxy user in Direct mode

Posted: Wed 22 Oct 2014 11:36
by ahsan.khan
Hi,
I am trying to use the following code to connect to Oracle DB in Direct Mode but in second session Connect I cannot. OCI_INVALID_HANDLE exception. Please help

Thank you,

Orasession1 := TOraSession.create(self);
Orasession1.Options.Direct := true;
Orasession1.Username := 'ORA_PROXY';
Orasession1.Password := 'P@55w0rd';
Orasession1.Server := 'lnx-dbdev:1522:sid=oradb';
Orasession1.Connect;

OraSession2 := TOraSession.create(self);
OraSession2.Server := OraSession1.Server;
OraSession2.ProxySession := OraSession1;
OraSession2.UserName := 'ORA_ADMINISTRATOR';
OraSession2.Connect;

Re: Proxy user in Direct mode

Posted: Thu 23 Oct 2014 05:04
by AlexP
Hello,

The ProxySession feature not supported in Direct mode.

Re: Proxy user in Direct mode

Posted: Thu 23 Oct 2014 09:22
by ahsan.khan
Okay then how do I login as proxy user in direct mode?
i.e.
ORA_PROXY[ORA_ADMINISTRATOR]

Re: Proxy user in Direct mode

Posted: Fri 24 Oct 2014 05:47
by AlexP
Such functionality (login as proxy user) is not supported in Direct mode.