Skip Headers

Oracle® Database Administrator’s Reference
10g Release 1 (10.1) for UNIX Systems: AIX-Based Systems, hp HP-UX PA-RISC (64-bit), hp Tru64 UNIX, Linux x86, and Solaris Operating System (SPARC)
Part No. B10812-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous Next  

1 Administering Oracle on UNIX

This chapter provides information about administering Oracle Database on UNIX systems. It contains the following sections:

Overview

You must set Oracle Database environment variables, parameters, and user settings for Oracle Database to work. This chapter describes the various settings for Oracle Database on UNIX.

In Oracle Database files and programs, a question mark (?) represents the value of the ORACLE_HOME environment variable. For example, Oracle Database expands the question mark in the following SQL statement to the full path of the Oracle home directory:

SQL> ALTER TABLESPACE TEMP ADD DATAFILE ’?/dbs/temp02.dbf’ SIZE 200M

Similarly, the @ sign represents the ORACLE_SID environment variable. For example, to indicate a file belonging to the current instance, enter:

SQL> ALTER TABLESPACE tablespace_name ADD DATAFILE tempfile@.dbf

Environment Variables

This section describes the most commonly-used Oracle Database and UNIX environment variables. You must define some of these environment variables before installing Oracle Database. These environment variables are listed in the Oracle Database Installation Guide for UNIX Systems.

To display the current value of an environment variable, use the env command. For example, to display the value of the ORACLE_SID environment variable, enter:

$ env | grep ORACLE_SID

To display the current value of all environment variables, use the env command as follows:

$ env | more

Oracle Database Environment Variables

Table 1-1 shows the syntax required by the environment variables used with Oracle Database, and provides examples of their values.

Table 1-1 Oracle Database Environment Variables on UNIX

Variable Detail Definition
NLS_LANG Function Specifies the language, territory, and character set of the client environment. The character set specified by NLS_LANG must match the character set of the terminal or terminal emulator. The character set specified by NLS_LANG can be different from the database character set, in which case Oracle automatically converts the character set.

See the Oracle Database Globalization Support Guide for a list of values for this variable.

Syntax language_territory.characterset
Example french_france.we8dec
ORA_NLS10 Function Specifies the directory where language, territory, character set, and linguistic definition files are stored.
Syntax directory_path
Example $ORACLE_HOME/nls/data
ORA_TZFILE Function Specifies the full path and file name of the time zone file. You must set this environment variable if you want to use the small time zone file ($ORACLE_HOME/oracore/zoneinfo/timezone.dat) for data in the database. Oracle Database 10g uses the large time zone file by default ($ORACLE_HOME/oracore/zoneinfo/timezlrg.dat). This file contains information on more time zones than the small time zone file.

All databases that share information must use the same time zone file. You must stop and restart the database if you change the value of this environment variable.

Syntax directory_path
Example $ORACLE_HOME/oracore/zoneinfo/timezlrg.dat
ORACLE_BASE Function Specifies the base of the Oracle directory structure for Optimal Flexible Architecture (OFA) compliant installations.
Syntax directory_path
Example /u01/app/oracle
ORACLE_HOME Function Specifies the directory containing the Oracle software.
Syntax directory_path
Example $ORACLE_BASE/product/10.1.0
ORACLE_PATH Function Specifies the search path for files used by Oracle applications such as SQL*Plus. If the full path to the file is not specified, or if the file is not in the current directory, the Oracle application uses ORACLE_PATH to locate the file.
Syntax Colon-separated list of directories:
directory1:directory2:directory3
Example /u01/app/oracle/product/10.1.0/bin:.

Note: The period adds the current working directory to the search path.

ORACLE_SID Function Specifies the Oracle system identifier.
Syntax A string of numbers and letters that must begin with a letter. Oracle recommends a maximum of eight characters for system identifiers. For more information about this environment variable, see the Oracle Database Installation Guide for UNIX Systems.
Example SAL1
ORACLE_TRACE Function Enables the tracing of shell scripts during an installation. If it is set to T, many Oracle shell scripts use the set -x command, which prints commands and their arguments as they are run. If it is set to any other value, or no value, the scripts do not use the set -x command.
Syntax T or not T.
ORAENV_ASK Function Controls whether the oraenv or coraenv script prompts for the value of the ORACLE_SID environment variable. If it is set to NO, the scripts do not prompt for the value of the ORACLE_SID environment variable. If it is set to any other value, or no value, the scripts prompt for a value for the ORACLE_SID environment variable.
Syntax NO or not NO.
Example NO
SQLPATH Function Specifies the directory or list of directories that SQL*Plus searches for a login.sql file.
Syntax Colon-separated list of directories: directory1:directory2:directory3
Example /home:/home/oracle:/u01/oracle
TNS_ADMIN Function Specifies the directory containing the Oracle Net Services configuration files.
Syntax directory_path
Example $ORACLE_HOME/network/admin
TWO_TASK Function Specifies the default connect identifier to use in the connect string. If this environment variable is set, you do not need to specify the connect identifier in the connect string. For example, if the TWO_TASK environment variable is set to sales, you can connect to a database using the CONNECT username/password command rather than the CONNECT username/password@sales command.
Syntax Any connect identifier.
Range of Values Any valid connect identifier that can be resolved using a naming method, such as a tnsnames.ora file or a directory server.
Example PRODDB_TCP


Note:

To prevent conflicts, do not define environment variables with names that are identical to the names of Oracle Server processes, for example ARCH, PMON, and DBWR.

UNIX Environment Variables

Table 1-2 shows the syntax required by the UNIX environment variables used with Oracle Database and provides examples of their values.

Table 1-2 UNIX Environment Variables Used with Oracle Database

Variable Detail Definition
ADA_PATH (AIX only) Function Specifies the directory containing the Ada compiler.
Syntax directory_path
Example /usr/lpp/powerada
CLASSPATH Function Used with Java applications. The required setting for this variable depends on the Java application. See the product documentation for your Java application for more information.
Syntax Colon-separated list of directories or files: directory1:directory2:file1:file2
Example There is no default setting. CLASSPATH must include the following directories:

$ORACLE_HOME/JRE/lib:$ORACLE_HOME/jlib

DISPLAY Function Used by X-based tools. Specifies the display device used for input and output. See your X Window System documentation for information.
Syntax hostname:server[.screen]
where the hostname is the system name (either IP address or alias), server is the sequential code number for the server, and screen is the sequential code number for the screen. If you have a single monitor, use the value 0 for both server and screen (0.0).

Note: If you have a single monitor, screen is optional.

Example 135.287.222.12:0.0 bambi:0
HOME Function The user’s home directory.
Syntax directory_path
Example /home/oracle
LANG or LANGUAGE Function Specifies the language and character set used by the operating system for messages and other output. See the operating system documentation for more information.
LD_OPTIONS Function Specifies the default linker options. See the ld man page for more information about this environment variable.
LPDEST (Solaris only) Function Specifies the name of the default printer.
Syntax string
Example docprinter
LD_LIBRARY_PATH
(All platforms except AIX. On HP-UX, specifies the path for 64-bit shared libraries.)
Function Specifies the list of directories that the shared library loader searches to locate shared object libraries at runtime. See the ld man page for information about this environment variable.
Syntax Colon-separated list of directories: directory1:directory2:directory3
Example /usr/dt/lib:$ORACLE_HOME/lib
LD_LIBRARY_PATH_64
(Solaris only)
Function Specifies the list of directories that the shared library loader searches to locate specific 64-bit shared object libraries at runtime. See the ld man page for information about this environment variable.
Syntax Colon separated list of directories: directory1:directory2:directory3
Example /usr/dt/lib:$ORACLE_HOME/lib64
LIBPATH (AIX only) Function Specifies the list of directories that the shared library loader searches to locate shared object libraries at runtime. See the ld man page for information about this environment variable.
Syntax Colon-separated list of directories: directory1:directory2:directory3
Example /usr/dt/lib:$ORACLE_HOME/lib
PATH Function Used by the shell to locate executable programs; must include the $ORACLE_HOME/bin directory.
Syntax Colon-separated list of directories: directory1:directory2:directory3
Example /bin:/usr/bin:/usr/local/bin: /usr/bin/X11:$ORACLE_HOME/bin:$HOME/bin:.

Note: The period adds the current working directory to the search path.

PRINTER Function Specifies the name of the default printer.
Syntax string
Example docprinter
SHLIB_PATH (HP-UX 32-bit libraries only) Function Specifies the list of directories that the shared library loader searches to locate shared object libraries at runtime. See the ld man page for information about this environment variable.
Syntax Colon-separated list of directories: directory1:directory2:directory3
Example /usr/dt/lib:$ORACLE_HOME/lib32
TEMP, TMP, and TMPDIR Function Specify the default directories for temporary files; if set, tools that create temporary files create them in one of these directories.
Syntax directory_path
Example /u02/oracle/tmp
XENVIRONMENT Function Specifies a file containing X-Windows system resource definitions. See your X-Windows documentation for more information.

Setting a Common Environment

This section describes how to set a common UNIX environment.

You use a different script, depending on your default shell:

  • For the Bourne, Bash, or Korn shell, use the oraenv command.

  • For the C or tcsh shell, use the coraenv command.

oraenv and coraenv Script Files

The oraenv and coraenv scripts are created during installation. These scripts set environment variables based on the contents of the oratab file and provide:

  • A central means of updating all user accounts with database changes

  • A mechanism for switching between databases specified in the oratab file

You might find yourself frequently adding and removing databases from your development system or your users might be switching between several different Oracle databases installed on the same system. You can use the oraenv or coraenv script to ensure that user accounts are updated and to switch between databases.


Note:

Do not call the oraenv or coraenv script from the Oracle software owner (typically oracle) user's shell startup script. Because these scripts prompt for values, they can prevent the dbstart script from starting a database automatically when the system starts.

The oraenv or coraenv script is usually called from the user’s shell startup file (for example .profile or .login). It sets the ORACLE_SID and ORACLE_HOME environment variables and includes the $ORACLE_HOME/bin directory in the PATH environment variable setting. When switching between databases, users can run the oraenv or coraenv script to set these environment variables.


Note:

To run one of these scripts, enter the appropriate command:
  • For the coraenv script:

    $ source /usr/local/bin/coraenv
    
    
  • For the oraenv script:

    $ . /usr/local/bin/oraenv
    
    

Local bin Directory

The directory that contains the oraenv, coraenv, and dbhome scripts is called the local bin directory. All database users should have read access to this directory. Include the path of the local bin directory in the users’ PATH environment variable setting. When you run the root.sh script after installation, the script prompts you for the path of the local bin directory and automatically copies the oraenv, coraenv, and dbhome scripts to the directory you specify. The default local bin directory is /usr/local/bin. If you do not run the root.sh script, you can manually copy the oraenv or coraenv and dbhome scripts from the $ORACLE_HOME/bin directory to the local bin directory.

Setting the System Time Zone

The TZ environment variable sets the time zone. It enables you to adjust the clock for daylight saving time changes or different time zones. The adjusted time is used to time-stamp files, produce the output of the date command, and obtain the current SYSDATE.

Oracle recommends that you do not change your personal TZ value. Using different values of TZ such as GMT+24 might change the date a transaction is recorded. This changed date affects Oracle applications that use SYSDATE. To avoid this problem, use sequence numbers to order a table instead of date columns.

Initialization Parameters

The following sections provide platform-specific information about Oracle Database initialization parameters:

Maximum Value of DB_BLOCK_SIZE Initialization Parameter

The DB_BLOCK_SIZE initialization parameter specifies the standard block size for the database. This block size is used for the SYSTEM tablespace and by default in other tablespaces.

The maximum value to which you can set the DB_BLOCK_SIZE parameter differs on UNIX platforms, as listed in the following table:


Note:

You cannot change the value of the DB_BLOCK_SIZE parameter after you create a database.

Platform Maximum Value
Linux (x86) 16 K
Other operating systems 32 K

Operating System Specific Default Values for ASM_DISKSTRING

Table 1-3 lists the operating system specific default values for the Automatic Storage Management ASM_DISKSTRING initialization parameter.


Note:

Only ASM instances support the ASM_DISKSTRING initialization parameter.

Table 1-3 Default Values for ASM_DISKSTRING

Platform Default Search String
AIX /dev/rhdisk*
HP-UX /dev/rdsk/*
Linux /dev/raw/*
Solaris /dev/rdsk/*
Tru64 UNIX /dev/rdisk/*

Maximum Value for ASYNC in LOG_ARCHIVE_DEST Initialization Parameter

The maximum value that you can set for ASYNC in the LOG_ARCHIVE_DEST initialization parameter differs on UNIX platforms, as listed in the following table:

Platform Maximum Value
HP-UX, Tru64 UNIX 51200
AIX, Solaris, Linux 102400

CLUSTER_INTERCONNECTS Initialization Parameter

In a Real Application Clusters environment, you can use the CLUSTER_INTERCONNECTS initialization parameter to specify an alternative interconnect for the private network.

The CLUSTER_INTERCONNECTS parameter requires the IP address of the interconnect instead of the device name. It allows you to specify multiple IP addresses, separated by colons. Oracle Real Application Clusters network traffic is distributed between all of the specified IP addresses.

The CLUSTER_INTERCONNECTS parameter is useful only in an Oracle Real Application Clusters environment where UDP IPC is enabled. It enables users to specify an interconnect for all IPC traffic that includes Oracle Global Cache Service (GCS), Global Enqueue Service (GES), and Interprocessor Parallel Query (IPQ).

Overall cluster stability and performance might improve when you force Oracle GCS, GES, and IPQ over a different interconnect by setting the CLUSTER_INTERCONNECTS parameter. For example, to use the network interface whose IP address is 129.34.137.212 for all GCS, GES, and IPQ IPC traffic, set the CLUSTER_INTERCONNECTS parameter as follows:

CLUSTER_INTERCONNECTS=129.34.137.212

Use the ifconfig or netstat commands to display the IP address of a device. This command provides a map between device names and IP addresses. For example, to determine the IP address of a device on Tru64 UNIX, enter the following command as the root user:

# /usr/sbin/ifconfig -a 
fta0: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX> 
      inet 129.34.137.212 netmask fffffc00 broadcast 129.34.139.255 ipmtu 1500

lo0:  flags=100c89<UP,LOOPBACK,NOARP,MULTICAST,SIMPLEX,NOCHECKSUM> 
      inet 127.0.0.1 netmask ff000000 ipmtu 4096 

ics0:  flags=1100063<UP,BROADCAST,NOTRAILERS,RUNNING,NOCHECKSUM,CLUIF> 
      inet 10.0.0.1 netmask ffffff00 broadcast 10.0.0.255 ipmtu 7000 

sl0:  flags=10<POINTOPOINT> 

tun0: flags=80<NOARP>

In the preceding example, the interface fta0: has an IP address of 129.34.137.212 and the interface ics0: has an IP address of 10.0.0.1.

Note the following important points when using the CLUSTER_INTERCONNECTS initialization parameter:

  • The IP addresses specified for the different instances of the same database on different nodes should belong to network adaptors that connect to the same network. If you do not follow this rule, internode traffic might pass through bridges and routers or there might not be a path between the two nodes at all.

  • Specify the CLUSTER_INTERCONNECTS parameter in the parameter file, setting a different value for each database instance.

  • If you specify multiple IP addresses for this parameter, list them in the same order for all instances of the same database. For example on Tru64 UNIX, if the parameter for instance 1 on node 1 lists the IP addresses of the alt0, fta0 and ics0 devices in that order, the parameter for instance 2 on node 2 should list the IP addresses of the equivalent network adaptors in the same order.

  • If the interconnect IP address specified is incorrect or does not exist on the system, Oracle Database uses the default cluster interconnect device. On Tru64 UNIX, for example, the default device is ics0.

Failover and Failback and CLUSTER_INTERCONNECTS

Some operating systems support runtime failover and failback. However, if you use the CLUSTER_INTERCONNECTS initialization parameter, failover and failback are disabled.


See Also:

For more information about runtime failover and failback on AIX systems, refer to Appendix A, " Administering Oracle Database on AIX".

Operating System Accounts and Groups

Special operating system accounts and groups are required by Oracle Database, as follows:

Oracle Software Owner Account

The Oracle software owner account, usually named oracle, is the account that you use to install the Oracle software. You can use different Oracle software owner accounts to install the software in separate Oracle home directories. However, for each Oracle home directory, you must use the same account that installed the software for all subsequent maintenance tasks on that Oracle home directory.

Oracle recommends that the Oracle software owner has the Oracle Inventory group as its primary group and the OSDBA group as its secondary group.

OSDBA, OSOPER, and Oracle Inventory Groups

Table 1-4 describes the special UNIX groups required by Oracle Database.

Table 1-4 UNIX Groups

Group Typical Name Description
OSDBA dba Operating system accounts that are members of the OSDBA group have special database privileges. Members of this group can connect to the database using the SYSDBA privilege. The Oracle software owner is the only required member of this group. You can add other accounts as required.
OSOPER oper The OSOPER group is an optional group. Operating system accounts that are members of the OSOPER group have special database privileges. Members of this group can connect to the database using the SYSOPER privilege.
Oracle Inventory oinstall All users installing Oracle software on a UNIX system must belong to the same UNIX group, called the Oracle Inventory group. This group must be the primary group of the Oracle software owner during installations. After the installation, this group owns all of the Oracle files installed on the system.


See Also:

For more information about the OSDBA group and SYSDBA privileges, and the OSOPER group and SYSOPER privileges, see the Oracle Database Administrator’s Guide and the Oracle Database Installation Guide for UNIX Systems.

Oracle Database uses several features of the UNIX operating system to provide a secure environment for users. These features include file ownership, group accounts, and the ability of a program to change its user ID upon execution.

The two-task architecture of Oracle Database improves security by dividing work (and address space) between the user program and the oracle program. All database access is achieved through the shadow process and special authorizations in the oracle program.


See Also:

For more information about security issues, see the Oracle Database Administrator’s Guide.

Groups and Security

Oracle programs are divided into two sets for security purposes: those executable by all (other in UNIX terms), and those executable by DBAs only. Oracle recommends that you take the following approach to security:

  • The primary group for the oracle account should be the oinstall group.

  • The oracle account must have the dba group as a secondary group.

  • Although any user account that requires the SYSDBA privilege can belong to the dba group, the only user accounts that should belong to the oinstall group are the Oracle software owner accounts, for example, oracle.

External Authentication

If you choose to use external authentication, you must use the value of the OS_AUTHENT_PREFIX initialization parameter as a prefix for Oracle user names. If you do not explicitly set this parameter, the default value on UNIX is ops$, which is case sensitive.

To use the same user names for both operating system and Oracle authentication, set this initialization parameter to a null string, as follows:

OS_AUTHENT_PREFIX=""


See Also:

For more information on external authentication, see the Oracle Database Administrator’s Guide.

Running the orapwd Utility

You can use a password file to identify users that can use the SYSDBA and SYSOPER privileges when connecting to the database. If you use the Database Configuration Assistant (DBCA) to create a database, it creates a password file for the new database. If you create the database manually, create the password file for it as follows:

  1. Log in as the Oracle software owner.

  2. Use the orapwd utility to create the password file, as follows:

    $ $ORACLE_HOME/bin/orapwd file=filename password=password entries=max_users
    
    

    The following table describes the values that you must specify in this command:

Value Description
filename The name of the file where password information is written. The name of the file must be orapwsid and you must supply the full path name. Its contents are encrypted and are not user-readable. The password file is typically created in the $ORACLE_HOME/dbs directory.
password The password for the SYS user. If you use an ALTER USER statement to change the password for the SYS user after you connect to the database, both the password stored in the data dictionary and the password stored in the password file are updated. This parameter is mandatory.
max_users Sets the maximum number of entries for the password file to accept. This is the maximum number of distinct users allowed to connect to the database simultaneously with either the SYSDBA or the SYSOPER privilege.


See Also:

For more information about using the orapwd utility, see the Oracle Database Administrator’s Guide.

The orapwd Utility and Oracle Real Application Clusters

If you are using the file system for database file storage and if the Real Application Clusters Oracle home directory is not on a cluster file system, you can set the password file to be a symbolic link to a shared file. If you choose to implement this, changes you make to the file through SQL are shared across all instances. Otherwise, the file is updated only on the node with the instance that issues the SQL, and the file must be copied to all other nodes that run instances of the database. For this reason, Oracle recommends that you set $ORACLE_HOME/dbs/orapwsid to be a symbolic link to a shared file.

Password Management

When using the Database Configuration Assistant to create a database, users must change the SYS and SYSTEM account passwords. You cannot use the default CHANGE_ON_INSTALL and MANAGER passwords.

For security reasons, the Database Configuration Assistant locks most Oracle user accounts after it creates the database. It does not lock the SYS or SYSTEM accounts. You must unlock any locked accounts and change their passwords before logging into them.

To change the passwords in the DBCA, click the Password Management button in the Database Configuration Assistant Summary window.

Alternatively, use SQL*Plus to connect to the database as SYS and enter the following command to unlock an account and reset its password:

SQL> ALTER USER username IDENTIFIED BY passwd ACCOUNT UNLOCK;

Creating Additional UNIX Accounts

If necessary, create additional UNIX accounts. Users must be members of the OSDBA or OSOPER groups to connect to the database with administrator privileges.

Configuring the Accounts of Oracle Users

Update the startup files of the oracle user and the UNIX accounts of Oracle users, specifying the appropriate environment variables in the environment file.

For the Bourne, Bash or Korn shell, add the environment variables to the .profile file, or on Red Hat Enterprise Linux, the .bash_profile file.

For the C or tcsh shell, add the environment variables to the .login file.


Note:

You can use the oraenv or coraenv script to ensure that the oracle users’ accounts are updated.

Using Raw Devices

The following sections provide information about using raw devices (raw partitions or raw volumes).

Guidelines for Using Raw Devices

Raw devices (raw partitions or raw volumes) have the following potential disadvantages when used on UNIX:

  • Raw devices might not solve problems with file size writing limits.


    Note:

    To display current file size limits:
    • For the Bourne, Bash, or Korn shell, enter:

      $ ulimit -a
      
      
    • For the C or tcsh shell, enter:

      % limit
      
      

  • Small client systems might not be able to use sufficiently large partitions or volumes for the raw devices.

  • If a particular disk drive has intense I/O activity and performance would benefit from movement of an Oracle data file to another drive, it is likely that no acceptably sized partition or volume exists on a drive with less I/O activity. It might not be possible to move files to other disk drives if you are using raw devices.

  • Raw devices are more difficult to administer than data files stored on a file system or in an Automatic Storage Management (ASM) disk group.

Consider the following issues when deciding whether to use raw devices:

  • Oracle Real Application Clusters installation

    Each instance of Oracle Real Application Clusters (RAC) has its own log files. Therefore, in addition to the devices required for the tablespaces and control files, each instance requires a minimum of two partitions for the log files. All of the files must be on disks that can be shared by all nodes of a cluster.

  • Raw disk partition availability

    Use raw partitions for Oracle files only if you have at least as many raw disk partitions as Oracle data files. If disk space is a consideration and the raw disk partitions are already created, match data file size to partition size as closely as possible to avoid wasting space.

    You must also consider the performance implications of using all of the disk space on a few disks as opposed to using less space on more disks.

  • Logical volume manager

    Logical volume managers manage disk space at a logical level and hide some of the complexity of raw devices. With logical volumes, you can create logical disks based on raw partition availability. The logical volume manager controls fixed-disk resources by:

    • Mapping data between logical and physical storage

    • Allowing data to span multiple disks and to be discontiguous, replicated, and dynamically expanded

    For RAC, you can use logical volumes for drives associated with a single UNIX system, as well as those that can be shared with more than one system of a UNIX cluster. Shared drives allow for all files associated with a RAC database to be placed on these shared logical volumes.

  • Dynamic performance tuning

    To optimize disk performance, you can move files from disk drives with high activity to disk drives with less activity. Most hardware vendors who provide the logical disk facility also provide a graphical user interface that you can use for tuning.

  • Mirroring and online disk replacement

    You can mirror logical volumes to protect against loss of data. If one copy of a mirror fails, dynamic resynchronization is possible. Some vendors also provide the ability to replace drives online in conjunction with the mirroring facility.

Raw Device Setup

Keep the following items in mind when creating raw devices:

  • When creating the devices, ensure that the owner is the Oracle software owner user (oracle) and the group is the OSDBA group (dba).

  • The size of an Oracle data file created in a raw partition must be at least two Oracle block sizes smaller than the size of the raw partition.


    See Also:

    Fore more information about creating raw devices, see your operating system documentation.

Raw Device Datafiles on AIX or Tru64 UNIX Systems

On AIX and Tru64 UNIX systems, datafiles on raw logical volumes may have offsets for the first block of the Oracle data. This offset is required by the logical volume manager.

You can use the following utility to determine the offset value, for example, if you want to transfer the datafile to a different device:

$ORACLE_HOME/bin/offset

Using Trace and Alert Files

This section describes the trace (or dump) and alert files that Oracle Database creates to help you diagnose and resolve operating problems.

Trace Files

Each server and background process writes to a trace file. When a process detects an internal error, it writes information about the error to its trace file. The file name format of a trace file is sid_processname_unixpid.trc, where:

  • sid is the instance system identifier

  • processname is a three or four-character abbreviated process name identifying the Oracle Database process that generated the file (for example, pmon, dbwr, ora, or reco)

  • unixpid is the UNIX process ID number

A sample trace file name is $ORACLE_BASE/admin/TEST/bdump/test_lgwr_1237.trc

All trace files for background processes are written to the destination directory specified by the BACKGROUND_DUMP_ DEST initialization parameter. If you do not set this initialization parameter, the default directory is $ORACLE_HOME/rdbms/log.

All trace files for user processes are written to the destination directory specified by the USER_DUMP_DEST initialization parameter. If you do not set the USER_DUMP_DEST initialization parameter, the default directory is $ORACLE_HOME/rdbms/log. Set the MAX_DUMP_FILE initialization parameter to at least 5000 to ensure that the trace file is large enough to store error information.

Alert Files

The alert_sid.log file stores information about significant database events and messages. Events that affect the database instance or database are recorded in this file. This file is associated with a database and is located in the directory specified by the BACKGROUND_DUMP_DEST initialization parameter. If you do not set this initialization parameter, the default directory is $ORACLE_HOME/rdbms/log.