Defining Remote Database Connections
This section provides an overview of remote database connections and discusses how to define remote database connections.
Page Name |
Definition Name |
Usage |
---|---|---|
REMOTEDB |
Define remote database connections. |
Data sources represent the location of the source data that is extracted, transformed, and loaded to the target. Remote data source data is extracted from a separate (remote) database and migrated into the local database. You must define remote database connections to source data from a database other than your local PeopleSoft database instance.
The Remote Database Access Management page enables you to define connectivity information for relational databases to be used for sourcing data for PeopleSoft Data Transformer. You can define connectivity information only for databases of the same type as the Target PeopleSoft database instance. For example, if the PeopleSoft database instance is Oracle, then you can define only Oracle remote connections. Remote database connections are established once for a local connect and once for each database that will be sourced. You must define one local connection for the current PeopleSoft instance. This connection is used during remote database access to retrieve information for the target database.
Note: If you are accessing data from a local database, then you do not need to set up remote database connections.
Here is a recommended procedure for setting up data transformation in an environment (be sure to replace the sample information used in this procedure with your environment and database information):
Install JDBC driver for the test database.
For SQL Server, download the appropriate JDBC driver version from the Microsoft Download Center. After the installation, three jar files are created under the JDBC driver library directory, for example, C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib. To make these files accessible to the application server, either copy them to <ps_home>\class, or add them to the CLASSPATH line in the psappsrv.cfg file (application server configuration file), for example:
CLASSPATH=C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar
Set up a local database connection (for example, H881C338).
In PIA, navigate to
. Add a local database connection with sample information as follows:Name: H881C338
Local Connect: Selected
Description: H881C338
Server: ECHAN2091903
User ID: sa
Password: Peoples0
Save the page and click the Test Connection button to verify that the connection information entered is correct. The Good Connection message appears if the information is correct.
Set up a remote database connection (for example, HC881TM1)
Navigate to
. Add a remote database connection with sample information as follows:Name: HC881TM1
Description: HC881TM1
Server: ADDB0106
User ID: satst
Password: satst
Save the page and click the Test Connection button to verify that the connection information entered is correct.
Set up data transformation installation options.
Navigate to
. On the Data Transformation Installation Options page, enter the following sample information:Maximum Rows to Preview: 10
Tablespace Name: EOECLRG
Message Set Number: 18024
Save the page.
Define subject area.
Navigate to
. Add a subject area by entering the following sample information:Subject Area: NACNV
Description/More Information: Enter some text
Default Subject Area: Selected
Create Temporary Table: Selected
Save the change.
Define source data object.
Navigate to
. Add a new source data object by entering the following sample information:Source Data Object: DEPARTMENT
Subject Area: NACNV
Description: Department
Data Source Type: Remote
Data Source Name: HC881TM1
Source Record (left field): PS_DEPT_TBL
Source Record (right field): Department Table
Navigate to the Fields page and click the Synchronize fields button. Select these fields:
SETID, DEPTID, EFFDT, EFF_STATUS, DESCR, DESCRSHORT, and COMPANY
Save the page.
Set default values for target fields.
Navigate to
. Add two target fields using the following sample information:Target Field: SETID
Source Input Value: SNSZZ
Target Field: DEPTID
Source Input Value: ABCDE
Save the change.
Define map information.
Navigate to
. Add a map object using the following sample information:Map Object: DEPT
Subject Area: NACNV
Description: Department ETL
Source: DEPARTMENT
Target: DEPT_TBL
Navigate to the Map Field Detail page and click the Apply AutoMapper button. Next, click the Source Input Type column heading twice to bring the rows with non-blank source input type to the top of the list. Change the source input type for the SETID and DEPTID target fields to Default. Change the source input type for the EFFDT target field to Source and select EFFDT as the source prompt because the Auto Field Mapper sets this to blank by default. Now there should be seven fields with non-blank source input types. Navigate to the Preview Map Results page and click the Preview button. Note that 10 rows of DEPT_TBL in HC881TM are displayed with SETID and DEPTID showing the default values set up in step 7.
Test the data transformation setup.
When testing the Data Transformer ETL, note that:
— The 3 jar files in step 1 will need to be added to psprcs.cfg (process scheduler configuration file) if they were not copied into <ps_home>\class
— A successful run depends on what data exists in the source table and the target table, otherwise the job may end with a duplicate error.
To verify that the ETL can correctly access the remote table data, delete all the rows in my local PS_DEPT_TBL, set the seven fields in the map to use Source as source input type and run the ETL. To do so, navigate to
. Add a run control using the following sample information:Data Transformer Object Type: Map
Map Object: DEPT
Target Load Option: Full Load
Destructive Load: Clear
Parallel Processing: Selected
Click the Run button. Two processes are executed: EOEW_ETL_EXE and EOEW_ETL_RUN.
Note that as the two processes run to Success, in Query Analyzer, the PS_DEPT_TBL rowcount matches that in the source table.
Note: If the data transformation process is not loading data into target tables, the problem may originate from the CLASSPATH, which was defined in your system. Also, this behavior can be caused by the process scheduler if it doesn't have the right access to the JDBC drivers.
Oracle Database Considerations
If you are using an Oracle database, you need to update the content of both psappsrv.cfg and psprcs.cfg to reflect your Oracle connectivity settings. Basically you should determine the Oracle home directory and specify it in both psappsrv.cfg and psprcs.cfg by adding the following two lines under the ;JavaVM Shared Library= section:
; RDBA Oracle JDBC driver
Add to CLASSPATH=
Add to CLASSPATH=
PREPARE TO CONFIGURE ORACLE -
Before you can use remote data access with Oracle, the appropriate database connectivity software must be installed on the system where the application server or batch server is running. The minimum database connectivity that needs to be installed is the Oracle Client Net9i 9.2.0.2.0 Connectivity Package.
To connect to a remote Oracle database, you must manually edit the application server configuration file, psappsrv.cfg, as described below. If the batch server is being used, you must manually edit the batch server configuration file, psprps.cfg, as well.
From the Remote Database Connection page (
), you can specify an Oracle datasource as specific or with TNSNAMES. Specific doesn't require a TNSNAMES entry, and will use the Oracle "thin" JDBC driver. If TNSNAMES is configured for the remote database, you can use the TNSNAMES style entry.CONFIGURING ORACLE 9i OR ORACLE 10g ON UNIX -
Determine the Oracle home directory and specify it in the configuration files by adding the following two lines under the ;JavaVM Shared Library= section:
; RDBA Oracle JDBC driver
Add to CLASSPATH=%ORACLE_HOME%\jdbc\lib\ojdbc14.jar
Add to CLASSPATH=%ORACLE_HOME%\jdbc\lib\orai18n.jar
CONFIGURING ORACLE 9i OR ORACLE 10g on WINDOWS -
Determine the Oracle home directory and specify it in the configuration file. For example, if Oracle the home directory is C:\Apps\DB\Oracle901, add the following lines under the ;JavaVM Shared Library= section:
; RDBA Oracle JDBC driver
Add to CLASSPATH=C:\Apps\DB\Oracle901\jdbc\lib\ojdbc14.jar
Add to CLASSPATH=C:\Apps\DB\Oracle901\jdbc\lib\orai18n.jar
Use the Remote Database Access Management page (REMOTEDB) to define remote database connections.
Navigation
Image: Remote Database Access Management page
This example illustrates the fields and controls on the Remote Database Access Management page. You can find definitions for the fields and controls later on this page.
![Remote Database Access Management page](img/i-1de106ban-7f8c.png)
Important! Different fields may appear on the page based on the database DB type. The preceding page shows fields for Microsoft, DB2 (OS/390), DB2/UNIX, and Sybase.
This table illustrates the page variance by database type:
Database Type |
Required Information |
---|---|
Microsoft, DB2 (OS/390), DB2/UNIX, and Sybase |
Enter a description, server, database, userID, and password. |
Informix |
Enter a description, server, user ID, password, and Inf Svr (Informix Server) name. |
Oracle |
For Oracle and a Connection Type of TNSNames, enter a description, TNS Entry, user ID and password. Note: TNS Names is a preconfigured file (tnsnames.ora) with previously defined database connection information. Select a connection type of Specific if you want to set up a database that does not already have a TNS Entry defined, or when you don't want to use the TNS entry. |
Field or Control |
Definition |
---|---|
Name |
Displays the remote DB name entered on the Search page for your database. |
DB Type |
Displays the database type of your PeopleSoft database. Note: Since your remote database must be of the same type, this field is defaulted to your current local database type. |
Local Connect |
Select if you are defining the remote connection information for your local database. All others must be specified as remote databases. An error displays if you save a page with a connection checked as a Local Connect and there is already one identified as such (in the PSREMOTEDBDEFN table). Important! One connection must be defined as the Local Connect, the connection information for the current PeopleSoft instance (the local database). This connection is used during remote database access to retrieve connection information for the source and as the target database for the sourced data. |
Server |
Enter the name of the server where the database resides. Note: This field is platform specific. |
DB Server Port |
The DB Server Port number is automatically populated with a default value based on the database type. It may need to be changed depending upon your database server configuration. |
User ID and Password |
Enter the user ID and password that are required to access the database. The password is not displayed. Note: This field is platform specific. |
Test Connect |
Click to access the remote database by using the information that you have entered. This will verify that all of the connection information is correct. |