ODI11G:Deploying and Configuring the ODI Agent as a Java EE Application

Deploy and Configure a New Domain with WebLogic Server

Oracle Data Integrator provides a wizard to automatically generate templates for deploying Java EE agents in Oracle WebLogic Server. Such a template includes the Java EE Agent and its configuration, and can optionally include the JDBC datasources definitions required for this agent as well as the drivers and libraries files for these datasources to work. By using the Oracle WebLogic Configuration Wizard, domain administrators can extend their domains or create a new domain for the Oracle Data Integrator Java EE runtime agents. The ODI 11g Java EEAgent can be deployed to an existing domain or deployed automatically when creating a new domain. For the purpose of this lab we will first create the WLS domain, and then extend the domain by depying the Java EE agent. Before creating an ODI JEE agent, you create a new WLS domain, ODI-DOMAIN. To do so, perform the following steps:
1. To deploy and configure domains with WLS, you start the config.bat from within the ODI Home Install. Start command shell and change directory to: <WLS-HOME>\common\bin, for example: C:\oracle\Middleware\Oracle_ODI2\common\bin. Execute config command. The Configuration Wizard starts.

Screenshot for Step

Screenshot for Step

Screenshot for Step

2. In Welcome screen, select Create a new WebLogic domain, and click Next. In the Select Domain Source screen, just click Next.

Screenshot for Step
Screenshot for Step
3. In Specify Domain Name and Location screen, enter ODI-DOMAIN for Domain name. Leave default Domain location. Click Next. In the screen that follows, enter Administrator user password: "welcome1". Leave User name as "weblogic". Click Next. In the next screen, leave default location for available JDKs. Leave other default settings, as shown on the screenshot and click Next.
Screenshot for Step

Screenshot for Step

Screenshot for Step
4. In the Select Optional Configuration screen, select: Administration Server, Managed Servers, Clusters and Machines. Click Next. In the screen that follows, verify that Listen port is set to 7001. Click Next. In the screen that follows, click Add to add a new managed server. It will be used later to depoy ODI JEE agent.
Screenshot for Step

Screenshot for Step
Screenshot for Step
5 . In the Configure Managed Server screen, in the Name field enter: odi_server1. In the Listen Port field, enter: 8001, as shown on the screenshot. Click Next. In the screen that follows, click Next.

Screenshot for Step
Screenshot for Step


6 . In the Configure Machines screen, click Next. In Configuration Summary screen, click Create. When the domain is created, click Done.
Note: Don't select "Start Admin server" yet. It will be done later.

Screenshot for Step
Screenshot for Step
Screenshot for Step

Deploy and configure the ODI Java EE agent on the existing WebLogic domain, ODI-DOMAIN.


Now that you have created the WebLogic server domain ODI_DOMAIN, you need to deploy and configure ODI JEE agent with this domain.

1. If not started, start ODI and connect to ODI Work repository (WORKREP1). For user SUPERVISOR, eneter password: SUNOPSIS. Open Topology Navigator, open Physical architecture and then create a new ODI Agent. Name this agent OracleDIAgent. Set the port to 8001 and Host to localhost . Verify that the Web application context is set to oraclediagent , as shown below. Save your new physical agent .
Note: The agent name is case-sensitive! Use the exact name OracleDIAgent, as shown in the screenshot.
Screenshot for Step
Screenshot for Step

Screenshot for Step
Screenshot for Step
 
1 . In the Logical architecture, create a new logical agent with the same name as your new physical agent, OracleDIAgent . Link this logical agent to the physical agent OracleDIAgent in Global context, as shown below. Save logical agent OracleDIAgent, and close the tab.
Screenshot for Step

Screenshot for Step


 
 
2. Open the Command Prompt window again. If necessary, change directory to: <WLS-HOME>\common\bin. Execute config command. The Configuration Wizard starts.
Screenshot for Step

Screenshot for Step


3. In the Welcome screen, select: Extend an existing WebLogic domain. Click Next. In the screen that follows, select the domain ODI-DOMAIN, as shown on the screenshot. Click Next.
Screenshot for Step

Screenshot for Step


4 . In the screen that follows, select Oracle Data Integrator – Agent – 11.1.1.1 (Oracle JRF will then also be selected; leave this option selected). Click Next. In the screen that follows, click OK to replace the existing component odi_server1, that was created earlier.
Screenshot for Step

Screenshot for Step


5 . The wizard will set up the ODI repository connection within the domain server. During the wizard configuration, the repository connection information must be supplied. Click the check boxes next to ODI Master schema, and next to ODI Work schema. Configure the JDBC component schema as shown in the following table. Click Next. Verify that the test was successful (if not, correct any connectivity settings). Click Next.
Database Connection (Master Repository)
Parameter Value
Vendor Oracle
Driver Oracle’s driver (Thin) for Instance connections
Schema Owner snpm1
Schema Password oracle1
DBMS/Service orcl
Host Name localhost
Port 1521
Screenshot for Step
Screenshot for Step

6 . In the next screen, select Managed Servers, Clusters and Machines. Click Next. Verify that Listen port is set to 8001 for managed server odi_server1. Click Next. In the Configure Clusters screen, click Next.

Screenshot for Step
Screenshot for Step
Screenshot for Step




7 . In the Configure Machines screen, click Next. The Assign Servers to Machines screen will already have the odi_server1 assigned to localODImachine. Click Next. Review the Configuration Summary, and then click Extend. When the domain is created, click Done.
Screenshot for Step
Screenshot for Step

Screenshot for Step
Screenshot for Step

Connecting to the WebLogic server and managed server odi_server1 .

Now that you have created and extended the WebLogic domain with the ODI JEE agent, you need to connect to WebLogic server and managed server odi_serevr1.
1. In the command shell, change directory to the directory of the WLS Home - C:\Oracle\Middleware\user_projects\domains\ODI_DOMAIN\bin . Execute the startweblogic command.
Screenshot for Step
Screenshot for Step
 
2. Security must be set up for the JAVA EE application to have access to the ODI repository. The entry will be created within the credential store, which will allow the JAVA EE Agent to authenticate itself to be able to use the required resources. This user should be a user that is already set up in the ODI Security. In this practice, we use user SUPERVISOR. To do this, you execute Web Logic Scripting Tool (WLST), connect to our running Admin server and add the credential store. To start WLST, in the new command window, change directory to the WLS_HOME common bin - C:\Oracle\Middleware\oracle_common\common\bin, and then execute the command wlst.
Screenshot for Step

Screenshot for Step

3 . To connect to the running Admin server, execute the following command: connect('weblogic','welcome1','t3://localhost:7001')

Screenshot for Step
Screenshot for Step



4 . Execute the following command to add the correct credential store for ODI Supervisor : createCred (map="oracle.odi.credmap", key="SUPERVISOR", user="SUPERVISOR", password="SUNOPSIS", desc="ODI SUPERVISOR Credential").

Note: All commands are case-sensitive! You can copy commands from the text file provided HERE.

Screenshot for Step

Screenshot for Step

5 . IAlso execute the command to add the correct credential store for the domain ODI-DOMAIN :
createCred (map="oracle.odi.credmap", key="ODI-DOMAIN", user="weblogic", password="welcome1", desc="ODI-DOMAIN Credential").
To exit WLST, execute the command exit() .

Screenshot for Step

Screenshot for Step

6 . To start managed server odi_server_1, change directory to WLS Home - C:\Oracle\Middleware\user_projects\domains\ODI-DOMAIN\bin , and use the execute command:
StartManagedWeblogic odi_server1. For Username, enter weblogic . For the password, enter welcome1 . Verify that your managed server is started in RUNNING mode.

Screenshot for Step

Screenshot for Step

Screenshot for Step

7 . From ODI Designer, click Test icon to test connectivity of your configured ODI Java EE agent. Click OK. Close OracleDIAgent tab.
Screenshot for Step



Executing an ODI Object with ODI Java EE Agent

With ODI Agent, expand the project and execute the PRGcreate-populate_table procedure that creates and populates a relational table. This procedure was created in the OBE titled Creating an ODI Procedure to Create and Populate a Relational Table. To access this OBE, click HERE.

1. In ODI designer, right-click the PRGcreate-populate_table procedure and select Execute. In the window that appears, click the Agent drop-down list and select localagent. Click OK to execute the job with the OracleDIAgent agent. When the Information screen shows the "Session started" message, click OK.
Screenshot for Step

Screenshot for Step
Screenshot for Step

 
2. Click the ODI Operator tab to open ODI Operator. In ODI Operator, click the Session List tab, and then click the Refresh icon. Expand: Physical Agent > OracleDIAgent -1> PRD_CREATE_POPULATE_TABLE, and view the execution results for the PRD-create-populate-table procedure. Verify that procedure PRD-create-populate-table executed successfully.
Screenshot for Step

3 . To stop managed WebLogic server odi_server1 and then WebLogic server, change directory to WLS Home - C:\Oracle\Middleware\user_projects\domains\ODI-DOMAIN\bin, and then execute the following command: stopManagedWebLogic odi_server1. For Username, enter weblogic . For the password, enter welcome1 .
To stop WebLogic server, execute the command: stopWebLogic.
Screenshot for Step
Screenshot for Step

Screenshot for Step
Screenshot for Step

 

No comments:

Post a Comment