Create users of Oracle user Scott identified by Tiger;

Source: Internet
Author: User
Tags sqlplus

Sqlplus on the command line.

Log in as system, password is the system you set up

C:\users\administrator>sqlplus


Sql*plus:release 10.2.0.1.0-production on Tuesday October 14 21:29:23 2014


Copyright (c) 1982, 2005, Oracle. All rights reserved.


Please enter Username:system
Enter Password:


Connect to:
Oracle Database 10g Express Edition Release 10.2.0.1.0-production

Create user Scottpassword to Tiger after



Sql> create user Scott identified by Tiger;


The user has created.

Granting logon rights
Sql> Grant create session to Scott;


Authorization is successful.

Grant permission to create a table
Sql> Grant CREATE table to Scott;


Authorization is successful.

assigning quotas



sql> Alter user Scott quota 10m on users;


The user has changed.

change user Password

Alter user username identified by new password

Unlocking the user

Alter user Scott account unlock

Log on PL/SQL

Scott/tiger

Build table

CREATE TABLE UserInfo (
ID number,
Name varchar (20),
Age Number
)

ora-01950: No permissions on tablespace ' SYSTEM '



C:\users\administrator>sqlplus


Sql*plus:release 10.2.0.1.0-production on Wednesday October 15 07:53:13 2014


Copyright (c) 1982, 2005, Oracle. All rights reserved.


Please enter Username:system
Enter Password:


Connect to:
Oracle Database 10g Express Edition Release 10.2.0.1.0-production


Sql> Grant Connect,resource to Scott;


Authorization is successful.


Sql>

Create user for Oracle created by the identified by Tiger;

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.