DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: MV- ORA-01031: insufficient privileges

  1. #1
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    323
    Hi

    When I try to create materialized views I am getting the following error : ORA-01031: insufficient privileges

    Here is the script I am using :

    create materialized view cdr_hourly
    as
    SELECT TO_CHAR(START_TIME,'HH24') hours, COUNT(*) noofrecs
    FROM CDR
    WHERE START_TIME >= SYSDATE-10 AND START_TIME <= SYSDATE+31
    AND SERVICE_TYPE = 2
    AND DIRECTION='O'
    GROUP BY TO_CHAR(START_TIME,'HH24');

    I granted GLOBAL QUERY REWRITE and
    QUERY REWRITE privileges. No DBA role. In order to create MV what should be the minimum requirements. Do I need to set any init.ora parameters? Do I need to grant DBA role?

    Please advice.
    Nagesh

  2. #2
    Join Date
    Apr 2002
    Location
    Shenzhen, China
    Posts
    327
    You need another sys privilege of CREATE MATERIALIZED VIEW.
    Oracle Certified Master - September, 2003, the Second OCM in China
    *** LOOKING for PART TIME JOB***
    Data Warehouse & Business Intelligence Expert
    MCSE, CCNA, SCJP, SCSA from 1998

  3. #3
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    And also check either you are owner of the table or you have select privilege on it?

    Sanjay

  4. #4
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    323
    Thanks. It works with create any materialized view privilege.



    Nagesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width