Book Image

OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide

Book Image

OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide

Overview of this book

Oracle Database Server is the most widely used relational database in the world today. This book gives you the essential skills to master the fundamentals of Oracle database administration and prepares you for Oracle DBA certification."OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide" prepares you to master the fundamentals of Oracle database administration using an example driven method that is easy to understand. The real world examples will prepare you to face the daily challenges of being a database administrator.Starting with the essentials of why databases are important in today's information technology world and how they work, you are then guided through a full, customized installation of the Oracle software and creating your own personal database. We then examine fundamental concepts of Oracle, including architecture, storage structures, security, performance tuning, networking, and instance management. Finally, we take an in-depth look at some of the most important concepts in the daily life of an Oracle DBA - backup, recovery, and data migration."OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide" provides you with the skills you need in order to become a successful Oracle DBA, both for certification and real life tasks.
Table of Contents (24 chapters)
OCA Oracle Database 11g: Database Administration I: A Real-World Certification Guide
Credits
Foreword
About the Author
About the Reviewer
www.packtpub.com
Preface
Index

Understanding external data access


Many types of programs that access databases are also required to reach out into the operating system for external data. A typical example of this is a PL/SQL program that loads data into a table from an external flat file. This program reads and processes each line in the file, then inserts that data into the table. In this section, we will examine Oracle's recommended method for accessing external files from a database—the directory object.

Creating directory objects

For many years, the primary method of performing operations that require operating system access was to use the Oracle-supplied UTL_FILE PL/SQL package. UTL_FILE could be used to read from and write to files. Access to the various OS directories was specified using the parameter, UTL_FILE_DIR. Thus if UTL_FILE_DIR was set to /home/oracle or E:\app\oracle, a program with the "execute" permission on UTL_FILE could read and write files in that directory. Thus, assigning directory values to the...