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
[Oracle]sqlplus Start parameter description# su-oracle [Grid]Usage 1:sqlplus-h | -V-H[ELP]:Displays the syntax and usage of the Sql*plus command, and then returns control to the operating system.-v[ersion]:Displays the version number of the Sql*plus,
Sqlplus Problems in Interactive interface
Two non-interactive ways to use Sqlplus
1 via external command file
2 via standard input
Use the pipe to do the processing
Places to watch
A simple script
1
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
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>
Sqlplus Problems in Interactive interface
Two non-interactive ways to use Sqlplus
1 via external command file
2 via standard input
Using pipelines for follow-up treatment
Places to be aware of
A simple script
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,
Use the sqlplus command line tool to create users and tablespaces for oracle, sqlplusoracle
Creating tablespaces and users and assigning permissions using the Enterprise Manager or PL/SQL graphical method that comes with Oracle10g is relatively
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.