SQL * PLus help manual for SP2-0171)

Source: Internet
Author: User
For masters who often work under SQL * Plus, they always query the help commands of SQL * Plus from time to time. Too many.

For masters who often work under SQL * Plus, they always query the help commands of SQL * Plus from time to time. Too many.

For masters who often work under SQL * Plus, they always query the help commands of SQL * Plus from time to time. It's too much to remember. The help Command is provided in SQL * Plus to help describe the usage of all commands. Hey, you no longer need to check SQL * Plus reference. By default, the help manual for SQL * Plus is not installed for Oracle 10 Gb. You need to install it manually. The same installation method is used in Oracle 10/11g. The following describes how to install and use help.

1. Install sqlplus help

System @ CNMMBO> help
SP2-0171: HELP system not available.

Robin @ SZDB: ~> Cd $ ORACLE_HOME/sqlplus/admin/help -- the script path is in the ORACLE_HOME, sqlplus/admin/hlep directory.
Robin @ SZDB:/users/oracle/OraHome10g/sqlplus/admin/help> ls
Helpbld. SQL helpdrop. SQL helpus. SQL hlpbld. SQL

Robin @ SZDB:/users/oracle/OraHome10g/sqlplus/admin/help> head-40 hlpbld. SQL
--
-- Copyright (c) Oracle Corporation 1983,200 3. All Rights Reserved.
--
-- NAME
-- Hlpbld. SQL
--
-- DESCRIPTION
-- Builds the SQL * Plus HELP table and loads the HELP data from
-- Data file. The data file must exist before this script is run.
--
-- USAGE
-- To run this script, connect as SYSTEM and pass the datafile to be
-- Loaded as a parameter e.g.
--
-- Sqlplus system/ @ Hlpbld. SQL helpus. SQL
--
--

Define datafile = & 1

--
-- Create the HELP table
--

Drop table help;
CREATE TABLE HELP
(
TOPIC VARCHAR2 (50) not null,
Seq number not null,
INFO VARCHAR2 (80)
) PCTFREE 0 STORAGE (INITIAL 48 k pctincrease 0 );

Grant select on help to public;

--
-- Insert the data into HELP.
--

@ & DATAFILE

System @ CNMMBO> @ $ ORACLE_HOME/sqlplus/admin/help/hlpbld. SQL helpus. SQL
DROP TABLE HELP
*
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

Grant succeeded.
...

Commit complete.

View dropped.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.