In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Create a user
Create user KD identified by 123456
2. Grant permissions to connect to the database
Grant connect to KD
3. Authorize the emp table of Scott users to KD to query.
Grant select on scott.emp to KD;grant create table to KD
4. Reclaim permissions
Revoke select on scott.emp from KD
5. Authorization to add, delete and modify tables
Grant select,inset,delete,update on scott.emp to KD;revoke select,inset,delete,update on scott.emp from KD
6. Delete a user
SQL error: ORA-01940: unable to delete the currently connected user
Execute after exiting a connected KD user
Drop user KD
Will prompt: error: ORA-01922: CASCADE must be specified to delete 'KD'
Drop user KD cascade
7. View the permissions of the current user
Select * from session_privs
8. View the roles owned by the current user
Select * from user_role_privs
9. View all permissions of the role
Select * from dba_sys_privs;select * from dba_sys_privs where grantee='CONNECT';--create sessionselect * from dba_sys_privs where grantee='RESOURCE';/*create trigger create sequence create type create procedure create cluster create operator create indextype create table*/select * from dba_sys_privs where grantee='DBA';-- has the highest permissions, all permissions.
Create a developer and authorize:
Create user CURRY identified by 123456 * create connet,resource to CURRY
10. User unlock
Alter user HR account unlock
11. Change the user's password
Alter user HR identified by 123456
The above is the pure Oracle users, roles and permissions-related operations introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.