Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to create view due to permission

863397Jul 5 2011 — edited Jul 7 2011
Hi Gurus

I working here as an apps DBA and dont have sys dba privilges on databases.

I have two databases prod and dev with same schema name on both the databases,now i have to create one view on dev which exist on prob.
such as
CREATE OR REPLACE VIEW XXX_DDF
(TABLESPACE_NAME, BYTES)
AS
SELECT tablespace_name
,sum(bytes) BYTES
FROM dba_data_files
GROUP BY tablespace_name
UNION ALL
SELECT tablespace_name
,sum(bytes) BYTES
FROM dba_temp_files
GROUP BY tablespace_name
/

This script successfully executed on prod but on dev its showing Error :-> Insufficient privilges.
When i checked on both schema's privilges on prod and dev so its same

One thing here i can able to select below but not able create view.....

SELECT tablespace_name
,sum(bytes) BYTES
FROM dba_data_files
GROUP BY tablespace_name
UNION ALL
SELECT tablespace_name
,sum(bytes) BYTES
FROM dba_temp_files
GROUP BY tablespace_name
/

Thanks a lot

GRB
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2011
Added on Jul 5 2011
12 comments
1,878 views