Oracle permission command

Source: Internet
Author: User
Tags administrator password

 

Oracle permission command favorites

 

Default User and password in Oracle9i:

Sys/change_on_install [as sysdba],

System/Manager

Scott/Tiger

 

 

1. permission management

 

DBA login Conn/As sysdba

 

Create user myusername identified by mypassword

Grant create session to myusername

Grant create table to myusername

Authorize tablespace grant unlimited/default/template tablespace to myusername

 

Revoke User Permissions revoke create table from myusername

 

View the system permission of the current user select * From user_sys_privs

 

2. Object Permissions

 

Grant select on TB to myusername

Grant insert on TB to myusername

Grant all permissions on TB to myusername

Revoke all permissions revoke all on TB to myusername

 

Grant permissions to all grant create any table to public

 

Grant column permission Update (name) on TB to myusername

 

View the permissions of the current user object select * From user_tb_privs

View the select * From user_col_privs permission of the authorized user Column

 

3. Transfer Permissions

 

Grant alter ant table to myusername

Grant alter any table to myusername with admin Option

Grant alter any table to myusername with grant option

 

 

4. Role (Set of permissions)

 

Create role myrole

Grant create table to myrole permissions to a role

Grant create session to myrole

...........................

Grant the role to the user grant myrole to myusername

Delete role drop role myrole

 

5. Three login verification mechanisms

 

· Operating System verification

· Password File Verification

· Database Verification

 

Alter user myusername identified by bbb

 

User locks alter user myusername account lock

Unlock alter user myusername account unlock

 

User password expired immediately alter user myusername password expire

 

Administrator Password loss orapwd file = C:/Oracle/ora92/database/pwdora9i. ora Password = KKK entries = 10

 

Delete a user and cascade all resources of the User: Drop user myusername cascade;

 

[Start the Oracle listener and start the Oracle instance]

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.