disabling commands, 318-320 limiting roles access, 320-321 PROJECT entity (sample database), 10 PROJECT table (sample database), 11 data of, 12 PROJECT_HOURS entity (sample database), 10 PROJECT_HOURS table (sample database), 11 data of, 12 PROJECTION operation (EXPLAIN PLAN), 292 PROMPT clause (ACCEPT), 133, 427 PRO[MPT] command, 132, 135-137, 449 annotating scripts, 135, 165 prompt, SQL*Plus (see command prompt) prompting users for values, 124-137 display text for, 135-137 extract scripts, 165 session-duration definitions, 128-132 TERMOUT setting and, 127, 132 public synonyms, 218 PUPBLD.SQL script, 316-318 PUSH_SUBQ hint, 308 Q queries, 33-35 execution plan (see EXPLAIN PLAN command) formulating designing reports, 67 extracting data, 158 rewriting to improve performance, 299 testing with bind variables, 242 timing (see timers) unions, 117-121 QUIT command, 450 quitting (see exiting) < previous page page_493 next page > < previous page page_494 next page > Page 494 R R (RUN) command, 51, 53, 456 RAISE_APPLICATION_ERROR procedure (DBMS_STANDARD), 273 R_CONSTRAINT_NAME column (ALL_CONSTRAINTS), 186, 202 RDBMS80 environment variable, 366 record separators, 73, 378-379 RECOVER command, 451 autorecovery and, 354 RECOVER DATABASE, 353, 451 RECOVER DATAFILE, 354, 451 RECOVER TABLESPACE, 354 RECOVER parameter (STARTUP), 463 recovery process, 340, 344, 351-355 archiving, 345-351 autorecovery, 354, 416 full database recovery, 352 restoring from cold backups, 342 RMAN (Recovery Manager), 355 tablespace and datafiles, 353 viewing information on, 339, 416 RECSEP setting, 73, 378 RECSEPCHAR parameter, 379 recursive execution, 255-257 Redo Buffers value, 338 redo log files, saving, 345-351 re-enabling commands, 320 re-enabling roles, 321 REFCURSOR datatype, 230, 468 bind variables with, 240-241 printing, 236-237 simulating branching with, 245-248 REFERENCING_NAMES column (ALL_TRIGGERS), 191 REGEDIT program (Windows), 361 registering command files, 404-405 REL[EASE] parameter (SHOW), 420, 459 reloading extracted data, 155, 167-174 logging, 173-174 REM[ARK] command, 152, 452 remote databases, connecting to, 20, 22, 24 REMOTE operation (EXPLAIN PLAN), 292 REPF[OOTER] command, 109-111, 452 REPF[OOTER] parameter (SHOW), 420, 459 REPH[EADER] command, 109-111, 454 REPH[EADER] parameter (SHOW), 420, 459 REP[LACE] parameter COPY command, 436 SAVE command, 55, 456 STORE command, 464 REPORT parameter BREAK command, 89, 431 COMPUTE command, 99, 102-106, 442 reporting on execution plan, 283-292 AUTOTRACE setting, 292-297 creating plan table, 284 improving results, 297-308 interpreting results, 286-292 judging results, 298 reports, 65-121 column formatting, 68-73 embedded, 370-372 example of generating, 66-86 executing, 85 formulating queries for, 67 headers and footers, 109-111 line width (linesize), 79, 95, 373 master/detail reports, 93-97 methodology for developing, 65 object column formatting, 111-115 output and format settings, 368-385 page and line breaks, 86, 88-89, 431 page format, 81-83 page headers and footers, 74-80, 432, 465 current date in, 106-108 embedded reports and, 371 user variables, 94, 97 printing or saving to file, 83-86, 461 saving scripts for, 66 sorting output (see ORDER BY clause) summary reports, 115-116 suppressing duplicate column values, 89 totals and subtotals, 97-106 unions with, 117-121 word wrap, 384 resolution of timers, 278 restoring lost databases, 340 from cold backups, 342 from hot backups (recovery), 344, 351-355 RMAN (Recovery Manager), 355 viewing recovery information, 339, 416 < previous page page_494 next page > < previous page page_495 next page > Page 495 RESTRICT parameter (STARTUP), 333, 462 retrieving SQL buffer, 54-57 RETRY parameter (STARTUP), 463 R[IGHT] parameter BTITLE command, 77, 433 REPHEADER, REPFOOTER commands, 109, 453, 455 TTITLE command, 75, 466 RMAN (Recovery Manager), 355 ROLE setting, 315-316 roles administrative, 327 disabling, 320-321 limitations of, 314-316 ROLLBACK option (WHATEVER), 272, 275 ROLLBACK parameter EXIT command, 446 QUIT command, 450 WHENEVER command, 469 rollbacks at shutdown, 336, 460 ROW parameter BREAK command, 88, 431 COMPUTE command, 99, 442 ROWID hint, 303 R_OWNER column (ALL_CONSTRAINTS), 186, 202 RULE hint, 302 R[UN] command, 51, 53, 456 S -S (SILENT) command-line option, 25, 423 sample database in this book, 9-17 data model (ERD), 10 data of, 11-13 loading, 13-17 tables, 11 SAMPLE_SIZE column ALL_INDEXES view, 189 ALL_TAB_COLUMNS view, 186 ALL_TABLES view, 184 SAV[E] command, 55, 456 working directory, 63 saving report-generation scripts, 66 reports as files, 83-84 SQL buffer, 54-57 SCAN setting, 412 SCR[EEN] parameter (CLEAR), 435 scripting languages, 254 scripts, 122-154 annotating with PROMPT, 135, 165 command echoing, turning off, 138, 387 commenting, 151-154 to construct sample database, 14 executed at startup, 357-360 executing, 61-62 executing at startup, 25, 140-142 executing with @ command, 62, 425 executing with @@ command, 426 extracting data (see extracting data; reloading extracted data) feedback, turning off, 138, 164 output and format settings, 368-385 output from (see output, scripts) packaging, 139-143 prompting users for values, 124-137 display text for, 135-137 extract scripts, 165 session-duration definitions, 128-132 TERMOUT setting and, 127, 132 reasons to write, 122 recursive execution, 255-257 report-generation (see reports) search path for, 366 substitution (user) variables, 123-132 timing (see timers) user input (see user input) verification, turning off, 137, 394 search path, setting, 366 search-and-replace line editing, 46-47 substitution (user) variables reports, 93-94 scripts 123-132 within comments, 153 SEARCH_CONDITION column (ALL_CONSTRAINTS), 186, 201 security password file, 327 passwords (see passwords) product user profile, 23, 309-325 creating profile table, 316-318 disabling commands access, 318-320 disabling roles access, 320-321 limitations, 313-316 reporting on, 322-325 table privileges, 222-225 ALL_TAB_PRIVS view, 222 < previous page page_495 next page > . clause (ACCEPT), 133, 427 PRO[MPT] command, 132, 135-137, 449 annotating scripts, 135, 165 prompt, SQL* Plus (see command prompt) prompting users for values, 124-137 display text for, 135-137 extract. 165 session-duration definitions, 128-132 TERMOUT setting and, 127, 132 public synonyms, 218 PUPBLD .SQL script, 316-318 PUSH_SUBQ hint, 308 Q queries, 33-35 execution plan (see EXPLAIN PLAN command) formulating designing. previous page page_495 next page > Page 495 RESTRICT parameter (STARTUP), 333, 462 retrieving SQL buffer, 54-57 RETRY parameter (STARTUP), 463 R[IGHT] parameter BTITLE command, 77, 433 REPHEADER,