-
Error
when i am trying to run this, getting err......
SQL> declare
2 qtxt2 varchar2(4000) :='select owern,count(*) from bigtab group by owner';
3 idno varchar2(30) :='id2';
4 begin
5 execute immediate 'truncate table rewrite_table';
6 dbms_mview.explain_rewrite (
7 query => qtxt2,
8 mv => 'GOPU.MV_BIGTAB',
9 statement_id => 'id2');
10 end;
11 /
declare
*
ERROR at line 1:
ORA-00904: : invalid identifier
ORA-06512: at "SYS.DBMS_XRWMV", line 94
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3210
ORA-06512: at line 6
Last edited by gopu_g; 04-03-2008 at 08:47 AM.
-
Can you run it from straight SQL? Maybe you are missing a direct grant on GOPU.MV_BIGTAB.
-
you mis-spelled owner in the query - you put owern, therefore you get invalid identifier as the error says
-
-
GOPU
Can you tell me, how did you resolve your problem, please? i have the same issue
Thanks!!
-
Originally Posted by AndreaG
Can you tell me, how did you resolve your problem, please? i have the same issue
Gopu bumped into a well known "interface issue" (*) that may hit you from time to time no matter Oracle version or platform.
If you bumped into the same issue... fix the typo!
(*) interface in between the chair and the keyboard! ... sorry, couldn't help myself.
Last edited by PAVB; 03-28-2010 at 04:29 PM.
Reason: typo
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
Originally Posted by AndreaG
GOPU
Can you tell me, how did you resolve your problem, please? i have the same issue
Thanks!!
do you have problems reading?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|