473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I needhelp

I not sure if i posted to the rite group, but hope somebody can help.

as i know, system is the superpower user in oracle database. He can
views everything, including role created by others DBA.

My problem is when i connect as oracle, i unable to view roles created
by dba_01. unless i conncet as dba_01.

Can somebody tell me , what's wrong?
thanq!!
Jul 19 '05 #1
4 2928
tracy wrote:
I not sure if i posted to the rite group, but hope somebody can help.

as i know, system is the superpower user in oracle database. He can
views everything, including role created by others DBA.

My problem is when i connect as oracle, i unable to view roles created
by dba_01. unless i conncet as dba_01.

Can somebody tell me , what's wrong?
thanq!!

SYS is the Supreme Being....

Try prefixing your queries for dba_01's objects with that username:
eg. select * from dba_01.table_name;

(or grant dba privs etc to oracle user --> generally not a good idea)

etc etc
Jul 19 '05 #2

"Bricklen" <Xb*******@yahoo.comX> wrote in message
news:XQGSb.342618$X%5.28732@pd7tw2no...
| tracy wrote:
|
| > I not sure if i posted to the rite group, but hope somebody can help.
| >
| > as i know, system is the superpower user in oracle database. He can
| > views everything, including role created by others DBA.
| >
| > My problem is when i connect as oracle, i unable to view roles created
| > by dba_01. unless i conncet as dba_01.
| >
| > Can somebody tell me , what's wrong?
| >
| >
| > thanq!!
| SYS is the Supreme Being....
|
| Try prefixing your queries for dba_01's objects with that username:
| eg. select * from dba_01.table_name;
|
| (or grant dba privs etc to oracle user --> generally not a good idea)
|
| etc etc

unless you are connecting as a user that has SELECT privilege on DBA_ROLES
(typically via a granted role, like the legacy DBA role) you will not be
able to access DBA-restricted data, like the list of roles in the DBA_ROLES
table

could you give more detail as to what statements and accounts you are using
to create and then attempt to view the roles?

-- mcs
Jul 19 '05 #3
hi, mcs,

I have dba_1 created a role called TESTING. From the SQL, if a connect
as dba_1, i can see the role.

SQL> CONN dba_1/dba_1
Connected.
SQL> select distinct role from role_tab_privs;

ROLE
------------------------------
TESTING
ITEM_ROLE

And dba_2 has created ITEM_ROLE
SQL> conn dba_2/dba_2
Connected.
SQL> select distinct role from role_tab_privs;

ROLE
------------------------------
ITEM_ROLE

But if, i conncet as dba, I can't see the role TESTING as below:

SQL> conn system/manager
Connected.
SQL> select distinct role from role_tab_privs;

ROLE
------------------------------
POSTGRAD_ROLE
TUTORMNGT_ROLE
p/s: these two roles created using sysem_id.
I curios, why when i log in using system, i can't see ITEM_ROLE and
TESTING.
and why dba_1 can see role created by dba_2(Item_role)but dba_2 can't
see role created by dba_1 (TESTING role)

DBA_1 AND DBA_2 were granted DBA priviledge.
Thanz.
Jul 19 '05 #4

"tracy" <tr********@yahoo.com.hk> wrote in message
news:5c**************************@posting.google.c om...
| hi, mcs,
|
| I have dba_1 created a role called TESTING. From the SQL, if a connect
| as dba_1, i can see the role.
|
| SQL> CONN dba_1/dba_1
| Connected.
| SQL> select distinct role from role_tab_privs;
|
| ROLE
| ------------------------------
| TESTING
| ITEM_ROLE
|
| And dba_2 has created ITEM_ROLE
| SQL> conn dba_2/dba_2
| Connected.
| SQL> select distinct role from role_tab_privs;
|
| ROLE
| ------------------------------
| ITEM_ROLE
|
| But if, i conncet as dba, I can't see the role TESTING as below:
|
| SQL> conn system/manager
| Connected.
| SQL> select distinct role from role_tab_privs;
|
| ROLE
| ------------------------------
| POSTGRAD_ROLE
| TUTORMNGT_ROLE
| p/s: these two roles created using sysem_id.
|
|
| I curios, why when i log in using system, i can't see ITEM_ROLE and
| TESTING.
| and why dba_1 can see role created by dba_2(Item_role)but dba_2 can't
| see role created by dba_1 (TESTING role)
|
| DBA_1 AND DBA_2 were granted DBA priviledge.
|
|
| Thanz.

Why are you looking in ROLE_TAB_PRIVS? That view does not contain the list
of roles, it lists table privileges granted to roles, specifically the roles
which the current user has granted to it.

DBA_ROLES is where you need to look. Also, take some time to read thru the
Oracle Reference Manual's chapter on 'Static Data Dictionary Views'.

Make sure that when you choose a table or view for your query that you are
choosing the object that most directly defines the data you're looking for,
not a table that contains (some) references to the data. this is important
when accessing the data dictionary and when writing application code.

-- mcs
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: needhelp | last post by:
This one ought to be simple, but I have dug myself deeper and deeper, and gone farther and farther from what I wanted and I'm giving up. And my html that I've written is so bolloxed up now that...
2
by: NeedHelp | last post by:
Our ASP.NET application receives around 90 anonymous hits/sec while Requests Executing usually stays around 15-25. This is good and our server performs well What our app does is load a remote...
2
by: Clément | last post by:
Hello, i'm new to c++ and to linux, i have to develop a full web browser. I don't really know how to start and i'd like to know if any of you would have some kind of working plan/structure in...
4
by: NeedHelp | last post by:
If anyone help point out why this code doesn't work, It would be greatly appreciated. ------------------------------------ for(linenumber=0;fgets(line,25,filein))!=NULL;i++) { if((memo=(char...
6
by: Mike Barrett | last post by:
I am using VS 2005, VB.Net. I need to connect to an FTP server and get a list of files. I plundered the following code from MSDN to accomplish this task. It was part of a class called clsFTP: ...
0
by: TulasiKumar | last post by:
Hi I am a vb.net developer.i have one requirement of my project. pleasae go through this below image, since i'm going to talk about that only. only in that pic there is user tasks which is a...
8
by: needhelp | last post by:
Hi there, I really need some help, everything I've tried, all I've found, doesn't seem to work. I have lost an email address which is very important to me. I really need to contact that person...
1
by: kadening | last post by:
Hello everybody, I'm looking for Implementation Branch and Bound algorithm to Solve Traveling Salesman Problem in C. I hope you can help me, pls...
4
by: tracy | last post by:
I not sure if i posted to the rite group, but hope somebody can help. as i know, system is the superpower user in oracle database. He can views everything, including role created by others DBA....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.