My mistake, this problem has been reported and it's related to Lazarus 1.0.8.
Oracle 12g Express
NAME VALUE$
------------------------------ ----------
NLS_CHARACTERSET AL32UTF8
NLS_NCHAR_CHARACTERSET AL16UTF16
I am able to set SQLQuery.Active := true in the Object Inspector in Lazarus 1.0.6 / FPC 2.6.0.
This doesn't work in Lazarus 1.0.8 and up with FPC 2.6.2.
Ah, that looks like bug 24723: OracleConnection: ORA-01062: unable to allocate memory for define buffer
As I cannot reproduce that bug, it would help a lot if you could try on FPC trunk+Lazarus (say Lazarus trunk) and see if the bug is still present there. If you do so, please report your findings in the bug tracker...
I'd also be happy to try and respond on the forum though starting a different thread may be appropriate
@BigChimp
Hi, sorry to post here again, I just wanted to let you know that I ve tried on Lazarus 1.1, FPC 2.7.1, rev. 42538 and it's working okay
I'll post detailed report on bug tracker soon.
@flamer0n
I've done some tests. I ve tried to connect to two Oracle servers.
The first one is Oracle 10g XE 10.2.0.1.0 and I connected and run queries without problems.
The second is Oracle Database 11g 11.2.0.3.0 and when I enter credentials I get this message:
Invalid ConnectionString: SQL Error: OCI ERROR ORA 28547: connection to server failed, probable Oracle Net admin error.The solution was to copy file oraociei11.dll from bin folder of Oracle client 11 to system path or application base dir.
Now I can connect with same parameters, although I found problem when I tried to run query on several of the tables. I got this message:
SQL Error: OCI_ERROR: ORA-01406: fetched column value was truncated.When I execute same script with other DB management systems, result is okay.
Dragan