Oracle® Fusion Middleware Repository Creation Utility User's Guide 11g Release 1 (11.1.1) Part Number E14259-03 |
|
|
View PDF |
This chapter describes how to use RCU to create and drop schemas using both the graphical interface and command line interface.
The following topics are covered:
Before you begin using RCU, you should review the "Repository Creation Utility (RCU) Requirements" section in the Oracle Fusion Middleware System Requirements document:
http://www.oracle.com/technology/software/products/ias/files/fusion_requirements.htm
This section contains important information about your system and component-specific database requirements that should be met before you run RCU.
RCU can only be used with certain databases. For important database information, you should read the "Certified Databases" section in the Oracle Fusion Middleware System Requirement document.
To start RCU, insert the RCU CD-ROM and start RCU from the rcuHome/bin
(on UNIX operating systems) or rcuHome\bin
(on Windows operating systems) directory:
On UNIX operating systems:
./rcu
On Windows operating systems:
rcu.bat
You can also download a .zip
file containing RCU from Oracle Technology Network (OTN):
http://www.oracle.com/technology/software/products/middleware/htdocs/111110_fmw.html
After downloading the .zip
file, extract the contents to a directory of your choice, and run RCU from the RCU_HOME
/bin
(on UNIX operating systems) or RCU_HOME
\bin
(on Windows operating systems) directory with the commands shown above, where RCU_HOME
is the folder where RCU was unzipped, or the drive or mount point of the CD-ROM.
Note:
On Windows systems, make sure that you do not extract the RCU.zip
file to a directory name containing spaces.Java Access Bridge enables assistive technologies, such as JAWS screen reader, to read Java applications running on the Windows platform. Assistive technologies can read Java-based interfaces, such as Oracle Universal Installer and Oracle Enterprise Manager.
To install Java Access Bridge:
Download Java Access Bridge from the following URL:
http://java.sun.com/javase/technologies/accessibility/accessbridge/
Install Java Access Bridge.
Copy the access-bridge.jar
and jaccess-1_4.jar
from your installation location to the jre\lib\ext
directory.
Copy the WindowsAccessBridge.dll
, JavaAccessBridge.dll
, and JAWTAccessBridge.dll
files from your installation location to the jre\bin
directory.
Copy the accessibility.properties
file to the jre\lib
directory.
To configure RCU to use Java Access Bridge after you complete the installation, set the system variable ORACLE_OEM_CLASSPATH
to point to the installed Java Access Bridge files:
Display System in the Control Panel.
Select the Advanced tab.
Click the New button under the System Variable list. The New System Variable dialog appears.
In the Variable Name field, enter ORACLE_OEM_CLASSPATH
.
In the Variable Value field, enter the full path to access-bridge.jar
and jaccess-1_4.jar
.
Use a semicolon to separate the two paths. Do not use quotes or character spaces.
Click OK.
RCU is used to create the various component schemas in an existing database.
You can choose to create all the schemas in a single database or distribute them throughout multiple databases.
You can use RCU to create multiple schemas of each component using custom prefixes (for example, you could use the prefix TEST
to create a test version of the Metadata Services schema called TEST_MDS
, then use the prefix PROD
to create a production version of the same schema called PROD_MDS
on the same database).
Note:
The Oracle Internet Directory (ODS
) component cannot be prepended with a custom prefix; there can only be one repository for this component per database.You are only allowed to use a prefix once per schema within a single database. For example, if you had a test version of the Metadata Services schema called DEV_MDS
, then you can not use the DEV
prefix again to create another version of the schema (for example, DEV_MDS2
).
The following sequence takes place when a schema is created with RCU:
Prior to the schema being created, RCU performs global and component level prerequisite checks to ensure that certain minimum requirements are met.
The schemas are created; the required tablespaces and data files are created.
The schema_version_registry
table is updated so that the schema type is mapped to the actual schema name (for example, TEST_MDS
might be mapped to the MDS Schema type).
The scripts provided by the various component owners are invoked; these scripts perform the following:
Create the user and grant the required roles.
Run ALTER SESSION SET CURRENT SCHEMA
to switch the schema to user context.
Create the schema objects.
After successfully starting RCU (see Section 2.2, "Starting RCU"), follow the instructions in Table 2-1 to create schemas.
Click on the screen name to see more detailed information for that screen. Unless otherwise noted, click Next to continue to the next screen.
Table 2-1 How to Create Schemas
To drop schemas from the database, start RCU (see Section 2.2, "Starting RCU"), then follow the instructions in Table 2-2.
Click on the screen name to see more detailed information for that screen. Unless otherwise noted, click Next to continue to the next screen.
Table 2-2 How to Drop Schemas
No. | Screen | Instructions and Action Required |
---|---|---|
1 |
None. |
|
2 |
Select Drop. |
|
3 |
Specify the connection details for your database. |
|
4 |
Select the prefix and the schemas you want to drop. |
|
5 |
Review the information on this screen, then click Drop to drop the schemas. |
|
6 |
Note the location of the log files, then click Close to dismiss the screen. |
Tablespaces that are shared among multiple schemas will not be dropped. For example, if you created both the Audit Services (for example, DEV_IAU
) and Metadata Services (for example, DEV_MDS
) schemas, both schemas would use the temporary tablespace DEV_IAS_TEMP
(see Section A.8.1, "Default Tablespace Mappings").
If you then drop the DEV_IAU
schema, the DEV_IAS_TEMP
tablespace would not be dropped since it is also being used by the DEV_MDS
schema.
If your database is running on a Windows operating system, and you are using RCU to drop schemas from that database, some components datafiles are not dropped (for example, OID).
In the event you want to re-create the dropped schema, you must first manually delete the datafile before creating the schema.
The Oracle Portal repository includes a demo schema (portal_schema_user_name
_DEMO
) that can not be installed using RCU. If you want to install this schema for testing purposes, you must do so using the instdemo.sql
script:
> sqlplus /nolog SQL> connect sys as sysdba SQL> @instdemo.sql portal_schema_user_name portal_schema_user_password default_tablespace temporary_table_space name_of_the_demo_schema_user password_of_the_demo_schema_user name_of_the_log_file database_connection_string
For example:
SQL> @instdemo.sql portal portalpassword portal ias_temp portal_demo portaldemopassword example_app.log (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=db.example.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
This section describes how to use the Repository Creation Utility's (RCU) command line interface (CLI). The CLI is necessary for integration with both the Oracle Fusion Middleware installer and Enterprise Manager during application deployment. Additionally, you can use the CLI in cases where Xserver is not configured or if you are using a telnet terminal that does not have proper display capabilities.
This section contains the following topics:
The syntax for the RCU command line interface is:
rcu [-silent | -interactive] [-createRepository | -dropRepository] {<options>}
Specify -silent
if you want to run RCU with minimal interaction once you have entered the commend. You must specify all necessary command line parameters. If you use the -silent
option, RCU will prompt you for the database and schema passwords.
Specify -interactive
if you want to run RCU and be prompted for each parameter.
Use the -createRepository
command to create a repository. For more information, see Section 2.7.4, "Creating a Repository".
Use the -dropRepository
command to drop a repository. For more information, see Section 2.7.5, "Dropping a Repository"
Table 2-3 describes the various options and their descriptions.
Table 2-3 RCU Command Line Interface Options and Descriptions
Option | Description |
---|---|
|
Full path to the location of the |
|
Full path to the location of the |
|
Type of database to which you are connecting. Valid options are |
|
Credentials for connecting to your database.
|
|
Database user name (for example, the default user name on Oracle databases is |
|
Database user role (for example, |
|
Whether or not your database creates schemas that support encodings. Valid values are Yes or No. The default value is Yes. This parameter is valid for the SQLSERVER database type only. |
|
Comma separated variables in the format variablename |
|
Prefix for your schemas. For more information about schema prefixes, refer to Section 2.4.2, "Are Multiple Schemas Supported?" and Section A.5, "Select Components Screen (for Create Operation)". Some schemas do not take prefixes; see Section 2.4.2, "Are Multiple Schemas Supported?" for more information. |
|
ID of the component(s) you want to add or drop. To specify a single component, use the format: -component component_ID
To specify multiple components, use the format: -component component_ID -component component_ID For a list of valid component (schema) IDs, refer to Table 2-4 in Section 2.7.3, "RCU Component IDs and Schema Dependencies". Multiple components are sometimes necessary because of dependencies; for example, you cannot create the Oracle Portal ( -component PORTAL -component PORTLET For more information about schemas and their dependencies, see Section 2.7.3, "RCU Component IDs and Schema Dependencies". |
If you use the -silent
flag, RCU will prompt you for the database and schema passwords.
Before you create any schemas, you must be aware of and specify all dependencies for the component you are loading. For example, the SOAINFRA
schema depends on the MDS
and ORASDPM
schemas; if you try to load the SOAINFRA
schema without specifying both the MDS
and ORASDPM
schemas, or if the MDS
and ORASDPM
schemas do not already exist in the database, RCU will stop before any loading takes place.
Table 2-4 lists the schemas along with their component IDs and dependencies:
Table 2-4 Component IDs and Dependencies
Component | Component ID | Dependencies |
---|---|---|
AS Common Schemas |
||
Metadata Services |
MDS |
None |
Audit Services |
IAU |
None |
Enterprise Scheduler Service |
ORAESS |
None |
Identity Management Schemas |
||
Oracle Internet Directory |
OID |
None |
Oracle Identity Federation |
OIF |
None |
Oracle Enterprise Content Management Suite Schemas |
||
Oracle Information Rights Management |
IRM |
None |
Oracle Imaging and Process Management |
IPM |
None |
WebLogic Communication Services Schemas |
||
Presence |
ORASDPXDMS |
Metadata Services ( SIP Infrastructure Subscriber Data Service ( SIP Infrastructure Location Service ( User Messaging Service ( |
SIP Infrastructure Subscriber Data Service |
ORASDPSDS |
Metadata Services ( SIP Infrastructure Location Service ( |
SIP Infrastructure Location Service |
ORASDPLS |
Metadata Services ( SIP Infrastructure Subscriber Data Service ( |
SOA and BPM Infrastructure Schemas |
||
SOA Infrastructure |
SOAINFRA |
Metadata Services ( User Messaging Service ( |
Business Activity Monitoring |
BAM |
Metadata Services ( User Messaging Service ( |
User Messaging |
ORASDPM |
Metadata Services ( |
WebCenter Suite Schemas |
||
Portlet Producers |
PORTLET |
None |
WebCenter Spaces |
WEBCENTER |
Metadata Services ( |
Oracle Content Server 10g |
CONTENTSERVER |
None |
Discussions |
DISCUSSIONS |
None |
Discussions Crawler |
DISCUSSIONS_CRAWLER |
Discussions ( |
Wiki and Blog |
WIKI |
None |
Portal and Business Intelligence Schemas |
||
Discoverer |
DISCOVERER |
None |
Portal |
PORTAL |
Portlet Producers ( |
In addition to the component IDs listed in the table, there is also a SAMPLE
schema that can be used for testing purposes.
You must also be aware of these dependencies when dropping schemas. For example, if you can see from Table 2-4 that several schemas require the MDS
schema to be present; if you choose to drop the MDS
schema, then all the schemas that require the MDS
schema will stop working.
The full syntax for the RCU command line interface to create a repository is shown below:
rcu [-silent | -interactive] -createRepository [-compInfoXMLLocation <location of ComponentInfo.xml file>] [-storageXMLLocation <location of Storage.xml file>] [-databaseType [ORACLE|SQLSERVER]] -connectString <database connect string (for example: host:port:service_id)> -dbUser <database username> [-dbRole <database role>] [-unicodeSupport Yes|No (default is Yes. Applicable for SQLSERVER databases only.)] [-variables <comma separated variables in the format: variablename=value>] [-schemaPrefix <schema prefix (optional for non-prefixable components)>] -component <component ID> ]
In order to work properly, make sure that the parameters are specified in the same order that they are listed. For example, do not specify the -compInfoXMLLocation
parameter before the -component
parameter.
When specifying the -component
, you must use the correct component IDs, which are listed in Table A-1 in Section A.8.1, "Default Tablespace Mappings".
Below is a sample command to create the SOA Infrastructure schemas on a UNIX system:
./rcu -silent -createRepository -databaseType ORACLE -connectString host1.oracle.com:1521:orcl -dbUser sys -dbRole sysdba -schemaPrefix TEST -component SOAINFRA -component MDS -component ORASDPM
Notice that this command takes into account the correct component IDs and dependencies for the SOA Infrastructure schemas, as listed in Table 2-4.
The full syntax for the RCU command line interface to drop a repository is shown below:
rcu [-silent | -interactive] -dropRepository [-compInfoXMLLocation <location of ComponentInfo.xml file>] [-storageXMLLocation <location of Storage.xml file>] [-databaseType [ORACLE|SQLSERVER]] -connectString <database connect string (for example: host:port:service_id)> -dbUser <database username> [-dbRole <database role>] [-variables <comma separated variables in the format: variablename=value>] [-schemaPrefix <schema prefix (optional for non-prefixable components)>] -component <component ID>
In order to work properly, make sure that the parameters are specified in the same order that they are listed. For example, do not specify the -compInfoXMLLocation
parameter before the -component
parameter.
Below is a sample command to drop the WebCenter Spaces schemas on a UNIX system:
./rcu -silent -dropRepository -databaseType ORACLE -connectString host1.oracle.com:1521:orcl -dbUser sys -dbRole sysdba -schemaPrefix TEST -component WEBCENTER
Table 2-5 shows the variables picked up by RCU from the environment. If the environment variable is not set, then RCU uses the default value.
Table 2-5 RCU Environment Variables
Variable | Default | Description |
---|---|---|
|
|
Location of the RCU log file. |
|
|
Determines whether or not a directory with the format Set this variable to |
|
|
Name of the RCU log file. |
|
|
Determines the RCU log level. Set this variable to one of |