Re: ORATCL help needed!



On Jun 1, 9:24 am, mets <tony_mett...@xxxxxxxxxxx> wrote:
Hi,

I have re-invigorated my interest in TCL + extensions after a 5 year
absence. I have rewritten some old HPUX apps to run on Windows 2000,
Tcl8.4 using Oratcl 4.4 / 3.3

Problem1:

I am unable to use Oratcl 4.4 because it reports a nasty application
error (NOT a TCL error) during the command 'oralogon'. Now I assume
this is because I am trying to use it with the OCI 8.0 client
libs ???

Problem 2:

I am able to use Oratcl 3.3 but it reports ORA-01007 "variable not in
select list" whenever I change the sql select string and use the SAME
cursor variable. For example:

# open the channel
set cursor [ oraopen $handle ]
orasql $cursor "select COL1 from TABLE where SOMETHING"
# This executes as expected.

orasql $cursor "select COL1,COL2 from TABLE where SOMETHING"
returns the error ORA-01007

I notice the ONLY way to get multiple select statements to work is by
repeatedly closing the cursor and then opening the cursor. It seems as
if the previous SQL statement is not cleared from the cursor internal
state???

any help?????


Wow, An Oratcl 3.3. help request. Sorry but thats the first one of
those I've gotten in over 5 years.

First of all. There is no way that any Oratcl 4.x will ever work with
OCI 8.0 libs. It is coded with the the OCI layer released with Oracle
8i.

Second.. I remember this, there were several bugs in the OCI 8.0
versions that affected Oratcl.

Third.. Re-using statement handles has been part of Oratcl for many
many years. I do it all the time.

Why OCI 8.0?
Oracle instant client is available for many many platforms, have you
tried any of those?
Is the destination database also 8.0?
Did you compile Oratcl 3.3 for yourself.
Is your Oracle client 8.0 patched with all the patches available from
oracle?
What OS and Tcl version are you using?

-Todd

.



Relevant Pages