Tải bản đầy đủ (.pdf) (10 trang)

Oracle SQL Plus The Definitive Guide- P57 pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (80.67 KB, 10 trang )

< previous page page_491 next page >
Page 491
SET SCAN command, 413
SET SERVEROUTPUT command, 390
SET SHOWMODE command, 392
SET SQLBLANKLINES command, 398
SET SQLNUMBER command, 401
SET SQLTERMINATOR command, 402
SET TAB command, 381
SET TERMOUT command, 393
SET TIME command, 394
SET TIMING command, 416
SET TRIMOUT command, 381
SET TRIMSPOOL command, 382
SET TRUNCATE command, 382
SET UNDERLINE command, 383
SET VERIFY command, 394
SET WRAP command, 384
SPOOL command, 83, 461
TITTLE command, 74, 465
OLD_V[ALUE] clause (COLUMN command), 70, 97, 439
Oldest online log sequence value, 340, 349
ON clause (COMPUTE), 101-102
ON parameter
ATTRIBUTE command, 114, 431
BTITLE command, 77, 433
COLUMN command, 70, 439
REPFOOTER command, 453
SET APPINO command, 404
SET AUTOCOMMIT command, 406
SET AUTOPRINT command, 387


SET AUTORECOVERY command, 416
SET AUTOTRACE command, 415
SET CMDSEP command, 398
SET CONCAT command, 411
SET COPYTYPECHECK command, 417
SET DEFINE command, 411
SET ECHO command, 388
SET EMBEDDED, 370
SET ESCAPE command, 412
SET FEEDBACK command, 389
SET FLUSH command, 410
SET HEADING command, 373
SET PAUSE command, 389
SET SCAN command, 413
SET SERVEROUTPUT command, 390
SET SHOWMODE command, 392
SET SQLBLANKLINES command, 398
SET SQLNUMBER command, 401
SET SQLTERMINATOR command, 402
SET TAB command, 381
SET TERMOUT command, 393
SET TIME command, 394
SET TIMING command, 416
SET TRIMOUT command, 381
SET TRIMSPOOL command, 382
SET TRUNCATE command, 382
SET UNDERLINE command, 383
SET VERIFY command, 394
SET WRAP command, 384
TTITLE command, 74, 465

OPEN parameter (STARTUP), 463
OPEN state, 332
OPEN_CURSOR procedure (DMBS_SQL), 260
operating system authentication, 19
connecting using, 25
operating systems, xviii
allowing output buffers, 409
errors, 274-276, 468
setting environment variables, 360-363
operational settings, 403-410
operational states of databases, 331
optimizer, 277
optimizer goal hints, 302
OPTIONALLY ENCLOSED BY clause (SQL*Loader), 170
Oracle BIN directory, 63
Oracle databases (see databases)
Oracle version, specifying, 407
ORDER BY clause
BREAK command with, 90
union output, 120
ORDERED hint, 305
OSERROR parameter (WHENEVER), 271, 274-276, 468
OUT parameter
SPOOL command, 461
OUT parameter (SPOOL command), 83
output from PL/SQL execution, 37, 390
output, scripts
allowing operating system buffers, 409
displaying case, 380
echoing

commands, turning off, 138, 387
multiline comments, 152
explaining with PROMPT commands, 136

< previous page page_491 next page >
< previous page page_492 next page >
Page 492
output, scripts (continued)
pausing between pages, 389
prompt text, customizing, 135-137
settings for, 368-385
suppressing from display
feedback, 138, 164
prompting for values and, 127, 132
verification, 137, 394
trailing spaces, suppressing, 164, 381
types of output files, 156-157
wrapping lines, 37, 384, 473
output sorting (see ORDER BY clause)
OWNER column
ALL_CONS_COLUMNS view, 187
ALL_CONSTRAINTS view, 186, 202
ALL_INDEXES view, 188
ALL_SYNONYMS view, 192
ALL_TAB_COLUMNS view, 185
ALL_TABLES view, 183
ALL_TRIGGERS view, 190
P
packages
bind variables with, 238-240

viewing information about, 178
packaging scripts, 139-143
page breaks in reports, 86, 88-89, 431
page headers and footers (reports), 74-80, 432, 465
current date in, 106-108
embedded reports and, 371
user variables, 94, 97
pages, report (see reports)
PAGES[IZE] setting, 81-83, 377
spooling data to files, 164
paging though output, 389
parallel execution hints, 307
PARALLEL hint, 307
PARALLEL parameter
RECOVER command, 452
STARTUP command, 463
parallel processing, 307
PARALLEL_INDEX hint, 307
PARAMETER[S] parameter (SHOW), 338, 419, 459
PARSE procedure (DBMS_SQL), 261
parsing user input, 269-270
PARTITION operation (EXPLAIN PLAN), 291
PARTITIONED column
ALL_INDEXES view, 189
ALL_TABLES view, 184
PASSW[ORD] command, 27, 448
password file, 327
passwords, changing, 27, 448
PAU[SE] command, 449
PAU[SE] setting, 389

pausing between output pages, 389
PCT_FREE column
ALL_INDEXES view, 188
ALL_TABLES view, 183
PCT_INCREASE column
ALL_INDEXES view, 188
ALL_TABLES view, 183
PCT_THRESHOLD column (ALL_INDEXES), 188
PCT_USED column (ALL_TABLES), 183
performance
AUTOTRACE setting, 292-297
dynamic performance views, 293
EXPLAIN PLAN command, 277, 283-292
creating plan table, 284
judging results, 298
syntax for, 285
understanding execution plans, 286-292
improving, 297-308
SET LONGC[HUNKSIZE] command, 414
timers, 277-283
tuning settings, 414-416
period (.)
concatenation character, 149-150
terminating PL/SQL blocks, 39
PFILE clause (STARTUP), 333, 462
plan table, 283-285
interpreting, 286-292
platforms, xviii
operating system errors, 274-276, 468
setting environment variables, 360-363

PL/SQL, 4-5, 35-39
blocks, 36
execution errors, 271-274, 468
syntax for, 38
terminators for, 396
branching, 252-254
command help, 28
error handling, 271

< previous page page_492 next page >
< previous page page_493 next page >
Page 493
executing
blocks, 36-39
output from, 37, 390
single PL/SQL commands, 39, 445
looping, 259-262
product user profile limitations, 313
timing execution (see timers)
PL/SQL mode, 38
PLUS23 command, 24
PLUS80 command, 24-25
PLUS80 environment variable, 366
PLUS80W command, 25
PLUS_DFLT environment variable, 367
PLUSTRACE role, 294
PLUSTRCE.SQL script, 293
PNO parameter (SHOW), 419, 459
point-in-time recovery, 344
POSITION column (ALL_CONS_COLUMNS), 187, 201

position specification (SQL*Loader), 171
prefix character, 401
prefix character for substitution variables, 411-412
primary key constraints, 201
columns specified in, 187, 200
PRI[NT] command, 233-237, 449
PRI[NT] parameter (COLUMN command), 70, 439
printing
computed values in reports, 99
reports, 83-86, 461
lines per page, 81-82
(see also reports)
subtotals and grand totals, 99-106
printing variables, 233-238
CLOB datatype, 235-236
REFCURSOR datatype, 236-237
printspecs, 76
private synonyms, 218
PRIVILEGE column
ALL_COL_PRIVS view, 193
ALL_TAB_VIEWS view, 193
privileges, 222-225
ALL_TAB_PRIVS view, 192, 222
loading sample database for book, 13
PRO80 environment variable, 366
procedures
bind variables with, 238-240
viewing information about, 177
product user profile, 23, 309-325
commands that can be disabled, 318

creating profile table, 316-318
disabling commands access, 318-320
disabling roles access, 320-321
limitations, 313-316
reporting on, 322-325
PRODUCT_PRIVS view, 310-311
PRODUCT_PROFILE table, 309-310
creating, 316-318

×