Tips for using sqlplus
During Oracle maintenance, Oracle currently has many easy-to-use client tools, such as PLSQL, delveloer, and toad. However, as a database administrator, you also need to deal with sqlplus frequently, some common operations
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
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
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>
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
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
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 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 searches for and loads two files: login. SQL and glogin. SQL. Glogin. SQL files are stored in the $ ORACLE_HOMEsqlplusadmin directory by default,
Sqlplus searches for and loads two files: login. SQL and glogin. SQL. The glogin. SQL file 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.