home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1386 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!udel!gvls1!tredysvr!cellar!kml
  2. From: kml@cellar.org (John Galt)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Declaring sequence number qualifiers in Pro*c
  5. Message-ID: <cs64PB2w164w@cellar.org>
  6. Date: 26 Aug 92 12:27:23 GMT
  7. References: <4264@wet.UUCP>
  8. Sender: bbs@cellar.org (The Cellar BBS)
  9. Organization: The Cellar BBS and public access system
  10. Lines: 25
  11.  
  12. mcs@wet.UUCP (Gil Nardo) writes:
  13.  
  14. > suthemb1@jhuapl.edu (Marvin Suther) writes:
  15. > > 
  16. > >  I am writing a Pro*C application and am trying to access an already existi
  17. > > sequence number. However, no matter how I declare the sequence number id, I
  18. > > receive an error message  that the sequence id  does not exist. All 
  19. > > documentation only references the use and not the declaration. Anyone know 
  20. > > how this is declared?
  21. > > 
  22. >     Perhaps the problem is with priveleges.  The problem may be that
  23. > your app/user does not have access to that particular sequence number.
  24. > If so, then you need to grant priveleges via sqlplus, e.g.,
  25.  
  26. The problem may also be caused by trying to reference SEQ.CURRVAL before
  27. referencing SEQ.NEXTVAL.  In some versions of Oracle, you have to first
  28. select Nextval before asking for Currval, otherwise it gives a cryptic
  29. error.  No, I'm not making this up.
  30.  
  31.  
  32.  
  33.                Personally, I skip the posts and just read the sigs.
  34.  
  35.   kml%cellar@tredysvr.tredydev.unisys.com - My other account is a Mercedes.
  36.