Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting from the X$ views/tables
nickkeeman_at_my-deja.com wrote:
: I would like to use the X$ tables in some of my queries, but can not
: select from them. My DBA says they're only accessable for user SYS. Is
: this true and if so is there no workaround for this?
There is idea
create or replace view X_$BH as select * from X$BH;
create some view
create public synonym X$BH for sys.X_$BH;
create public synonym for it
grant select on X_$BH to banka;
and grant select to your user
and now you can select from x$ views as sys usually do.
Next scripts will help you to du this things. Spool it into file and you will gain SQLs for your job.
I hope it helps. Starous