ORACLE self-study notes

Source: Internet
Author: User

ORACLE self-study note: in Oracle, the three default users sys change_on_install [as sysdba] system managerscott tiger data dictionary can be used to view the system permissions of the current user. select * from user_sys_privs; select * from user_tab_privs; create user wangwu identified by wangwu; grant create session to wangwu; grant create table to wangwu; grant unlimited tablespace to wangwu; revoke permissions ...... revoke unlimited tablespace from wangwu; grant the create session to all users Public; grant create any table to public; object permission grant select on mytab to lisi; grant all on mytab to lisi ;... revoke all on mytab from lisi; set the display width: set linesize 400 to control the permission on the table column, for example: control lisi's permission to update the name column of the mytab table. grant update/insert (only these two columns are allowed. query and deletion cannot control the columns.) delete (name) on mytab to sili; query the columns that the current user has permissions on: select * from user_col_privs; permission transfer: grant alter any table to lisi with admin option; grant select on tableName Lisi with grant option; role: create role myrole; grant create session to myrole; drop role myrole; note that some system permissions cannot be directly granted to roles such as create any table, alter any table, drop any table. A table belongs to a user and a role does not belong to a user. Three authentication mechanisms for ORACLE databases: 1. operating system verification 2. password File verification 3. database verification the process of starting an ORACLE database in Linux: 1. lsnrctl start listener 2. sqlplus sys/oracle as sysdba 3. startup: user lock: alter user Username account lock user unlock: alter user Username account unlock user password expired: alter user Username password expire

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.