Oracle's use

Source: Internet
Author: User

Start:

1.win+r---> cmd-----> sqlplus "/as sysdba"//Log in as sysdba (You can create users, assign permissions, etc.)

Win+r---> cmd-----> Sqlplus username/password//Login with specified username / password

Win+r---> cmd-----> Sqlplus

Follow the prompts to enter the user name password

Locate the installation directory directly and open the sqlplus terminal.

2. Create a User:

Create user username identified by password

3. Grant Permissions:

Grant Resource , connect touser;

Resource

Create Trigger

Create sequence

Create type

CREATE PROCEDURE

Create cluster

Create operator

Create Indextype

CREATE table

Connect

Create session

4. Switch Users:

Conn Username/password

5. Import test data:

because the default locale for the data file is English , the current Windows system is Chinese, the English time display is inconsistent, the import fails, and the locale needs to be modified first

Alter session set Nls_date_language=english;

Alter session set Nls_language=english;

@ e:\oracle\summit2.sql

Start E:/oracle/summit2.sql

6. View the table structure:

DESC table_name;

Oracle's use

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.