Home| Progetto| Web| Faq| Acronimi | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Argomenti Documenti pubblicabili:1120
Scripts:1282 Documenti non pubblicabili:162 Categorie tematiche:68 .Net |_C# |_Visual basic.net |_Asp.net Active Server Pages C++ Cascade Style Sheet JavaScript Mysql Php Xml Java |_Java 2 Micro Edition |_Java server pages |_Java Servlet Oracle |_PLSQL PostgreSQL Unix
Oracle...
Info:
Shared pool
Oracle...
Script:
Quick plsql script for dba maintenance tasks
Unix...
Tip:
Eseguire più comandi in una sola linea
PLSQL...
Script:
Esempio tipo VARRAY
Oracle...
Tip:
Personalizzare il prompt sqlPlus
Oracle...
Faq:
Come individuare a quale tablespace appartiene una tabella?
Shell scripting...
Script:
Cercare e visualizzare file per dimensione
La rabbia è creativa, la depressione è senza utilità
Dyson, Freeman J.
Php Funzione mail()
Charles Babbage(1791-1871) nel 1823 ottenne dal governo 100 Sterline per la costruzione del calcolatore Different Engine.
La rabbia è creativa, la depressione è senza utilità
Dyson, Freeman J.
|
Oracle
Home >Oracle > Checking privileges on oracle objects
Recently some colleagues did get sort of lost looking for their privileges on some other schema procedures and directories. So as requested, it follows some brief suggestions on checking user privileges on different oracle objects. Many users know that to check if a schema has privileges on another schema's table simply need to check the dictionary view user_tab_privs. For example, if USER_A creates a table and allows USER_B to query and update it:
SQLPLUS> create table t(n number);
SQLPLUS> grant select, insert on t to USEER_B;
Then schema USER_B can check his privileges on USER_A objects querying the view user_tab_privs:
SQLPLUS> select * from user_tab_privs where owner='USER_A';
But what about privileges on other objects such as procedures or directories. Following oracle naming logic, We would look for user_procedures_privs , user_directories_privs or something like that, and get just "object not found". As a matter of fact, until now (Oracle 10g), user_tab_privs, dba_tab_privs, all_tab_privs are the dictionary objects to check schemas privileges. If, for example USER_A creates a procedure and a oracle directory and allows USER_B to executing on the first, and reading, writing on the other.
SQLPLUS>create or replace procedure pro_joke as
begin
dbms_output.put_line('Just a joke');
end;
/
SQLPLUS> grant execute on pro_joke to USER_B; SQLPLUS> create or replace directory tmp_dir as '/tmp'; SQLPLUS> grant read, write on directory tmp_dir to USER_B; Now USER_B wants to check his privileges on USER_A new objects. (By the way, note carefully, the query where condition is set on grantor not on owner as before, because the owner of an Oracle directory is by default SYS).
SQLPLUS> select * from user_tab_privs where grantor='USER_A';
So [dba/all/user/]_tab_privs is the source of not only tables but objects privileges. Next question is if privileges on tables, views, procedures, functions, directories merge all in the same view tab_privs, how to know which kind of objects we have ? Answer is easy, joining to all_objects views: SQLPLUS>col owner format a12; SQLPLUS>col object format a12; SQLPLUS>col object_type format a16; SQLPLUS>col privilege format a16; SQLPLUS> select p.table_name object, o.object_type, p.privilege , p.owner from user_tab_privs p, all_objects o where p.table_name = o.object_name order by 1;
Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Tutorial ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Script ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Comandi ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Codici errore ![]() ![]() ![]() ![]() ![]() |
Cerca
Oracle...
Info:
Conversioni implicita tipi
Il web è un giovane media: infatti ha solo 10 anni di età.
Si pensi alla televisione o al cinema all'età di 10 anni. A quei tempi questi media erano primitivi, ancora alla ricerca della loro strada.
Venivano esplorati i limiti della nuova tecnologia, ma grandi progressi dovevano ancora essere raggiunti.
Oggi, i professionisti del web si trovano nella stessa fase. Sono pionieri che stanno ancora esplorando i limiti del nuovo media. Senza dubbio, i nostri nipoti, quando vedranno quello che abbiamo fatto pensaranno a qualcosa di elementare.
C'è ancora molto da scopire su quello che il Web può fare e suo come può essere utilizzato.
Jason Foss
Il web è un giovane media: infatti ha solo 10 anni di età.
Si pensi alla televisione o al cinema all'età di 10 anni. A quei tempi questi media erano primitivi, ancora alla ricerca della loro strada.
Venivano esplorati i limiti della nuova tecnologia, ma grandi progressi dovevano ancora essere raggiunti.
Oggi, i professionisti del web si trovano nella stessa fase. Sono pionieri che stanno ancora esplorando i limiti del nuovo media. Senza dubbio, i nostri nipoti, quando vedranno quello che abbiamo fatto pensaranno a qualcosa di elementare.
C'è ancora molto da scopire su quello che il Web può fare e suo come può essere utilizzato.
Jason Foss
Oracle...
Info:
Se non viene definite tablespace permanente e temporanea
Oracle...
Citazioni:
Designing an efficient Schema ...
Oracle...
Definizioni:
SCN
Oracle...
Definizioni:
Scalar Subquery
Shell scripting...
Script:
Executing arithmetic operation in shell program
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect |