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
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
Use of oracle sqlplus 1. log on to sqlplus www.2cto.com oracle @ omu:> sqlplus/assysdba oracle @ omu:> sqlplus sys/oracle as sysdba 2 as a system administrator. connect to the database (You need to log on to sqlplus first) SQL> conn cgp_1/cgp_1 SQL>
Several cases of sqlplus and shell passing value to each otherScenario One: The simplest invocation of sqlplus in the shell$cat test.sh#!/bin/shSqlplus Oracle/[email Protected]>file.log SELECT * from Test;ExitEOF #注意EOF要顶格写$sh test.sh$cat
1. Brief Introduction:
Oracle's Sql*plus is a client tool that interacts with Oracle. In Sqlplus, you can run the Sqlplus command and the Sqlplus statement, and the DML, DDL, and DCL statements that we normally refer to are sqlplus statements that,
In many cases, Oraclehang causes sqlplus to be unable to connect, and thus the Oracle system and process status cannot be obtained, which leads to a lack of a strong foundation for problem locating. Fortunately, Orac
In many cases, Oracle hang
frequently used:
Sqlplus Username/password such as: normal user login Sqlplus Scott/tiger
sqlplus username/[email protected]net_service_name such as: Sqlplus Scott/[email protected]
Sqlplus Username/password as SYSDBA: Sqlplus sys/admin as
frequently used:
Sqlplus Username/password such as: normal user login Sqlplus Scott/tiger
sqlplus username/[email protected]net_service_name such as: Sqlplus Scott/[email protected]
Sqlplus Username/password as SYSDBA: Sqlplus sys/admin as
SELECT * FROM dept;Input order by dname; Append text command del n DELETE statementCelar buffer; command to clear the bufferConn SYS as SYSDBA login userTypically, Sqlplus is installed by default as long as the server-side or client of Oracle is
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.