Create an Oracle user createuserscottidentifiedbytiger;

Source: Internet
Author: User

Create an Oracle user createuserscottidentifiedbytiger;

Sqlplus in the command line

Log On As A system user. The password is your own system.

C: \ Users \ Administrator> sqlplus

SQL * Plus: Release 10.2.0.1.0-Production on Tuesday October 14 21:29:23 2014

Copyright (c) 1982,200 5, Oracle. All rights reserved.

Enter the User name: system
Enter the password:


Connect:
Oracle Database 10g Express Edition Release 10.2.0.1.0-Production

Create the user scott and set the password to tiger.

SQL> create user scott identified by tiger;

The user has been created.

Grant logon permission
SQL> grant create session to scott;

Authorization successful.

Grant table creation permission
SQL> grant create table to scott;

Authorization successful.

Allocate quota

SQL> alter user scott quota 10 m on users;

The user has changed.

Change User Password

Alter user Username identified by new password

Unlock a user

Alter user scott account unlock

Log on to pl/SQL

Scott/tiger

Create a table

Create table userinfo (
Id number,
Name varchar (20 ),
Age number
)

Ora-01950: Table space 'system' has no permission

C: \ Users \ Administrator> sqlplus

SQL * Plus: Release 10.2.0.1.0-Production on Wednesday October 15 07:53:13 2014

Copyright (c) 1982,200 5, Oracle. All rights reserved.

Enter the User name: system
Enter the password:

Connect:
Oracle Database 10g Express Edition Release 10.2.0.1.0-Production

SQL> grant connect, resource to scott;

Authorization successful.

SQL>

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.