Oracle Common SQL statement _oracle

Source: Internet
Author: User
1, see what users in the database?
Select username from all_users;
2. See which DBA users are in the database?
Select username from dba_users;
3. See what tables The current user owns?
Select table_name from User_tables;
4, Oracle New table space, establish user steps?
A, create a table space
Create tablespace blueskydb datafile ' D:\oracle\product\10.2.0\oradata\bluesky\blueskydb.dbf ' size 500m;
B, New user
Create user BlueSky identified by BlueSky;
C, user authorization
Grant resource, connect, recovery_catalog_owner to BlueSky;
Grant CREATE table to BlueSky;
Alter user BlueSky quota unlimited on blueskydb;
Alter user BlueSky default Tablespace blueskydb;
D, this is OK, use sqlplus or other tools to connect to try it!

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.