views:

39

answers:

1

Hi, I want to select a view from my sys user, but with other connection. I need to select view DBA_USERS. Is there any way of doing so? I am new in Oracle, so maybe it is silly question, but still, I have no idea how to do it.

+3  A: 

Have you tried select * from SYS.DBA_USERS; ? (it has been a long time since I used Oracle)
(The user you are actually connecting from may not have the privileges to read the table.)
Also you could try select * from ALL_USERS;

hamishmcn
Often you also need a grant.
TTT
I tried this, but still not working
Adomas
And how to get that grant?
Adomas
grant select on dba_users to ...
TTT
Can't you use all_users instead of dba_users?
TTT
To grant access (from memory) you would need to log in as SYS and type 'GRANT SELECT ON DBA_USERS TO yourotherloginname;
hamishmcn
thanks, TTT, your the best. it helped
Adomas
thanks hamishmcn too :) solved it
Adomas