home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / oracle / 2234 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.1 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!saimiri.primate.wisc.edu!ames!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!atom!ebuhob
  2. From: ebuhob@ebu.ericsson.se (Hans Bergsten 6264)
  3. Newsgroups: comp.databases.oracle
  4. Subject: PL/SQL Tables in Stored Procs
  5. Message-ID: <1992Nov18.014202.7076@exu.ericsson.se>
  6. Date: 18 Nov 92 01:42:02 GMT
  7. Sender: news@exu.ericsson.se
  8. Reply-To: ebuhob@ebu.ericsson.se
  9. Organization: Ericsson Business Communications, Inc.
  10. Lines: 59
  11. Nntp-Posting-Host: atom.ebu.ericsson.se
  12. X-Disclaimer: This article was posted by a user at Ericsson.
  13.               Any opinions expressed are strictly those of the
  14.               user and not necessarily those of Ericsson.
  15.  
  16. I am trying to use all the new great PL/SQL features in ORACLE7 (Developer's 
  17. Release, V7.0.10.3.1) in an applicationon the SunOS 4.1 platform. As long as I 
  18. stick to a limited use of the features (calling a few local functions/procedures 
  19. within one package, using simple data types etc.) it works great. 
  20.  
  21. But I run into problems when I get a little bit more fancy, like calling 
  22. functions/procedures in one package from another package in a few levels, 
  23. using public variables as "global variables" to preserve values throughout a 
  24. session, using PL/SQL tables and records etc. I have experienced some really
  25. strange behaviour, like:
  26.  
  27. -  Running CREATE OR REPLACE PACKAGE BODY on a package with two procedures
  28.    results in "Oracle server exited with status 1". If I change the order
  29.    of the procedures in the package body, everything works fine.
  30.  
  31. -  Using PL/SQL Tables in one package as temporary storage of the result
  32.    from a procedure call, and then accessing the tables trough another
  33.    procedure call later results in "Oracle server exited with status 1"
  34.    in some occasions.
  35.    
  36. -  In a package, I have to public variables declared like:
  37.  
  38.      TYPE IntTabType    IS TABLE OF BINARY_INTEGER INDEX BY BINARY_INTEGER;
  39.      int_tab        IntTabType;
  40.      int_index        BINARY_INTEGER;
  41.      
  42.    If I try to initiate these variables from SQL*Plus, I get the following
  43.    results:
  44.    
  45.      SQL> begin test.intab(1) := 0; end;
  46.        2  /
  47.      begin test.intab(1) := 0; end;
  48.      *
  49.      ERROR at line 1:
  50.      ORA-06501: PL/SQL: internal error 75946, arguments: [], [], [], [], [], [], []
  51.  
  52.      SQL> begin test.i := 0; end;
  53.        2  /
  54.  
  55.      PL/SQL procedure successfully completed.
  56.    
  57.    i.e. it works fine to initiate the BINARY_INTEGER but not the PL/SQL Table.
  58.  
  59. In general, I get a feeling that the PL/SQL package is very flaky. Considering
  60. that this is V7.0.10 (and the rumor has it that V7.0.12 will be the last
  61. "prerelease version") I wonder how stable it will be in the real release.
  62.  
  63. Does anyone else have similar experiences? Have you heard if ORACLE are aware
  64. of problems in the PL/SQL area? I have not seen anything in the README files
  65. about it.
  66.  
  67. Regards,
  68. Hans
  69.  
  70. -----
  71. Hans Bergsten                          Internet : ebuhob@ebu.ericsson.se
  72. Ericsson Business Communications     MEMO     : ERI.EBU.EBUHOB (God forbid.)
  73. 525 N. Muller St.                    Voice    : +1 (714) 491-6264
  74. Anaheim, CA 92803, USA               FAX      : +1 (714) 535-1789
  75.