+

Search Tips   |   Advanced Search

Manually set up the property extension repository for federated repositories

We can use the createIdMgrPropExtDbTables script to create tables in the property extension repository for federated repositories.

The following databases are supported by the script when the database exists on a distributed operating system:

For a list of the supported database versions, see the IBM WebSphere Application Server detailed system requirements.

To use the IBM DB2 on z/OS or IBM DB2 on iSeries database, read about manually setting up the property extension repository in DB2.

If we do not have WAS installed on the same system on which we are setting up the database, copy the following files from a system where WAS is installed to the system on which we are setting up the database. Replicate the same directory structure within the setup directory. The db_type variable represents one of the following directory names: db2, oracle, informix, derby, or sqlserver.

Database schema:

We can specify the database schema where to create the federated repository tables when we are manually setting up the property extension repository.

To use the default schema of the database, execute the following commands without specifying the DBSCHEMA parameter. Typically, the default schema is the namespace of the current database user.

Complete these steps to replace the schema variable in the SQL files with the actual database schema name. If WAS and the database are not on the same system, set the SCHEMA_LOCATION value to the location where you copied the SQL files.

Windows operating systems:

  1. Open a command window.

  2. Change to the app_server_root\etc\wim\setup directory.

  3. Enter the following commands:

      set SCHEMA_LOCATION=app_server_root\etc\wim\setup\lookaside
      set DBTYPE=<db_type>
      set DBSCHEMA=dbschemaname
      set SCHEMA_DEST_LOCATION=<location where the updated SQL files with replaced variables should be copied>
      ws_ant.bat -f app_server_root\etc\wim\setup\filterbuild.xml

    where the value of <db_type> is db2, derby, informix, oracle, or sqlserver.

If SCHEMA_DEST_LOCATION is not set, the updated SQL files are copied to a directory with the name as the value not substituted under the current directory. The output shows where the files are copied.

AIX , HP-UX, Linux, and Solaris operating systems:

  1. Open a command window

  2. Change to the app_server_root/etc/wim/setup directory.

  3. Enter the following commands:

      export SCHEMA_LOCATION=app_server_root/etc/wim/setup/lookaside
      export DBTYPE=<db_type>
      export DBSCHEMA=dbschemaname
      export SCHEMA_DEST_LOCATION=<location where the updated SQL files with replaced variables should be copied>
      ws_ant.sh -f app_server_root/etc/wim/setup/filterbuild.xml

    where the value of <db_type> is db2, derby, informix, oracle, or sqlserver.

If SCHEMA_DEST_LOCATION is not set, the updated SQL files are copied to a directory with the name as the value not substituted under the current directory. The output shows where the files are copied.

The following notes apply to specific databases:

The following default instance is created as a part of the database installation:

The Informix database is created with the following environment:

Run the createIdMgrPropExtDbTables.sh script or createIdMgrPropExtDbTables.bat script to create the tables in the property extension repository. Run the script from the following location or from the directory to which you previously copied the script file:

AIX, HP-UX, Linux, and Solaris operating systems

app_server_root/etc/wim/setup/bin/createIdMgrPropExtDbTables.sh

Windows

app_server_root\etc\wim\setup\bin\createIdMgrPropExtDbTables.bat

Use the following parameters to specify the values that you require when you run the script:


Example

Run the appropriate script for the database and operating system to create tables in the property extension repository. Use the sample values to specify database parameters. If the database exists on a system where WebSphere Application Server is not installed, the following examples assume that the PATH variable includes an entry for the location to which you copied the script files. For the AIX, HP-UX, Linux, and Solaris operating systems, the entry might be the app_server_root/etc/wim/setup/bin/ or the /setup/bin/ directory. For Windows operating systems, the entry might be the app_server_root\etc\wim\setup\bin\ or the \setup\bin\ directory.

The examples in the following section are organized into multiple lines for illustration purposes only.

On the AIX, HP-UX, Linux, and Solaris operating systems:

Oracle databases

createIdMgrPropExtDbTables.sh -b /space/oracle/product/10.2.0/Db_1/ -n orcl -u system -p manager -s /opt/IBM/WebSphere/AppServer1/etc/wim/setup -t oracle

Informix databases

createIdMgrPropExtDbTables.sh -b /opt/IBM/informix/ -n demo_on -u informix -p informix -s /opt/IBM/WebSphere/AppServer/etc/wim/setup -t informix

DB2 databases

createIdMgrPropExtDbTables.sh -b /opt/ibm/db2/V9.1/ -n db2inst1 -p db2inst1 -s /opt/IBM/WebSphere/AppServer/etc/wim/setup -t DB2 -u db2inst1 -i /home/db2inst1/

Derby databases

createIdMgrPropExtDbTables.sh -b /opt/ibm/derby/ -n test11 -s /opt/IBM/WebSphere/AppServer/etc/wim/setup -t derby

On the Windows operating systems:

Oracle databases

createIdMgrPropExtDbTables.bat -b "c:\oracle\product\10.2.0\Db_1" -n orcl -u system -p manager -s "c:\Program Files\IBM\WebSphere\AppServer1\etc\wim\setup" -t oracle

Informix databases

createIdMgrPropExtDbTables.bat -b "c:\Program Files\IBM\informix" -n demo_on -u informix -p informix -s "c:\Program Files\IBM\WebSphere\AppServer\etc\wim\setup" -t informix

DB2 databases

createIdMgrPropExtDbTables.bat -t db2 -u db2admin -p sec001ret# -n test23 -b "c:\Program Files\IBM\SQLLIB" -s "c:\Program Files\IBM\WebSphere\AppServer1\etc\wim\setup"

Derby databases

createIdMgrPropExtDbTables.bat -t derby -b "c:\Derby" -n test11 -s "c:\Program Files\IBM\WebSphere\AppServer1\etc\wim\setup"

Microsoft SQL Server databases

createIdMgrPropExtDbTables.bat -t sqlserver -u sa -p sec001ret# -n sqlsrv -b "c:\Progra~1\Micros~1\90\Tools" -s "C:\Progra~1\IBM\WebSphere\AppServer1\etc\wim\setup"


What to do next

Run the setupIdMgrPropertyExtensionRepositoryTables command with the skipDBCreation parameter set to true to populate the tables created. For more information, read about setting up an entry mapping repository, a property extension repository, or a custom registry database repository using wsadmin commands.


Related tasks

Manually set up the property extension repository for DB2 for iSeries or DB2 for z/OS


Related information:
WebSphere Application Server detailed system requirements