Oracle logs on with Scott users

Source: Internet
Author: User

Oracle has 3 types of users:

System, SYS, Scott, where system and SYS differ in the ability to create databases, the SYS user logs in to create a database, and Scott is the user who learns from the novice, who can log on to the system with Scott, noting that after the Scott user logs in, You can use Oracle-provided databases and datasheets, which are provided by Oracle, and learners do not need to create their own databases and datasheets to practice SQL directly using these databases and data tables

OK, we open sql*plus, log in with Sys

Note By default, the Scott user is locked, so we have to log in with the SYS user and then unlock it.

Conn/as SYSDBA


SYS login, you can unlock the

Alter user Scott account unlock

OK, log in with the Scott user

Conn Scott/tiger

Note that the passwords are all Tiger's!

At this point we can use Show user to view the logged in user, Scott can directly practice

Show user

Enter show EMP, test, can show instructions for login success, can be practiced, EMP is a data table provided by Oracle

Show EMP;



Oracle logs on with Scott users

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.