1. What is sqlplus? Sqlplus is an interactive tool for batch query. Sqlplus is installed for each oracle database. Sqlplus works in the command line mode. SQL * Plus has its own command set and environment. Sqlplus provides users with a way to
Our usual DML, DDL, and DCL statements are sql*plus statements that, when executed, can be stored in an area of memory called SQL Buffer, and can only hold a recently executed SQL statement, and we can save SQL in SQL buffer Statements are modified
Basic Oracle Tutorial: SQLPLUS Environment command. Commonly Used commands of sqlplus when an SQL statement is entered, SQL is cached in SQLPLUS. This cache is small and only one SQL statement can be allowed.
Basic Oracle Tutorial: SQLPLUS
The DML, DDL, and DCL statements we usually call are SQL * plus statements. After they are executed, they can be stored in a memory area called SQL buffer, in addition, only one SQL statement can be saved recently. We can modify the SQL statement
when an Oracle database is installed successfully, related database information is displayed:
Global Database name: Oracle
System identifier (SID): Oracle
Server parameter filename: C:\oracle\product\10.2.0\db_1/dbs/spfileoracle.ora
The Database
Once the oracle database is successfully installed, the related database information is displayed: Global Database Name: oracleSystem identifier (SID): oracleServer parameter file name: c: \ oracle \ product \ 10.2.0 \ db_1/dbs/spfileoracle.
Sqlplus provides many common commands. The following describes how to use them.
1-> sqlplus login and exit
Sqlplus-H |-v-H displays the version and help information of sqlplus, and-V displays the login Syntax of its version information:
Is :
Common commands:Connection SqlplusCommand line to run CMD entry, such as logging in the SYS mode, the command is as follows:(1). Sqlplus "sys/zhb126 as SYSDBA"(2). Sqlplus/nolog Connect sys/zhb126 as Sysdba(3). Sqlplus Scott/tigerStart a DB
Common commands:Connect to sqlplusRun CMD in the command line to enter. For example, to log on in SYS mode, the command is as follows:(1). sqlplus "sys/zhb126 as sysdba"
(2). sqlplus/nolog connect sys/zhb126 as sysdba
(3). sqlplus Scott/Tiger
Start
Sqlplus Editing command line usageKeywords: Oracle sqlplus command-line usageOracle database has a lot of query tools, such as the famous plsql, accustomed to the graphical interface, and then face the character interface Sqlplus is really a torture,
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.