Oracle is a complex Object Relational Database Management System and is probably the best database that money can buy. People know this and that is why they trust their businesses to Oracle. Furthermore, when they do buy Oracle they usually run it on a Unix or Linux system. Experience shows that Unix operating systems are robust, dependable, and scalable. That is why most companies use Unix when they have to develop large or critical systems to support their businesses. At the other end of the spectrum, Linux systems were initially introduced as testing and development systems. Basically, people loaded Linux on old machines to learn and test with. Recently, however, Linux has become a respected operating system that many companies, particularly Internet startups, use to run their businesses. As a result of these factors, there are a large number of Oracle systems running on both Unix and Linux.
Oracle DBA on Unix and Linux Michael Wessler 800 East 96th St., Indianapolis, Indiana, 46240 USA Oracle DBA on Unix and Linux ASSOCIATE PUBLISHER Copyright © 2002 by Sams Jeff Koch All rights reserved No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher No patent liability is assumed with respect to the use of the information contained herein Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions Nor is any liability assumed for damages resulting from the use of the information contained herein ACQUISITIONS EDITOR International Standard Book Number: 0-672-32158-0 Natalie F Harris Library of Congress Catalog Card Number: 2001089580 COPY EDITOR Printed in the United States of America Kezia Endsley First Printing: November 2001 Second Printing with corrections: April 2002 INDEXER 06 PROOFREADER 05 04 Kathryn Purdum DEVELOPMENT EDITOR Kevin Howard MANAGING EDITOR Matt Purcell PROJECT EDITOR Erika Millen Trademarks Jody Larsen All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized Sams cannot attest to the accuracy of this information Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark TECHNICAL EDITORS Warning and Disclaimer Vicki Harding Denni Bannister Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied The information provided is on an “as is” basis The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book Jim Kotan Paul Love TEAM COORDINATOR INTERIOR DESIGNER Dan Armstrong COVER DESIGNER Aren Howell Bulk Sales PAGE LAYOUT Sams Publishing offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales For more information, please contact Lizbeth Patterson Heather Stephenson U.S Corporate and Government Sales 1-800-382-3419 corpsales@pearsontechgroup.com For sales outside of the U.S., please contact International Sales 1-317-428-3341 international@pearsontechgroup.com Contents at a Glance Introduction 1 Role of the DBA Architecture of the Oracle Server 29 Planning a Database 63 Machine Setup and Installation Creating a Database 111 Daily Activities GUI Management Products 175 DBA Utilities Backup and Recovery 87 139 203 237 10 When Things Go Wrong 271 11 Oracle Server Tuning 293 12 Unix Operation System Architecture 321 13 Unix Server Monitoring 341 14 Patches and Upgrades 15 Migrations 395 16 Java Inside the Database Server 417 17 Web DB/Oracle Portal 18 Internet Application Server (iAS) 463 19 9i Server New Features 485 20 Growth of the DBA 511 A Basic Unix Commands B vi Editor C Scripts D Glossary 543 Index 533 537 551 373 437 525 Contents Introduction Who Should Read This Book? What Makes This Book Different? Role of the DBA What Is a DBA? Depends on the Shop Where DBAs Come From Paths to Becoming a DBA System Administrator (SA) Developer/Programmer Systems Designer/Data Modeler Other Paths Types of DBAs Application DBA Systems DBA Maintenance DBA Database Administration Principles Data Protection Data Availability 11 Database Administration Responsibilities 12 Database Technical Responsibilities 12 Non-Technical Responsibilities 16 Skills Needed 18 Roles Within the IT Organization 22 System Administrators 22 Programmers/Developers 24 Management 24 Customers and End Users 25 Outside Organizations 26 DBA Mindset 26 Summary 27 Architecture of the Oracle Server 29 Oracle Products Relating to Database Servers 30 SQL*Plus 31 Server Manager 32 Net8 32 Oracle DBA on Unix and Linux Database Versus Instance 33 Oracle File Types 34 Control Files 34 Data Files 35 System 36 Data 36 Index 37 Temp 38 Rollback 38 Online Redo Logs 40 Memory Structures 42 Shared Global Area (SGA) 42 Shared Pool 46 Redo Log Buffer 47 Large Pool 48 Java Pool 48 Oracle Processes 49 Server Processes 50 Background Processes 52 System Monitor Process (SMON) 53 Process Monitor Process (PMON) 53 Database Writer Process (DBWn) 53 Log Writer Process (LGWR) 54 Checkpoint Process (CKPT) 55 Archiver Process (ARCn) 56 Recover Process (RECO) 56 Job Queue Processes (SNPnn) 56 Queue Monitor Processes (QMNnn) 56 Dispatcher Processes (Dnnn) 56 Shared Server Processes (Snnn) 56 Transaction Control 57 Miscellaneous Database Files 59 Oracle Database Parameter and Log Files 59 Summary 62 Planning a Database 63 System Architecture 64 Two-Tier Basic Client Server Architecture (2 Tier) 65 Three-Tier Client Server Architecture 66 Capacity Planning/Sizing 67 Optimal Flexible Architecture 71 v vi Oracle DBA on Unix and Linux Application and Database Considerations 76 Hybrid Systems 79 Summary 85 Machine Setup and Installation 87 Pre-Installation Setup 88 Gathering Information 88 Configuring the System 92 Oracle Environment Setup 97 Installing Oracle 102 Installation Process 102 Verification of a Good Install 107 Applying Patches 109 Summary 109 Creating a Database 111 Generating Creation Scripts 112 Use of Scripts 112 Database Configuration Assistant 113 Customize the Scripts 121 Creating the Database 123 Running the Scripts 124 Review the Create Logs 125 Examine the Database Instance 125 Compile Invalid Objects 127 Clean Up a Failed Database 129 Post-Creation Activities 129 Changing the Passwords 129 Modifying oratab File 131 Create a Soft Link for init.ora 131 Configuring Net8 for the New Database 132 tnsnames.ora 133 listener.ora 134 listener 135 Customizing Your profile File 137 Summary 138 Daily Activities 139 Database Views 140 Oracle Startup/Shutdown 142 Database Stages 142 Database Startup 143 Database Shutdown 145 Oracle DBA on Unix and Linux User Management 148 Creating Users 149 Privileges 149 Roles 151 Quotas 151 Table, Index, Sequence Creation and Maintenance 152 Identifying Objects and Synonyms 154 Space Management 157 Storage Hierarchy 157 Tablespace Management 160 Monitoring 163 Verify Database and Connectivity 163 Alert Log 164 Monitor Database Objects 165 Setting Up and Monitoring cron Jobs 166 Monitoring Backups 168 Monitoring Exports 169 Monitor Space on Filesystems 170 Electronic Monitoring and Notification 171 Summary 173 GUI Management Products 175 Oracle Enterprise Manager 176 Architecture 176 Installation 179 OEM Controls 190 OEM Tools 193 TOAD 200 Summary 201 DBA Utilities 203 Export and Import 204 Overview of Export and Import 204 Using Export 205 Export Types 206 Using Import 211 Common Export/Import Uses 216 Logical Backups 216 Maintenance Benefits of Export/Import 220 Table Rebuilds 220 Corruption Checks 221 Row Counts 221 Common Mistakes 222 vii viii Oracle DBA on Unix and Linux Advanced Export and Import Techniques 223 Export and Import with Compress and Pipe 223 Editing a Dump (.dmp) File 225 Tuning Parameters 226 Using SQL*Loader 227 SQL*Loader Load Types 229 Using LogMiner 233 Summary 235 Backup and Recovery 237 Importance of Backups 238 Backup Types 239 Logical Backups 239 Physical Backups 240 Incurring Damage on the Database 241 Impact on the Database 241 Adding Fault Tolerance 243 Performing Backups and Recoveries 247 Cold Backups and Recoveries 248 Cold Backups and NOARCHIVELOG Mode 249 Cold Backups in ARCHIVELOG Mode 249 Hot Backups and Recoveries 250 Backup of Software and Parameter Files 266 Comprehensive Planning and Testing 267 Planning 267 Testing 269 Summary 270 10 When Things Go Wrong 271 Responding to Problems 272 Information Gathering 272 Problem Identification at the System Level 273 Identifying Technical Problems 275 File and Space Management 281 Sizing Data Files 282 Moving and Renaming Data Files 282 Locking 286 DML Locking 287 DDL Locking 290 ”Snapshot Too Old” Rollback Errors 290 Summary 292 Oracle DBA on Unix and Linux 11 Oracle Server Tuning 293 Database Tuning Approach 294 Diagnostic Utilities: UTLBSTAT/UTLESTAT and STATSPACK 296 UTLBSTAT/UTLESTAT 296 STATSPACK 298 Tuning Memory Structures 301 Ratios 302 Database Buffer Cache 302 Redo Log Buffer 303 Library Cache 303 Data Dictionary Cache 304 Disk Sorts 305 Tuning Rollback Segments 305 Rollback Segments for OLTP 305 Rollback Segments for Batch Jobs 306 Monitoring Rollback Segment Usage 307 Avoiding File Contention 308 Wait Events 309 V$SYSTEM_EVENT 310 V$SESSION_EVENT 310 V$SESSION_WAIT 311 Locally Managed Tablespaces 311 Tuning Tables 313 Index Organized Tables (IOTs) 313 Partitioned Tables 314 Row Migration and Chaining 316 Indexes 318 Summary 320 12 Unix Operation System Architecture 321 Imperative Concepts 321 Understanding the Kernel 322 Unix Processes 323 How Unix Manages Memory 328 Filesystems and Files 330 I/O Subsystem 334 Startup/Shutdown Processes in Unix 335 Understanding the Hardware Architecture 337 Uniprocessor Machines 337 Symmetrical Multiprocessor Machines 338 Clusters 338 MPPs and NUMAs 339 Summary 340 ix x Oracle DBA on Unix and Linux 13 Unix Server Monitoring 341 Need for Monitoring the Server 342 Overview of Monitoring the Server 343 Monitoring Memory Issues 344 Shared Memory and Semaphores 344 SGA Allocation 346 Intimate Shared Memory 347 Cleaning Up Shared Memory and Semaphores 348 Monitoring Memory 354 Monitoring Disk I/O 356 RAID 357 Raw Partitions 359 Asynchronous I/O 360 Monitoring Disk I/O 360 Monitoring the CPU 362 Monitoring the CPU 365 Monitoring the Network 368 Monitoring Network Usage 369 Summary 371 14 Patches and Upgrades 373 What Are Patches and Upgrades? 374 When and How to Apply Patches 376 Overview 376 Applying a Patch to Your System 378 Example Patch 382 When and How to Upgrade 385 Overview 385 Performing an Upgrade 386 Example Upgrade 388 Additional Considerations 391 Summary 392 15 Migrations 395 What Is a Migration 396 Reasons to Migrate Your Database 397 Preparation 398 Planning 398 Database Testing 398 Application Testing 399 Migration Testing 400 migration Intelligent Agents, 187-190 OMS (Oracle Management Server), 178, 183-185 Oracle Tuning Pack, 200 repository creation, 185-186 SQL*Plus, 194 SQL*Plus Worksheet, 194 standalone mode, 193 TOAD, 200-201 managers Instance Manager, 194-195 OEM (Oracle Enterprise Manager) architecture, 176-179 Change Management Pack, 194 client installation, 179-182 clients, 177-178 console, 190-193 Data Gatherer, 190 databases, 179 DBA Studio, 194-198 Diagnostics Pack, 198-200 Intelligent Agents, 187-190 OMS (Oracle Management Server), 178, 183-185 Oracle Tuning Pack, 200 repository creation, 185-186 SQL*Plus, 194 SQL*Plus Worksheet, 194 standalone mode, 193 Performance Manager, 199-200 Schema Manager, 196 Security Manager, 196-197 Storage Manager, 197-198 manual pages, 529 Massively Parallel Processors (MPPs), 340 MAXEXTENTS parameter, 279 maxtextents parameter, 160 media failure defined, 241 fault tolerance, 243-244 automatic database startup, 245-247 multiplex control files, 244 multiplex online redo logs, 244-245 impact on database, 241-243 memory, 42 cache, 43-45 cache hit ratio, 302 data dictionary cache, 304 database buffer cache, 302-303 iAS (Internet Application Server), 471-472 library cache, 303-304 capacity planning, 69 checking, 90 monitoring, 354 swap command, 355 thresholds, 356 vmstat command, 355-356 performance tuning, 301 data dictionary cache, 304 database buffer cache, 302-303 disk sorts, 305 library cache, 303-304 ratios, 302 redo log buffer, 303 pool Java pool, 48-49 large pool, 48 sizing, 501 SGA (Shared Global Area), 42-45 shared memory configuring, 96-97 data dictionary cache, 46 displaying, 528 finding, 349-353 ISM (Intimate Shared Memory), 347-348 library cache, 46-47 monitoring, 344-345 redo log buffer, 47 removing, 348-353, 528 semaphores, 345-346 SGA (Shared Global Area), 42-45, 346-347 Unix NUMAs (NonUniform Memory Access), 340 pages, 329 paging, 329-330 swap area, 328 swapping, 329-330 thrashing, 329 virtual memory, 328 messages boot messages, 276 error messages not connected, 124 public synonym does not exist, 124 snapshot too old, 279, 290-291 MetaLink, 108, 378, 514 methods See also commands exec, 326 fork, 326 middle tier (Web architecture), 465 mig command, 402-403 MIGRATE user, 406 migration, 395-396 to base releases, 404 compared to rehosting, 396 DBA skill level, 403-404 defined, 396-397 import/export commands, 401-402 mig command, 402-403 ODMA (Oracle Data Migration Assistant), 403-404 database preparation, 405-407 migration process, 407-412 post-migration tasks, 412-415 performance issues, 403 planning, 398 preparation application testing, 399-400 database testing, 398-399 migration testing, 400-401 planning phase, 398 569 570 migration schema-level exports, 217-219 testing, 400-401 time requirements, 403 when to use, 397 mindset of DBAs (database administrators), 26-27 minextents parameter, 160, 306 mirroring disks, 358 missing processes, 276 mkdir command, 529 modes databases ARCHIVELOG, 249-253 NOARCHIVELOG, 249 restricted session mode, 145 vi editor, 534 modules (iAS), 470 mod_jserv module, 470 mod_perl module, 470 mod_plsql module, 470 Monitor utility, 457-459 monitoring system, 163, 342-343 alert logs, 164-165 backups, 168-169 CPUs (central processing units), 362-363 glance command, 365 mpstat command, 367 ps command, 363 sar command, 367 top command, 364-365 uptime command, 365-366 vmstat command, 366 cron jobs, 166-168 disk I/O (input/output), 356-357 asynchronous I/O, 360 iostat command, 362 RAID (Redundant Array of Inexpensive Disks), 357-359 raw partitions, 359-360 sar command, 361 synchronous I/O, 360 vmstat command, 361 electronic monitoring and notification, 171-172 exports, 169 filesystem space, 170-171 importance of, 342 invalid objects, 165-166 memory, 354 swap command, 355 thresholds, 356 vmstat command, 355-356 network performance, 368-369 ifconfig command, 370 netstat command, 370-371 ping command, 369-370 tnsping command, 369 rollback segment usage contention, 307 extends, 308 wraps, 308 shared memory finding, 349-353 ISM (Intimate Shared Memory), 347-348 removing, 349-353 semaphores, 345-346 SGA allocation, 346-347 SHMMAX parameter, 344 SHMMIN parameter, 345 SHMMNI parameter, 345 SHMSEG parameter, 345 vp, 348-349 tablespace allocations, 165-166 verifying databases and connectivity, 163-164 more command, 529 Most Recently Used (MRU) list, 44 motivation of DBAs (database administrators), 512 mount command, 331 mount points See filesytems mount state, 143 mounting filesystems, 331-332 moving data files, 162, 282-285 directories, 384 files, 529 MPPs (Massively Parallel Processors), 340 mpstat command, 367 MRU (Most Recently Used) list, 44 MTS (Multi-Threaded Servers), 50-52, 423, 433-435 multiple applications, 81 multiple block sizes, 500-503 multiple lost files, recovering from, 262-266 multiple ORACLE_HOME directories, 387 multiple schemas, running, 157 multiplexing, 41, 244-245 multitasking, 323 mv command, 529 N names data files, 282-285 databases, 115-117 file extensions CTL, 35 DBF, 36-37 dmp, 204 IDX, 38 RBO, 41 RBS, 40 OFA (Optimal Flexible Architecture) conventions, 75-76 tablespaces, 219 navigating directories, 526 Net8, 32-33 Net8 Assistant, 132-133 listener process, 135-137 listener.ora file, 134-135 tnsnames.ora file, 133-134 netasst command, 133 netstat command, 370-371 network filesystem (nfs), 332 networks configuring, 132 listener process, 135-137 offline tablespaces listener.ora file, 134-135 tnsnames.ora file, 133-134 monitoring, 368-369 ifconfig command, 370 netstat command, 370-371 ping command, 369-370 tnsping command, 369 network information, checking, 92 new features (Oracle 9i), 485-486 dynamic memory parameters, 500-503 logging in, 488-489 miscellaneous features, 508 multiple block sizes, 500-503 Oracle-managed files, 494-500 creating redo logs with, 498-499 creating tablespaces with, 495-497 RAC (Real Application Clusters), 508 sample schemas, 506-508 security, 488-489 SPFILEs (server parameter files), 490-494 backing up, 493 creating, 490 updating, 492-493 viewing, 491 undo tablespaces, 503-506 nfs filesystem, 332 NLS_LANG variable, 99 NOARCHIVELOG mode (cold backups), 249 nohup command, 529 NOLOGGING option, 47 nomount state, 143 non-technical capacityplanning issues server costs, 70 system maintenance, 70-71 technologies and vendors, 71 non-technical responsibilities of database administration Oracle consultant, 16-17 Oracle point of contact, 17 process expert, 18 NonUniform Memory Access (NUMAs), 340 not connected (error message), 124 NUMAs (NonUniform Memory Access), 340 O OAS (Oracle Application Server), 418, 469 objects identifying, 155-157 invalid objects checking for, 154 compiling, 127-129 monitoring, 165-166 troubleshooting, 279 privileges, 150 storage hierarchy, 157-160 storage parameters, 159-160 OCI drivers (JDBC), 422 OCP (Oracle Certified Professional) program benefits of, 519 cost, 518 Database Administrator, 516 Database Operator, 516 Financial Applications, 516 Java Developer, 516 preparation, 517-518 test-taking tips, 518 Web site, 517 ODMA (Oracle Data Migration Assistant), 403-404 database preparation backups, 407 init.ora parameters, 405 MIGRATE user, 406 OUTLN user, 406 SYSTEM tablespace size, 405-406 migration process, 407-412 post-migration tasks, 412-415 OEM (Oracle Enterprise Manager) architecture, 176-177 client tier, 177-178 middle tier, 178 server tier, 179 Change Management Pack, 194 client installation, 179-182 clients, 177-178 Configuration Assistant, 185 console, 190-193 Data Gatherer, 190 databases, 179 DBA Studio Instance Manager, 194-195 Schema Manager, 196 Security Manager, 196-197 Storage Manager, 197-198 Diagnostics Pack Performance Manager, 199-200 TopSessions, 198-199 Intelligent Agents passwords, 188-190 starting, 187 verifying, 188 OMS (Oracle Management Server), 178, 183-185 Oracle Tuning Pack, 200 repository creation, 185-186 SQL*Plus, 194 SQL*Plus Worksheet, 194 standalone mode, 193 oemapp command, 178 oerr command, 165 OFA (Optimal Fexible Architecture) /u01 directory /admin subdirectory, 73-74 /local subdirectory, 74 /product subdirectory, 72-73 benefits of, 71-72 minimum requirements, 72 offline data files, 279 offline tablespaces, 163, 279 571 572 oinstall group oinstall group, 94 OLTP (Online Transaction Processing), 50, 76-77, 305-306 OMS (Oracle Management Server), 178, 183-185 online backups See hot backups online chat sessions, requesting, 530 online redo log files, 40-41 analyzing, 232-235 multiplexing, 244-245 redo log buffer, 47 Online Transaction Processing (OLTP), 50, 76-77 open state (databases), 143 operating systems capacity planning, 68-69 determining, 88-90 OPS (Oracle Parallel Server), 80, 508 Optimal Fexible Architecture See OFA optimizing performance See performance tuning ORA-01432 error, 124 ORA-01555 error, 279, 290-291 Oracle 8i JVM, 471 Oracle 9i server, 485-486 dynamic memory parameters, 500-503 installing, 486-488 logging in, 488-489 miscellaneous new features and changes, 508 multiple block sizes, 500-503 Oracle-managed files, 494-500 creating redo logs with, 498-499 creating tablespaces with, 495-497 RAC (Real Application Clusters), 508 sample schemas, 506-508 security, 488-489 SPFILEs (server parameter files), 490-494 backing up, 493 creating, 490 updating, 492-493 viewing, 491 undo tablespaces, 503-506 Oracle Application Server (OAS), 418 Oracle Certified Professional program See OCP program Oracle Data Migration Assistant See ODMA Oracle Diagnostics Pack, 198 Performance Manager, 199-200 TopSessions, 198-199, 287-290 Oracle Discover, 470 Oracle Enterprise Manager See OEM (Oracle Enterprise Manager) Oracle environment setup, 97-99 DISPLAY variable, 100-101 LD_LIBRARY_PATH variable, 99 NLS_LANG variable, 99 ORACLE_BASE variable, 99 ORACLE_HOME variable, 99 ORACLE_SID variable, 99 ORA_NLS33 variable, 99 PATH variable, 100 umask, 101-102 Oracle Forms, 470 Oracle installation installation process database file location, 105 installation options, 104 orainstRoot.sh file, 103 root.sh file, 107 summary page, 105 Unix group, 103 welcome screen, 102 Oracle environment setup, 97-99 DISPLAY variable, 100-101 LD_LIBRARY_PATH variable, 99 NLS_LANG variable, 99 ORACLE_BASE variable, 99 ORACLE_HOME variable, 99 ORACLE_SID variable, 99 ORA_NLS33 variable, 99 PATH variable, 100 umask, 101-102 Oracle Installation and Configuration Guide (ICG), 88 patches, 109 pre-installation setup CPUs, 92 disks and filesytems, 91-92 memory, 90 network information, 92 operating system and version, 88-90 swap space, 90 system configuration, 92 disks and filesystems, 94-96 groups, 93-94 root passwords, 93 shared memory settings, 96-97 users, 94 verifying, 107-108 Oracle Installation and Configuration Guide (ICG), 88 Oracle Management Server (OMS), 178 Oracle Parallel Server (OPS), 80, 508 Oracle Portal, 418, 460, 471 Administer utility, 456 architecture, 439-440 benefits of, 438-439 Browse utility, 452-453 Build utility, 453, 456 installing listener, 446-447 ORACLE_HOME variable, 440-441 root.sh script, 448 PARFILE import parameter system requirements, 440 text-based installer, 441-447 user roles, 449-450 listener installing, 446 starting and stopping, 450-451 login procedure, 451-452 Monitor utility, 457-459 Sites utility, 459 Oracle Reports, 470 Oracle servers See databases Oracle Support, 108-109 Oracle Tuning Pack, 200 Oracle Universal Installer See OUI Oracle University, 513-514 Oracle-managed files, 494-500 creating redo logs with, 498-499 creating tablespaces with, 495-497 ORACLE_BASE variable, 99 ORACLE_HOME directory, 386-387 ORACLE_HOME variable, 99 ORACLE_SID variable, 99 oradebug command, 350-352 orainstRoot.sh file, 103 oratab file, 61, 131 ORA_NLS33 variable, 99 OUI (Oracle Universal Installer) database file location, 105 installation options, 104 orainstRoot.sh file, 103 root.sh file, 107 summary page, 105 Unix group, 103 welcome screen, 102 OUTLN user, 406 output See I/O (input/output) outside organizations, role of DBAs in, 26 overflow areas, 314 OWNER export parameter, 207, 209 ownership of files, 526 P p command (vi), 535 page command, 529 page daemon, 329 pages (Unix), 329 pagesize command, 329 paging, 171-172, 329-330 Parallel Server (Oracle), 80, 508 parameter files backups, 266 config.ora, 60 exporting data, 208-210 importing data, 214-216 init.ora, 60 upgrades, 388 parameters DB_CACHE_SIZE, 500 DB_CREATE_FILE_DEST, 495 DB_CREATE_ONLINE_ LOG_DEST, 495 export parameters BUFFER, 206 COMPRESS, 207 CONSISTENT, 209 DIRECT, 209 FEEDBACK, 209 FILE, 206, 208 FULL, 207, 209 LOG, 209 OWNER, 207, 209 PARFILE, 208 ROWS, 207 TABLES, 207, 209 tuning, 226-227 USERID, 206 hexadecimal format, 97 import parameters BUFFER, 212 COMMIT, 215 FEEDBACK, 214 FILE, 212 FROMUSER, 215 FULL, 213 GRANTS, 213 IGNORE, 213 INDEXFILE, 215 LOG, 214 PARFILE, 214 ROWS, 213 TOUSER, 215 tuning, 226-227 USERID, 212 JAVA_MAX_SESSIONSPACE_ SIZE, 426 JAVA_POOL_SIZE, 48, 426 JAVA_SOFT_SESSIONSPACE_ LIMIT, 426 LARGE_POOL_SIZE, 500 LOG_BUFFER, 47, 303 LOG_CHECKPOINT_ INTERVAL, 55 LOG_CHECKPOINT_ TIMEOUT, 55 LOG_CHECKPOINT_TO_ ALERT, 55 MAXEXTENTS, 279 MINEXTENTS, 306 Oracle 9i server dynamic memory parameters, 500-503 SPFILEs (server parameter files), 490-494 PROCESSES, 500 SEMMNS, 345-346 SEMMSL, 345 SHARED_POOL_SIZE, 303-304, 500 SHMMAX, 344 SHMMIN, 345 SHMMNI, 345 SHMSEG, 345 SORT_AREA_SIZE, 305 UNDO_MANAGEMENT, 503 UNDO_RETENTION, 506 UNDO_SUPPRESS_ ERRORS, 506 parent processes, 326 PARFILE export parameter, 208 PARFILE import parameter, 214 573 574 parfiles parfiles (parameter files) exporting data, 208-210 importing data, 214-216 upgrades, 388 partitioned tables, 314-316 partitions hash partitioning, 315 list partitioning, 315 partitioned tables, 314-316 range partitioning, 315 raw partitions, 161, 359-360 swap partitions, 355 passwd command, 529 password statement (SQL), 129 passwords changing, 129-131, 529 Intelligent Agents, 188-190 prompting for, 530 root passwords, 93 patches applying, 109 checking, 90 defined, 374-375 downloading, 378 example, 382-385 installation CD patches, 378 installing backups, 380 installation process, 381 patches directory, 379 post-patch steps, 381-382 README files, 378 preparation, 376-378 tips and recommendations, 391-392 when to use, 375-376 patches directory, 379 path loading conventional, 229 direct, 229-232 PATH variable, 100 pctfree parameter, 160 pctincrease parameter, 160 pctused parameter, 160 Performance Manager, 199-200 performance tuning, 294 See also problem solving B/ESTAT script, 296-298 DBA (database administrator) responsibilities, 14-15 file contention, 308-309 goals and approaches, 294-295 import and export parameters, 226-227 indexes, 318-320 locally managed tablespaces, 311-313 memory, 301 data dictionary cache, 304 database buffer cache, 302-303 disk sorts, 305 library cache, 303-304 ratios, 302 redo log buffer, 303 patches applying, 109 checking, 90 defined, 374-375 downloading, 378 example, 382-385 installation CD patches, 378 installing, 378-382 preparation, 376-378 tips and recommendations, 391-392 when to use, 375-376 rollback segments, 305-306 batch jobs, 306-307 contention, 307 extends, 308 wraps, 308 STATSPACK script gathering statistics, 299-300 generating reports, 300-301 installing, 298-299 tables IOTs (Index Organized Tables), 313-314 partitioned tables, 314-316 row chaining, 316-318 row migration, 316-318 UTLBSTAT script, 296-298 wait events, 309-311 permissions changing, 526 default permissions, 101 Perpetual Technologies, 17, 514 pfile files, 74 PGA (Program Global Area), 48 physical backups, 240 pine command, 529 ping command, 275, 369-370 pinned memory blocks, 43 pipes, 223-225 PL/SQL, 424-425 PL/SQL Server Pages (PSPs), 471 planning databases backups, 267-269 capacity planning, 67-68 disk drives, 69 memory, 69 operating system, 68-69 server costs, 70 system maintenance, 70-71 technologies and vendors, 71 migrations, 398 OFA (Optimal Fexible Architecture), 71-72 benefits of, 72 minimum requirements, 72 /u01 directory, 73 recovery, 267-269 system architecture, 64-65 three-tier, 66-67 two-tier, 65-66 Plew, Ron, 152 PMON (Process Monitor), 53, 278 policies (paging), 172 pools (memory) Java pool, 48-49 large pool, 48 shared pool, 46-47 sizing, 501 processes Portal (Oracle), 418, 460, 471 Administer utility, 456 architecture, 439-440 benefits of, 438-439 Browse utility, 452-453 Build utility, 453, 456 installing listener, 446-447 ORACLE_HOME variable, 440-441 root.sh script, 448 system requirements, 440 text-based installer, 441-447 user roles, 449-450 listener installing, 446 starting and stopping, 450-451 login procedure, 451-452 Monitor utility, 457-459 Sites utility, 459 pre-installation setup CPUs (central processing units), 92 disks and filesystems, 91-92 memory, 90 network information, 92 operating system and version, 88-90 swap space, 90 preparing for certification exams, 517-518 principles of database administration, data availability, 11-12 data protection, 10-11 priorities (processes), 324 privileges CREATE SESSION, 150 granting, 149-150 object privileges, 150 viewing, 150 problem solving, 21, 272 See also performance tuning applications, 280-281 architecture diagrams, 273-275 data files, 281 adding, 282 moving, 282-285 renaming, 282-285 sizing, 282 databases alertSID.log file, 279 database locks, 279 init.ora file, 280 invalid objects, 279 listener processes, 278 log switches, 279 offline data files, 279 offline tablespaces, 279 PMON (Process Monitor), 278 rollback segment errors, 279, 290-291 startup, 144 tablespace free space, 279 tnsnames.ora file, 278 user sessions, 279 DBA (database administrator) responsibilities, 15 disk contention, 81-85 error messages not connected, 124 public synonym does not exist, 124 Snapshot too old, 279, 290-291 export command, 221-222 filesystems, 333-334 import command, 221-222 information gathering, 272-273 locks, 286-287 DDL (Data Definition Language), 290 defined, 286 DML (Data Manipulation Language), 287-290 Lock Manager, 287 TopSessions, 287-290 patches applying, 109 checking, 90 defined, 374-375 downloading, 378 example, 382-385 installation CD patches, 378 installing, 378-382 preparation, 376-378 tips and recommendations, 391-392 when to use, 375-376 servers boot messages, 276 command-line response time, 276 full filesystems, 276 locked files, 276 missing processes, 276 ping command, 275 resource-intensive jobs, 276 uptime command, 276 Process Monitor (PMON), 53, 278 process tables, 324 processes, 49 ARCn (archiver), 56 background processes, 52-53 CKPT (checkpoint), 55 DBWn (Database Writer), 53-54 displaying, 529 Dnnn (dispatcher), 56 LGWR (Log Writer), 54 listener, 135-137, 278 PMON (Process Monitor), 53, 278 problem-solving, 276 QMNnn (queue monitor), 56 RECO (recovery), 56 server processes, 50-52 SMON (System Monitor), 53 Snnn (shared server), 56 SNPnn (job queue) processes, 56 terminating, 528 Unix, 323 creating, 326 initialized data, 325 multitasking, 323 parent processes, 326 575 576 processes priorities, 324 process tables, 324 RT (Real Time), 324 scheduler process, 324 stack, 325 states, 325 SYS (System), 324 text area, 325 TS (Time Share), 324 viewing, 327 PROCESSES parameter, 500 /product directory, 73 profile files, 137-138 Program Global Area (PGA), 48 programmers, 7, 24 program listings See listings programs See applications; scripts prompting for passwords, 530 protecting data, 10-11 protocols FTP (File Transfer Protocol), 379-380 IIOP (Internet Inter-Orb Protocol), 433-435 ps command, 129, 278, 326-327, 363, 529 PSPs (PL/SQL Server Pages), 471 public synonym to be dropped does not exist (error message), 124 publish utility, 435 publishing Java programs, 432 Q-R q! command (vi), 535 QMNnn (queue monitor), 56 query-based exports, 211 Quest TOAD, 200-201 queue monitor (QMNnn) processes, 56 quotas (user), 151-152 RAC (Real Application Clusters), 508 RAID (Redundant Array of Inexpensive Disks), 357-359 range partitioning, 315 ratios (memory pools), 302 raw partitions, 161, 359-360 RBO file extension, 41 RBS file extension, 40 read-only tablespaces, 163 Real Application Clusters (RAC), 508 Real Time (RT) processes, 324 rebuilding tables, 220 RECO (recovery) process, 56 recovery, 238 cold backups, 248 crashes, 255-256 DBA (database administrator) responsibilities, 15 lost control files, 261-262 lost data files, 256-258 lost redo log files, 259-261 lost tablespaces, 258-259 multiple lost files, 262-266 planning, 267-269 testing, 269 recovery (RECO) process, 56 redo log files, 40-41 analyzing, 232-235 creating, 498-499 groups, 41 multiplexing, 244-245 redo log buffer, 47, 303 Redundant Array of Inexpensive Disks (RAID), 357-359 referral incentives, 521 rehosting compared to migration, 396 import/export command, 402 renaming data files, 282-285 reports B/ESTAT script, 296-298 Oracle Discover, 470 Oracle Reports, 470 sar (System Activity Report), 361 STATSPACK, 300-301 UTLBSTAT script, 296-298 repositories, 185-186 requesting online chat sessions, 530 resizing See sizing response time, 276 restoring files, 240 See also recovery restricted session mode, 145 rm command, 529 rmdir command, 529 roles (user), 151, 449-450 rollback data files, 38-40 rollback segments performance tuning, 305-306 batch jobs, 306-307 contention, 307 extends, 308 wraps, 308 troubleshooting errors, 279, 290-291 rolling back transactions, 38 root passwords, 93 root.sh file, 107 row chaining, 316-318 row migration, 316-318 rows counting, 221 locking, 286-287 DDL (Data Definition Language), 290 defined, 286 DML (Data Manipulation Language), 287-290 Lock Manager, 287 TopSessions, 287-290 row chaining, 316-318 row migration, 316-318 ROWS export parameter, 207 ROWS import parameter, 213 rpm command, 90, 529 RT (Real Time) processes, 324 run levels, 336 servers Run state, 325 running B/ESTAT, 297-298 cron, 166-167 database creation scripts, 124 Java programs, 432 multiple schemas, 157 UTLBSTAT, 297-298 run_hots.sql script, 542 S S run level, 336 salaried employees, 521-522 sar command, 529 CPU usage statistics, 367 disk I/O monitoring, 361 SAs (system administrators), 7, 22-23 scalability of Web architecture, 467-468 sched (scheduler) process, 324 Schema Manager, 196 schemas backing up, 216-217 migrating, 217-219 Oracle 9i server sample schemas, 506-508 Schema Manager, 196 SCNs (System Change Numbers), 34 scope of DBA (database administrator) responsibilities, screen, clearing, 129, 526 script command, 529 scripts See also commands B/ESTAT, 296-298 catalog.sql, 382 catproc.sql, 382 catrep.sql, 382 compare_users.sql, 541 create_analyze_script.sql, 541 database creation scripts advantages, 112-113 customizing, 121-123 directory location, 113 generating, 113, 115-120 running, 124 dbshut, 247 login.sql, 538 run_hots.sql, 542 show_dba_rollback_segs.sql, 539 show_filestat.sql, 539 show_index_depth.sql, 539 show_redo_logs.sql, 539 show_rollback_contention.sql, 540 show_segments.sql, 540 show_session_short.sql, 538 show_tablespaces.sql, 540-541 STATSPACK gathering statistics, 299300 generating reports, 300-301 installing, 298-299 tail-alert, 541 upgrade scripts, 387 UTLBSTAT, 296-298 UTLESTAT, 296-298 searching files, 527 second extended filesystem (ext2), 332 security backups cold backups, 248-250 fault tolerance, 243-247 hot backups, 250-255 importance of, 238 logical backups, 216-217, 239 media failure, 241-243 physical backups, 240 business archives, 217 data availability, 11-12 data protection, 10-11 file permissions changing, 526 default permissions, 101 Oracle 9i server, 488-489 passwords changing, 129-131 Intelligent Agents, 188-190 prompting for, 530 privileges, 149-150 quotas, 151-152 recovery, 238 cold backups, 248 crashes, 255-256 DBA (database administrator) responsibilities, 15 lost control files, 261-262 lost data files, 256-258 lost redo log files, 259-261 lost tablespaces, 258-259 multiple lost files, 262-266 planning, 267-269 testing, 269 root passwords, 93 Security Manager, 196-197 SYSTEM account, 126 user roles, 151 Security Manager, 196-197 sem.h file, 96 semaphores monitoring, 345-346 removing, 348-349 ipcrm command, 353 ipcs command, 352-353 oradebug command, 350-352 sysresv command, 349-350 SEMMNS parameter, 345-346 SEMMSL parameter, 345 sequences, 152-154 Server Manager, 32 server parameter files See SPFILEs server processe, 50-52 servers, 50 client/server architecture, 64-65 three-tier, 66-67 two-tier, 65-66 CORBA servers, 425, 435 costs, 70 dedicated servers, 50 577 578 servers iAS See iAS (Internet Application Server) MTS (Multi-Threaded Servers), 50-52, 423, 433-435 OAS (Oracle Application Server), 418, 469 OMS (Oracle Management Server), 178, 183-185 OPS (Oracle Parallel Server), 80, 508 Oracle servers See databases pre-installation setup CPUs (central processing units), 92 disks and filesytems, 91-92 memory, 90 network information, 92 operating system and version, 88-90 swap space, 90 problem-solving, 275-276 system configuration, 92 disks and filesystems, 94-96 groups, 93-94 root passwords, 93 shared memory settings, 96-97 users, 94 Unix, monitoring, 342-343 CPUs, 362-367 disk I/O, 356-361 importance of, 342 memory, 354-356 network performance, 368-371 shared memory, 344-353 WebLogic, 466 servlets, 421 SGA (Shared Global Area), 42-45, 346-347 shared filesystems, 84 shared memory configuring, 96-97 data dictionary cache, 46 displaying, 528 finding ipcs command, 352-353 oradebug command, 350352 sysresv command, 349-350 ISM (Intimate Shared Memory), 347-348 library cache, 46-47 monitoring semaphores, 345-346 SHMMAX parameter, 344 SHMMIN parameter, 345 SHMMNI parameter, 345 SHMSEG parameter, 345 removing, 348-349, 528 oradebug command, 350-353 sysresv command, 349-350 SGA (Shared Global Area), 42-45, 346-347 sizing, 501 shared server (Snnn) processes, 56 shared-everything architecture, 338 shared-nothing architecture, 340 SHARED_POOL_SIZE parameter, 303-304, 500 shell programming, 97 shelling out, 194 SHMMAX parameter, 344 SHMMIN parameter, 345 SHMMNI parameter, 345 shmparam.h file, 96 SHMSEG parameter, 345 shop, SHOW PARAMETER command, 60 showrev command, 90 show_dba_rollback_segs.sql script, 539 show_filestat.sql script, 539 show_index_depth.sql script, 539 show_redo_logs.sql script, 539 show_rollback_contention.sql script, 540 show_segments.sql script, 540 show_session_short.sql script, 538 show_tablespaces.sql script, 540-541 shutdown process, 337 SHUTDOWN ABORT statement, 147-148 shutdown command, 337 SHUTDOWN IMMEDIATE statement, 147 shutdown state, 143 SHUTDOWN statement, 146-147 SHUTDOWN TRANSACTIONAL statement, 147 shutting down databases, 143-145 SHUTDOWN ABORT statement, 147-148 SHUTDOWN IMMEDIATE statement, 147 SHUTDOWN statement, 146-147 SHUTDOWN TRANSACTIONAL statement, 147 Sites utility, 459 size of disks, 359 sizing data files, 161, 282 shared pool, 501 systems See capacity planning Sleep state, 325 SMON (System Monitor), 53 SMP (symmetrical multiprocessor) machines, 338 Snapshot too old (error message), 279, 290-291 Snnn (shared server) processes, 56 SNPnn (job queue) processes, 56 statistics soft links creating, 528 init.ora file, 131-132 software installation files, 61-62 solving problems See problem solving sorts, 305 SORT_AREA_SIZE parameter, 305 space management dynamic space allocation, 159 fragmentation, 159 storage hierarchy, 157-160 storage parameters, 159-160 tablespaces, 160 adding data files to, 162 creating, 161 locally managed tablespaces, 162 offline tablespaces, 163 read-only tablespaces, 163 SPFILEs (server parameter files), 490-494 backing up, 493 creating, 490 updating, 492-493 viewing, 491 SQL (Standard Query Language) DDL (Data Definition Language), 290 DML (Data Manipulation Language), 287-290 dynamic SQL, 128 PL/SQL, 424-425 scripts compare_users.sql, 541 create_analyze_script.sql, 541 login.sql, 538 run_hots.sql, 542 show_dba_rollback_segs.sql, 539 show_filestat.sql, 539 show_index_depth.sql, 539 show_redo_logs.sql, 539 show_rollback_ contention.sql, 540 show_segments.sql, 540 show_session_short.sql, 538 show_tablespaces.sql, 540-541 tail-alert, 541 SQL*Loader, 227 conventional path loading, 229 direct path loading, 229-232 file types, 228 SQL*PLUS, 31, 194 CREATE USER statement, 149 SHOW PARAMETER statement, 60 SHUTDOWN ABORT statement, 147-148 SHUTDOWN IMMEDIATE statement, 147 SHUTDOWN statement, 146-147 SHUTDOWN TRANSACTIONAL statement, 147 STARTUP RESTRICT statement, 145 STARTUP statement, 143 SQL*Plus Worksheet, 194 SQL*Loader, 227 conventional path loading, 229 direct path loading, 229-232 file types, 228 SQL*PLUS, 31, 194 CREATE USER statement, 149 SHOW PARAMETER statement, 60 SHUTDOWN ABORT statement, 147-148 SHUTDOWN IMMEDIATE statement, 147 SHUTDOWN statement, 146-147 SHUTDOWN TRANSACTIONAL statement, 147 STARTUP RESTRICT statement, 145 STARTUP statement, 143 SQL*Plus Worksheet, 194 sqlnet.ora file, 62 stack, 325 standalone mode (OEM), 193 starting Data Gatherer, 190 Database Configuration Assistant, 113 databases closed databases, 144 online database startup, 245-247 problem solving, 144 restricted session mode, 145 STARTUP RESTRICT statement, 145 STARTUP statement, 143 Intelligent Agents, 187 Oracle Portal listener, 450-451 Unix run levels, 336 sequence of events, 335-336 STARTUP RESTRICT statement, 145 STARTUP statement, 143 stateful beans, 421 stateless beans, 421 statements (SQL) CREATE USER, 149 desc, 141 password, 129 SHOW PARAMETER, 60 SHUTDOWN, 146-147 SHUTDOWN ABORT, 147-148 SHUTDOWN IMMEDIATE, 147 SHUTDOWN TRANSACTIONAL, 147 STARTUP, 143 STARTUP RESTRICT, 145 states, 142-143, 325 statistics See also monitoring system CPU usage, 366-367 579 580 statistics gathering B/ESTAT script, 296-298 STATSPACK script, 298-301 UTLBSTAT script, 296-298 sar (System Activity Report), 361 STATSPACK script gathering statistics, 299-300 generating reports, 300-301 installing, 298-299 Stevens, Ryan, 152 Stop state, 325 stopping Data Gatherer, 190 Oracle Portal listener, 450-451 storage hierarchy, 157-160 Storage Manager, 197-198 storage parameters, 159-160 strings, connect strings, 32 striping disks, 358 Studio (DBA), 194 Instance Manager, 194-195 Schema Manager, 196 Security Manager, 196-197 Storage Manager, 197-198 source code listings See listings su command, 530 Sun clusters, 338-339 support See help swap area, 328 swap command, 355 swap partitions checking, 90 viewing, 355 swapping, 329-330 symmetrical multiprocessor (SMP) machines, 338 synchronous I/O, 360 synonyns, 155-157 syntax listings See listings SYS (System) processes, 324 sysresv command, 349-353 System (SYS) processes, 324 SYSTEM account, 126 System Activity Report (sar), 361 system administrators (SAs), 7, 22-23 system architecture, 64-65 three-tier, 66-67 two-tier, 65-66 System Change Numbers (SCNs), 34 system configuration, 92 disks and filesystems, 94-96 groups, 93-94 root passwords, 93 shared memory settings, 96-97 users, 94 system data files, 36 system maintenance, 70-71 System Monitor (SMON), 53 system monitoring See monitoring system SYSTEM tablespace, 405-406 systems DBAs (database administrators), 9, 522 systems designers, T tables backing up, 216 creating, 152-154 exporting, 205 IOTs (Index Organized Tables), 313-314 locking, 286-287 DDL (Data Definition Language), 290 defined, 286 DML (Data Manipulation Language), 287-290 Lock Manager, 287 TopSessions, 287-290 partitioned tables, 314-316 performance tuning IOTs (Index Organized Tables), 313-314 partitioned tables, 314-316 row chaining, 316-318 row migration, 316-318 process tables (Unix), 324 rebuilding, 220 rows counting, 221 row chaining, 316-318 row migration, 316-318 TABLES export parameter, 207, 209 tablespaces adding data files to, 162 allocations, 165-166 creating, 161, 495-497 data files See data files free space, 279 locally managed tablespaces, 162, 311-313 lost tablespaces, 258-259 names, 219 offline tablespaces, 163, 279 read-only tablespaces, 163 SYSTEM, 405-406 undo tablespaces, 503-506 tail command, 279, 530 tail-alert script, 541 talk command, 530 tar command, 384, 530 Technet, 108 Technet Web site, 514 technical capacity-planning issues disk drives, 69 memory, 69 operating system, 68-69 technical problems applications, 280-281 data files, 281 adding, 282 moving, 282-285 renaming, 282-285 sizing, 282 databases alertSID.log file, 279 database locks, 279 Unix init.ora file, 280 invalid objects, 279 listener processes, 278 log switches, 279 offline data files, 279 offline tablespaces, 279 PMON (Process Monitor), 278 rollback segment errors, 279, 290-291 tablespace free space, 279 tnsnames.ora file, 278 user sessions, 279 locks, 286-287 DDL (Data Definition Language), 290 defined, 286 DML (Data Manipulation Language), 287-290 Lock Manager, 287 TopSessions, 287-290 servers boot messages, 276 command-line response time, 276 full filesystems, 276 missing processes, 276 ping command, 275 resource-intensive jobs, 276 uptime command, 276 technical responsibilities of database administration application support, 14 backup and recovery, 15 performance tuning, 14-15 system activities, 12-14 troubleshooting, 15 technical support See help temp (temporary) data files, 38 temporary tablespaces, 258-259 terminals, dumb, 65 terminating See stopping testing applications, 399-400 backups, 269 databases, 398-399 exports, 222 imports, 222 migrations, 400-401 recovery, 269 tests See exams text, editing, 534 text area (Unix processes), 325 text editors, vi, 534 thin clients, 65-66 thin drivers, 422 third-party Oracle classes, 514 thrashing, 329 threads, 328 three-tier client/server architecture, 66-67 thresholds, 356 Time Share (TS) processes, 324 time/date, displaying, 527 tnsnames.ora file, 61, 133-134, 278 tnsping command, 369 TOAD, 200-201 tools See commands; scripts top command, 276, 364-365, 530 TopSessions, 198-199, 287-290 touch command, 530 TOUSER import parameter, 215 traditional education, 513 training, 512 See also certification CBT (Computer Based Training), 514 colleges and universities, 513 continuing education, 21-22 emerging technologies, 515-516 independent learning, 514-515 on-the-job training, Oracle University, 513-514 third-party Oracle classes, 514 transactions DSS (Decision Support Systems), 77-78 example, 57-59 OLTP (Online Transaction Processing), 50, 76-77 rollback, 38 troubleshooting See problem-solving truss command, 530 TS (Time Share) processes, 324 Tuning Pack, 200 tuning performance See performance tuning two-tier client/server architecture clients, 65-66 servers, 66 Typical installation (Oracle), 104 U /u01 directory /admin subdirectory, 73-74 /local subdirectory, 74 /product subdirectory, 73 udump (user dump) files, 74 ufs filesystem, 332 UGA (User Global Area), 49 umask command, 101-102, 530 umount command, 333 uname command, 88, 530 uncompress command, 530 uncompressing files gunzip command, 528 uncompress command, 530 undo tablespaces, 503-506 UNDO_MANAGEMENT parameter, 503 UNDO_RETENTION parameter, 506 UNDO_SUPPRESS_ERRORS parameter, 506 uninstalling Java, 429-430 uniprocessor machines, 337-338 university courses, 513 Unix, 322 clusters, 338-339 files, 334 581 582 Unix filesystems ext2, 332 free space, 332 iso9660, 333 mount points, 331 mounting, 331-332 nfs, 332 problem solving, 333-334 ufs, 332 unmounting, 333 vxfs, 333 I/O subsystem, 335 kernel, 322-323 memory pages, 329 paging, 329-330 swap area, 328 swapping, 329-330 thrashing, 329 virtual memory, 328 monitoring, 342-343 CPUs, 362-367 disk I/O, 356-361 importance of, 342 memory, 354-356 network performance, 368-371 shared memory, 344-353 MPPs (Massively Parallel Processors), 340 NUMAs (NonUniform Memory Access), 340 processes, 323 creating, 326 initialized data, 325 multitasking, 323 parent processes, 326 priorities, 324 process tables, 324 RT (Real Time), 324 scheduler process, 324 stack, 325 states, 325 SYS (System), 324 text area, 325 TS (Time Share), 324 viewing, 327 shared-everything architecture, 338 shared-nothing architecture, 340 shutdown process, 337 SMP (symmetrical multiprocessor) machines, 338 startup process run levels, 336 sequence of events, 335-336 uniprocessor machines, 337-338 unmounting filesystems, 333 updating SPFILEs (server parameter files), 492-493 upgrades defined, 374-375 example, 388-391 import/export commands, 402 installing, 386-388 ORACLE_HOME directory, 386-387 parameter files, 388 preparation, 385-386 tips and recommendations, 391392 upgrade scripts, 387 when to perform, 375-376 uptime command, 276, 365-366, 530 user dump (udump) files, 74 User Global Area (UGA), 49 user interfaces Net8, 32-33 Server Manager, 32 SQL*Plus, 31 user-level exports, 205-206 useradd command, 94 USERID export parameter, 206 USERID import parameter, 212 users, 25 creating, 94, 149 groups creating, 93-94 oinstall, 94 killing, 146, 367 logged-in users, displaying, 531 logging off, 527 MIGRATE, 406 OUTLN, 406 privileges, 149-150 quotas, 151-152 roles, 151, 449-450 USER_X view, 140 utilities See commands; scripts UTLBSTAT script, 296-298 UTLESTAT script, 296-298 V V$ view, 140 V$SESSION_EVENT view, 310-311 V$SESSION_WAIT view, 311 V$SYSTEM_EVENT view, 310 /var/opt/oracle directory, 96 variables, environment CLASSPATH, 100 DISPLAY, 100-101 displaying, 527 LD_LIBRARY_PATH, 99 NLS_LANG, 99 ORACLE_BASE, 99 ORACLE_HOME, 99 ORACLE_SID, 99 ORA_NLS33, 99 PATH, 100 vendors, capacity-planning issues, 71 verifying database instances, 125-127 databases and connectivity, 163-164 Intelligent Agents, 188 Oracle installation, 107-108 Veritas filesystem (vxfs), 333 vi editor, 534 viewing See displaying views, 140-141 obtaining descriptions of, 141 obtaining list of, 141 V$SESSION_EVENT, 310-311 Zombie state V$SESSION_WAIT, 311 V$SYSTEM_EVENT, 310 virtual memory, 328 vmstat command, 355-356, 531 CPU usage statistics, 366 disk I/O monitoring, 361 vxfs (Veritas) filesystem, 333 W w command, 535 wait events, 309-310 V$SESSION_EVENT view, 310-311 V$SESSION_WAIT view, 311 V$SYSTEM_EVENT view, 310 wall command, 531 wc command, 531 Web architecture, 464-466 availability, 468 clients, 465 database tier, 465 middle tier, 465 scalability, 467-468 technological design, 467 Web cache (iAS), 471-472 Web servers See servers Web sites Java, 420 MetaLink, 378, 514 OCP (Oracle Certified Professional) program, 517 Oracle University, 513 Perpetual Technologies, 17, 514 Technet, 514 WebDB See Oracle Portal WebLogic server, 466 which command, 531 who command, 531 word count, displaying, 531 wq command, 535 wraps (rollback segments), 308 X-Z x command, 535 yy command, 535 Zombie state, 325 583