Notes on common Oracle commands and common oracle commands

Source: Internet
Author: User

Notes on common Oracle commands and common oracle commands

Login without a password: sys as sysdba


View all current databases: select */name from v $ database;


View the current database connection user: show user


View All Tables of the current data: select table_name from all_tables;


View Structure: for example, table structure: desc table1 -- in command window mode


Create user username identified by password

Authorization: grant dba to username


Change Database user password: alter user username identified by password


View all users in the database, provided that you have dba permissions, such as sys, system: select * from dba_users


View All Users you can manage: select * from all_users

View Current user information: select * from user_users

Export: exp system/manager @ TEST file = d: \ daochu. dmp full = y

Import: imp system/manager @ TEST file = d: \ daochu. dmp

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.