Oracle® Database Installation Guide 11g Release 1 (11.1) for Linux Part Number B32002-01 |
|
|
View PDF |
This chapter describes how to complete postinstallation tasks after you have installed the software. It includes information about the following sections:
You must perform the tasks listed in the "Required Postinstallation Tasks" section. Oracle recommends that you perform the tasks listed in the "Recommended Postinstallation Tasks" section after all installations.
If you installed and intend to use any of the products listed in the "Required Product-Specific Postinstallation Tasks" section, then you must perform the tasks listed in the product-specific subsections.
Note:
This chapter describes basic configuration only. Refer to Oracle Database Administrator's Reference for Linux and UNIX and product-specific administration and tuning guides for more detailed configuration and tuning information.You must perform the tasks described in the following sections after completing an installation:
Check the OracleMetaLink Web site for required patches for the installation.
To download required patches:
Use a Web browser to view the OracleMetaLink Web site:
https://metalink.oracle.com
Log in to OracleMetaLink.
Note:
If you are not an OracleMetaLink registered user, click Register for MetaLink! and follow the registration instructions.On the main OracleMetaLink page, click Patches & Updates.
Select Simple Search.
Specify the following information, then click Go:
In the Search By field, choose Product or Family, then specify RDBMS Server.
In the Release field, specify the current release number.
In the Patch Type field, specify Patchset/Minipack.
In the Platform or Language field, select your platform.
Find the latest patch set for Oracle Database using OracleMetaLink.
From the list of available patches, select a patch to download.
Patch sets for Oracle databases are identified as x.x.x PATCH SET FOR ORACLE DATABASE SERVER.
Review the README file before proceeding with the download.
Each patch has a README file with installation requirements and instructions. Some patches install with Oracle Universal Installer; others require special procedures. Oracle recommends that you always read the README file before proceeding.
Download and install the patch.
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.
Oracle recommends that you perform the tasks described in the following section after completing an installation:
root.sh
ScriptOracle recommends that you back up the root.sh
script after you complete an installation. If you install other products in the same Oracle home directory, then Oracle Universal Installer updates the contents of the existing root.sh
script during the installation. If you require information contained in the original root.sh
script, then you can recover it from the backed up root.sh
file.
Oracle recommends that you run the utlrp.sql
script after creating or upgrading a database. This script recompiles all PL/SQL modules that might be in an invalid state, including packages, procedures, and types. This is an optional step but Oracle recommends that you do it during installation and not at a later date.
See Also:
Oracle Database Upgrade Guide for more information about database upgrade.To run the utlrp.sql
script, follow these steps:
Switch user to oracle
.
Use the oraenv
or coraenv
script to set the environment for the database where you want to run the utlrp.sql
script:
Bourne, Bash, or Korn shell:
$ . /usr/local/bin/oraenv
C shell:
% source /usr/local/bin/coraenv
When prompted, specify the SID
for the database.
Start SQL*Plus, as follows:
$ sqlplus "/ AS SYSDBA"
If necessary, start the database:
SQL> STARTUP
Run the utlrp.sql
script:
SQL> @?/rdbms/admin/utlrp.sql
For information about setting up additional user accounts, refer to Oracle Database Administrator's Reference for Linux and UNIX.
NLS_LANG
is an environment variable that specifies the locale behavior for Oracle software. This variable sets the language and territory used by the client application and the database server. It also declares the character set of the client, which is the character set of data entered or displayed by an Oracle client program, such as SQL*Plus.
See Also:
Appendix F, "Configuring Oracle Database Globalization Support" for more information about theNLS_LANG
environment variableThe client static library (libclntst11.a
) is not generated during installation. If you want to link the applications to the client static library, you must first generate it as follows:
Switch user to oracle
.
Set the ORACLE_HOME
environment variable to specify the Oracle home directory used by the Oracle Database installation. For example:
Bourne, Bash, or Korn shell:
$ ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1 $ export ORACLE_HOME
C shell:
% setenv ORACLE_HOME /u01/app/oracle/product/11.1.0/db_1
Enter the following command:
$ $ORACLE_HOME/bin/genclntst
Network-attached storage (NAS) systems use NFS to access data. You can store data files on a supported NFS system.
With Oracle Database 11g, instead of using the operating system kernel NFS client, you can configure Oracle Database to access NFS V3 servers directly using an Oracle internal Direct NFS client.
If Oracle Database is unable to open an NFS server using Direct NFS, then Oracle Database uses the platform operating system kernel NFS client. In this case, the kernel NFS mount options must be set up as defined in "Checking NFS Buffer Size Parameters" . Additionally, an informational message will be logged into the Oracle alert and trace files indicating that Direct NFS could not be established.
The Oracle files resident on the NFS server that are served by the Direct NFS Client are also accessible through the operating system kernel NFS client. The usual considerations for maintaining integrity of the Oracle files apply in this situation.
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 to operate. To disable reserved port checking, consult your NFS file server documentation.
Direct NFS can use up to 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 reissues I/Os over any remaining paths.
Use the following views for Direct NFS management:
v$dnfs_servers: Shows a table of servers accessed using Direct NFS.
v$dnfs_files: Shows a table of files currently open using Direct NFS.
v$dnfs_channels: Shows a table of open network paths (or channels) to servers for which Direct NFS is providing files.
v$dnfs_stats: Shows a table of performance statistics for Direct NFS.
The following sections elaborate on enabling, disabling, checking the buffer size for a Direct NFS Client:
By default Direct NFS will attempt to serve mount entries found in /etc/mtab
. No other configuration is required. You can use oranfstab
to specify additional Oracle specific options to Direct NFS. For example, you can use oranfstab
to specify additional paths for a mount point.
Additonally, a new Oracle specific file oranfstab
can be added to either /etc
or to $ORACLE_HOME/dbs
. When oranfstab
is placed in $ORACLE_HOME/dbs
, its entries are specific to a single database. However, when oranfstab
is placed in /etc
, then it is global to all Oracle databases, and hence can contain mount points for all Oracle databases.
Direct NFS looks for the mount point entries in the following order:
$ORACLE_HOME/dbs/oranfstab
/etc/oranfstab
/etc/mtab
It uses the first matched entry as the mount point.
In all cases, Oracle requires that mount points be mounted by the kernel NFS system even when being served through Direct NFS. Oracle verifies kernel NFS mounts by cross-checking entries in oranfstab
with operating system NFS mount points. If a mismatch exists, then Direct NFS logs an informational message, and does not serve the NFS server.
Complete the following procedure to enable Direct NFS:
You can optionally create an oranfstab
file with the following attributes for each NFS server to be accessed using Direct NFS:
Server: The NFS server name.
Path: Up to four network paths to the NFS server, specified either by IP address, or by name, as displayed using the ifconfig
command.
Export: The exported path from the NFS server.
Mount: The local mount point for the NFS server.
Note:
On Linux and Unix platforms, the location of theoranfstab
file is $ORACLE_HOME/dbs
.The following is an example of an oranfstab file with two NFS server entries:
server: MyDataServer1 path: 132.34.35.12 path: 132.34.35.13 export: /vol/oradata1 mount: /mnt/oradata1
server: MyDataServer2 path: NfsPath1 path: NfsPath2 path: NfsPath3 path: NfsPath4 export: /vol/oradata2 mount: /mnt/oradata2 export: /vol/oradata3 mount: /mnt/oradata3 export: /vol/oradata4 mount: /mnt/oradata4 export: /vol/oradata5 mount: /mnt/oradata5
Oracle Database uses an ODM library, libnfsodm11.so
, to enable Direct NFS. To replace the standard ODM library, $ORACLE_HOME/lib/libodm11.so
, with the ODM NFS library, libnfsodm10.so, complete the following steps:
Change directory to $ORACLE_HOME/lib
.
Enter the following commands:
cp libodm10.so libodm10.so_stub ln -s libnfsodm10.so libodm10.so
Use one of the following methods to disable the Direct NFS client:
Remove the oranfstab
file.
Restore the stub libodm11.so
file by reversing the process you completed in "Enabling Direct NFS Client".
Remove the specific NFS server or export paths in the oranfstab
file.
Note:
If you remove an NFS path that Oracle Database is using, then you must restart the database for the change to be effective.If you are using NFS, then you must set the values for the NFS buffer size parameters rsize and wsize to at least 16384. Oracle recommends that you use the value 32768.
Direct NFS will issue writes at wtmax granularity to the NFS server. Direct NFS will not serve an NFS server with a wtmax less than 32768.
For example, if you decide to use rsize and wsize buffer settings with the value32768, then update the /etc/fstab
file on each node with an entry similar to the following:
nfs_server:/vol/DATA/oradata /home/oracle/netapp nfs\ rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600
Note:
Refer to your storage vendor documentation for additional information about mount options.The following sections describe platform-specific postinstallation tasks that you must perform if you install and intend to use the products mentioned:
Note:
You need only perform postinstallation tasks for products that you intend to use.If you have an earlier release of Oracle software installed on this system, you might want to copy information from the Oracle Net tnsnames.ora
and listener.ora
configuration files from the earlier release to the corresponding files for the new release. The following sections describe about how to configure the Oracle Net Services:
Note:
The default location for thetnsnames.ora
and listener.ora
files is the $ORACLE_HOME/network/admin/
directory. However, you can also use a central location for these files.Modifying the listener.ora File
If you are upgrading from a earlier release of Oracle Database, Oracle recommends that you use the current release of Oracle Net listener instead of the listener from the earlier release.
To use the listener from the current release, you may need to copy static service information from the listener.ora
file from the earlier release to the version of that file used by the new release.
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.
Modifying the tnsnames.ora File
Unless you are using a central tnsnames.ora
file, copy Oracle Net service names and connect descriptors from the earlier 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.
If you installed Oracle Label Security, you must configure it in a database before you use it. You can configure Oracle Label Security in two ways; with Oracle Internet Directory integration and 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 DirectoryTo configure Oracle Messaging Gateway, refer to the section about Messaging Gateway in Oracle Streams Advanced Queuing User's Guide. When following the instructions listed in that manual, refer to this section for additional instructions about configuring the listener.ora
, tnsnames.ora
, and mgw.ora
files.
To modify the $ORACLE_HOME/network/admin/listener.ora
file for external procedures:
Back up the listener.ora
file.
Ensure that the default IPC protocol address for external procedures is set as follows:
(ADDRESS = (PROTOCOL=IPC)(KEY=EXTPROC))
Add static service information for a service called mgwextproc
by adding lines similar to the following to the SID_LIST
parameter for the listener in the listener.ora
file:
(SID_DESC = (SID_NAME = mgwextproc) (ENVS = "LD_LIBRARY_PATH=/oracle_home/jdk/jre/lib/i386:/oracle_home/jdk \ /jre/lib/i386/server:/oracle_home/lib") (ORACLE_HOME = oracle_home) (PROGRAM = extproc) )
In this example:
The ENVS
parameter defines the shared library path environment variable and any other required environment variables.
In the settings for the shared library path environment variable, you must also add any additional library paths required for non-Oracle messaging systems, for example, WebSphere MQ or TIBCO Rendezvous.
oracle_home
is the path of the Oracle home directory.
extproc
is the external procedure agent executable file
The following example shows a sample listener.ora
file:
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = mgwextproc) (ENVS = "LD_LIBRARY_PATH =/u01/app/oracle/product/11.1.0/db_1/jdk/jre/ \ lib/i386:/u01/app/oracle/product/11.1.0/db_1/jdk/jre/lib/i386/server: \ /u01/app/oracle/product/11.1.0/db_1/lib") (ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1) (PROGRAM = extproc) ) )
To modify the $ORACLE_HOME/network/admin/tnsnames.ora
file for external procedures:
Back up the tnsnames.ora
file.
In the tnsnames.ora
file, add a connect descriptor with the net service name MGW_AGENT
, as follows:
MGW_AGENT = (DESCRIPTION= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC))) (CONNECT_DATA= (SID=mgwextproc)))
In this example:
The value specified for the KEY
parameter must match the value specified for that parameter in the IPC protocol address in the listener.ora
file.
The value of the SID
parameter must match the service name in the listener.ora
file that you specified for the Oracle Messaging Gateway external procedure agent in the previous section (mgwextproc
).
To modify the $ORACLE_HOME/mgw/admin/mgw.ora
file for external procedures, set the CLASSPATH
environment variable to include the classes in the following table and any additional classes required for Oracle Messaging Gateway to access non-Oracle messaging systems, for example WebSphere MQ or TIBCO Rendezvous classes:
Classes | Path |
---|---|
JRE runtime | $ORACLE_HOME /jdk/jre/lib/rt.jar |
Oracle JDBC | $ORACLE_HOME /jdbc/lib/ojdbc5.jar |
Oracle internationalization | $ORACLE_HOME /jlib/orai18n.jar |
SQLJ | $ORACLE_HOME /sqlj/lib/runtime12.jar |
JMS Interface | $ORACLE_HOME /rdbms/jlib/jmscommon.jar |
Oracle JMS implementation | $ORACLE_HOME /rdbms/jlib/aqapi.jar |
Java Transaction API | $ORACLE_HOME /jlib/jta.jar |
Note:
All the lines in themgw.ora
file should consist of less than 1024 characters.This section describes postinstallation tasks for Oracle precompilers:
Note:
All precompiler configuration files are located in the$ORACLE_HOME/precomp/admin
directory.Verify that the PATH
environment variable setting includes the directory that contains the C compiler executable.
Table 4-1 shows the default directories and the appropriate command to verify the path setting of the compiler.
Table 4-1 C/C++ Compiler Directory
Path | Command |
---|---|
|
|
|
|
Table 4-2 shows the default directories and the appropriate command to verify the path setting of the compiler.
Verify that the PATH environment variable setting includes the directory that contains the FORTRAN compiler executable. You can verify the path setting by using the which xlf
command. The path for the FORTRAN executable is /usr/bin
.
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 Also:
"Using SSL" and "Enabling SSL" in Oracle Database Advanced Security Administrator's Guide for more information on configuring and using SSL
"SSL Usage Issues" in Oracle Database Advanced Security Administrator's Guide for more information on SSL usage issues
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, then you can install two supplied knowledge bases (English and French).
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 FrenchThis section describes tasks that you need to complete after you install the software:
The first time you start SQL Developer after installing it or after adding any extensions, you are asked if you want to migrate your user settings from a previous release. (This occurs regardless of whether there was a previous release on your system.)
Note:
Migration of user settings is supported only from SQL Developer release 1.0 to release 1.1. It is not supported for migration from a pre-release version of 1.1 to release 1.1.These settings refer to database connections, reports, and certain SQL Developer user preferences that you set in a previous version by clicking Tools and then Preferences. However, some user preferences are not saved, and you must re-specify these using the new release.
To migrate user settings from SQL Developer release 1.0:
Unzip the release 1.1 kit into an empty directory (folder). Do not delete or overwrite the directory into which you unzipped the release 1.0 kit.
When you start SQL Developer release 1.1, click Yes when asked if you want to migrate settings from a previous release.
In the dialog box that is displayed, do not accept the default location for the settings. Instead, specify the location of your release 1.0 settings, which might be a folder whose path ends with sqldeveloper/jdev/system
.
If you have used a previous release of SQL Developer or a pre-release version of the current release, you may want to preserve database connections that you have been using. To preserve database connections, save your existing database connections in an XML file. To save the connections, right-click the Connections node in the Connections Navigator and select Export Connections. After you complete the installation described in this guide, you can use those connections by right-clicking the Connections node in the Connections Navigator and selecting Import Connections
If you want to use any user-defined reports or the SQL history from a previous version, see "Location of User-Related Information" for information about where these are located. If you want to use any user-defined reports or the SQL history from release 1.0 with both releases 1.0 and 1.1, you must save them before using release 1.1, because release 1.1 modifies the files to a format that is incompatible with release 1.0.
SQL Developer preferences (specified by clicking Tools and then Preferences) from a pre-release version of the current release cannot currently be saved and reused; you must re-specify any desired preferences.
SQL Developer stores user-related information in several places, with the specific location depending on the operating system and certain environment specifications. User-related information includes user-defined reports, user-defined snippets, SQL Worksheet history, and SQL Developer user preferences.
The user-related information is stored outside the SQL Developer installation directory hierarchy, so that it is preserved if you delete that directory and install a new version. This information is stored in or under the SQLDEVELOPER_USER_DIR
location, if defined; otherwise as indicated in the following table.
The table shows the typical default locations (under a directory or in a file) for specific types of resources on different operating systems. (Note the period in the name of any directory or folder named .sqldeveloper
.)
Table 4-3 Default Locations for User-Related Information
Resource Type | Linux |
---|---|
User-defined reports |
~/.sqldeveloper/UserReports.xml |
User-defined snippets |
~/.sqldeveloper/UserSnippets.xml |
SQL history |
~/.sqldeveloper/system/ |
SQL Worksheet archive files |
~/.sqldeveloper/tmp/ |
SQL Developer user preferences |
~/.sqldeveloper/system/ |
SQL Worksheet archive files contain SQL statements that you have entered. These files begin with sqldev and then have a random number (for example, sqldev14356.sql
). If you close SQL Developer with a SQL Worksheet open that contains statements, then you will be prompted to save these files.
To specify a nondefault SQLDEVELOPER_USER_DIR
location, do either of the following:
Set the SQLDEVELOPER_USER_DIR
environment variable to specify another directory path.
Edit the sqldeveloper_install
\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
file and substitute the desired directory path for SQLDEVELOPER_USER_DIR
in the following line:
SetUserHomeVariable SQLDEVELOPER_USER_DIR
If you want to prevent other users from accessing your user-specific SQL Developer information, you must ensure that the appropriate permissions are set on the directory where that information is stored or on a directory preceding it in the path hierarchy. For example, you may want to ensure that the ~/.sqldeveloper
directory is not world-readable.
This section describes tasks that you need to complete after you install the software
Note:
Within the context of this document, the Oracle HTTP Server home directory (ORACLE_HTTPSERVER_HOME
) is the location where Oracle HTTP Server is installed.After you install Oracle Application Express, you need to restart the processes that you stopped before you began the installation, such as listener and other processes. In addition, restart Oracle HTTP Server.
In order to run, Oracle Application Express must have access to either the embedded PL/SQL gateway or Oracle HTTP Server and mod_plsql
.
Topics in this section include:
The embedded PL/SQL gateway installs with Oracle Database 11g. It provides the Oracle database with a Web server and also the necessary infrastructure to create dynamic applications. The embedded PL/SQL gateway runs in the Oracle XML DB HTTP server in the Oracle database and includes the core features of mod_plsql
.
Oracle HTTP Server uses the mod_plsql
plug-in to communicate to the Oracle Application Express engine within the Oracle database. It functions as communication broker between the Web server and the Oracle Application Express objects in the Oracle database. More specifically, it maps browser requests into database stored procedure calls over a SQL*Net
connection.
Note that this configuration consists of three tier architecture: a Web browser, Oracle HTTP Server (Apache) with mod_plsql
, and an Oracle database containing Oracle Application Express.
If SSL is not used, then passwords could potentially be exposed, compromising the security of your Application Express instance.
Refer to "Configuring Secure Sockets Layer" for more information.
Although the embedded PL/SQL gateway installs with the Oracle database, you must configure it before you can use it with Oracle Application Express. To accomplish, you run a configuration file and unlock the ANONYMOUS
account.
Topics in this section include:
This section describes how to configure the embedded PL/SQL gateway by running the configuration script apxconf.sql
. Running this script enables you to configure the port for Oracle XML DB HTTP server and the specify a password for the Application Express ADMIN
account. Then, you unlock the ANONYMOUS
account.
To configure the embedded PL/SQL gateway:
Change your working directory to $ORACLE_HOME
/apex
.
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Run apxconf.sql
as shown in the following example:
@apxconf
When prompted, enter a password for the Application Express Admin account.
Be sure to make a note of the password you enter. You will use this password to log in to Oracle Application Express Administration Services.
When prompted, enter the port for the Oracle XML DB HTTP server. The default port number is 8080.
Enter the following statement to unlock the ANONYMOUS account:
ALTER USER ANONYMOUS ACCOUNT UNLOCK;
The embedded PL/SQL gateway runs in the Oracle XML DB HTTP server in the Oracle database. This section describes how to enable or disable the Oracle XML DB HTTP server.
Topics in this section include:
See Also:
Configuring the Embedded PL/SQL GatewayDisabling Oracle XML DB HTTP Server
To disable Oracle XML DB HTTP server:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Run the following statement:
EXEC DBMS_XDB.SETHTTPPORT(0); COMMIT;
Enabling Oracle XML DB HTTP Server
To enable Oracle XML DB HTTP server:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Run the following statement:
EXEC DBMS_XDB.SETHTTPPORT(port);
COMMIT;
For example:
EXEC DBMS_XDB.SETHTTPPORT(8080); COMMIT;
Note:
Port numbers less than 1024 are reserved for use by privileged processes on many operating systems. To enable the XML DB HTTP listener on a port less than 1024, such as 80, review the following documentation:Refer to chapter "Using Protocols to Access the Repository" in Oracle XML DB Developer's Guide for more information on using HTTP(S) and Oracle XML DB Protocol Server.
Refer to chapter "Protocol Address Configuration" in Oracle Database Net Services Reference for more information on protocol addressing.
Whether you are loading a new installation or upgrading from a previous release, you must copy the images directory from the top level of the $ORACLE_HOME/apex
directory to the location on the file system containing the Oracle home for Oracle HTTP Server.
Note:
This section is relevant only if you choose Oracle HTTP Server with mod_plsql. However, if you choose Oracle XML DB HTTP Server with the embedded PL/SQL gateway, then these steps can be ignored.Topics in this section include:
During an upgrade, you must overwrite your existing images directory. Before you begin the upgrade, to ensure that you can revert to the previous version, Oracle recommends that you create a copy of your existing images
directory for Oracle Application Express, indicating the release number of the images (for example, images_2_0
).
To locate the images
directory on the file system, review the following files for the text alias /i/
:
Oracle9i HTTP Server release 2, see the httpd.conf
file
Oracle HTTP Server distributed with Oracle Database 11g, see the dads.conf
file
Oracle Application Server 10g, see the marvel.conf
file
When you locate the images directory path, Oracle recommends that you copy the existing images directory to a backup location. Doing this enables to revert to the previous release, if that becomes necessary.
After you copy the existing images directory, use the following command syntax to copy the a
pex/images
directory from the 11g Oracle database home to the existing images directory path, overwriting the existing images:
Oracle Application Server 10g:
cp -rf $ORACLE_HOME/apex/images ORACLE_HTTPSERVER_HOME/Apache
Oracle HTTP Server distributed with Oracle Database 11g:
cp -rf $ORACLE_HOME/apex/images ORACLE_HTTPSERVER_HOME/ohs
In the preceding syntax example:
ORACLE_HOME
is the Oracle Database 11g Oracle home
ORACLE_HTTPSERVER_HOME
is the existing Oracle Application Server or Oracle HTTP Server Oracle home, such as /u01/app/oracle/db_2/
You can copy the apex/images
directory by executing a command similar to the one shown in the following example:
cp -rf $ORACLE_HOME/apex/images ORACLE_HTTPSERVER_HOME/ohs
In the preceding syntax example:
$ORACLE_HOME
is the Oracle Database 11g Oracle home.
ORACLE_HTTPSERVER_HOME
is the existing Oracle Application Server or Oracle HTTP Server Oracle home, such as /u01/app/oracle/db_2/
.
This section describes how to configure Oracle HTTP Server with mod_plsql in a new installation.
Topics in this section include:
In Oracle HTTP Server release 9.0.3, the wdbsvr.app
file contains information about the DAD to access Oracle Application Express. A DAD is a set of values that specify how the Oracle HTTP Server component modplsql
connects to the database server to fulfill an HTTP request.
Topics in this section include:
Changing the Password for the ADMIN Account
To change the password for the ADMIN
account:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Enter the following command followed by the new password.
@apxxepwd.sql password
For example to change the password to apex
, you would enter:
@apxxepwd.sql apex
Changing the Password for the APEX_PUBLIC_USER Database User
In order to specify the password in the DAD
file, you have to change the password for the database user APEX_PUBLIC_USER
. Please use the following steps to change the password for the APEX_PUBLIC_USER
database user:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Run the following command:
SQL>ALTER USER APEX_PUBLIC_USER IDENTIFIED BY PASSWORD
Modifying the wdbsvr.app File in a New Installation
To create the DAD, you modify the file wdbsvr.app
and add an entry for Oracle Application Express.
To modify the wdbsvr.app
file, follow these steps:
Using a text editor, open the following file:
ORACLE_HTTPSERVER_HOME/Apache/modplsql/cfg/wdbsvr.app
Add an entry for Oracle Application Express using the following syntax. Only change the settings indicated in italics.
[DAD_htmldb] connect_string = localhost:1521:orcl password = apex username = apex_public_user default_page = apex document_table = wwv_flow_file_objects$ document_path = docs document_proc = wwv_flow_file_mgr.process_download reuse = Yes enablesso = No stateful = STATELESS_RESET nls_lang = American_America.AL32UTF8
Where:
connect_string
refers to the host ID, port number, and Oracle9i database where Oracle Application Express was installed. Use the format host:port:sid
.
If the Oracle9i version of Oracle HTTP Server you want to use is installed in the same Oracle home as the database you specified for use with Oracle Application Express, leave this parameter blank.
password
is the Application Express password for the Oracle Application ADMIN account you specified in Changing the Password for the APEX_PUBLIC_USER Database User.
nls_lang
determines the language setting of the DAD. The character set portion of the nls_lang
value must always be set to AL32UTF8
, regardless of whether or not the database character set is AL32UTF8
.
If either the territory portion or the language portion of the NLS settings contains a space, you must wrap the value in double quotes as shown in the following example:
nls_lang = "ENGLISH_UNITED KINGDOM.AL32UTF8"
You can find information about the database character set by querying the view NLS_DATABASE_PARAMETERS
as shown in the following example:
SELECT value FROM nls_database_parameters WHERE PARAMETER = 'NLS_CHARACTERSET';
Leave the remaining settings, including the username setting, as they appear in the previous example.
Save and exit the wdbsvr.app
file.
Modifying the Oracle9i httpd.conf
You need to modify the httpd.conf
file to include an alias that points to the file system path where you copied the images directory. You may also need to modify the httpd.conf
file to add two new MIME types to support SQL Workshop.
To modify httpd.conf
file, follow these steps:
Using a text editor, open the following file:
ORACLE_HTTPSERVER_HOME/Apache/conf/httpd.conf
Add an alias entry that points to the file system path where you copied the images directory. The example is as follows:
Alias /i/ "/home/oracle/OraHome1/Apache/Apache/images/"
Next, add two new MIME types to support SQL Workshop:
Add the following lines if it does not currently exist:
AddType text/xml xbl AddType text/x-component htc
If you are upgrading from Oracle HTML DB 2.0, these MIME types should already exist.
Save and exit the httpd.conf
file.
To stop and restart the Oracle HTTP Server, run the following command.
ORACLE_HTTPSERVER_HOME/Apache/bin/apachectl stop ORACLE_HTTPSERVER_HOME/Apache/bin/apachectl start
Note that if the Oracle HTTP Server is listening on a port less than 1024, then these commands must be executed as a privileged user (such as root
).
See Also:
Oracle HTTP Server Administrator's GuideOracle Application Express must have access to Oracle HTTP Server with mod_plsql
. Perform the following postinstallation steps if:
This is a new installation of Application Express (that is, you are not upgrading from a previous release).
You are running Oracle HTTP Server distributed with Oracle Database 11g or Oracle Application Server 10g.
Oracle HTTP Server is installed in an Oracle home.
You have not previously configured Oracle HTTP Server to work with Oracle Application Express.
These instructions do not apply if you are running Oracle HTTP Server release 9.0.3. For more information on configuring Oracle HTTP Server release 9.0.3, see "Configuring Oracle HTTP Server Release 9.0.3 in a New Installation".
Topics in this section include:
Note:
The Oracle home directory(ORACLE_HTTPSERVER_HOME)
is the location where Oracle HTTP Server is installed.Changing the Password for the ADMIN Account
First, change the password for the Oracle Application Express ADMIN
account.
To change the password for the ADMIN
account:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Enter the following command followed by the new password.
@apxxepwd.sql password
For example to change the password to apex
, you would enter:
@apxxepwd.sql apex
Changing the Password for the APEX_PUBLIC_USER Database User
In order to specify the password in the DAD
file, you have to change the password for the database user APEX_PUBLIC_USER
. Please use the following steps to change the password for the APEX_PUBLIC_USER
database user:
Start SQL*Plus and connect to the database where Oracle Application Express is installed as SYS
. For example:
$ $ORACLE_HOME/bin/sqlplus
SQL> CONNECT SYS as SYSDBA
Enter password: SYS_password
Run the following command:
ALTER USER APEX_PUBLIC_USER IDENTIFIED BY PASSWORD
Edit the dads.conf
File
If this is a new installation of Application Express, then you must edit the dads.conf
file. The dads.conf
file contains the information about the DAD to access Oracle Application Express.
To edit the dads.conf
file, follow these steps:
Using a text editor, edit the following file:
Oracle Application Server 10g:
ORACLE_HTTPSERVER_HOME/Apache/modplsql/conf/dads.conf
Oracle HTTP Server distributed with Oracle Database 11g:
ORACLE_HTTPSERVER_HOME/ohs/modplsql/conf/dads.conf
Copy the following into the dads.conf
file. Replace ORACLE_HTTPSERVER_HOME
, host
, port
, service_name
, and apex_public_user_password
with values appropriate for the environment. Note that apex_public_user_password
is the same password you defined in Changing the Password for the APEX_PUBLIC_USER Database User.
Note that the path listed is only an example. The path in the dads.conf
file should reference the file system path described in Copying the Images Directory.
Alias /i/ "ORACLE_HTTPSERVER_HOME/images/" AddType text/xml xbl AddType text/x-component htc <Location /pls/htmldb> Order deny,allow PlsqlDocumentPath docs AllowOverride None PlsqlDocumentProcedure wwv_flow_file_manager.process_download PlsqlDatabaseConnectString host:port:service_name ServiceNameFormat PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8 PlsqlAuthenticationMode Basic SetHandler pls_handler PlsqlDocumentTablename wwv_flow_file_objects$ PlsqlDatabaseUsername APEX_PUBLIC_USER PlsqlDefaultPage apex PlsqlDatabasePassword apex_public_user_password Allow from all </Location>
Locate the line containing PlsqlNLSLanguage
.
The PlsqlNLSLanguage
setting determines the language setting of the DAD. The character set portion of the PlsqlNLSLanguage
value must be set to AL32UTF8
, regardless of whether or not the database character set is AL32UTF8
. For example:
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
Save and exit the dads.conf
file.
Stop and Restart Oracle HTTP Server
To stop and restart Oracle HTTP Server,run the following commands:
ORACLE_HTTPSERVER_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server ORACLE_HTTPSERVER_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server
By default, the ability to interact with network services is disabled in Oracle Database 11g release 1 (11.1). Therefore, if you are running Oracle Application Express with Oracle Database 11g release 1 (11.1), you need to use the new DBMS_NETWORK_ACL_ADMIN
package to grant connect privilege to any host for the FLOWS_030000
database user. Failing to grant these privileges results in issues with the following:
Sending outbound mail in Oracle Application Express.
Users can call methods from the APEX_MAIL
package, but issues arise when sending outbound email.
Using Web services in Oracle Application Express.
PDF/report printing.
Searching for content in online Help (that is, using the Find link).
This section contains the following topics:
Granting Connect Privileges
The following example demonstrates how to grant connect privileges to any host for the FLOWS_030000
database user.
DECLARE ACL_PATH VARCHAR2(4000); ACL_ID RAW(16); BEGIN -- Look for the ACL currently assigned to '*' and give FLOWS_030000 -- the "connect" privilege if FLOWS_030000 does not have the privilege yet. SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- Before checking the privilege, make sure that the ACL is valid -- (for example, does not contain stale references to dropped users). -- If it does, the following exception will be raised: -- -- ORA-44416: Invalid ACL: Unresolved principal 'FLOWS_030000' -- ORA-06512: at "XDB.DBMS_XDBZ", line ... -- SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID FROM XDB.XDB$ACL A, PATH_VIEW P WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND EQUALS_PATH(P.RES, ACL_PATH) = 1; DBMS_XDBZ.ValidateACL(ACL_ID); IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'FLOWS_030000', 'connect') IS NULL THEN DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH, 'FLOWS_030000', TRUE, 'connect'); END IF; EXCEPTION -- When no ACL has been assigned to '*'. WHEN NO_DATA_FOUND THEN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml', 'ACL that lets power users to connect to everywhere', 'FLOWS_030000', TRUE, 'connect'); DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*'); END; / COMMIT;
Troubleshooting an Invalid ACL Error
If you receive an ORA-44416
: Invalid ACL error after running the previous script, use the following query to identify the invalid ACL:
REM Show the dangling references to dropped users in the ACL that is assigned REM to '*'.
SELECT ACL, PRINCIPAL FROM DBA_NETWORK_ACLS NACL, XDS_ACE ACE WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL AND NACL.ACLID = ACE.ACLID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL);
Next, run the following code to fix ACL:
DECLARE ACL_ID RAW(16); CNT NUMBER; BEGIN -- LOOK FOR THE OBJECT ID OF THE ACL CURRENTLY ASSIGNED TO '*' SELECT ACLID INTO ACL_ID FROM DBA_NETWORK_ACLS WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL; -- IF JUST SOME USERS REFERENCED IN THE ACL ARE INVALID, REMOVE JUST THOSE -- USERS IN THE ACL. OTHERWISE, DROP THE ACL COMPLETELY. SELECT COUNT(PRINCIPAL) INTO CNT FROM XDS_ACE WHERE ACLID = ACL_ID AND EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL); IF (CNT > 0) THEN FOR R IN (SELECT PRINCIPAL FROM XDS_ACE WHERE ACLID = ACL_ID AND NOT EXISTS (SELECT NULL FROM ALL_USERS WHERE USERNAME = PRINCIPAL)) LOOP UPDATE XDB.XDB$ACL SET OBJECT_VALUE = DELETEXML(OBJECT_VALUE, '/ACL/ACE[PRINCIPAL="'||R.PRINCIPAL||'"]') WHERE OBJECT_ID = ACL_ID; END LOOP; ELSE DELETE FROM XDB.XDB$ACL WHERE OBJECT_ID = ACL_ID; END IF; END; / REM Commit the changes. COMMIT;
Once the ACL has been fixed, you need to run the first script in this section to apply the ACL to the FLOWS_030000
user. See "Granting Connect Privileges".
The Oracle Application Express interface is translated into German, Spanish, French, Italian, Japanese, Korean, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese. A single instance of Oracle Application Express can be installed with one or more of these translated versions. At runtime, each user's Web browser language settings determine the specific language version.
The translated version of Oracle Application Express should be loaded into a database that has a character set that can support the specific language. If you attempt to install a translated version of Oracle Application Express into a database that does support the character encoding of the language, the installation may fail or the translated Oracle Application Express instance may appear corrupt when run. The database character set AL32UTF8
supports all the translated versions of Oracle Application Express.
You can manually install translated versions of Oracle Application Express using SQL*Plus. The installation files are encoded in AL32UTF8.
Note:
Regardless of the target database character set, to install a translated version of Oracle Application Express, you must set the character set value of theNLS_LANG
environment variable to AL32UTF8
prior to starting SQL*Plus.The following examples illustrate valid NLS_LANG
settings for loading Oracle Application Express translations:
American_America.AL32UTF8 Japanese_Japan.AL32UTF8
To install a translated version of Oracle Application Express:
Set the NLS_LANG
environment variable, making sure that the character set is AL32UTF8
. For example:
Bourne or Korn shell:
$ NLS_LANG=American_America.AL32UTF8 $ export NLS_LANG
C shell:
% setenv NLS_LANG American_America.AL32UTF8
Start SQL*Plus and connect to the target database as SYS.
Execute the following statement:
SQL> ALTER SESSION SET CURRENT_SCHEMA = FLOWS_030000;
Execute the appropriate language specific script. For example:
SQL> @load_de.sql
The installation scripts are located in subdirectories identified by a language code in the unzipped distribution $ORACLE_HOME
/apex/builder
. For example, the German version is located in $ORACLE_HOME
/apex/builder/de
and the Japanese version is located in $ORACLE_HOME
/apex/builder/ja
. Within each of these directories, there is a language loading script identified by the language code (for example, load_de.sql
or load_ja.sql
).
JOB_QUEUE_PROCESSES
determine the maximum number of concurrently running jobs. In Oracle Application Express release 3.0, transactional support and SQL scripts require jobs. If JOB_QUEUE_PROCESSES
is not enabled and working properly, you cannot successfully execute a script.
Topics in this section include:
There are currently three ways to view the number of JOB_QUEUE_PROCESSES
:
In the installation log file
On the About Application Express page in Oracle Application Express
From SQL*Plus
Viewing JOB_QUEUE_PROCESSES in the Installation Log File
After installing or upgrading Oracle Application Express to release 3.0, you can view the number of JOB_QUEUE_PROCESSES
in the installation log files.
Viewing JOB_QUEUE_PROCESSES in Oracle Application Express
You can also view the number of JOB_QUEUE_PROCESSES
on the About Application Express page.
To view the About Application Express page:
Log in to Oracle Application Express.
On the Administration list, click About Application Express.
The current number JOB_QUEUE_PROCESSES
displays at the bottom of the page.
Viewing JOB_QUEUE_PROCESSES from SQL*Plus
You can also view the number of JOB_QUEUE_PROCESSES
from SQL*Plus by running the following SQL statement:
> SELECT VALUE FROM v$parameter WHERE NAME = 'job_queue_processes'
You can change the number of JOB_QUEUE_PROCESSES
by running a SQL statement in SQL*Plus:
To update the number of JOB_QUEUE_PROCESSES
:
Log in to the database as SYSDBA
using SQL*Plus.
In SQL*Plus run the following SQL statement:
SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES = number
For example, running the statement ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 20
sets JOB_QUEUE_PROCESSES
to 20.
The PlsqlDatabasePassword
parameter specifies the password for logging in to the database. You can use the dadTool.pl
utility to obfuscate passwords in the dads.conf
file.
You can find the dadTool.pl
utility in the following directory:
ORACLE_HTTPSERVER_HOME/ohs/modplsql/conf
You access the Oracle Application Express home page in a Web browser. To view or develop Oracle Application Express applications, the Web browser must support JavaScript and the HTML 4.0 and CSS 1.0 standards. See "Browser Requirements".
Topics in this section include:
In the Oracle Application Express development environment, users log in to a shared work area called a workspace. Users are divided into four primary roles:
Workspace administrators are users who perform administrator tasks specific to a workspace such as managing user accounts, monitoring workspace activity, and viewing log files.
Developers are users who create and edit applications. Developers can have their own workspace or share a workspace.
End users have no development privileges. You define end users so that they can access applications that do not use an external authentication scheme.
Oracle Application Express administrators are superusers that manage an entire hosted instance using the Application Express Administration Services application.
How you set up Oracle Application Express depends upon your user role. If you are a developer accessing a hosted development environment, then an administrator must grant you access to a workspace. If you are an Oracle Application Express administrator, you must perform the following steps:
Log in to Oracle Application Express Administration Services. Oracle Application Express Administration Services is a separate application for managing an entire Oracle Application Express instance. You log in using the ADMIN
account and password created or reset during the installation process.
Specify a provisioning mode. In Oracle Application Express Administration Services, you need to determine how the process of creating (or provisioning) a workspace will work in your development environment.
Create a Workspace. A workspace is a virtual private database allowing multiple users to work within the same Oracle Application Express installation while keeping their objects, data and applications private. Each workspace has a unique ID and name. An Oracle Application Express administrator can create a workspace manually or have users submit requests.
Log in to a Workspace. Once you create a workspace in Oracle Application Express Administration Services, return to the Oracle Application Express Login page and log in to that workspace.
See Also:
Oracle Database 2 Day + Application Express Developer's Guide or "Quick Start" in Oracle Database Application Express User's GuideIf you are already running Oracle Application Express 3.0, then check the Oracle Application Express page on the Oracle Technology Network (OTN) at (http://www.oracle.com/technology/products/database/application_express/index.html
) URL for information about patch set releases or later versions of Oracle Application Express:
Upgrading to Oracle Database 11g will not patch an Application Express 3.0 instance to Application Express 3.0.1.
If you have installed Oracle Configuration Manager in a home that contains a database, you must run a script to create a database account to collect database configuration collections. You must create this account in both Connected and Disconnected modes. Refer to "Oracle Configuration Manager" for further information on these modes. The database account stores the PL/SQL procedures that collect the configuration information, and the account owns the database management system (DBMS) job that performs the collection. After the account has been set up, as login privileges are no longer required, the account is locked.
Note:
Because the collected configuration data is not stored in the database, additional disk space is not required for the database.
Because database configuration collections are performed using the database jobs, the job_queue_process
initialization parameter must have a value greater than 0 for pre-10g databases only.
This section contains the following topics:
Before running the installCCRSQL.sh
script to prepare the database for configuration collection, you must perform the following steps for pre 9.2 databases:
Edit the init
sid
.ora
file where sid
is the database system identifier, and set the UTL_FILE_DIR
parameter to include $ORACLE_HOME/ccr/state
as one of the directories.
If a server parameter file (spfile
) is used, alter the UTL_FILE_DIR
parameter using the following SQL*Plus command:
SQL>alter system set utl_file_dir=value scope=spfile
where value
is equal to $ORACLE_HOME/ccr/
state
Restart the database.
To configure the database for configuration collection, run the following script:
Run the following command to create the admin
directory
$ORACLE_HOME/ccr/bin/setupCCR
Run the following script, to configure the database for configuration collection:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh collectconfig -s SID -r SYSDBA-USER -p SYSDBA-PASSWORD
However, only to configure the database for configuration collection, run the following script:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh collectconfig -s SID -r SYSDBA-USER -p SYSDBA-PASSWORD
The installCCRSQL.sh
script creates an Oracle Configuration Manager user and loads the PL/SQL procedure into the database defined by the ORACLE_SID
. You can also specify the database SID
by using the -s
option in the command line as in the following example where the SID
is orcl
:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh collectconfig -s orcl
By default, the connection to the database is through operating system authentication, "/as sysdba." To specify a different SYSDBA
user and password, you can use these options:
-r SYSDBA-USER
: The login name of the SYSDBA
user
-p SYSDBA-PASSWORD
: The password for the SYSDBA
user
Note:
If you specify the SYSDBA
user without specifying the password, you will be prompted to enter the password.
If you specify only the SYSDBA
password without specifying the user name, the user SYS
is used by default.
If the Oracle Configuration Manager account already exists, when you run the installCCRSQL.sh
script, it will be dropped and re-created.
If you are upgrading from a 9.x database version to a 10.x version, you must run the installCCRSQL.sh
script again to record the upgraded version.
If the database is used as a repository for an Oracle E-Business Suite, you must also run the following script from the ORACLE_HOME
in which the E-Business database has been hosted:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh ebs_collectconfig -u Oracle_Applications_User
The -u
parameter is mandatory. If you do not specify this parameter, the application prompts you for the Oracle Applications User. If the -u
parameter is specified, you will be prompted for the Oracle Applications Password.
If you want to automate the install, you can run the installCCRSQL.sh
script with an additional -w
option to specify the Oracle Applications Password. For example:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh ebs_collectconfig -u
Oracle_Applications_User
-w
Oracle_Applications_Password
You can add the -s
SID
command to specify the SID
of the Oracle Applications Database instance.
If you are not using operating system authentication to connect to the database, you must use the -r
and -p
parameters to specify the following:
-r SYSDBA-USER
: The login name of the SYSDBA
user
-p SYSDBA-PASSWORD
: The password for the SYSDBA
user
If the -r
parameter is specified, the -p
parameter is optional and will be prompted for.
If the database is used as a repository for Oracle Enterprise Manager Grid Control, you must also run the following script:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh collectemrep
When you run this command, then the application prompts you for the SYSMAN
password. If you want to automate the install, you can run the installCCRSQL.sh
script to specify the SYSMAN
password. For example:
$ORACLE_HOME/ccr/admin/scripts/installCCRSQL.sh collectemrep -e
SYSMAN
PASSWORD
You can add the -s
SID
command to specify the SID
of the Oracle Enterprise Manager Grid Control Database instance. You must run this script from the ORACLE_HOME
in which the Oracle Enterprise Manager Grid Control database has been hosted.
If you are not using operating system authentication to connect to the database, you must use the -r
and -p
parameters to specify the following:
-r SYSDBA-USER
: The login name of the SYSDBA
user
-p SYSDBA-PASSWORD
: The password for the SYSDBA
user
If the -r
parameter is specified, the -p
parameter is optional and will be prompted for.