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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Error in procedure with dba_users

RE: Error in procedure with dba_users

From: אדר יחיאל <adary_at_mehish.co.il>
Date: Thu, 21 Mar 2002 08:53:31 -0800
Message-ID: <F001.0042FED2.20020321085331@fatcity.com>


Tested it.
You do not have permission for dba_users. You need to have role select_catalog_role. On 8.1.6.3.4 on NT.

Yechiel Adar, Mehish Computer Services
adary_at_mehish.co.il

> -----Original Message-----
> From: com.banilejas_at_codetel.net.do [SMTP:com.banilejas_at_codetel.net.do]
> Sent: Thu, March 21, 2002 5:33 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Error in procedure with dba_users
>
> Hi list,
>
> I have this procedure under the system user, and when try to create it
> I get an error
>
> CREATE OR REPLACE PROCEDURE GENERAR_ESTADISTICAS AS
> CURSOR ESQUEMAS IS
> SELECT USERNAME ESQUEMA
> FROM SYS.DBA_USERS
> WHERE
> USERNAME IN ('RAMON', 'SCOTT');
> BEGIN
> FOR E IN ESQUEMAS
> LOOP
> DBMS_UTILITY.ANALYZE_SCHEMA(E.ESQUEMA, 'COMPUTE');
> END LOOP;
> END;
>
> 3/8 PL/SQL: SQL Statement ignored
> 4/16 PLS-00201: identifier 'SYS.DBA_USERS' must be declared
> 11/4 PL/SQL: Statement ignored
> 11/32 PLS-00364: loop index variable 'E' use is invalid
> SQL>
>
> Any help .
>
> TIA
>
> Ramon E. Estevez
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: com.banilejas_at_codetel.net.do
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-8?Q?=E0=E3=F8_=E9=E7=E9=E0=EC?=
  INET: adary_at_mehish.co.il

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 21 2002 - 10:53:31 CST

Original text of this message

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