You
can verify your current database version by querying v$version.
SQL> select *
from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
The
location of the repository data files must have at least 1.15Gb of
free space, and the SYSTEM tablespace must have 500Mb of available
space.
Initialization Parameters
Most of the following parameters are checked by the assistant and
it will refuse to run if they do not meet the minimum settings:
db_block_size
|
8192 or greater |
Requires that the database be recreated to change. If less
than 8k, the database cannot be used for the Metadata
Repository. |
aq_tm_processes |
1
or greater |
|
open_cursors
|
300 or greater |
|
job_queue_processes |
1
or greater |
|
db_cache_size
|
Between 144Mb and 2Gb |
|
shared_pool_size |
Between 144Mb and 2Gb |
|
java_pool_size |
Between 64Mb and 2Gb |
|
pga_aggregate_target |
Between 96Mb and 2Gb |
|
query_rewrite_enabled |
true |
This parameter must remain true after installation if you use
Oracle Wireless. |
query_rewrite_integrity |
trusted or enforced |
This parameter must remain true after installation if you use
Oracle Wireless. |
sessions |
400 or greater |
|
undo_management |
auto |
|
nls_length_semantics |
byte |
|
max_commit_propagation
_delay |
99
or lower |
|
compatibility |
9.0.1.5 or higher |
|
All
the previous parameters can be changed after the Metadata
Repository installation except the two query_rewrite parameters,
which are required by Oracle Wireless. You can set many of these
parameters dynamically on the instance before running runRepca,
then change them back after the installation completes.
If
you are using Oracle-Managed Files you must set
db_create_file_directory to the location that you want runRepca to
create the repository datafiles.
db_create_file_dest |
file directory |
|
Required Packages
The
following packages must be installed. All are installed normally
in a 9i or 10g database:
DBMS_DDL
DBMS_LOCK
DBMS_OUTPUT
DBMS_REPUTIL
DBMS_SQL
DBMS_STATS
DBMS_UTILITY
UTL_FILE
UTL_RAW
If
you patched your database to 9.2.0.4, you will need to reload the
DBMS_LDAP package, logged on as internal.
# cd
$ORACLE_HOME\rdbms\admin
# sqlplus "/ as sysdba"
SQL> @catldap.sql
Finally, runRepca requires that the database use password file
authentication. If needed, create a password file using the orapwd
utility and set the remote_login_password parameter to "exclusive"
or "shared."
At
this point we are ready to execute the runRepca utility.
Running runRepca
When you start runRepca, you can pass it parameters; note that it
will ask for parameters if you don't pass them. The program will
start by asking you to input the ORACLE_HOME for the database that
will maintain the repository. It will then ask you if the database
uses RAW devices and if it is a RAC cluster. If not, answer "N."
Next, the actual assistant will start.
After the splash screen, you will be asked for the SYS password,
the host name, and port for the database and the database service
name. The assistant will then go through a process of validating
that the database is the correct version and has the correct
parameters set.
Once the database is accepted, runRepca checks to ensure that none
of the repository tablespaces are already defined (refer to Figure
1). If any are defined, runRepca will notify you and allow you to
either quit or let the assistant drop and recreate them.

Figure 1.
You
are then asked whether you are using ASSM or not. I was not, and
so the next screen asked if I wanted to define a directory for the
files or use Oracle-Managed files. I defined a directory for my
datafiles (refer to Figure 2). In the next step, you are asked
whether you want to register with an Oracle Internet Directory
(OID). Since I have not installed the OID yet, I chose to skip
that step. The assistant then began loading the repository (refer
to Figure 3), which may take some time (mine took 48 minutes).

Figure 2.

Figure 3.
Once the repository has been successfully installed, you will need
to unlock the user DCM and set the password. You will also need to
update the sqlnet.ora file for the database adding LDAP to the
names parameters.
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, HOSTNAME)
Now
you are ready to install the Application Server 10g
Infrastructure instance using the back-end database as the
Metadata Repository.
Again, using the back-end database for the Infrastructure's
Metadata Repository allows you to better manage and maintain your
overall system. By eliminating the extra database normally used,
you will be able to incorporate the Metadata Repository into
high-availability solutions implemented into the back-end
database.