Oracle create user, table space

Source: Internet
Author: User

1. First, create a (new) User:
Create user username identified by password;
Username: User name for new username
Password: New user's password
You can also not create a new user, but still use the previous user, such as: Continue to use the Scott user

2. Create TABLE spaces:
Create tablespace tablespacename datafile ' d:\data.dbf ' size xxxm;
Tablespacename: Name of table space
D:\DATA.DBF ': Table Space Storage location
The size of the XXX table space, m units in megabytes (m)

3. Assign space to the user:
Alert user username default tablespace tablespacename;
Assign a tablespace named Tablespacename to username

4. Authorization to the User:
Grant Create Session,create table,unlimited tablespace to username;

5. Then log in with the user you created, and create a table after logging in.
Conn Username/password;

/*

Create tablespace onlinevisasystem_tablesapce logging datafile ' D:\OnlineVisaSystem.dbf ' size 10000m autoextend on next 1 00m maxsize 20048m extent management local;

Create user Onlinevisasystem identified by DWJD2014 default tablespace onlinevisasystem_tablesapce temporary tablespace t Emp

Grant Connect, resource, dba to Onlinevisasystem;

Commit
*/

Oracle create user, table space

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.