Oracle Command line Exercises

Source: Internet
Author: User

1. On the premise that the environment variable is well configured, strike the command #>sqlplus
2. Enter username/password Login Oracle #> default we use first, user name: Scott, password: Tiger login
3.
A. When you log in, you can only tap Sqlplus, enter your username/password at the prompt, or you can:
#> Sqlplus/nolog
#> Conn Scott/tiger
B. If the Scott user is locked, it needs to be unlocked:

#> alter user Scott account unlock;
C. Want to see the current Scott users below a few tables, using the following SQL, in the black frequency to write SQL, need to add ";" Semicolon, otherwise the SQL is not closed: (username uppercase)
#> Select table_name from all_tables where owner = "SCOTT";
D. Want to view all tables for the current database:
#> select * from tab;
E. Exit the black screen:
#> exit

This article is from the "11044693" blog, please be sure to keep this source http://11054693.blog.51cto.com/11044693/1744821

Oracle Command line Exercises

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.