Dba_tab_privs vs all_tab_privs
If we query all_tab_privs (as user SYSTEM) for a particular SCHEMA we get a different set of privs (just SELECT) than when we query dba_tab_privs (SELECT and INSERT, UPDATE) for the same OWNER.objects...why would that be?
Well they are almost identical, with some difference in underlying query.
DBA_TAB_PRIVS
select ue.name, u.name, o.name, ur.name, tpm.name,
decode(mod(oa.option$,2), 1, 'YES', 'NO'),
decode(bitand(oa.option$,2), 2, 'YES', 'NO')
from sys.objauth$ oa, sys.obj$ o, sys.user$ u, sys.user$ ur, sys.user$ ue,
table_privilege_map tpm
where oa.obj# = o.obj#
and oa.grantor# = ur.user#
and oa.grantee# = ue.user#
and oa.col# is null
and oa.privilege# = tpm.privilege
and u.user# = o.owner#ALL_TAB_PRIVS
select ur.name, ue.name, u.name, o.name, tpm.name,
decode(mod(oa.option$,2), 1, 'YES', 'NO'),
decode(bitand(oa.option$,2), 2, 'YES', 'NO')
from sys.objauth$ oa, sys.obj$ o, sys.user$ u, sys.user$ ur, sys.user$ ue,
table_privilege_map tpm
where oa.obj# = o.obj#
and oa.grantor# = ur.user#
and oa.grantee# = ue.user#
and oa.col# is null
and u.user# = o.owner#
and oa.privilege# = tpm.privilege
and (oa.grantor# = userenv('SCHEMAID') or
oa.grantee# in (select kzsrorol from x$kzsro) or
o.owner# = userenv('SCHEMAID'))
Similar Messages
-
Access to ALL_COL_PRIVS and ALL_TAB_PRIVS
We're looking into switching from TOAD to SQL Developer, and one of the missing pieces in SQL Developer for us is the ability to see the GRANTS for objects. It looks like the following SQL is responsible for gathering that information, which is currently coming up blank (I can see the data, but then I have DBA granted to me):
SELECT PRIVILEGE,
GRANTEE,
GRANTABLE,
GRANTOR,
COLUMN_NAME object_name
FROM all_col_privs
WHERE table_schema = :OBJECT_OWNER AND TABLE_NAME = :OBJECT_NAME
UNION ALL
SELECT PRIVILEGE,
GRANTEE,
GRANTABLE,
GRANTOR,
table_NAME object_name
FROM all_tab_privs
WHERE table_schema = :OBJECT_OWNER AND TABLE_NAME = :OBJECT_NAMEIn TOAD, this information is gathered via DBA views, and I've granted the SELECT_CATALOG_ROLE to the Systems Analysts that need to see this information. In fact, the following SQL will bring back the information we're after:
SELECT PRIVILEGE,
GRANTEE,
GRANTABLE,
GRANTOR,
COLUMN_NAME object_name
FROM dba_col_privs
WHERE owner = :OBJECT_OWNER AND TABLE_NAME = :OBJECT_NAME
UNION ALL
SELECT PRIVILEGE,
GRANTEE,
GRANTABLE,
GRANTOR,
table_NAME object_name
FROM dba_tab_privs
WHERE owner = :OBJECT_OWNER AND TABLE_NAME = :OBJECT_NAMEIs there a privilege which allows these people to see the same information from the all_col_privs/all_tab_privs views, which they're currently seeing via the dba_col_privs/dba_col_privs views?
Thanks,
--=ChuckI get that. I always ask my question slightly wrong the first time through, so I'll give it a second go ...
TOAD uses DBA_ views to gather this information, and the privileges I've given our Systems Analysts allow them to see object grants. However, if these same people use SQL Developer, which uses ALL_ views, no object grants display.
What privileges do I need to grant to them so that the ALL_ views start working like the DBA_ views:
SQL> SELECT PRIVILEGE,
2 GRANTEE,
3 GRANTABLE,
4 GRANTOR,
5 COLUMN_NAME object_name
6 FROM all_col_privs
7 WHERE table_schema = 'R5UITL' AND TABLE_NAME = 'ACT5'
8 UNION ALL
9 SELECT PRIVILEGE,
10 GRANTEE,
11 GRANTABLE,
12 GRANTOR,
13 table_NAME object_name
14 FROM all_tab_privs
15 WHERE table_schema = 'R5UITL' AND TABLE_NAME = 'ACT5';
no rows selected
SQL> SELECT PRIVILEGE,
2 GRANTEE,
3 GRANTABLE,
4 GRANTOR,
5 COLUMN_NAME object_name
6 FROM dba_col_privs
7 WHERE owner = 'R5UITL' AND TABLE_NAME = 'ACT5'
8 UNION ALL
9 SELECT PRIVILEGE,
10 GRANTEE,
11 GRANTABLE,
12 GRANTOR,
13 table_NAME object_name
14 FROM dba_tab_privs
15 WHERE owner = 'R5UITL' AND TABLE_NAME = 'ACT5';
PRIVILEGE GRANTEE GRANTABLE GRANTOR OBJECT_NAME
DELETE R5UITL_ROLE NO R5UITL ACT5
INSERT R5UITL_ROLE NO R5UITL ACT5
UPDATE R5UITL_ROLE NO R5UITL ACT5
SELECT R5UITL_ROLE NO R5UITL ACT5--=cf -
Can not find a table in DBA_TAB_PRIVS and ROLE_TAB_PRIVS
I get a table 'KNA1', a table of SAP R3 ERP application, and tried to find out all privileges granted to 'KNA1'. Using the SQL statement below, I am sure 'KNA1' is existing.
SQL> SELECT * FROM DBA_OBJECTS WHERE OBJECT_NAME = 'KNA1';
OWNER
OBJECT_NAME
SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE
CREATED LAST_DDL_ TIMESTAMP STATUS T G S
SAPR3
KNA1
7480 7480 TABLE
30-JUL-02 30-JUL-02 2002-07-30:15:26:22 VALID N N N
However, when I tried to find 'KNA1' in 'DBA_TAB_PRIVS' and 'ROLE_TAB_PRIVS', the result is 'no rows selected'.
SQL> SELECT * FROM SYS.DBA_TAB_PRIVS WHERE TABLE_NAME = 'KNA1';
no rows selected
SQL> SELECT * FROM ROLE_TAB_PRIVS WHERE TABLE_NAME = 'KNA1';
no rows selected
SQL> SELECT * FROM SYS.ROLE_TAB_PRIVS WHERE TABLE_NAME = 'KNA1';
no rows selected
Dose that answer mean 'KNA1' did not be granted to any user or role?
If it is true, why can I still use KNA1 wtihout any problem?
If it is not true, where can I find the privileges information related to 'KNA1'?
Thanks a lot.Yes, I have, I use 'SYS', with DBA role, to login Oracle. thanks for ur response, but could u please say more, because I can not get ur point. thank you.
-
How to grant priv in DBA_TAB_PRIVS
I logged in as system and I just execute below script, however Im getting error "SQL Error: ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist""
GRANT execute ON UTL_FILE TO USER1;
How to grant privilege on ult_file?
Edited by: 995017 on Apr 2, 2013 1:08 AM
Edited by: 995017 on Apr 2, 2013 1:14 AM995017 wrote:
I logged in as system and I just execute below script, however Im getting error "SQL Error: ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist""
GRANT execute ON UTL_FILE TO USER1;
How to grant privilege on ult_file?
Edited by: 995017 on Apr 2, 2013 1:08 AM
Edited by: 995017 on Apr 2, 2013 1:14 AMYour subject i s- Re: How to grant priv in DBA_TAB_PRIVS
But your message part talks about - GRANT execute ON UTL_FILE TO USER1;
What is your exact issue? -
Hi
Can someone explain to me what is the meaning / use of dba_tab_privs using example below?
i spool this from my db,
1. Grantee = ABC123
2. Owner = SYS
3. Table_name = CTR_ACCESS
4. Grantor = SYS
5. Privilege = Read
6. Grantable = Yes
7. Hierarchy = No
I confuse with the 'Grantable' part.
Anyone?
Thanks
-Noniegrant select on CTR_ACCESS to ABC123 with grant option ;Will allow ABC123 to grant select to other users on this object hence the grantable column will be YES.
grant select on CTR_ACCESS to ABC123;
Wont allow ABC123 to grant select to other users on this object hence the grantable column will be 'NO' -
How to check in my db have db-link and table name also
Is there any query which shows table information which could be access through db-link.
List of oracle dictionary tables that stores various privileges
TABLE_NAME COMMENTS
DBA_AQ_AGENT_PRIVS
DBA_COL_PRIVS All grants on columns in the database
DBA_PRIV_AUDIT_OPTS Describes current system privileges being audited across the system and by user
DBA_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
DBA_ROLE_PRIVS Roles granted to users and roles
DBA_RSRC_CONSUMER_GROUP_PRIVS Switch privileges for consumer groups
DBA_RSRC_MANAGER_SYSTEM_PRIVS system privileges for the resource manager
DBA_SYS_PRIVS System privileges granted to users and roles
DBA_TAB_PRIVS All grants on objects in the database
ALL_COL_PRIVS Grants on columns for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_COL_PRIVS_MADE Grants on columns for which the user is owner or grantor
ALL_COL_PRIVS_RECD Grants on columns for which the user, PUBLIC or enabled role is the grantee
ALL_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
ALL_TAB_PRIVS Grants on objects for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_TAB_PRIVS_MADE User's grants and grants on user's objects
ALL_TAB_PRIVS_RECD Grants on objects for which the user, PUBLIC or enabled role is the grantee
USER_AQ_AGENT_PRIVS
USER_COL_PRIVS Grants on columns for which the user is the owner, grantor or grantee
USER_COL_PRIVS_MADE All grants on columns of objects owned by the user
USER_COL_PRIVS_RECD Grants on columns for which the user is the grantee
USER_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
USER_ROLE_PRIVS Roles granted to current user
USER_RSRC_CONSUMER_GROUP_PRIVS Switch privileges for consumer groups for the user
USER_RSRC_MANAGER_SYSTEM_PRIVS system privileges for the resource manager for the user
USER_SYS_PRIVS System privileges granted to current user
USER_TAB_PRIVS Grants on objects for which the user is the owner, grantor or grantee
USER_TAB_PRIVS_MADE All grants on objects owned by the user
USER_TAB_PRIVS_RECD Grants on objects for which the user is the grantee
COLUMN_PRIVILEGES Grants on columns for which the user is the grantor, grantee, owner, or
an enabled role or PUBLIC is the grantee
ROLE_ROLE_PRIVS Roles which are granted to roles
ROLE_SYS_PRIVS System privileges granted to roles
ROLE_TAB_PRIVS Table privileges granted to roles
SESSION_PRIVS Privileges which the user currently has set
TABLE_PRIVILEGES Grants on objects for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
GV$ENABLEDPRIVS Synonym for GV_$ENABLEDPRIVS
V$ENABLEDPRIVS Synonym for V_$ENABLEDPRIVS
36 rows selected.
SQL> -
Hello,
Which table holds information about roles and privileges assigned to users with grant option? For e.g. DBA_ROLE_PRIVS and DBA_SYS_PRIVS gives information about WITH ADMIN option. Similarly I am looking for tables that would give me information about with grant option.
Thanks
RAll these tablese have a GRANTABLE column that is TRUE when the privilege has been granted "WITH GRANT OPTION":
ALL_COL_PRIVS
ALL_COL_PRIVS_MADE
ALL_COL_PRIVS_RECD
ALL_TAB_PRIVS
ALL_TAB_PRIVS_MADE
ALL_TAB_PRIVS_RECD
DBA_COL_PRIVS
DBA_TAB_PRIVS
ROLE_TAB_PRIVS
USER_COL_PRIVS
USER_COL_PRIVS_MADE
USER_COL_PRIVS_RECD
USER_TAB_PRIVS
USER_TAB_PRIVS_MADE
USER_TAB_PRIVS_RECD
Max
http://oracleitalia.wordpress.com -
How to identify which privilege is missing?
Hi,
If any query comes out with insufficient privileges, how do we identify which privilege is missing instead of searching in Oracle docs. Is there any table(dict or oracle internal) we can take aid to find out required privilege.Oracle does not store (other than the document) the possible privileges that could be granted to a specific user/object. But the privileges that are granted can be viewed in dictionary tables listed below.
SQL> select *
2 from dictionary
3 where table_name like '%PRIV%'
4 order
5 by table_name;
TABLE_NAME COMMENTS
ALL_COL_PRIVS Grants on columns for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_COL_PRIVS_MADE Grants on columns for which the user is owner or grantor
ALL_COL_PRIVS_RECD Grants on columns for which the user, PUBLIC or enabled role is the grantee
ALL_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
ALL_TAB_PRIVS Grants on objects for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_TAB_PRIVS_MADE User's grants and grants on user's objects
ALL_TAB_PRIVS_RECD Grants on objects for which the user, PUBLIC or enabled role is the grantee
COLUMN_PRIVILEGES Grants on columns for which the user is the grantor, grantee, owner, or
an enabled role or PUBLIC is the grantee
DBA_AQ_AGENT_PRIVS
DBA_COL_PRIVS All grants on columns in the database
DBA_PRIV_AUDIT_OPTS Describes current system privileges being audited across the system and by user
DBA_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
DBA_ROLE_PRIVS Roles granted to users and roles
DBA_RSRC_CONSUMER_GROUP_PRIVS Switch privileges for consumer groups
DBA_RSRC_MANAGER_SYSTEM_PRIVS system privileges for the resource manager
DBA_SYS_PRIVS System privileges granted to users and roles
DBA_TAB_PRIVS All grants on objects in the database
GV$ENABLEDPRIVS Synonym for GV_$ENABLEDPRIVS
ROLE_ROLE_PRIVS Roles which are granted to roles
ROLE_SYS_PRIVS System privileges granted to roles
ROLE_TAB_PRIVS Table privileges granted to roles
SESSION_PRIVS Privileges which the user currently has set
TABLE_PRIVILEGES Grants on objects for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
USER_AQ_AGENT_PRIVS
USER_COL_PRIVS Grants on columns for which the user is the owner, grantor or grantee
USER_COL_PRIVS_MADE All grants on columns of objects owned by the user
USER_COL_PRIVS_RECD Grants on columns for which the user is the grantee
USER_REPGROUP_PRIVILEGES Information about users who are registered for object group privileges
USER_ROLE_PRIVS Roles granted to current user
USER_RSRC_CONSUMER_GROUP_PRIVS Switch privileges for consumer groups for the user
USER_RSRC_MANAGER_SYSTEM_PRIVS system privileges for the resource manager for the user
USER_SYS_PRIVS System privileges granted to current user
USER_TAB_PRIVS Grants on objects for which the user is the owner, grantor or grantee
USER_TAB_PRIVS_MADE All grants on objects owned by the user
USER_TAB_PRIVS_RECD Grants on objects for which the user is the grantee
V$ENABLEDPRIVS Synonym for V_$ENABLEDPRIVS -
Hi!
I use SQL Developer and also Toad to connect to my Oracle 10.2 Database.
Maybe since Oracle 10 (and / or maybe InstanceClient) I cannot see the Grants in the SQL Developer of other users than the one I'm connecting.
If I use Toad I have no Problems to see them.
What could be the reason for this?
I know I can use the View SYS dba_tab_privs to show me all Grants I want to know (yes I have access to it).
If I use all_tab_privs or user_tab_privs I see only my own grants. -> I think thats the problem.
How can I switch SQL Developer to use the dba_tab_privs view to show me the Grants / Privileges on the Table I selected
GreetingsDo better? What am I supposed to do better at? Describing how to get a ref cursor out?
No, I don't claim to be able to do that better. That's not my issue.
My issue is that the post is about 95% opinion, most of it rather ... well...
and there's 5% useful. In that case, I'd copy the 5% and post it directly, rather than posting a link.
Or do better at ...
there's a long comment on the blog. -
How to find out privileges on a sequence
Hi All,
I want to find out all the schemas and their privileges(for e.g. select etc...) on a sequence.
Can you please provide a query or table name so that i can find out the details.
TIA,If you get a "table or view does not exist" error - use all_tab_privs instead of dba_tab_privs.
If the query returns no rows it's either:
you wrote the sequence name incorrectly - make sure it exists using dba_sequences
or
no special permission has been granted on the sequence, meaning only the owner and anyone with select any sequence can use.
if you:
grant select on schema.sequence_name to userit'll appear in dba_tab_privs.
Hope this helps -
How to check object privilege for procedure, packages?
Dear Legends,
what is the query to find the Grant Permissions provided to a User on particular object such as Procedure, Package and Function?
DBA_TAB_PRIVS is not giving me the answer.
Can any one help me on this?
Thanks,
KarthikMaybe something like this?
SQL> create procedure p as
2 begin
3 null;
4 end;
5 /
Procedure created.
SQL> grant execute on p to scott;
Grant succeeded.
SELECT p.grantor, p.grantee, o.object_name, o.object_type, p.privilege
FROM all_tab_privs p
JOIN all_objects o ON (p.table_name = o.object_name and p.table_schema = o.owner)
WHERE o.object_name = 'P'
AND p.grantor = 'SELSE';
GRANTOR GRANTEE OBJECT_NAME OBJECT_TYPE PRIVILEGE
SELSE SCOTT P PROCEDURE EXECUTE -
Sequences are not visible to user/schema
Hi
I have copied a schema(abcd1)(schema level refresh) from prod to dev(abcd2),i verified that all objects(tables,views,synonyms and sequences etc..) got created in the dev schema(abcd2) ,but now the client complains that the sequences are not visible to user/schema(abcd2) in dev,he says it was visible before and that they are visible to another schema(abcd3) in dev.... can anyone please advise? Thanks!877410 wrote:
Elapsed: 00:00:00.09
SQL> SELECT * FROM all_tab_privs WHERE table_name = 'ABC_WXYZ_PW_SEQ';
no rows selectedThat means the sequence either doesn't exist, or the user that ran the query doesn't have access to the sequence. If you have an account with DBA access I'd try running the query against the DBA_TAB_PRIVS view.
You may also want to query the _SEQUENCES (ALL, USER, DBA) view to see if the sequence exists. -
Anonymous PL/SQL vs procedure inside package
It's probably quite simple problem but I'm not able to figure it out.
If I make an anonymous PL/SQL block
declare
l_counter number(4);
begin
SELECT *
into l_counter
FROM (SELECT count(*)
FROM SYS.all_objects
WHERE owner IN ('USER1', 'USER2')
AND object_type IN ('TABLE', 'VIEW')
minus
SELECT count(*)
FROM SYS.dba_tab_privs
WHERE grantee = 'TESTERS');
DBMS_OUTPUT.PUT_LINE(l_counter);
end;
then it works. The result is 2 which is correct because select statement returns 2 rows.
If I make procedure with the same code
create or replace PROCEDURE grant_privileges2
IS
l_counter NUMBER (4);
BEGIN
SELECT COUNT (*)
INTO l_counter
FROM (SELECT owner, object_name
FROM SYS.all_objects
WHERE owner IN ('USER1', 'USER2')
AND object_type IN ('TABLE', 'VIEW')
MINUS
SELECT owner, table_name
FROM SYS.dba_tab_privs
WHERE grantee = 'TESTERS);
DBMS_OUTPUT.put_line (l_counter);
END;
result is 0 which is not correct becuase select statement is the same as in anonymous pl/sql and it has to return 2 rows.
What I'm doing wrong?If the queries are the same then it works for me...
SQL> ed
Wrote file afiedt.buf
1 declare
2 l_counter number(4);
3 begin
4 SELECT *
5 into l_counter
6 FROM (SELECT count(*)
7 FROM SYS.all_objects
8 WHERE owner IN ('CRISP_ADMIN', 'CRISP_INTELL')
9 AND object_type IN ('TABLE', 'VIEW')
10 minus
11 SELECT count(*)
12 FROM SYS.dba_tab_privs
13 WHERE grantee = 'SYSTEM');
14 DBMS_OUTPUT.PUT_LINE(l_counter);
15* end;
SQL> /
431
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 create or replace procedure mytest is
2 l_counter number(4);
3 begin
4 SELECT *
5 into l_counter
6 FROM (SELECT count(*)
7 FROM SYS.all_objects
8 WHERE owner IN ('CRISP_ADMIN', 'CRISP_INTELL')
9 AND object_type IN ('TABLE', 'VIEW')
10 minus
11 SELECT count(*)
12 FROM SYS.dba_tab_privs
13 WHERE grantee = 'SYSTEM');
14 DBMS_OUTPUT.PUT_LINE(l_counter);
15* end;
SQL> /
Procedure created.
SQL> exec mytest;
431
PL/SQL procedure successfully completed. -
Table does not exist at dw.insertrow(0)
Hi,
I am trying to update an old PB app.
Background of the basic database structure:
my_data Table:
col1
col2 -- lookup to an_old_table.id
col3 -- newly added as lookup
my_new_lookup Table:
code -- 'linked' to col3 above
description
an_old_lookup table:
id -- 'linked' to my_data.col2
text
I have created a new lookup table in our oracle database, and added an extra column to an existing table this column matches the lookup code and we can pull the full description of the item from there.
I would like to add the new lookup table as a dropdown list in a window of my app.
There is already a dropdown list which does exactly this, displaying an_old_table.text in the dropdown but updating my_table.col2 with the id value.
I have attempted to duplicate this functionality exactly but with data from my_new_lookup to my_data.col3, but am failing somewhere.
I have created a new d_dddw_mynewdropdown, which in the preview window lists all my_new_lookup.description values from the database correctly.
In the datawindow, I added a column control, changed the edit to DropDownDW, making sure the DataWindow is d_dddw_mynewdropdown and display and data columns matched description and code respectively.
When I do a retreive on the datawindow within powerbuilder, with a record from the my_data table a dropdown box appears correctly in the preview window with the value matching the correct lookup description, so it is flowing through col3 > code > description correctly.
The datawindow is embedded into an application window, and this is where I think it is failing... The window has two datawindows on it and part of the open() function does:
If dw_one.Retrieve(ln_id,) > 0 Then
ll_row = dw_one.GetRow()
If dw_one.ShareData (dw_two) <> 1 Then
MessageBox ("Error", "Error in sharing data.")
Else
dw_two.ScrollToRow (ll_row)
End If
Which passes (IE does not display the message box)
It then executes:
dw_one.InsertRow(0)
dw_two.InsertRow(0)
Which is where the application displays an error message which says:
Select Error: ORA-00942: table or view does not exist
I stepped through the code in debug mode and discovered the error message comes from the dw_one.InsertRow(0) line.
If I press ok to the error, the application continues to run, but the value of the dropdown box is my_data.col3 (the 'linking' code, not the full description) and the dropdown when pressed is empty.
I am not sure what I have done wrong.. In powerbuilder itself everything seems to be working and connecting together as it should when I preview the data in the datawindows, but something about the application window has issues.
Has anyone experienced similar things? I do not know where else to look to fix this.
Thanks.This is correct. The application starts with a log in screen (we have over 80 users) the application then connects to the database using the credentials entered into the login screen.
The table was created under the db admin account.
I have very little Oracle experience. what would be the best way to do it so that all users who have access to the application also have access to this table?
From what I can work out, the application uses the "Other Users" folder under in the database tree in Oracle SQL Developer. The DB admin account is not in the list of users in this folder..
When I use the application and log in using the db admin credentials there is no error! So I just have to work out how to give all the users access to this table?!
is the
alter session set current_schema= <username of table creator>.
a PowerBuilder command that I should run after the users log into the app? or is it an Oracle Query?
Thanks! this is down the right track..
I ran a select * from all_tables query and compared the new table with others that are successfully being used by the application.. as far as I can see, they are exactly the same in terms of OWNER, TABLESPACE_NAME, CLUSTER_NAME, STATUS, BUFFER_POOL... The only thing different is my new table has GLOBAL_STATS = YES where the rest have NO.. not sure if that makes any difference..
The OWNER column is the database admin user for all tables used by the application
I also checked the DBA_TAB_PRIVS table and it has all the same info as the other tables aswell.. not sure where else to look. -
How To Modify Privileges For APEX Objects Granted To PUBLIC?
I have searched this forum but couldn't any threads relating to this...
We have APEX 3.0.1 installed in some 10g (10.2.0.2) databases that host GIS data. I was informed by a GIS administrator that when using ESRI tool to search for data, the objects that belongs to FLOWS_030000 schema and ones that were granted to PUBLIC are shown. He would like to know if there is a way to hide these objects so they don't show up on the list? There are about 176 objects granted to public from the flows_030000 schema.
Could we establish a different security scheme that could accomplish the same thing? Maybe we need to create a new account and a role. Grant all of the privileges for flows_030000 to public to the new role. Then grant the role to the new account and the flow_files schema?
Our goal here is to make the flows_030000 objects hidden from the ESRI tools and still have APEX working properly.If you look at the grants, you'll see that there are over 170 objects from the FLOWS_030000 granted to PUBLIC:
SQL> select count(*) from dba_tab_privs where owner= 'FLOWS_030000' and grantee = 'PUBLIC';
173
If we were go grant these privileges to a role, called APEX_APP_RU, and grant this role to APEX_PUBLIC_USER and any schemas an application is linked to (Workspace to Schema), would that be a workable solution?
The only problem I see right off hand that this might not work is that PUBLIC has synonyms created for the FLOWS_030000 objects. If we revoke the underlying privileges, because of the synonyms, this might not work.
SQL> select COUNT(*) from dba_synonyms where table_owner = 'FLOWS_030000' and owner = 'PUBLIC';
176
Does anyone else have any ideas?
Maybe you are looking for
-
How to get selected row data of an ADF table in HashMap?
Hi, Can anyone please tell me how to selected row data of an ADF table in HashMap like : Object obj = pageTable.getSelectedRowData(); JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)obj; Now in above code I want the convert rowData in HashMap.
-
Video lags like crazy when mirroring Macbook Pro to Apple TV
So, the Apple TV is wireless, and youtube works fine, as long as i use it within the Apple Tv. However, when I mirror my Macbook Pro to the Apple TV, and play a youtube video or any other video on my computer, it lags; it lags a LOT!!! How do I fix t
-
Transfering photos from Iphone 3 to Windows 7
Could anybody help me? I want to copy all of my photos and videos from the Iphone to the pc
-
Not able to load Material deltas
Hi I search the SDN forums for delta some suggested to make a init load then do a delta...But when I does that Init load was succesfully loaded with more than 5 lacks records, then I could see the init req in RSA7 too ! But when I create an infopa
-
How do I properly remove a user from my system ?
Hi guys I recently just purchased a macbook pro from a friend, and I am loving it sooooo much compared to crappy old windows. Anyways, the issue I am having is that on all the applications it has my friends name and and the hard drive and 'Home' icon