Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when creating a snapshot.

Status
Not open for further replies.

MarkWilliamson

Programmer
Apr 1, 2002
34
US
I am trying to create a snapshot, selecting from view MYWIEW. I am receiving error "ORA-00955 name is already used by an existing object."

I do not have duplicate object names and am at wits end on how to get this to run. Any help would be greatly appreciated !!!




CREATE SNAPSHOT SCHEMA.MYSNAP
PCTFREE 2 PCTUSED 60 STORAGE ( INITIAL 256K NEXT 256K MAXEXTENTS UNLIMITED ) NOLOGGING
TABLESPACE "MYTABLESPACE"
BUILD IMMEDIATE
USING INDEX TABLESPACE "MYTABLESPACE"
REFRESH COMPLETE
ON DEMAND
AS
SELECT FIELD1, FIELD2
FROM SCHEMA.MYVIEW
/
 
Mark,

Logged in as the owning schema, try this:
Code:
select object_name, object_type
from user_objects
where object_name = 'MYSNAP';
If it results in "no rows selected", then try your code again, but with this wording:
Code:
CREATE [B]OR REPLACE[/B] SNAPSHOT...
Let us know your findings.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA @ 17:51 (06Oct04) UTC (aka "GMT" and "Zulu"), 10:51 (06Oct04) Mountain Time)

 
Nope. Having the same problem. I even tried renaming the view in which the snapshot uses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top