Documente Academic
Documente Profesional
Documente Cultură
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:1
CHAPTER
6
Installing Oracle 10g on Linux
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:2
n some respects, installing Oracle 10g on Linux can be much easier than installing Oracle9i. In other respects, it can be more challenging. The degree of difficulty depends on the method of installation. Some of the new challenges revolve around the use of ASMOracles Automatic Storage Management. Although ASM simplifies storage management, it involves some work to install and configure. Installing the Oracle database on Linux can be quite straightforward if installed on a standard filesystem. The installation process can be broken up into preinstall, install, and postinstall/ configuration steps.
Preinstallation Steps
Some of the preinstallation steps were covered in the previous chapter, so a brief review will be presented here along with the additional steps necessary to prepare for the Oracle installation. These steps involve creating and configuring the Oracle user, setting Linux kernel parameters, and preparing storage for the installation. All of these steps must be complete before the installation can proceed.
Environment Variables
Setting the Linux shared memory, semaphore, and shared memory parameters in conjunction with the configuration of the shell limits specified in the previous file will have configured the Linux system to where Oracle can now be installed. The final step is to configure storage for the Oracle installation.
Storage Requirements
Before Oracle is installed, the storage that the Oracle database server will be installed on should be configured. Unlike Oracle9i, in addition to filesystem and RAW devices, there is now a third option for the Oracle database files: ASM. Before the Oracle starting the installation, you should decide which type of environment you will be using, and then allocate and configure this storage. The bare minimum requirements for installing the Oracle home with a sample database are as follows:
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:3
Chapter 6:
Minimum Size Purpose 40s0MB Used as a temporary area during the Oracle install. If /tmp is not sufficiently sized, the TEMP and TMPDIR environment variables can point to an alternate location A 1GB swap space is required for the Oracle 10g installation. The ORACLE_BASE directory or filesystem is the location of the Oracle binaries. The Oracle datafiles for the basic sample database consume 1.2GB of space.
This represents the bare minimum space requirements for the sample database installation. In order to create an Oracle database that is useful for you, the following considerations should be made. Isolate the redo log files The Oracle redo log files should be separated into their own disks. This is both for performance and data protection, as noted in both Chapters 4 and 15. Allocate sufficient I/O capacity for your data and indexes This does not mean allocate enough space, but rather allocate enough space and performance for your Oracle database datafiles. Remember that a single disk drive can only do a fixed number of I/O operations per second, as shown in Chapter 4.
By allocating storage up front, changes and reinstallations might not be necessary. It is always better to plan ahead, rather than fixing problems later. As mentioned previously, the storage for the Oracle datafiles can be allocated on Linux filesystems, raw partitions, and on Automatic Storage Management volumes.
Filesystem Files
Using Linux filesystems is by far the easiest solution; however, it is also the solution with the weakest performance. The Linux filesystem adds additional overhead to Oracle I/O processing, thus utilizing more CPU and memory than necessary. This overhead and additional processing time is caused by two different issues: the filesystem cache and the limited block size available in the ext2 and ext3 filesystems. Filesystem Caching When Oracle opens a datafile, it is opened in such a way that write-caching is disabled in the Linux filesystem. Even though write-caching is disabled, the filesystem cache is still used; however, writes are written into the cache and then written to disk.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:4
As far as Oracle is concerned, the I/O has not completed until it has been fully written to disk, and since it has to be written into the cache first and then to disk, additional overhead is incurred. Thus, the Linux filesystem is very convenient and easy to use, but it is the worst performing of our three choices. Some filesystems are able to write directly to disk and completely bypass additional overhead. One example is the OCFSthe Oracle Cluster Filesystemwhich has been used occasionally outside of clusters for this reason. However, OCFS is not a general purpose filesystem and can only be used by Oracle files. Other third-party solutions, such as the Veritas Volume Manager and Veritas Foundation Suite, have better performance than the standard Linux filesystems. Filesystem Blocksize Along with concerns about the filesystem cache, when using the Linux filesystem there is an additional issue. The Oracle database is created with a standard block size that is often 8KB or larger. The problem with this is that the maximum block size on the ext2 and ext3 filesystem is 4KB. If you are using an 8KB Oracle block size on a 4KB filesystem, each Oracle I/O must use two filesystem blocks, since the 8KB request spans two 4KB blocks. Creating Filesystems Creating filesystems for Oracle is fairly straightforward. The process involves creating the disk partitions, creating filesystems on those partitions, and then mounting those filesystems on the system. A hard disk is divided into one or more logical partitions by using the fdisk command. Fdisk is used to divide the disk into these partitions. A Linux disk can be divided into as many as 15 partitions. The partition number of the disk drive is appended to the disk device name. For example, the first SCSI disk is /dev/sda with partitions /dev/sda1, /dev/sda2, and so on. Each individual logical partition can have a filesystem created on it by using the mkfs command. The mkfs command can be used to create a number of different types of filesystems such as ext2, ext3, hpfs, OCFS, and others. Once the filesystem has been created, it is mounted using the mount command. The filesystem must be mounted on a directory in the root filesystem. Once this is done, it is ready to be used by the OS and by the Oracle Database server. In order to see what filesystems are currently mounted on your system, simply type
L 6-1
mount /dev/sda3 on / type ext3 (rw) none on /proc type proc (rw) usbdevfs on /proc/bus/usb type usbdevfs (rw) /dev/sda1 on /boot type ext3 (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw) /dev/sdb1 on /u01 type ext3 (rw)
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:5
Chapter 6:
In order to find the sizes of these filesystems, use the df command. This will show you the sizes, usage, and available space on each of the filesystems.
L 6-2
Used Available Use% Mounted on 2323220 1008824 70% / 14231 81639 15% /boot 0 127464 0% /dev/shm 32828 3884604 1% /u01
Linux has a very nice feature that can be used with many of the filesystem commands, such as df, du, and ls. The h flag designates human readable format. This format displays the sizes in K, M, and G for kilobytes, megabytes, and gigabytes.
L 6-3
Used Avail Use% Mounted on 2.3G 986M 70% / 14M 80M 15% /boot 0 125M 0% /dev/shm 33M 3.8G 1% /u01
Once you have created a sufficient number of filesystems with sufficient space, youre ready to begin the Oracle installation. Regardless of whether you intend to install the Oracle datafiles on Linux filesystems, raw partitions, or Automatic Storage Management, you still must have sufficient space available on the base filesystem for the Oracle binaries to install.
Raw Partitions
Raw partitions on Linux offer the best performance of any I/O option that you have, but they come at a price: they are complex and difficult to use. A raw partition is simply a slice of a disk drive. This slice is created using fdisk or parted and has no filesystem or volume manager associated with it. This raw partition can be accessed by Oracle, since Oracle datafiles dont need a filesystem. In fact, Oracle has had the capability to use raw devices for as long as I can remember. Since Oracle cannot simply write to a raw device (/dev/sdb1, and so on) directly, there is an additional layer that must be used. This is the raw device file. The raw devices exist in the /dev/raw directory and are an additional interface into the physical device itself. This interface uses the rawdevices service and is configured in the /etc/sysconfig/rawdevices configuration file. The rawdevices Service The rawdevices service makes sure that each time the system boots the raw devices are pointing to the correct partition and disk drive. This allows configuration changes to be made without having to change the device that
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:6
This will guarantee that the Adaptec adapter is listed first, then the MegaRaid adapter and finally the Qlogic adapter. The /dev/raw devices allow you to account for this and modify the devices if the underlying device names were to change. This is configured in the /etc /sysconfig/rawdevices file and allows you to account for underlying device name changes without changing Oracle file names. This configuration is used by the rawdevices service. This should only be attempted with great care and adequate double-checking.
Oracle uses. For example, once an Oracle datafile is pointing to /dev/raw/raw1, that device will never change, even if the underlying device name has changed. Each time the system boots, the rawdevices service checks the /etc/sysconfig /rawdevices file and makes any necessary changes. If you have added new hardware that has caused the device names to change, you must make these changes in the /etc/sysconfig/rawdevices file before you attempt to start up Oracle. CAUTION Be careful of device changes. Starting up Oracle with the incorrect raw devices can cause irreparable damages to your database. All data should be backed up before attempting to add any new devices to the system.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:7
Chapter 6:
The /etc/sysconfig/rawdevices file is designed to help you avoid problems that could harm your system. The /etc/sysconfig/rawdevices File The /etc/sysconfig/rawdevices file is used to associate raw devices such as /dev/raw/raw1, /dev/raw/raw2, and so on with physical devices such as /dev/sda1, /dev/sdb2, and their siblings. The /etc/sysconfig/rawdevices file has the following format:
L 6-5
Either format is acceptable. The major device number indicates the device type (SCSI disk drive in our example), while the minor device number represents the partition. There are eight major numbers allocated to SCSI devices. These numbers are 8, 65, 66, 67, 68, 69, 70, and 71. There are 255 minor devices allocated to partitions on these SCSI devices, and each disk drive can have 15 partitions. The first 255 devices use major number 8, the next 255 devices use major number 65, and so forth. The following is a listing of some SCSI devices. Note the major and minor device numbers.
L 6-6
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw---brw-rw----
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
root root root root root root root root root root root root root root root
disk disk disk disk disk disk disk disk disk disk disk disk disk disk disk
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
0 1 2 3 4 16 17 18 19 20 32 33 34 35 36
Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar Mar
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19
2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002 2002
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4 /dev/sdc /dev/sdc1 /dev/sdc2 /dev/sdc3 /dev/sdc4
In our example, the /etc/sysconfig/rawdevices file can have either of the following formats:
L 6-7
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:8
L 6-8
Either format is equivalent; however, I prefer to use the device name. Using Raw Devices There are two methods that can be used when creating an Oracle database with raw devices. The Oracle datafile itself can be the device name (for instance, /dev/raw/raw1) or you can create a symbolic link from an Oracle datafile name, such as system.dbf, to the raw device. Either method works fine. The last method of creating an Oracle database is by using the Automatic Storage Management feature.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:9
Chapter 6:
The list can be broken down into three parts. The driver component that is used with the appropriate Linux kernel. Notice that the first four items in the list have the Linux kernel revision in the name of the file. These files support the Linux 2.4.9 kernel standard edition, enterprise, smp, and IBM summit kernels. The ASM library shared object file. The Oracle ASM support files. These are the programs used to configure and maintain the ASM volumes.
In order to install the proper files, select the driver component(s) suitable for your system, the Oracle ASM library module, and the support files using rpm, as shown next:
L 6-10 rpm -Uvh oracleasm-2.4.9-e-1.0.0-1.i686.rpm oracleasmlib-1.0.0-1.i386.rpm oracleasm-support-1.0.0-1.i386.rpm
This will install all of the files you need to begin working with ASM. Next, the disk groups must be configured with ASM. Configuring ASM Drives There are two steps necessary to set up and configure ASM. First, ASM must be configured. This configuration is accomplished by running the command /etc/init.d/oracleasm configure, as shown next. The second step is to configure partitions to use ASM.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:10
10
[root@ptc6 ASM]# /etc/init.d/oracleasm configure Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Pressing ENTER without typing an answer will keep that current value. CTRL-C will abort.
L 6-12
Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration Scanning system for ASM disks
[ [
OK OK
] ]
The oracle user account should own the driver interface with the dba group. Whether or not you want to start the ASM driver on boot is your decision; however, I would recommend you do start it on boot.
[root@ptc6 disks]# fdisk -l Disk /dev/sda: 255 heads, 63 sectors, 14593 cylinders Units = cylinders of 16065 * 512 bytes Device Boot /dev/sda1 * /dev/sda2 /dev/sda3 /dev/sda4 Start 1 3649 7297 10945 End 3648 7296 10944 14593 Blocks 29302528+ 29302560 29302560 29310592+ Id 83 83 83 83 System Linux Linux Linux Linux
Disk /dev/hda: 240 heads, 63 sectors, 3883 cylinders Units = cylinders of 15120 * 512 bytes
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:11
Chapter 6:
11
Start 1 8 3780
Id 83 83 82
Disk /dev/hdb: 240 heads, 63 sectors, 7753 cylinders Units = cylinders of 15120 * 512 bytes Device Boot /dev/hdb1 * /dev/hdb2 /dev/hdb3 Start 1 15 7650 End 14 7649 7753 Blocks 105808+ 57720600 786240 Id 83 83 82 System Linux Linux Linux swap
You might see several different types of disks, such as /dev/hdxx, which are IDE disks, /dev/sdxx, which are SCSI or SAN disks, and /dev/rd or /dev/ida disks, which are RAID disks. In addition, if you are running software such as EMC PowerPath or Veritas Volume manager, you will see different device names. If you do not see the partition you want to use for ASM, you must use fdisk or parted to create those partitions before you can configure them with ASM. Once you see the partition you want to use, you can add that disk to ASM by using the /etc /init.d/oracleasm command with the createdisk parameter. All of the oracleasm parameters are listed in the next section. NOTE Although ASM disks can be created as a partition on a disk drive, Oracle recommends that an entire disk drive be used for ASM. This is accomplished by creating one partition that uses the entire disk. In order to add /dev/sda3 to ASM, the following command is used:
L 6-14
[root@ptc6 root]# /etc/init.d/oracleasm createdisk VOL1 /dev/sda3 Marking disk "/dev/sda3" as an ASM disk [ OK ]
I can now query ASM to make sure that the ASM volume has been added for use with the ASM library driver.
L 6-15
Once you have one or more ASM disks available, you are ready to begin the Oracle installation process. Of course ASM volumes are only necessary if you are going to create the Oracle database on ASM.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:12
12
Oracleasm Optional Parameters The Oracle ASM library driver supports a number of optional commands that are useful for administering ASM. You should be familiar with these commands if you intend to use ASM:
Command /etc/init.d/oracleasm configure Description Used to configure the ASM module and ASM configuration file as well as set up the ASM mount point. These commands will change whether the ASM library driver starts on system boot. This command modifies the /etc/sysconfig/oracleasm file. These commands will stop, start, or restart the ASM library driver. Displays the status of the ASM library driver. This command takes the name of the volume to be created and a device name in order to associate a disk drive with ASM: /etc/init.d/oracleasm createdisk VOL1 /dev/sda3. Removes a disk drive from its association with ASM. Lists all of the disk names associated with ASM. Used to determine if a disk name or disk device is associated with ASM. See the example that follows. Used in RAC clusters in order to enable the cluster nodes to identify which disks have been associated with ASM on another node.
/etc/init.d/oracleasm [enable/disable]
/etc/init.d/oracleasm scandisks
Here are a few examples of using the /etc/init.d/oracleasm commands: Checking the status of the ASM library driver:
L 6-16
[root@ptc6 root]# /etc/init.d/oracleasm status Checking if ASM is loaded: Checking if /dev/oracleasm is mounted:
[ [
OK OK
] ]
[root@ptc6 root]# /etc/init.d/oracleasm restart Unmounting ASMlib driver filesystem Unloading module "oracleasm" Loading module "oracleasm"
[ [ [
OK OK OK
] ] ]
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:13
Chapter 6:
13
[ [
OK OK
] ]
OK
[root@ptc6 root]# /etc/init.d/oracleasm createdisk VOL2 /dev/sda4 Marking disk "/dev/sda4" as an ASM disk [ OK ]
[root@ptc6 root]# /etc/init.d/oracleasm querydisk VOL2 Disk "VOL2" is a valid ASM disk [root@ptc6 root]# /etc/init.d/oracleasm querydisk /dev/sda3 Disk "/dev/sda3" is marked an ASM disk
OK
NOTE Whenever an ASM drive is added to a node in a RAC cluster, scandisk should be run on all other nodes in the cluster. This will validate that all nodes have refreshed all of the ASM information and are in sync. Once the ASM drives are created, you are ready to begin installing Oracle. During the installation you will be allowed to choose what type of datafiles you will be using for your database. Using ASM Drives ASM disks are used within the ASM instance, which is created as part of the Oracle 10g installation and is used for the sole purpose of managing
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:14
14
ASM disks. This instance uses the CREATE DISKGROUPS statement to create a disk group used in ASM. Using ASM drives is explained in more detail later in this chapter.
The first step in installing is to take the CD images you want to use, and stage them to a directory in your Linux filesystem.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:15
Chapter 6:
15
Once the files have been uncompressed, the installation medium needs to be extracted from the cpio files. Because each of these archives has a top-level directory that it unarchives to called Disk1, you should change this directory to another name before starting the next cpio command. This will avoid having all three CDs worth of programs in the same subdirectory. This is done using the cpio and mv commands, as shown next:
L 6-24
cpio -idmv ship.db.cpio mv Disk1 db.Disk1 cpio -idmv ship.ccd.cpio mv Disk1 ccd.Disk1 cpio -idmv ship.crs.cpio mv Disk1 crs.Disk1
Once the CD or CDs are unpacked, you are ready to start the installation process.
It is recommended that this program be run from the /tmp directory, so use the following commands to invoke the installer.
L 6-25
# cd /tmp # /oracle_stage/db.Disk1/runInstaller
This will invoke a few checks and then the Oracle installer (Java application) will appear. The installation itself is fairly straightforward. One thing you will notice when you invoke the runInstaller program is that there are a few checks done before the Java application appears, as shown in Figure 6-1.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:16
16
FIGURE 6-1.
These checks include the following: Making sure the operating system is Red Hat AS 2.1, Red Hat ES 3.0, or United Linux 1.0. Ensuring there is at least 80MB of temp space. Making certain the system has at least 150MB of swap space. Ensuring that the X Windows environment supports at least 256 colors.
If you are running on a test machine and do not meet all of the requirements, you can bypass the prerequisites checks by using the IgnoreSysPreReqs flag, as shown next:
L 6-26
# /oracle_stage/db.Disk1/runInstaller ignoreSysPrereqs
Bypassing the prerequisite checks should only be done on a test system, and not on production systems. Once the checks have been done, or bypassed, the Java application is invoked and you should see the Oracle installer appear on your screen, as shown in Figure 6-2.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:17
Chapter 6:
17
FIGURE 6-2.
A number of steps are needed to install the Oracle software on your system. The screens that appear will prompt you to make various decisions. The following are a few things you should be aware of during the installation process: The operating system group should be picked up as oinstall. In the file locations screen: The source file location should be in the stage directory underneath the staging directory you created. In our example, the source path should be /oracle_stage/db.Disk1/stage/products.xml. The path should point to a subdirectory under oracle_base. This will look something like /opt/oracle/product/10.1.0/db_1 where oracle_base is /opt/oracle.
The product prerequisite check should be successfully completed before continuing. If there are any errors, correct them and retry the test. Set the Oracle database name and SID correctly. It should have picked up the oracle_sid from the environment variable.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:18
18
Arrange the character set correctly. This is difficult to change later. Set the database management option. Here you can choose the new feature of allowing Grid Control for database management. Set the Database File Storage option. Here you can choose to use filesystems, or ASM or raw devices for the Oracle Database files (if a database is being created as part of the installation). Set backup and recovery options. New in Oracle 10g is the ability to schedule automatic backups. You can choose to do so as part of the installation, or you can set this up later. Once the installation has completed, take note of the URLs reported for Ultra Search, the Ultra Search Administration Tool, and iSQL *Plus. Typically, these include Ultra Search http://systemname:5620/ultrasearch http://systemname:5620/
http://systemname:5560/isqlplus
Once you have completed the installation, a few postinstallation tasks need to be done, as outlined in the next section.
Postinstallation Steps
Before you can begin to use your newly installed Oracle 10g database server, a few postinstallation tasks must be performed. These tasks include Downloading and installing patches Configuring Oracle products Testing and validating
It is important that these steps be accomplished before putting your database into production.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:19
Chapter 6:
19
product or products you have installed on your system. Each of these patches should be evaluated and, if you so choose, installed on your system. The steps necessary to install these patches are provided with the Oracle product patch set and vary based on the patch.
Configuration Steps
Configuration steps may or may not be necessary depending on your installation. Some of the configuration steps you might need to perform include the following: Backing up the Oracle database and binaries Configuring and tuning the database Adding user accounts Generating the Client Static Library
Whether or not these steps are needed depends on your configuration and your needs.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:20
20
[oracle@ptc6 oracle]$ . /usr/local/bin/oraenv ORACLE_SID = [orac] ? [oracle@ptc6 oracle]$ sqlplus "/ as sysdba" SQL*Plus: Release 10.1.0.2.0 - Production on Sun Apr 4 14:58:24 2004 Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
Once you have connected into the Oracle Database 10g server, run the utlrp.sql script (assuming the database server is up and running).
L 6-28
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:21
Chapter 6:
21
L 6-29
This procedure assumes that the oracle_home environment variable has been set already. If it hasnt, you will need to set it or use the actual path name.
In addition to manually editing the network configuration files, the network can be configured by using the graphical Net Configuration Assistant or netca. netca is invoked by running the program $ORACLE_HOME/bin/netca. You will then see the Java application shown in Figure 6-3. Once the network has been configured, you are ready to start testing.
FIGURE 6-3.
ORACLE Series Color profile: Generic CMYK printer profile Composite Default screen
/ Oracle Database 10g Linux Administration / Coekaerts & Whalen / 223053-3 / Chapter 6 Blind Folio 6:22
22
Installing and configuring these products is covered in detail in the Oracle installation documentation.
Summary
This chapter has covered the tasks required to install and set up storage for the Oracle Database 10g server. In the next few chapters, you will learn some variations on this with the Oracle 10g RAC cluster. The RAC cluster allows multiple Oracle instances to access the same database, thus providing for scalability and fault tolerance at the same time. The beginning part of this chapter focused on setting up storage for the Oracle Database 10g server. This is a very important task that must be accomplished before any database can be created. Here you learned about the three different methods of storage used by Oracle: filesystem files, ASM, and raw partitions. Which one you use will most likely depend on your experience, likes and dislikes, and individual needs. The Oracle Universal Installer has been improved and is very easy to use. Once the installation and postinstallation tasks have been completed, you should be ready to move on to setting up and configuring your production database. As with any product, attention to detail is the key to success in installing Oracle 10g on Linux.