Apress.Expert.Oracle.Database.Architecture.9i.and.10g.Programming.Techniques.and.Solutions.Sep.2005

rekharaghuram
from rekharaghuram More from this publisher
05.11.2015 Views

■INDEX 711 E embedded newlines, loading data with overview, 663 using character other than a newline, 663–64 using FIX attribute, 664–67 using STR attribute, 668–69 using VAR attribute, 667 EMNn (event monitor processes), 180 EMP data, 372 EMP table, 22, 278–80, 356, 358, 391, 395, 453, 456 EMP_AUDIT trigger, 278 EMP_TAB_TYPE table type, 392 EMP_TYPE object type, 392 EMPNO column, 392, 401 EMPNO primary key, 188–89 EMPS column, 394 EMPS_NT index, 398 EMPS_NT nested table, 400 EMPTY_CLOB( ) routine, 671 ENABLE STORAGE IN ROW, 544 end-of-file (EOF), 675 Enhanced conformance, SQL99, 30 ENQUEUE_RESOURCES parameter, 202–3 enqueues. See internal locks Enterprise JavaBeans (EJB), 6 ENTIRE_LINE column, 660 ENTIRE_LINE field, 657 :ENTIRE_LINE variable, 661 entity-relationship diagram (ERD), 36 ETL (extract, transform, load) routine, 432 exclusive DDL locks, 218 EXCLUSIVE setting, 104 exec( ) function, 61 EXP tool, 495 EXP(DP)/IMP(DP), 108–10, 692 explicit conversion, 504 extensible indexing. See application domain indexes extent trimming and dictionary-managed tablespaces, 631 and locally-managed tablespaces, 631 extent trimming with UNIFORM vs. AUTOALLOCATE locally-managed tablespaces, 634–37, 639 setting up, 632–33 overview, 629–31 extents, 90–91 external tables, 86, 111, 338, 649 dealing with errors, 687–88, 690 multiuser issues, 691–92 overview, 680–81 setting up, 682–85, 687 using to load different files, 690 EXTERNAL_TABLE parameter, 632, 682 extract, transform, load (ETL) routine, 432 EXTRACT built-in function, 537 F FAST FULL SCAN, 438 FIELDS TERMINATED BY clause, 654, 657 FIELDS TERMINATED BY ','option, 651 FIELDS TERMINATED BY parameter, 684 FIELDS TERMINATED BY X'09', 655 FILE/BLOCK, 384 files alert file, 85–88 change tracking file, 106 control files, 98 data files brief review of file system mechanisms, 89–90 dictionary-managed and locally-managed tablespaces, 94–95 overview, 88 storage hierarchy in Oracle database, 90–93 data pump files, 110–13 DMP Files (EXP/IMP Files), 108–10 flashback log files flash recovery area, 108 flashback database, 107–8 overview, 107 flat files, 113–14 overview, 65–66 parameter files legacy init.ora parameter files, 69–71 overview, 66–67 Server Parameter Files (SPFILEs), 71–78 what parameters are, 67–69 password files, 103–5 redo log files archived redo log, 101–2 online redo log, 99–101 overview, 98–99 temp files, 96–97 trace files generated in response to internal errors, 83–85 overview, 78–79 requested, 79–82 FILLER keyword, 656 fine-grained access control (FGAC), 41 FIRST_ROWS, 330 FIX 80 clause, 666 FIX attribute, 663–64, fixed format data, 656–57 fixed SGA, 139 flag column, 7–8 Flash Recovery Area, 108 flashback, and multi-versioning, 21–23 FLASHBACK DATABASE command, 107, 181 flashback log files, 65, 107–8 flashback query, 22 flat file unload, 649, 692–94, 696–701

712 ■INDEX flat files, 66, 113–14 flat.sql script, 634 FLOAT(b) datatype, 511 focused background processes ARCn (archive process), 176–77 BSP, 178 CKPT (checkpoint process), 175 database architecture, 171 DBWn (database block writer), 175–76 LCKN, 178 LGWR (log writer), 176 overview, 171–72 PMON (process monitor), 173 RECO (distributed database recovery), 174–75 SMON (system monitor), 173–74 FOR UPDATE, 18, 27 FORCE option, 274 foreign keys deadlocks, causes of, 204 and indexes, 474 fork( ) function, 61 free( ) function, 150 FREELIST GROUPS clause, 553 FREELISTS clause, 341, 344, 346–47, 354, 553 FULL TABLE SCAN, 439 function based indexes, 423 CBO, 456 CREATE INDEX statement, 456 function-based indexes, 423 CASE, 467–68 example, 456–59, 461–64 GLOBAL QUERY REWRITE privilege, 456 implementation details, 455–56 implementing, 455 implementing selective uniqueness, 466 indexing only some rows, 464–66 ORA-01743, 468–69 overview, 455 performance testing, 463 problems with, 468 QUERY REWRITE privilege, 456 substr function, 456, 463 functions, loading data using, 659–63 G G_CURSOR variable, 517 G_DESCTBL table, PL/SQL, 694 G_DESCTBL variable, 697 GATHER_DATABASE_STATS method, 408 GATHER_SCHEMA_STATS method, 408–9 GATHER_TABLE_STATS table, 409 GENERATE_ONLY parameter, 682 GET_PARAMETER_VALUE function, 694 GETLENGTH method, DBMS_LOB package, 672 GLOBAL index, 594, 605 global indexes and data warehousing, 592–95, 597–600 and OLTP, 601–4, 606 overview, 590–92 GLOBAL QUERY REWRITE privilege, 456 globally partitioned index, 582 granules, 138 GTT table, 407 H hard parsing, 11 hash clustered tables, 338 HASH IS CUST_ID, 389 HASH method, DBMS_CRYPTO package, 194 hash partitioning, 567, 581, 641 how works, 570–71 overview, 570 using powers of two, 572–75 HASH_AREA_SIZE parameter, 116 HASH_KEY cluster key, 385 HASHKEYS value, 379 heap organized tables, 337, 351–54 CREATE TABLE statement, 353 description, 351 table types, 351 HEAP table, 360 HEAP_ADDRESSES table, 360 HEAP_ADRESSES table, 359 HEXTORAW function, 504 HH24:MI:SS DD/MM/YYYY format, 662 HH24:MI:SS format, 662 high-water mark (HWM), 287, 342–43 horizontal scaling, 177 HTML DB application, 40 I ID1 and ID2 columns, 212 IDX_STATS table, 427 IFILE directive, 69 IMAGE column, 677 image index, 470 IMAGE.SOURCE.LOCALDATA type, 677 IMMEDIATE constraints, 262–63 immediate mode, 221, 262 implicit rollback, 256 IN ROW clause, 544–46, 548–49 INCLUDING clause, 367, 369 independence. See database independence INDEX (RANGE SCAN), 437 index cluster, 371 index clustered tables, 337, 370–78 index organized tables, 337, 354–58, 360–70, 422 index partition segment type, 340 index partitioning global indexes and data warehousing, 592–600 vs. local indexes, 583

■INDEX 711<br />

E<br />

embedded newlines, loading data with<br />

overview, 663<br />

using character other than a newline, 663–64<br />

using FIX attribute, 664–67<br />

using STR attribute, 668–69<br />

using VAR attribute, 667<br />

EMNn (event monitor processes), 180<br />

EMP data, 372<br />

EMP table, 22, 278–80, 356, 358, 391, 395, 453,<br />

456<br />

EMP_AUDIT trigger, 278<br />

EMP_TAB_TYPE table type, 392<br />

EMP_TYPE object type, 392<br />

EMPNO column, 392, 401<br />

EMPNO primary key, 188–89<br />

EMPS column, 394<br />

EMPS_NT index, 398<br />

EMPS_NT nested table, 400<br />

EMPTY_CLOB( ) routine, 671<br />

ENABLE STORAGE IN ROW, 544<br />

end-of-file (EOF), 675<br />

Enhanced conformance, SQL99, 30<br />

ENQUEUE_RESOURCES parameter, 202–3<br />

enqueues. See internal locks<br />

Enterprise JavaBeans (EJB), 6<br />

ENTIRE_LINE column, 660<br />

ENTIRE_LINE field, 657<br />

:ENTIRE_LINE variable, 661<br />

entity-relationship diagram (ERD), 36<br />

ETL (extract, transform, load) routine, 432<br />

exclusive DDL locks, 218<br />

EXCLUSIVE setting, 104<br />

exec( ) function, 61<br />

EXP tool, 495<br />

EXP(DP)/IMP(DP), 108–10, 692<br />

explicit conversion, 504<br />

extensible indexing. See application domain<br />

indexes<br />

extent trimming<br />

<strong>and</strong> dictionary-managed tablespaces, 631<br />

<strong>and</strong> locally-managed tablespaces, 631<br />

extent trimming with UNIFORM vs.<br />

AUTOALLOCATE locally-managed<br />

tablespaces, 634–37, 639<br />

setting up, 632–33<br />

overview, 629–31<br />

extents, 90–91<br />

external tables, 86, 111, 338, 649<br />

dealing with errors, 687–88, 690<br />

multiuser issues, 691–92<br />

overview, 680–81<br />

setting up, 682–85, 687<br />

using to load different files, 690<br />

EXTERNAL_TABLE parameter, 632, 682<br />

extract, transform, load (ETL) routine, 432<br />

EXTRACT built-in function, 537<br />

F<br />

FAST FULL SCAN, 438<br />

FIELDS TERMINATED BY clause, 654, 657<br />

FIELDS TERMINATED BY ','option, 651<br />

FIELDS TERMINATED BY parameter, 684<br />

FIELDS TERMINATED BY X'09', 655<br />

FILE/BLOCK, 384<br />

files<br />

alert file, 85–88<br />

change tracking file, 106<br />

control files, 98<br />

data files<br />

brief review of file system mechanisms,<br />

89–90<br />

dictionary-managed <strong>and</strong> locally-managed<br />

tablespaces, 94–95<br />

overview, 88<br />

storage hierarchy in <strong>Oracle</strong> database,<br />

90–93<br />

data pump files, 110–13<br />

DMP Files (EXP/IMP Files), 108–10<br />

flashback log files<br />

flash recovery area, 108<br />

flashback database, 107–8<br />

overview, 107<br />

flat files, 113–14<br />

overview, 65–66<br />

parameter files<br />

legacy init.ora parameter files, 69–71<br />

overview, 66–67<br />

Server Parameter Files (SPFILEs), 71–78<br />

what parameters are, 67–69<br />

password files, 103–5<br />

redo log files<br />

archived redo log, 101–2<br />

online redo log, 99–101<br />

overview, 98–99<br />

temp files, 96–97<br />

trace files<br />

generated in response to internal errors,<br />

83–85<br />

overview, 78–79<br />

requested, 79–82<br />

FILLER keyword, 656<br />

fine-grained access control (FGAC), 41<br />

FIRST_ROWS, 330<br />

FIX 80 clause, 666<br />

FIX attribute, 663–64,<br />

fixed format data, 656–57<br />

fixed SGA, 139<br />

flag column, 7–8<br />

Flash Recovery Area, 108<br />

flashback, <strong>and</strong> multi-versioning, 21–23<br />

FLASHBACK DATABASE comm<strong>and</strong>, 107, 181<br />

flashback log files, 65, 107–8<br />

flashback query, 22<br />

flat file unload, 649, 692–94, 696–701

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!