Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting from the X$ views/tables

Re: Selecting from the X$ views/tables

From: Roman Starek <starek_at_pluto.spsselib.hiedu.cz>
Date: 2 Oct 2000 09:14:44 GMT
Message-ID: <8r9jm4$de3$1@crax.cesnet.cz>

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

Received on Mon Oct 02 2000 - 04:14:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US