Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Problem with DBMS_RANDOM package.Random numbers ?

Re: Problem with DBMS_RANDOM package.Random numbers ?

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Wed, 26 Jan 2000 13:15:12 +0100
Message-ID: <948889029.27634.0.pluto.d4ee154e@news.demon.nl>


Either you don't have execute privilege for the dbms_random package or the public synonym dbms_random is missing.

Hth,

--
Sybrand Bakker, Oracle DBA
George D. Benetos <gbene_at_intrasoft.gr> wrote in message news:86minm$7dn$1_at_foo.grnet.gr...
> Hello ,
> This is the problem :
> I;m trying to use the package DBMS_RANDOM to produce random number , but
> there is a mistake.
> The SQL Block is :
> ---------------------------------------------------------------------
> declare
>
> k number;
> i number;
>
> j BINARY_INTEGER;
>
> begin
>
> j:=10000;
> DBMS_RANDOM.INITIALIZE(j);
> DBMS_RANDOM.SEED(10000);
> k:=DBMS_RANDOM.RANDOM;
> DBMS_OUTPUT.PUT_LINE(k);
> DBMS_RANDOM.TERMINATE;
>
> end;
> ------------------------------------------------------------------------
>
> and the message is :
> --------------------------------------------------------------------------
--
> -------------------------
> ORA-06550: line 11, column 1:
> PLS-00201: identifier 'DBMS_RANDOM.INITIALIZE' must be declared
> --------------------------------------------------------------------------
--
> -------------------------
>
> Any ideas ?
>
> Furthermore , is there another way to produce random numbers in Oracle ?
>
> Thanks in advance .....
>
> --------------------------------------------------------------------------
--
> -----------
> George D. Benetos
> Electrical & Computer Engineer , NTUA
>
> --------------------------------------------------------------------------
--
> ---------
> -
>
>
Received on Wed Jan 26 2000 - 06:15:12 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US