|Oracle® Database Installation Guide
11g Release 2 (11.2) for Microsoft Windows
|PDF · Mobi · ePub|
Oracle recommends installing the latest patch set release after successful installation of Oracle Database.
You must register online before using My Oracle Support (formerly OracleMetaLink). After logging in to My Oracle Support (formerly OracleMetaLink), select the Patches and Updates tab from the top of the screen.
To find and download patches:
Use a web browser to view the My Oracle Support website:
Log in to My Oracle Support.
Note:If you are not a My Oracle Support (formerly OracleMetaLink) registered user, then click Register here for New user and follow the registration instructions.
On the main My Oracle Support page, click Patches and Updates tab.
In the Patch Search group, select Product or Family (Advanced).
In the Product field, select Oracle Database.
In the Release field, select the release number. For example, Oracle 22.214.171.124.2
Any available patch updates are displayed in the Patch Search page.
Select the patch number and click ReadMe. The README page is displayed and contains information about the patch set and how to apply the patches to your installation.
Return to the Patch Search page, click Download, and save the file on your system.
Use the unzip utility provided with Oracle Database 11g to uncompress the Oracle patch updates that you downloaded from My Oracle Support. The unzip utility is located in the
utlrp.sql script after creating or upgrading a database. This script recompiles all PL/SQL modules that may be in an INVALID state, including packages, procedures, types, and so on. This step is optional, but recommended so that the performance cost of recompilation is incurred during the installation rather than in the future.
Note:There should be no other data definition language (DDL) statements running on the database while the script is running, and packages
DBMS_STANDARDmust be valid.
DRIVE_LETTER:\> sqlplus /nolog
Connect to the database with the
SQL> CONNECT SYS AS SYSDBA Enter password: SYS_password
Start the database (if necessary):
utlrp.sql script, which by default is located in
\rdbms\admin\utlrp.sql. For example:
Oracle highly recommends you configure and use a Secure Sockets Layer (SSL) to ensure that passwords and other sensitive data are not transmitted in clear text in HTTP requests.
See the following sections in Oracle SQL Developer Installation Guide for recommended postinstallation tasks for SQL Developer:
Many Oracle products and options must be configured before you use them for the first time. Before using individual Oracle products or options, refer to the appropriate manual in the product documentation library.
This section contains these topics:
Chapter 4, "Configuration Tasks When Installing from the Database" in Oracle Application Express Installation Guide
"Post-installation Database Configuration" section in Oracle Configuration Manager Installation and Administration Guide for information about postinstallation tasks for Oracle Configuration Manager
Note:You need only perform postinstallation tasks for components that you intend to use.
With Oracle Database 11g, you can store data files on a supported NFS system. You can configure Oracle Database to access NFS V3 servers directly using an Oracle internal Direct NFS Client. If Oracle Database cannot open an NFS server using Direct NFS Client, then an informational message is logged into the Oracle alert and trace files indicating that Direct NFS Client could not be established.
Management of Oracle data files created with Direct NFS Client should be done according to the guidelines specified in Oracle Database Administrator's Guide. The Oracle files resident on the NFS server that are served by the Direct NFS Client can also be accessed through a third party NFS Client. The volume must be mounted through CIFS or kernel NFS to enable regular windows utilities and commands, such as copy, and so on, access the database files in the remote location. Volumes mounted through CIFS cannot be used for database file storage without configuring Direct NFS Client. The atomic write requirements required for database access are not guaranteed by CIFS protocol. Consequently, CIFS can only be used for operating system level commands, such as copy, move, and so on.
Some NFS file servers require NFS clients to connect using reserved ports. If your filer is running with reserved port checking, then you must disable it for Direct NFS Client to operate. To disable reserved port checking, consult your NFS file server documentation.
Direct NFS Client can consume upto four network paths defined for an NFS server. The Direct NFS Client performs load balancing across all specified paths. If a specified path fails, then Direct NFS Client reissues I/O commands over any remaining paths.
Direct NFS Client requires an NFS server supporting NFS read/write buffers of at least 16384 bytes.
Direct NFS Client issues writes at
wtmax granularity to the NFS server. Direct NFS Client does not serve an NFS server with a
wtmax less than 16384. Oracle recommends that you use the value 32768.
Use the following views for Direct NFS Client management:
v$dnfs_servers: Shows a table of servers accessed using Direct NFS Client.
v$dnfs_files: Shows a table of files currently open using Direct NFS Client.
v$dnfs_channels: Shows a table of open network paths (or channels) to servers for which Direct NFS Client is providing files.
v$dnfs_stats: Shows a table of performance statistics for Direct NFS Client.
For NFS servers that restrict port range, you can use the
insecure option to enable clients other than
root to connect to the NFS server. Alternatively, you can disable Direct NFS Client as described in "Disable Direct NFS Client".
Note:Use NFS servers supported for Oracle Database. See the My Oracle Support website for support information:
The following sections elaborate on enabling, disabling, checking the buffer size for a Direct NFS Client:
To enable Direct NFS Client, a new Oracle specific file
oranfstab can be added to
oranfstab is placed in
\dbs, its entries are specific to a single database.
Direct NFS Client looks for the mount point entries in
\dbs\oranfstab. It uses the first matched entry as the mount point.
Complete the following procedure to enable Direct NFS Client:
oranfstab file with the following attributes for each NFS server to be accessed using Direct NFS Client:
Server: The NFS server name.
Path: Up to 4 network paths to the NFS server, specified either by IP address, or by name, as displayed using the
ifconfig command on the NFS server.
Local: Up to 4 network interfaces on the database host, specified by IP address, or by name, as displayed using the
ipconfig command on the database host.
Export: The exported path from the NFS server. Use UNIX-style path.
Mount: The corresponding local mount point for the exported volume. Use WINDOWS-style path.
mnt_timeout: Specifies (in seconds) the time for which Direct NFS Client should wait for a successful mount before timing out. This parameter is optional and the default timeout is 10 minutes.
The following is an example of an
oranfstab file with two NFS server entries:
server: MyDataServer1 local: 126.96.36.199 path: 188.8.131.52 local: 184.108.40.206 path: 220.127.116.11 export: /vol/oradata1 mount: C:\APP\ORACLE\ORADATA\ORCL
server: MyDataServer2 local: LocalInterface1 path: NfsPath1 local: LocalInterface2 path: NfsPath2 local: LocalInterface3 path: NfsPath3 local: LocalInterface4 path: NfsPath4 export: /vol/oradata2 mount: C:\APP\ORACLE\ORADATA\ORCL2 export: /vol/oradata3 mount: C:\APP\ORACLE\ORADATA\ORCL3
As a rule, a mount point specified in
oranfstab file represents local path where the database files reside normally, that is, without Direct NFS Client being enabled. For example, if a database that does not use Direct NFS Client would have kept its files in
C:\app\oracle\oradata\orcl directory, then
C:\app\oracle\oradata\orcl should be specified as a virtual mount point in the corresponding
Note:On Windows platforms, two optional parameters can be specified in
uid: UNIX User ID to be used by Direct NFS Client
gid: UNIX Group ID to be used by Direct NFS Client
The Direct NFS Client uses the
gid value to access all NFS servers listed in
oranfstab. Direct NFS Client ignores
gid value of
0. If neither
gid is specified, then a default of
gid:65534 is used by the Direct NFS Client. The default value often corresponds to
group:nogroup on the NFS server.
Note:The exported path from the NFS server must be accessible for read, write, and execute operations by the user with the
uid, gidspecified in
oranfstab. If neither uid nor gid is listed, then the exported path must be accessible by the user with the
Oracle Database uses an ODM library,
oranfsodm11.dll, to enable Direct NFS Client. To replace the standard ODM library,
oraodm11.dll, with the ODM NFS library,
oranfsodm11.dll, complete the following steps:
Change directory to
Shutdown the Oracle database.
Enter the following commands:
DRIVE_LETTER:\> copy oraodm11.dll oraodm11.dll.stub DRIVE_LETTER:\> copy /Y oranfsodm11.dll oraodm11.dll
Complete the following steps to disable the Direct NFS Client:
Log in as the Oracle Grid Infrastructure software owner.
Restore the stub
oraodm11.dll file by reversing the process you completed in "Enable Direct NFS Client".
ORADNFS is a utility which enables the database administrators to perform basic file operations over Direct NFS Client on Microsoft Windows platforms.
ORADNFS is a multi-call binary, a single binary that acts like several utilities. This allows ORADNFS to be smaller since all the built-in commands can leverage DNFS code for many common operations. ORADNFS is run by issuing a command as an argument on the command line.
C:\> ORADNFS help causes ORADNFS to print a list of built-in commands, and
C:\> ORADNFS ls C:\ORACLE\ORADATA\ORCL causes ORADNFS to behave as an
ls command of
C:\ORACLE\ORADATA\ORCL remote directory, where
C:\ORACLE\ORADATA is a DNFS virtual mount point specified in the
oranfstab configuration file.
A valid copy of the oranfstab configuration file must be present in
\dbs directory for ORADNFS to operate.
The user must be a member of the local ORA_DBA group to execute ORADNFS.
See Also:"Loading and Setting Up Oracle Messaging Gateway" in Oracle Streams Advanced Queuing User's Guide to configure Oracle Messaging Gateway and for additional instructions about configuring the
Oracle Administration Assistant for Windows requires the Microsoft Management Console and HTML Help 1.2 or later to run. Microsoft Management Console (MMC) version 3.0 is available with Windows 2003, Windows XP, Windows Vista, and Windows Server 2008. Oracle recommends the latest MMC version available.
See Also:Microsoft documentation at
Before using Oracle Counters for Windows Performance Monitor to view Oracle-specific counters, you must specify the system password by running
operfcfg.exe, located in the
operfcfg.exe prompts for a user name, password, and TNS alias.
DRIVE_LETTER:\> ORACLE_HOME\bin\operfcfg.exe Enter user-name: system Enter password: password Enter tns-alias: orcl operfcfg: New registry values have been successfully set.
If you run the following command, then
operfcfg.exe does not prompt for a password:
operfcfg.exe -U user_name -D tns_alias
My Oracle Support (formerly OracleMetaLink) Note 106375.1 for more details about setting credentials for Windows Performance Monitor
Oracle Database Platform Guide for Microsoft Windows for additional information about Oracle Counters for Windows Performance Monitor
If you installed Oracle Label Security, you must configure it in a database before you use it. You can configure Oracle Label Security with or without Oracle Internet Directory integration. If you configure Oracle Label Security without Oracle Internet Directory integration, you cannot configure it to use Oracle Internet Directory at a later stage.
Note:To configure Oracle Label Security with Oracle Internet Directory integration, Oracle Internet Directory must be installed in your environment and the Oracle database must be registered in the directory.
See Also:Oracle Label Security Administrator's Guide for more information about Oracle Label Security enabled with Oracle Internet Directory
If you installed Oracle Database Vault, you must register it in a database and create the Database Vault Owner and, optionally, Database Vault Account Manager administrative accounts before you can use it.
See Also:Oracle Database Vault Administrator's Guide for more information about registering Oracle Database Vault
If you have a previous release of Oracle software installed on this system, you can copy information from the Oracle Net
listener.ora configuration files from the previous release to the corresponding files for the new release.
Note:The default location for the
listener.orafiles is the
If you are upgrading from a previous release of Oracle Database, Oracle recommends that you use the current release of Oracle Net listener instead of the listener from the previous release.
If you have referenced the previous Oracle home directory names in the static listener information, then these directory names must be modified before the
listener.ora file can be used in the 11.2 environment.
For any database instances earlier than release 8.0.3, add static service information to the
listener.ora file. Oracle Database releases later than release 8.0.3 do not require static service information.
Unless you are using a central
tnsnames.ora file, copy Oracle Net service names and connect descriptors from the previous release
tnsnames.ora file to the version of that file used by the new release.
If necessary, you can also add connection information for additional database instances to the new file.
An Oracle Text knowledge base is a hierarchical tree of concepts used for theme indexing, ABOUT queries, and deriving themes for document services. If you plan to use any of these Oracle Text features, you can install two supplied knowledge bases (English and French) from the Oracle Database Examples media.
See Also:Oracle Text Reference for information about creating and extending knowledge bases, such as extending the supplied knowledge bases to accommodate your requirements, or creating your own knowledge bases in languages other than English and French
Oracle Text Filtering Technology requires the Visual C++ libraries included in the Visual C++ Redistributable Package provided by Microsoft. You can download the 2005 SP1 Redistributable Package version of the
vcredist_x86.exe file from
See Also:Oracle Text Reference for more information about Oracle Text Filtering Technology
See Oracle XML DB Developer's Guide for more information about the following tasks:
Reinstalling Oracle XML DB
Configuring or customizing the Oracle XML DB tablespace
Configuring FTP, HTTP/WebDAV port numbers
See Also:Appendix A of Oracle XML DB Developer's Guide
Configuring PL/SQL depends on the network configuration files used. In nearly all cases, configuration is automatic. However, if you are using pre-8.0.3
listener.ora files with your 11g Release 2 (11.2) database, you must manually configure them.
See Also:"Developing Applications for Windows" of Oracle Database Platform Guide for Microsoft Windows
The default setup for using Shared Server mode depends on how the software has been installed. If you installed Oracle Database through the Enterprise Edition, Standard Edition, or Personal Edition installation types, then shared support was not configured. If you created your database through Oracle Database Configuration Assistant, then you were offered a choice of shared or dedicated server support.
See Also:"Postinstallation Configuration Tasks on Windows" of Oracle Database Platform Guide for Microsoft Windows
Windows systems require that you set the correct credentials for the Jobs system to work properly in Oracle Enterprise Manager. By default, the Management Agent service is installed as a
LocalSystem user. When submitting jobs, such as stopping or starting the database, the operating system user submitting the job must have the Log on as a batch job privilege enabled.
Perform the following steps to establish that privilege for any operating system user who must submit an Oracle Enterprise Manager job.
Start the Local Security Policy tool:
Windows 2003: From the Start menu, select Administrative Tools, then Local Security Policy.
Windows XP: From the Start menu, select Control Panel, Administrative Tools, then Local Security Policy.
Windows Vista and Windows Server 2008: From the Start menu, select Programs, Administrative Tools, then Local Security Policy.
Under the Security Settings list, expand the list to Local Policies.
Under Local Policies, double-click User Rights Assignment.
Under Policy, search for the Log on as a batch job policy.
If the Management Agent service is installed as any other user (that is, not
LocalSystem), then, in addition to granting the Log on as a batch job privilege, you must grant the "Windows service" user the following three privileges:
Act as part of the operating system
Adjust memory quotas for a process
Replace a process level token
The service under the "Windows service" user runs at the operating system level.
With each policy, perform the following steps:
Double-click the policy name.
In the Properties dialog box, click Add User or Group.
In the Select Users or Groups dialog box, enter the name of the user (for example,
administrator, and so on.)
Note:On Windows Vista and Windows Server 2008, the name of the dialog box is Select Users, Computers, or Groups.
Click Check Names to check that you have entered the name correctly.
Click OK to exit the Properties dialog box, then exit Local Security Settings and Administrative Tools.
Restart your computer.
If a user exists locally and at the domain level, Windows gives the local user precedence. To use the domain user, qualify the user name with the domain name. For example, to use the user
joe in the
ACCOUNTS domain specify the user name as
On Windows, Oracle Database installations that use Oracle Automatic Storage Management must use Windows native authentication. By default, Windows native authentication is enabled. To ensure that it is, check the sqlnet.ora file, by default located in
\network\admin, and ensure that it has NTS enabled. For example:
See Also:Oracle Database Platform Guide for Microsoft Windows for more information about Windows native authentication
You have the option to configure Oracle Enterprise Manager Database Control automatically when creating a new database using Database Control Assistant. This lets you administer your entire database using Enterprise Manager Database Control.
See Also:Oracle Enterprise Manager Grid Control Advanced Installation and Configuration Guide for information about configuring a database to use Database Control
If you plan to use the following products or features, then download and install the products from the Oracle Database Examples media:
Oracle Database Examples
Oracle JDBC Development Drivers
Oracle Text Knowledge Base
See Also:Oracle Database Examples Installation Guide for detailed information about various Oracle product demonstrations
During installation, by default you can create one disk group. If you plan to add an Oracle Database for a standalone server, then you should create the fast recovery area for database files.
The fast recovery area is a unified storage location for all Oracle Database files related to recovery. Database administrators can define the
DB_RECOVERY_FILE_DEST_SIZE_SIZE parameter to the path for the fast recovery area to enable on-disk backups, and rapid recovery of data. Enabling rapid backups for recent data can reduce requests to system administrators to retrieve backup tapes for recovery operations.
When you enable fast recovery in the
init.ora file, it writes all RMAN backups, archive logs, control file automatic backups, and database copies to the fast recovery area. RMAN automatically manages files in the fast recovery area by deleting obsolete backups and archive files no longer required for recovery.
Oracle recommends that you create a fast recovery area disk group. Oracle Clusterware files and Oracle Database files can be placed on the same disk group, and you can also place fast recovery files in the same disk group. However, Oracle recommends that you create a separate fast recovery disk group to reduce storage device contention.
The fast recovery area is enabled by setting
DB_RECOVERY_FILE_DEST_SIZE. The size of the fast recovery area is set with
DB_RECOVERY_FILE_DEST_SIZE. As a general rule, the larger the fast recovery area, the more useful it becomes. For ease of use, Oracle recommends that you create a fast recovery area disk group on storage devices that can contain at least three days of recovery information. Ideally, the fast recovery area should be large enough to hold a copy of all of your datafiles and control files, the online redo logs, and the archived redo log files needed to recover your database using the datafile backups kept under your retention policy.
Multiple databases can use the same fast recovery area. For example, assume you have created one fast recovery area disk group on disks with 150 GB of storage, shared by three different databases. You can set the size of the fast recovery for each database depending on the importance of each database. For example, if
database1 is your least important database,
database2 is of greater importance and
database3 is of greatest importance, then you can set different
DB_RECOVERY_FILE_DEST_SIZE settings for each database to meet your retention target for each database: 30 GB for
database1, 50 GB for
database2, and 70 GB for
To create a fast recovery file disk group:
Navigate to the Grid home bin directory, and start ASM Configuration Assistant (ASMCA). For example:
DRIVE_LETTER:\> cd \app\oracle\product\11.2.0\grid\bin DRIVE_LETTER:\> asmca
ASMCA opens at the Disk Groups tab. Click Create to create a disk group.
The Create Disk Groups window opens.
In the Disk Group Name field, enter a descriptive name for the fast recovery area group. For example:
In the Redundancy section, select the level of redundancy you want to use.
In the Select Member Disks field, select eligible disks to be added to the fast recovery area, and click OK.
The Diskgroup Creation window opens to inform you when disk group creation is complete. Click OK.
When you install Oracle Database, certain options are enabled and others are disabled. If you must enable or disable a particular database feature for an Oracle home, then shut down the database and use the
chopt tool. See Example 5-1.
chopt tool is a command-line utility that is located in the
\bin directory. The syntax for
chopt is as follows:
chopt [ enable | disable] db_option
The possible values for
db_option described in the following table.
||Oracle Data Mining RDBMS Files|
||Oracle Database Vault|
||Oracle Label Security|
||Oracle Real Application Testing|
||Oracle Database Extensions for .NET 2.0|
To enable the Oracle Label Security option in your Oracle binary files:
Shut down the database with
srvctl or SQL*Plus:
srvctl stop database -d myDb
Stop the database service,
SID, using the Services program in Control Panel.
Run the following commands:
cd %ORACLE_HOME%/bin chopt enable lbac
Start the database service,
SID, using the Services program in Control Panel.
Start up the database: