Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle user privileges

-- List privileges, including roles, for my_user
SELECT GRANTEE, PRIVILEGE AS PRIVILEGE_ROLE,
       NULL AS OWNER, NULL AS TABLE_NAME, NULL AS COLUMN_NAME,
       ADMIN_OPTION AS PRIVILEGE, 
       NULL AS GRANTABLE
FROM DBA_SYS_PRIVS WHERE GRANTEE = 'my_user'
UNION ALL
SELECT r.GRANTEE, r.GRANTED_ROLE AS PRIVILEGE_ROLE, p.OWNER, p.TABLE_NAME, 
	p.COLUMN_NAME, PRIVILEGE, p.GRANTABLE
FROM DBA_ROLE_PRIVS r LEFT JOIN ROLE_TAB_PRIVS p ON p.ROLE = r.GRANTED_ROLE
WHERE r.GRANTEE = 'my_user';
Comment

oracle privileges users

SELECT USERNAME,
       LOCK_DATE,
       EXPIRY_DATE
FROM DBA_USERS
WHERE USERNAME IN (SELECT GRANTEE
                   FROM DBA_SYS_PRIVS
                   WHERE PRIVILEGE = 'UNLIMITED TABLESPACE')
ORDER BY USERNAME;
Comment

Oracle privileges

DELETE data from a specific table.
	INSERT data into a specific table.
	CREATE a foreign key reference to the named table or to a subset of columns from a table.
	SELECT data from a table, view, or a subset of columns in a table.
	CREATE a trigger on a table.
	UPDATE data in a table or in a subset of columns in a table.
	RUN a specified function or procedure.
	USE a sequence generator or a user-defined type.
Comment

grant all privileges oracle user

GRANT ALL PRIVILEGES TO USER_NAME;
Comment

PREVIOUS NEXT
Code Example
Sql :: insert select 
Sql :: change from not null postgresql 
Sql :: how to make case insensitive in sql 
Sql :: sql order by number not ordered 
Sql :: mysql updating multiple column values from array variable 
Sql :: sql output select 
Sql :: bigquery current time 
Sql :: mysql grant user permissions 
Sql :: postgresql héritage 
Sql :: datagrip execute procedure 
Sql :: sql remove duplicate 
Sql :: connecting to postgresql on windows amd ubuntu 20.04 
Sql :: sql select most frequent value in group 
Sql :: power query datetime to date 
Sql :: mysql is odd 
Sql :: sql default constraint 
Sql :: nested select sql 
Sql :: sqlite update query python 
Sql :: postgres copy command 
Sql :: sql add calculated column 
Sql :: pl sql create function 
Sql :: insert multiple rows from another table sql 
Sql :: ORACLE CALL BACK TRACE 
Sql :: inser into example 
Sql :: compare field sql server 
Sql :: psql attribute cannot login 
Sql :: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.2.0 install script. 
Sql :: oracle INTERVAL DAY to second to number 
Sql :: sql alternative to max statement 
Sql :: codeigniter dbforge add index 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =