< previous page page_496 next page > Page 496 SELECT statement, 2 feedback from, turning off, 138 formatting returned data, 68-73 viewing bind variable contents, 237-238 semicolon (;) to end SQL statements, 34, 402 in text editors, 59 SEQUENCE operation (EXPLAIN PLAN), 292 SERVEROUT[PUT] setting, 37, 390 SET command, 367-418, 457 SET APPI[NFO] command, 404-405 SET ARRAY[SIZE] setting, 405 SET AUTO[COMMIT] command, 406 SET AUTOP[RINT] command, 386 SET AUTORECOVERY command, 354, 416 SET AUTOT[RACE] command, 292-297, 415 SET BLO[CKTERMINATOR] command, 396 SET BUF[FER] command, 396 SET CLOSECUR[SOR] command, 407 SET CMDS[EP] command, 397 SET COLSEP command, 161, 369 SET COM[PATIBILITY] command, 407 SET CON[CAT] command, 149, 410 SET COPYC[OMMIT] command, 408 SET COPYTYPECHECK command, 417 SET DEF[INE] command, 150, 411 SET DOC[UMENT] command, 387 SET ECHO command, 138, 387 SET EDITF[ILE] command, 417 SET EMB[EDDED] command, 370-372 SET ESC[APE] command, 147, 412 SET FEED[BACK] command, 84, 138, 388 spooling data to file, 164 SET FLAGGER command, 409 SET FLU[SH] command, 409 SET HEA[DING] command, 372 SET HEADS[EP] command, 372 SET INSTANCE command, 418 SET LIN[ESIZE] command, 79, 95, 373 SET LOBOF[FSET] command, 413 SET LOGSOURCE command, 416 SET LONG command, 414 SET LONGC[HUNKSIZE] command, 414 SET MAX[DATA] setting, 374 SET NEWP[AGE] command, 81-83, 374 SET NULL command, 375 SET NUMF[ORMAT] command, 375 SET NUM[WDTH] command, 376 SET PAGES[IZE] command, 81-83, 377 spooling data to files, 164 SET parameter (STORE), 464 SET PAU[SE] command, 389 SET RECSEP command, 73, 378 SET RECSEPCHAR parameter, 379 SET ROLE command, 315-316 SET SCAN command, 412 SET SERVEROUT[PUT] command, 37, 390 SET SHIFT[INOUT] command, 380 SET SHOW[MODE] command, 391 SET SPACE command, 161, 380 SET SQLBLANKLINES command, 398 SET SQLC[ASE] command, 399 SET SQLCO[NTINUE] command, 400 SET SQLN[UMBER] command, 400 SET SQLPRE[FIX] command, 401 SET SQLP[ROMPT] command, 392 SET SQLT[ERMINATOR] command, 402 SET SUF[FIX] command, 403 SET TAB command, 6, 381 SET TERM[OUT] command, 84, 108, 139, 393 prompting for values and, 127-128, 132 SET TI[ME] command, 393 SET TIMI[NG] command, 278-279, 415 SET TRIM[OUT] command, 6, 381 SET TRIMS[POOL] command, 6, 164, 382 SET TRU[NCATE] command, 382 SET UND[ERLINE] command, 383 SET VER[IFY] command, 137, 394 SET WRA[P] command, 384 setenv command (Unix), 360 SGA parameter (SHOW), 337, 420, 460 SGA (System Global Area), 337-338 SHARED parameter (STARTUP), 463 SHIFT[INOUT] setting, 380 shift-insensitive character sets, 380 shortcuts for scripts (Windows), 140-142 SHO[W] command, 337-340, 418-422, 458 SHOW ERRORS, 53, 421 SHOW LOGSOURCE, 339 SHOW PARAMETERS, 338, 459 SHOW SGA, 337-338, 460 SHOW parameter (TIMING), 280, 464 SHOW_INDEX.SQL (example), 208-211 SHOW[MODE] setting, 391 SHOW_PLAN.SQL (example), 287-289 < previous page page_496 next page > < previous page page_497 next page > Page 497 SHOW_SECURITY.SQL (example), 223-225 SHOW_SYN.SQL (example), 219-220 SHOW_TRIGGER.SQL (example), 214-216 SHUTDOWN command, 330, 334-337, 460 sign, number, 472 -S[ILENT] command-line option, 25, 423 silent mode, 25, 423 site profile script, 357-359 size font size for reports, 81 line width (reports), 79, 95, 373 page length, 81-82 PL/SQL output buffer, 37 total and subtotal label width, 101 SIZE parameter SET SERVEROUTPUT command, 391 SIZE parameter (SET SERVEROUTPUT), 37 S[KIP] clause BTITLE command, 77, 433 REPHEADER, REPFOOTER commands, 109, 453, 455 TTITLE command, 74, 465 SKI[P] clause (BREAK command), 89, 91, 432 SKI[P] PAGE clause (BREAK command), 89, 91, 432 slash (/) executing SQL buffer, 51, 53, 426 terminating PL/SQL blocks, 39 terminating SQL statements, 34 SORT operation (EXPLAIN PLAN), 292 sorting output (see ORDER BY clause) SPACE setting, 161, 380 SP[OOL] command, 3, 83-86, 165, 461 working directory, 63 SPOO[L] parameter (SHOW), 420, 460 spooling extracted data to files, 163-165 SQL, 33-35 adding to SQL buffer, 43 dynamic SQL statements, 260-262 editing with text editors, 57-60, 445 error handling, 52, 271-274, 468 executing, 51-54 feedback, 138, 164 parsing user input, 269-270 syntax rules, 33-35 validating user input, 267-269 writing SQL with, 163, 250-252, 257-259 SQL and SQL*Plus, 5 SQL buffer, 35, 40, 397 adding statements to, 43 editing with text editor, 57-60, 445 executing statements in, 51-54 line editing, 40-51 adding text to lines, 45 deleting lines, 48 inserting lines, 49-51 search-and-replace, 46-47 viewing buffer contents, 43-45 saving and retrieving, 54-57 SQL parameter (SET BUFFER), 397 SQL.PNO user variable, 78, 106 SQL.RELEASE user variable, 78 SQL.SQLCODE user variable, 78, 272, 275 SQL statements blank lines in, allowing, 398 closing cursor after execution, 407 SQL.USER user variable, 78 SQL92 syntax conformance checks, 409 SQLBLANKLINES setting, 398 SQLC[ASE] setting, 399 SQLCODE parameter (SHOW), 420, 460 SQLCO[NTINUE] setting, 400 SQLERROR parameter (WHENEVER), 271-274, 468 sqlldr command, 172 SQLLDR80 command, 172 SQL.LINO user variable, 78 SQL*Loader utility, 167-174 control file, 168-171 datatypes, 170 logging, 173-174 SQLN[UMBER] setting, 400 SQLPATH environment variable, 366 SQL*Plus command reference, 423-469 data extraction limitations, 157 environment variables for (list), 363-367 history of, 6-7 PL/SQL and (see PL/SQL) reasons for mastering, 8 SQL and, 5 starting, 14 executing scripts at startup, 25, 140-142 system variables, 78 uses for, 2-5 < previous page page_497 next page > < previous page page_498 next page > Page 498 SQLPLUS command, 18, 23, 423 command-line options, 24-26 sqlplus command, 18 command-line options, 24-26 SQL*Plus scripts (see scripts) SQLPRE[FIX] setting, 401 SQLP[ROMPT] setting, 392 SQLT[ERMINATOR] setting, 402 STAR hint, 305 STAR_TRANSFORMATION hint, 305 STA[RT] command, 61, 461 START parameter ARCHIVE LOG command, 348, 429 TIMING command, 280, 464 starting archive log process, 348 databases, 330, 332-334, 462 starting SQL*Plus, 14, 18-26 command-line options, 24-26 command-line version, 23-24 executing scripts at startup, 25, 140-142 GUI version, 19-23 starting timers, 280 STARTUP command, 330, 332-334, 462 startup scripts, 357-360 statements (see SQL) states (operational) of databases, 331 statistics of query execution, 295 STAT[ISTICS] parameter (SET AUTOTRACE), 415 STATUS column ALL_CONSTRAINTS view, 187 ALL_INDEXES view, 189 ALL_TRIGGERS view, 191 STD parameter (COMPUTE command), 98, 441 STOP parameter ARCHIVE LOG command, 429 TIMING command, 280, 464 stopping archive log process, 350 databases, 330, 334-337, 460 timers, 280, 283 STORE command, 464 stored packages, viewing information on, 178 stored procedures/functions, viewing information about, 177 strings column separators, 161, 369 date formats, 108 formatting, 473 null text setting, 375 SUBMIT procedure (DBMS_JOBS), 239 substitution (user) variables bind variables with, 230-233 changing prefix character, 151 defining, 144-146, 443 session-duration, 128-132 disabling, 150 . 498 SQLPLUS command, 18, 23, 423 command-line options, 24-26 sqlplus command, 18 command-line options, 24-26 SQL* Plus scripts (see scripts) SQLPRE[FIX] setting, 401 SQLP[ROMPT] setting, 392 SQLT[ERMINATOR]. execution, 407 SQL. USER user variable, 78 SQL9 2 syntax conformance checks, 409 SQLBLANKLINES setting, 398 SQLC[ASE] setting, 399 SQLCODE parameter (SHOW), 420, 460 SQLCO[NTINUE] setting, 400 SQLERROR. 380 SET SQLBLANKLINES command, 398 SET SQLC[ASE] command, 399 SET SQLCO[NTINUE] command, 400 SET SQLN[UMBER] command, 400 SET SQLPRE[FIX] command, 401 SET SQLP[ROMPT] command, 392 SET SQLT[ERMINATOR]