Help is not in sqlplus after the manual build, and the following records how to install and delete the help command in Sqlplus.
Note: The Sqlplus help command is available only when the database is open. Non-open state use help also error: Sp2-0171:
1 Sqlplus Login Log on locally (log on to the database server) Oracle Login Sqlplus account name/password as role name 1.1 SYS Login Example: Sqlplus sys/oracle ERROR: Ora-28009:connection as SYS should be as SYSDBA or sysoper SYS administrator must
After Oracle is successfully installed in Linux, start the sqlplus problem set (detailed description) and oraclesqlplus
Note: The installation of Oracle cannot be performed by the root user, but must be performed by a new user.
1. The sqlplus
Python calls SQLPlus to operate and parse the Oracle database, sqlplusoracle
Let's look at a simple example of using python to call sqlplus to output the result:
import osimport sysfrom subprocess import Popen, PIPE sql = """set linesize 400col
Oracle Study Notes: sqlplus User Logon
1 sqlplus Login
Local login (log on to the database server)
Oracle Logon
Sqlplus account name/password as role name
1.1 sys Login
Example: sqlplus sys/oracle
ERROR:
ORA-28009: connection as SYS shocould be as
1, first you have to install the Oracle database server and client software, in the installation process to be aware of, select the Oracle installation directory, remember not to use the Chinese directory or a directory with
Sqlplus automatically runs two scripts at startup: Glogin.sql, login.sql these two files
The order of execution is
1. Default to find Glogin.sql file execution under $oracle_home/sqlplus/admin path
2. Default in the current path to find Login.sql
Sqlplus cannot be initialized and sqlplus is automatically disabledFirst, install the oracle database. After installation, enter sqlplus In the cmd command window for verification. If there is something that cannot be initialized, configure it.
Let's look at a simple example of using Python to call Sqlplus to output results:
Import osimport sysfrom subprocess import Popen, PIPE sql = "" "Set linesize 400col owner for A10col object_name for A30 se Lect owner, object_name from Dba_objects
Use SQL * Plus to connect to the database and sqlplus to connect to the database
About SQL * Plus
SQL * Plus is the primary command-line interface to your Oracle database. you use SQL * Plus to start up and shut down the database, set database
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.