home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2132 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.7 KB

  1. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!orcenl!nl.oracle.com!nroworth
  2. From: nroworth@nl.oracle.com (Nick Roworth)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Oracle 7.0.9.3, XA, and Encina
  5. Message-ID: <3198@nlsun1.oracle.nl>
  6. Date: 6 Nov 92 09:52:05 GMT
  7. References: <19921104.071527.486@almaden.ibm.com> <3190@nlsun1.oracle.nl>
  8. Sender: news@nl.oracle.com
  9. Organization: Oracle Europe
  10. Lines: 33
  11. Nntp-Posting-Host: nlsu23
  12.  
  13. In article <3190@nlsun1.oracle.nl>, kverruyt@nl.oracle.com (Kees Verruyt) writes:
  14. |> Alan Beal writes:
  15. |> > Has anyone been successful using Oracle 7.0.9.3 with Transarc Encina
  16. |> > 1.0.1a using the XA interface?  Using embedded SQL, we get data
  17. |> > retrieved on the first Encina transaction and then get invalid
  18. |> > cursor after that (sqlcode = 1001).  Oracle Support will not help
  19. |> > because it is not a production product.  Any ideas?
  20. |> >
  21. |> > Alan Beal         alanb@owgvm0.vnet.ibm.com
  22. |>  
  23. |> Alan, 
  24. |> 
  25. |> I struggled with this myself -- just compile your Pro*C program with
  26. |> 
  27. |> EXEC ORACLE OPTION (RELEASE_CURSOR=YES);
  28. |> 
  29. |> Otherwise the Pro*C cursor cache gets in the way: Even if you CLOSE a cursor,
  30. |> Pro*C tries to keep it open.
  31. |> 
  32. |> It should work fine after that.
  33. |> 
  34. |> Note: Since this is ORACLE7, closing a cursor in the front-end isn't so bad since
  35. |>       the parsed SQL is kept around in the ORACLE7 server SGA.
  36.  
  37. An easier way to do this is to set the flag when using proc to compile the program
  38. Just set release_cursor=yes in the makefile for the proc options.
  39.  
  40.  
  41. -- 
  42. Nick Roworth, ORACLE Europe             "Bugs Mr. Rico! Zillions of 'em!"
  43. Rijnzathe 6, NL-3454 PV De Meern        Starship Troopers - Robert A. Heinlein
  44. Phone: +31-3406-94211                     
  45. nroworth@nl.oracle.com
  46.