subsidies on table dba_dependencies
Version: oracle 10g
tool: sqldeveloper
Hi Experts,
I created a procedure in the scott schema using the slider of the DBA_DEPENDENCIES and DBA_OBJECTS table.
but its giving error table is not.
I asked our dba to provide read access to this table,
and after providing read access, I might be able to select in the editor but still once, couldn't use in the procedure.
Yet after his table or a view that does not exist.
Please, help me get out of this.
Note: I do not want to use all_dependencies since its not giving all the data I need.
Thanks in advance...
What was the exact issue that the emitted DBA? If you still get an ORA-00942 error, it's a pretty convincing argument that the ADMINISTRATOR does not, in fact, give the owner of the procedure SELECT direct access on DBA_DEPENDENCIES.
The DBA was trying to give the subsidy on just this object? Or that it provides the owner the privilege to CHOOSE ANY DICTIONARY?
Can you cut and paste from a SQL * Plus term which shows that
(1) the direct grant to the owner of the procedure is in place
and
(2) the procedure selected from DBA_DEPENDENCIES does not compile
Justin
Tags: Database
Similar Questions
-
Hi Experts,
How to determine whether the table has direct subsidies or tables have been granted by the role? The script of GROUND to identify the same would be very appreciated.
How to determine whether the table has direct subsidies or tables have been granted by the role?
Perhaps mean you something like this?
SQL > select distinct dba_tab_privs beneficiary
2 where table_name ='
' 3 order by recipient;
SQL > select distinct role of role_tab_privs
2 where table_name ='
' 3 order of role;
-
Grant 'select only "on the basis of data
Hello
10.2.0.2 Dim.
I want to give a user with "Select any object in the database"
Thank you
KSG>
I am also finding an alternative path to the query below. (since there are more than 100 patterns and n number of objects) ("grant select on any table of" is not a best choic)
>
You are the only person who can assess your security needs.But if you want to exercise a positive security measures do not TAKE SHORTCUTS. This means put in place restrictions known on well-known objects and not grant on a table or an object and any grants a single user or super role.
Aman and others have already said a good security refers to the compartmentalization and a rigid hierarchy. The objective of the implementation process and standards is not to make developers work more easier or faster. Yes - do the work correctly on 100 patterns and a large number of objects in each scheme will be tedious. You can automatically generate basic subsidies and coil them to scripts. But don't try to automate the entire process from beginning to end. That will leave large enough for a bus through security holes.
Create a hierarchy in the sense of
1. a schema at a time
a. purpose of subsidies - for tables, views, procedures, etc. to a role. Best is to use a separate role for each type of object
2 grant the role of schema for users who needBuild small pieces manageable and controllable. Then combine these pieces into a top-level component. Not just make a huge mess of subsidies.
-
Hello
I dropped table and retrieved the back using flashback...
subsidies on table also returned back but always display in recyclebin primary key index...
How to recover indexes on the table...
SQL > drop aman table;
Deleted table.
SQL > select privilege, dealer of dba_tab_privs where table_name = 'AMAN ';
no selected line
SQL > flashback table aman to before drop;
Flashback complete.
SQL > select privilege, dealer of dba_tab_privs where table_name = 'AMAN ';
HOLDER OF PRIVILEGE
---------------------------------------- ------------------------------
SELECT SCOTT
SQL > select constraint_name from dba_constraints where table_name = 'AMAN ';
CONSTRAINT_NAME
------------------------------
BIN$ o6zM7p0mRQCFVgnO4rQ7sQ == $0Just read and you can easily
http://mohamedazar.WordPress.com/2010/01/23/flashback-drop/
-
How to remove grant select to one user, if this table contains public subsidies.
Hi all
Owner of the table gave all access to a table to the public
for example
>
grant all on table1 to public;
But now for a user "user1" if we remove select grant
revoke select on table1 from user1;
I get the error ORA-01927: cannot REVOKE privileges you did not
OK if I revoke all access to "user1."
revoke all on table1 from user1;
I get Revoke succeeded.
But always in the connection of the User1, I can select data from table1.
Why?
Is it because I gave all subsidies to the public?
Above scenario must revoke the access of a user to a table that has all government subsidies.
Yes, it's because SELECT on the table access has been granted to the PUBLIC. The user still has the option to SELECT the table after you have removed the direct subsidies because they can always access privileges granted by the PUBLIC.
If you want all users to have access to the table, you shouldn't be granting access to the PUBLIC in the first place. Create a new role, grant SELECT on the table for this new role and assign this role to all users need.
If for any reason, you're stuck with the issuance to the PUBLIC, I suppose you could create a policy from the CAE on the table that prevents the user to see all the data. But it's a lot more work to get grants of privilege correct in the first place.
Justin
-
Subsidies and the table property
Dear all,
I am the owner of a schema (say SCH_ALL) and I created a table (say Tab_1). Can my DBA revoke roles to create a trigger to my pattern on my own table? Pls tell me how, if that's possible.
Thanks for reading this post
* 009 *.The role of RESOURCE has a Create trigger previalge gives it.
Thank you
-
Dictionary of table with info on subsidies on objects for user roles
Hi all
I use a package, sequence, and we have a different set of roles and users.
I want to know what user or role is seen to execute privilege or right to select the package and order.
Can someone tell me which table data dictionary will hold this information.
Appreciate your help.
Thank you
MaddyHi, Maddy,
These rights are stored (confusion) in all_tab_privs (and dba_tab_privs and user_tab_privs, of course).
Column in table_name is the name of the object, whether a table, a packet or sequence.If the sequence is used inside the package, users with privileges running on the package need not privileges on the sequence (assuming AUTHID DEFINE, which is the default). The owner of the package needs the privileges on the sequence.
-
ODI-26174 error when try to turn the Table in the model
Hello
I got a strange error when I try to turn the table in the model.
I created the new user (with subsidies), I created the new physics and logic diagram.
I created new model also. When I try to reverse table I ODI-26174 database connection is not available error
I tried to measure option using RKM reverse .it. But why it has not been reversed by using option Standart?
ava.sql.SQLException: i/o error: the network adapter could not establish the connection
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
at oracle.odi.core.datasource.dwgobject.support.OnConnectOnDisconnectDataSourceAdapter.getConnection(OnConnectOnDisconnectDataSourceAdapter.java:74)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java:1128)
Any Solution for this?
Concerning
AETL
Hi aetl,.
If you open the database server in the physical topology and click 'test connection', is it effective?
If this isn't the case, you must set your connection details, maybe check that the tnsnames.ora is correct and that the network access is ok (including firewalls,...). You can try a tnsping on your database.
Kind regards
JeromeFr
-
How to exclude subsidies, the role_grant, the materialized view to expdp
Hi all
I am making the expdp on a 10g database and import it on 11g:
Directory system/amandla expdp = respaldos_bd = logfile = nomina_dp.log patterns nomina_dp.dmp dumpfile = nomina exclude = grants, statistics, role_grant, db_link, materialized_view, materialized_view_log
Now, on the import subsidies, role grants etc are present on dumpfile as seen on warnings such as these:
ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:
ORA-01917: el usuario o rol 'NOMINA_ART_SSALUD' doesn't exist
Procesando el tipo object SCHEMA_EXPORT/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT
ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:
ORA-01917: el usuario o rol 'NOMINA_ART_EOS' doesn't exist
GRANT SELECT ON "NOMINA". "' CONC_IVSS ' TO 'NOMINA_ART '.
ORA-39083: Fallo Creacia³n del tipo object OBJECT_GRANT con el error:
ORA-01917: el usuario o rol 'NOMINA_ART' doesn't exist
What's not here?
Thanks in advance!
Hi Richard,
Yes you are right, thank you. grant to exclude will remove all subsidies.
just checked command OPs on 11.2.0.4 and exclure = grants work done and it failed object and system privileges granted to the user as well.
-
How to get ALL of the 'real' database table in apps/apps
Hi all
EBS R12.2
OEL 6
I create tables derived from drawing apps and custom drawing.
When I connect to apps/apps, there are a lot of objects, synonyms, views that point to other tables, synonyms, views of another schema as AP, AR, GL, etc..
What is confusing is a view contains a table attached, then it is created with a synonym of an another synonyms joined another scheme.
How can I get the list of actual tables being accessed from these apps objects?
I would also like to count the lines of ALL the actual tables and get their real value.
Thank you very much
JC
See the answers here >DBA_DEPENDENCIES
-
Need to get a list of the tables used in a PC using a query to USER_SOURCE
We would like to re - design an integration application using synonyms, pointing to a DB link. Now, we use the names of the tables. The tables can be found in a remote database.
We want to deal with in our local database instead of the treatment in the 32 remote DBs.
To determine the size of the re-design and development, we want to know how many different tables, we used in our package which has more than 6,000 lines of code.
When we issue you with this query:
Select text From User_Source Where Name = 'INT_PKG' and Type = 'PACKAGE BODY' and Lower (Text) Like '% % ';
We get lines like this:
IN double v_ret_val;
OF cmn_reg_reports m, case_reg_reports c
OF case_master c
OF case_assess
OF the double
OF case_master
etc.
Now I want the output voltage:
Double
cmn_reg_reports m, case_reg_reports
case_master
case_assess
Basically, I want to get a list of tables that I used in this package.
How can I do it using REGULAR EXPRESSIONS?
Why need to fetch from user_source... !
Instead you can easily get Table reference in the user_dependencies procedure!
Look for them
REFERENCED_OWNER, REFERENCED_NAME to REFERENCED_TYPE = "TABLE".
Select
referenced_owner,
referenced_name,
referenced_type
Of
dba_dependencies
where
name = "proc_name".
and
owner = 'owner_name '.
AND referenced_type = 'TABLE ';
-
Clarification from dependency table Oracle required
Hello team,
I have a temp table
create table temp (identification number, name varchar2 (100));
There are procedures, views, subsidies and public synonyms are dependednt on this table.
Please tell me if I drop and re-create the table with the same structure and constraints I also scripts for the procedure, the views, the synonymn compilation?
When I dropped and recreated the table with the same structure, including constraints. I found all the procedures,
views, synonymns are in an AUTHENTICATED State only. Script to grant the exception... I must issue again.
Please confirm
Thank you
S
If you deposit and create a table again with the same structure, including constraints, oracle will automatically manage all dependent objects.
-
The question of subsidies!
Hello
O / s: HP Unix
DB: 11.2.0.3
Server Source_A: Let's say I have a user with the name "Rob" and this user was assigned a role 'MY_SRC_ROLE '.
I have developed a table less fly pattern and allowed access to this table through the role
GRANT DELETE, INSERT, SELECT, UPDATE ON rob.emp to MY_SRC_ROLE;
I have more than 100 users and they got this role "MY_SRC_ROLE". Those 100 users can now access the emp table by role "MY_SRC_ROLE" without any problem.
Now, I took an export datapump-run import datapump on the target server, which is also HP Unix with 11.20.3. I have server target user 'JACK' and a role called 'MY_WORK_ROLE '. 5000 users 'MY_WORK_ROLE' on this server.
I used the remap tablespace clause & remap schema clause in the script to import datapump. Once I did an import, due to remapping of the scheme, I can see JACK now has 'emp' table, but subsidies are still not there, I tried searching on google and oracle documentation, if somehow we can remap ROLE AGREED also by datapump imp, but I could not find support syntax. Did I miss something or I can assume probably import datapump is not able to handle this particular scenario? I was able to do it by manipulating sqlfile and replace the name of role in this but I'm looking for a ground inside datapump himself.
Sort of the bottom line, how can one grants the role 'X' transfer to 'Rôle Y' via import datapump.
Let me know, if any further details are required.
-Learner
Hello
As far as I know, you can not to remap/rname roles. You can generate the dynamic script and apply on the target
something like that
coil role_target.sql
Select 'grants'. PRIVILEGE | 'MY_WORK_ROLE;' from dba_sys_privs where DEALER = "MY_SRC_ROLE";
spool off
@role_target.sql
HTH
-
Procedure compilation error: Table or view does not exist
I have privilege granted to me on some tables, SELECTION that I found thanks to view user_tab_privs.
Now, I wrote a stored procedure that attempts to insert into a table that I created with the data of a query based on joins on tables, sure I have the right to SELECT.
But when I compile my inside, it shows errors:
- PL/SQL: ORA-00942: table or view does not exist
What could be the problem? Were breaking my head.
Can someone help me please?
(
I found ask Tom & amp; quot; Procedures, roles and grant & amp; quot; that questioning the view of user_tab_privs with the DEALER = < me > gives the list of the privileges that have been granted directly to the me.
If this is the case, I seem to have DIRECT subsidies on the tables, I've used in my procedure.
Where is my confusion).
**************************************CODE*********************
CREATE OR REPLACE PROCEDURE USAGE_MODULE_INSERT
IS
CURSOR C1
IS
SELECT CALL_KEY IN THE DUMMY_DATE;VDATE_KEY C1. TYPE % CALL_KEY;
BEGIN
OPEN C1;
LOOP
FETCH C1 IN VDATE_KEY;
WHEN EXIT C1% NOTFOUND;INSERT INTO TABLE_USAGE_MODULE (VNUMBER, START_DATE_KEY, POSTPAID_ACC_FLAG, DES_NWK_NAME, ONOFF_KEY, TEMPS_REEL, CHARGED_TIME, CHARGED_VOLUME, CALLS)
(
SELECT THE PDF FILE. VNUMBER,
C_USG. START_DATE_KEY,
C_USG. POSTPAID_ACC_FLAG,
DES_NWK. DES_NWK_NAME,
ONNET_OFFNET. ONOFF_KEY,
SUM (C_USG. TEMPS_REEL),
SUM (C_USG. CHARGED_TIME),
SUM (C_USG. CHARGED_VOLUME),
COUNT (CASE WHEN C_USG. TYPE_KEY = 15 THEN 1 0 OTHERWISE END)
OF AM_WHM. CAL_USG C_USG
JOIN INTERNAL AM_WHM. DES_NETWORK DES_NWK
ON DES_NWK. DES_NWK_KEY = C_USG. DES_NWK_KEY
JOIN INTERNAL AM_WHM. D_L_NUMBER PDF
THE SUBJECT OF THE PDF FORMAT. L_NUMBER_KEY = C_USG. L_NUMBER_KEY
WHERE C_USG. START_DATE_KEY = VDATE_KEY
GROUP OF PDF. VNUMBER, C_USG. START_DATE_KEY, C_USG. POSTPAID_ACC_FLAG, DES_NWK. DES_NWK_NAME, ONNET_OFFNET. ONOFF_KEY);
END LOOP;
CLOSE C1;END;
Note: Mark USER_TAB_PRIVS with the DEALER = < > says that I have the privilege of SELECT on all tables that I used in my procedure.
Mark USER_SYS_PRIVS shows a single line like "UNLIMITED TABLESPACE"
******************************************************
Post edited by: 3cd7ad85-b56c-4a9c-ae91-83be047aac2c Code of procedure included which gives a compile error
In order to access the table in a procedure, select must have been granted to the user directly and not through a role.
-
8.3 P6 which database table I can find activities and safety profile details?
I checked P6 8.3 scheme but I can't find what table of database activities and security profiles (both global and project) are to be saved.Can anyone help with this?
If I take backup of ADMUSER, PUBUSER and PRIVUSER suffice as full backup?
Hello
Activities are stored in the table called TASK
Security profiles are stored in the named table of PROFILE (scope_type field determines whether it is Global (ST_Global) or Project (ST_Project))
If you are on 8.3 then you should also back up your work user and possibly extended schema background if you are using EPPM.
This is the command I have issue to make a backup (I guess an Oracle database you given refer to admuser that this account is not SQL).
exp system /
@ = file = C:\backup-fichier-name.dmp owner (admuser privuser, pubuser, bgjobuser, pxrptuser) = log = C:\log-fichier-Configuration.log subsidies forced statistics y = y = none Concerning
Alex
Maybe you are looking for
-
Slow down the performance of the system and unable to access My Documents
Title: Looking for elements... I have a lot of files and folders in my My Documents folder and when I click on them, most often the status bar in Explorer says "search elements...". "and it will stay there for 30 seconds sometimes now. How can I get
-
When I put in a USB, the brightness of the color sun screen / goes completely dark
When I put in a usb key, the brightness of the screen color Dim/dark goes... it remains like that even when the usb key is removed and styed this can the since.how ever I me the brightness up like its rises to max display.thanks
-
In gadgets, cannot install iolo technoligies in the office. Why?
-
Backup of files filled my D drive. Now what?
Play with my computer, I found something that says I need to back up my files that I made. However, it filled my disk (d :)) then said that failing because it doesn't have enough space to save all of my files.) Now I get messages that there is no mor
-
Laptop stuck on "Starting Windows" screen
So, this afternoon, I tried to start my laptop HPG42-373, and it got stuck on "Starting Windows" screen. I ran tests of memory at startup and primary HD, in which startup failed, and primary HD came out with this: "hard disk 1 (303) Quick '. What can