PL/SQL (MOSC)

MOSC Banner

Error in replacing Materialized View

edited Oct 27, 2009 3:27AM in PL/SQL (MOSC) 3 commentsAnswered
Hi!

I have got a materialized view which I want to change its definition. The problem is that some objects refer to the materializaed view and the view cannot be dropped easily.

I tried the following command in order to replace the view:

CREATE or replace MATERIALIZED VIEW schema.table ("field")

ORGANIZATION HEAP

PCTFREE 10

PCTUSED 40

INITRANS 1

MAXTRANS 255

STORAGE(INITIAL 64K

        BUFFER_POOL DEFAULT)

TABLESPACE ARSYSTEM

LOGGING

NOPARALLEL

NOCACHE

BUILD IMMEDIATE

USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 64K BUFFER_POOL DEFAULT) TABLESPACE ARSYSTEM

REFRESH FORCE

ON DEMAND

AS select "field" from schema.table

/

However, it states the following error: 

Error: ora-00922

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center