资料整理——SQLPLUS Reference Guide 11.2 (SQLPLUS参考手册)目录

这几天,利用空闲时间,将通读了一遍。现将目录整理如下:

参考资料:

SQL*Plus® User's Guide and Reference

https://docs.oracle.com/cd/E11882_01/server.112/e16604/toc.htm

SQLPLUS Reference Guide 11.2 TOC Items
Contents
Preface 
Audience
Documentation Accessibility 
Related Documents 
Conventions 
What’s New in SQL*Plus?
New Features in SQL*Plus Release 11.2
SQL*Plus Quick Start 
SQL*Plus Resources 
SQL*Plus Overview 
SQL*Plus Prerequisites 
Starting SQL*Plus Command-line 
Starting SQL*Plus Instant Client 
Connecting to a Different Database
Sample Schemas and SQL*Plus
Running your first Query
Exiting SQL*Plus 
Part I SQL*Plus Getting Started
1 SQL*Plus User Interface
The Command-line Screen
Changing the Command-line Font and Font Size 
2 Configuring SQL*Plus
SQL*Plus Environment Variables
SQLPATH Registry Entry 
SQL*Plus Configuration
Site Profile 
User Profile
Storing and Restoring SQL*Plus System Variables
Installing Command-line Help 
Configuring Oracle Net Services 
3 Starting SQL*Plus
Login Username and Password 
Secure External Password Store
Expired Password 
Changing your Password 
Connecting to a Database 
Net Service Name
Full Connection Identifier
Easy Connection Identifier 
Connectionless Session with /NOLOG
Starting SQL*Plus 
Starting Command-line SQL*Plus
Getting Command-line Help
Exiting SQL*Plus Command-line 
SQLPLUS Program Syntax 
Options 
Logon 
Start 
Part II Using SQL*Plus
4 SQL*Plus Basics
Entering and Executing Commands 
The SQL Buffer 
Executing Commands 
Listing a Table Definition
Listing PL/SQL Definitions
Running SQL Commands
Understanding SQL Command Syntax 
Running PL/SQL Blocks 
Creating Stored Procedures
Running SQL*Plus Commands
Understanding SQL*Plus Command Syntax 
System Variables that Affect How Commands Run
Stopping a Command while it is Running 
Running Operating System Commands
Pausing the Display
Saving Changes to the Database Automatically 
Interpreting Error Messages
5 Using Scripts in SQL*Plus
Editing Scripts
Writing Scripts with a System Editor
Editing Scripts in SQL*Plus Command-Line 
Listing the Buffer Contents
Editing the Current Line 
Appending Text to a Line 
Adding a New Line
Deleting Lines 
Placing Comments in Scripts 
Using the REMARK Command
Using /*
Using -- 
Notes on Placing Comments 
Running Scripts 
Running a Script as You Start SQL*Plus
Nesting Scripts
Exiting from a Script with a Return Code 
Defining Substitution Variables 
Using Predefined Variables
Using Substitution Variables 
Where and How to Use Substitution Variables
Avoiding Unnecessary Prompts for Values 
Restrictions 
System Variables 
Passing Parameters through the START Command
Communicating with the User
Receiving a Substitution Variable Value 
Customizing Prompts for Substitution Variable 
Sending a Message and Accepting Return as Input 
Clearing the Screen 
Using Bind Variables 
Creating Bind Variables 
Referencing Bind Variables
Displaying Bind Variables 
Using REFCURSOR Bind Variables
6 Formatting SQL*Plus Reports
Formatting Columns
Changing Column Headings
Formatting NUMBER Columns
Formatting Datatypes
Copying Column Display Attributes 
Listing and Resetting Column Display Attributes
Suppressing and Restoring Column Display Attributes
Printing a Line of Characters after Wrapped Column Values 
Clarifying Your Report with Spacing and Summary Lines 
Suppressing Duplicate Values in Break Columns
Inserting Space when a Break Column's Value Changes
Inserting Space after Every Row
Using Multiple Spacing Techniques
Listing and Removing Break Definitions 
Computing Summary Lines when a Break Column's Value Changes
Computing Summary Lines at the End of the Report 
Computing Multiple Summary Values and Lines 
Listing and Removing COMPUTE Definitions 
Defining Page and Report Titles and Dimensions
Setting the Top and Bottom Titles and Headers and Footers
Displaying System-Maintained Values in Titles 
Listing, Suppressing, and Restoring Page Title Definitions 
Displaying Column Values in Titles 
Displaying the Current Date in Titles 
Setting Page Dimensions
Storing and Printing Query Results 
Creating a Flat File 
Sending Results to a File 
Sending Results to a Printer
7 Generating HTML Reports from SQL*Plus
Creating Reports using Command-line SQL*Plus 
Creating Reports
Suppressing the Display of SQL*Plus Commands in Reports 
HTML Entities 
8 Tuning SQL*Plus
Tracing Statements 
Controlling the Autotrace Report 
Execution Plan 
Statistics 
Collecting Timing Statistics 
Tracing Parallel and Distributed Queries
Execution Plan Output in Earlier Databases
SQL*Plus Script Tuning
COLUMN NOPRINT 
SET APPINFO OFF
SET ARRAYSIZE
SET DEFINE OFF 
SET FLUSH OFF
SET LINESIZE
SET LONGCHUNKSIZE
SET PAGESIZE 
SET SERVEROUTPUT
SET SQLPROMPT 
SET TAB
SET TERMOUT
SET TRIMOUT ON
SET TRIMSPOOL ON 8-10
UNDEFINE 
9 SQL*Plus Security
PRODUCT_USER_PROFILE Table
Creating the PUP Table 
PUP Table Structure
Description and Use of PUP Columns
PUP Table Administration
Disabling SQL*Plus, SQL, and PL/SQL Commands 
Creating and Controlling Roles
Disabling SET ROLE
Disabling User Roles
Disabling Commands with SQLPLUS -RESTRICT
Program Argument Security
10 Database Administration with SQL*Plus
Overview
Introduction to Database Startup and Shutdown
Database Startup 
Database Shutdown
Redo Log Files
ARCHIVELOG Mode 
Database Recovery 
11 SQL*Plus Globalization Support
Configuring Globalization Support in Command-line SQL*Plus
SQL*Plus Client 
Oracle Database
NLS_LANG Environment Variable 
Viewing NLS_LANG Settings
Setting NLS_LANG 
1)rpm格式包安装配置 1.1 下载以rpm后缀名的包,以11.2.0.4.0 版本为例,其中基础包basic、sql*plus、devel包建议默认下载,其他包视情况而定: oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm --基础包,为了运行OCI、OCCI、JDBC-OCI 这几个应用程序; oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm --补充包/文件,是为了运行sql*plus 的即时客户端; oracle-instantclient11.2-odbc-11.2.0.4.0-1.x86_64.rpm --补充包/文件,为运行ODBC环境附加库; oracle-instantclient11.2-jdbc-11.2.0.4.0-1.x86_64.rpm --补充JDBC下的XA、国际标准、行集操作; oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm --包含头文件和示例文件,为开发Oracle应用程序的即时客户端; 1.2 使用rpm -ivh [包名] 进行安装, 如:rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm 安装的文件默认放在两个位置: 头文件:/usr/include/oracle/11.2/client64/ 下,如果在使用时报错找不到头文件,记得看路径是否是这个。 包文件:/usr/lib/oracle/11.2/client64/ 下,包含{bin、lib}两个文件夹; 1.3 创建文件夹: #mkdir -p /usr/lib/oracle/11.2/client64/network/admin/ 1.4 创建监听文件,并添加内容 #vim /usr/lib/oracle/11.2/client64/network/admin/tnsnames.ora ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = *IP*)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = *SID*) ) ) 1.5 配置环境变量 #vim ~/.bashrc --根目录下为全局使用,为限制用户权限,可只修改某一用户的环境变量 export ORACLE_HOME=/usr/lib/oracle/11.2/client64 export TNS_ADMIN=$ORACLE_HOME/network/admin export NLS_LANG='simplified chinese_china'.ZHS16GBK export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:$PATH 1.6 使配置完的环境变量生效 #source ~/.bashrc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值