Common Oracle commands (1)

Source: Internet
Author: User

1. User Logon

Conn system/Manager

Conn Scott/Tiger

Ii. Change the password

Enter passw and press enter to modify the settings as prompted.

3. Switch the Login User

Conn username/password

4. display the currently logged-on user

Show user

V. Start and @ commands

For example, if the root directory of disk D contains a Lida. SQL file, the file content is select * from EMP;

Run start D: \ Lida. SQL or @ D: \ Lida. SQL to obtain the same result as if you directly input select * from EMP.

Vi. Edit command

Run edit D: \ Lida. SQL to open the Lida. SQL file. You can edit and modify the SQL text by yourself.

VII. Spool commands

Usage:

Spool D: \ AA. SQL: A file named AA. SQL is generated under drive D.

Select * from EMP; obtain the query result.

Spool off; intercept the statements on the screen and save them to the AA. SQL file;

8. Exit

Exit window

9. Set linesize

Set linesize 90; // set the display line width to 90. The default value is 80 characters.

10. pagesize

Set pagesize 5; // set the number of rows displayed on each page to 5. The default value is 14.

11. Disc [connect]

This command is used to disconnect from the current database.

 

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.