ORATCL help needed!



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?????

.



Relevant Pages

  • Re: ORATCL help needed!
    ... I have re-invigorated my interest in TCL + extensions after a 5 year ... set cursor ... orasql $cursor "select COL1,COL2 from TABLE where SOMETHING" ... if the previous SQL statement is not cleared from the cursor internal ...
    (comp.lang.tcl)
  • Re: ORATCL help needed!
    ... I have re-invigorated my interest in TCL + extensions after a 5 year ... I am unable to use Oratcl 4.4 because it reports a nasty application ... set cursor ... OCI 8.0 libs. ...
    (comp.lang.tcl)
  • Re: reset SQL to reprocess a subfile in an inquiry program(SQLRPGLE)
    ... cursor can be associated with the statement. ... parameter marker values can be supplied with the USING option of OPEN. ... In this way a PREPARE statement is only needed when the string that ... contains the SQL statement gets changed. ...
    (comp.sys.ibm.as400.misc)
  • Re: Problem with MySQL cursor
    ... I have a function that executes a SQL statement with MySQLdb: ... cursor.execute(sql, args) ... just the string interpolation in any playes and the cursor function escapes ...
    (comp.lang.python)
  • Re: 0x800a0cb3 when Update record
    ... so that lock type is probably not needed at all. ... UPDATE sql statement to perform this update rather than a recordset. ... I'm going to need to be able to update a record using server cursor I would ... Please correct me so I may improve my English! ...
    (microsoft.public.data.ado)