Forums » Toad Extension for Visual Studio » Toad Extension for Visual Studio

Thread: NOVALIDATE expected when building a model

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: Feb 27, 2012 4:05 PM by: DRohlfing Threads: [ Previous | Next ]
DRohlfing

Posts: 4
Registered: 10/12/11
NOVALIDATE expected when building a model
Posted: Feb 21, 2012 4:01 PM
 
  Click to reply to this thread Reply

I get the following error when attempting to deploy my database project using 1.5.1:

Gen-86(2,65): Error ERR00003: Cannot build a model: Found ')', Expecting: NOVALIDATE

Name: SCHEMA."VW_ViewName"

Type: CREATE VIEW

Text: CONSTRAINT "ViewName_pk" PRIMARY KEY ("ID") DISABLE) AS


This began immediately following the addition of a view with a primary key.  My view script is as follows:

CREATE OR REPLACE VIEW SCHEMA."VW_ViewName"
(
 "ID",
 CONSTRAINT "ViewName_pk" PRIMARY KEY ("ID") DISABLE NOVALIDATE
)
AS
 SELECT "ID" FROM "TableName";




Dwight


Posts: 263
Registered: 8/22/07
Re: NOVALIDATE expected when building a model
Posted: Feb 24, 2012 10:33 AM   in response to: DRohlfing
 
  Click to reply to this thread Reply

DRohlfing,

It looks like our internal call to DBMS_METADATA.GET_DDL is not returning the NOVALIDATE clause. Can you try running the following statement from SQLPlus:

SELECT DBMS_METADATA.GET_DDL('VIEW', '<my_view_name>', '<my_schema_name>') FROM DUAL;

Can you post the results to to forum?

Dwight
DRohlfing

Posts: 4
Registered: 10/12/11
Re: NOVALIDATE expected when building a model
Posted: Feb 27, 2012 8:29 AM   in response to: Dwight
 
  Click to reply to this thread Reply

CREATE OR REPLACE FORCE VIEW "QCEW"."VW_Employer" ("EmployerID", "ContactName", "CreateDate",
  CONSTRAINT "VW_Employer_pk" PRIMARY KEY ("EmployerID") DISABLE) AS
  SELECT
  e."EmployerID", e."ContactName", e."CreateDate"
 FROM "Employer" e


Dwight


Posts: 263
Registered: 8/22/07
Re: NOVALIDATE expected when building a model
Posted: Feb 27, 2012 2:51 PM   in response to: DRohlfing
 
  Click to reply to this thread Reply

Ok,

That definitely shows us that DBMS_METADATA is not returning the NOVALIDATE clause. What version of Oracle is your database instance running?

I want to reproduce this, so I can work up a fix.

Dwight
DRohlfing

Posts: 4
Registered: 10/12/11
Re: NOVALIDATE expected when building a model
Posted: Feb 27, 2012 4:05 PM   in response to: Dwight
 
  Click to reply to this thread Reply

Currently our team is working against Oracle 11g XE.  The version number is 11.2.0.2.0.


Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums