DAC Class Room Notes
-
Upload
ravi-kumar-pasupula -
Category
Documents
-
view
225 -
download
1
Transcript of DAC Class Room Notes
Confidential
RR I-TEC
RR I-TEC Classroom Notes
By Ram Reddy
7/10/2012 Version 1.0
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 2 Confidential
Contents
1. DAC Introduction 3
2. DAC Installation 3
3. DAC Configuration 37
4. Development Activities 40
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 3 Confidential
1. DAC Introduction
1. Is a centralized console to design, configure and execute ETL for loading
the Oracle Business Analytics Warehouse 2. Single command and control point for the OBAW 3. Provides a framework for managing the entire life cycle of OBAW
implementations 4. Provides an ‘easy-to-use’ interface for deploying, defining, administering
and monitoring of Data warehouse processes 5. Simplifies ETL customization and execution
1. Define ETL subject areas and execution plans 2. Automate configuration of ETL for full and incremental load of subject
areas 3. Automatic index management 4. Prioritize and load balance ETL workflow execution 5. Compile historical tracking of diagnostic ETL logs 6. Provide restart of ETL execution from point of failure 7. Update database statistics on OBAW tables and indexes
6. DAC present version is 10G (10.1.3.4.1)
2. DAC Installation
1. Download software from oracle website
http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bi-downloads-1525270.html
2. In downloaded software navigate to below location and double click on 11G
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 4 Confidential
3. In Welcome screen click on NEXT
4. Provide installation location
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 5 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 6 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 7 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 8 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 9 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 10 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 11 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 12 Confidential
Copy ojdbc6
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 13 Confidential
paste
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 14 Confidential
CLIK ON CONFIGURE
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 15 Confidential
CREATE USER IN SQL AS DAC
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 16 Confidential
Select Authentication
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 17 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 18 Confidential
ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 19 Confidential
Ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 20 Confidential
Ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 21 Confidential
ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 22 Confidential
Clik on test conection
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 23 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 24 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 25 Confidential
yes
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 26 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 27 Confidential
yes
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 28 Confidential
ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 29 Confidential
Save
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 30 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 31 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 32 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 33 Confidential
D:\Informatica\9.0.1\server\bin;C:\orahome\10gR3_1\bifoundation\dac\lib;C:\orahome\10gR3_1\bifoundation\dac\bin
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 34 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 35 Confidential
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 36 Confidential
Ok-ok-ok
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 37 Confidential
3. DAC Configuration
Step1: Sign in to DAC
Startàall program DAC à client à provide
Connection: DAC
User name: DAC
Password: DAC
Step2: Creating Container
In DAC repository we may have ‘n’ number of containers but always best practice is create only one container.
It is useful to store DAC metadata (task names, subject area, names, execution plans etc…)
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 38 Confidential
Process:
· Go to file menu --> new --> Source system container--> provide id as rritec123 and name as rritec
Click ok --> ok.
· Select create new Container.. --> Click ok.
Step3: Configure Database.
· Click on Design tab -->select rritec container · Click on Setup tab --> double click on Physical data sources --> click on New -->
provide
Name: ORCL
Type: Source
Connection type: Oracle (oci8)
TNS name: ORCL
Table owner: Scott
Table owner password: tiger
Dependency priority: 1
Data source number: 1521
· Click on save --> ok. · Similarly another connection with name as ORCL_DW, owner as B165_TARGET
and owner password as RRitec123
Step4: Configure Informatica Repository Server.
· Click on Setup tab --> double click on Informatica Server --> new -->
Name: INFORMATICA_REP_SERVER
Type: Repository
Hostname: local host
Server port: 6005
Domain: Domain_rritec
Login: Administrator
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 39 Confidential
Password: Administrator
Repository name: BIA_RS (open Informatica Admin console and name as per the console)
· Click on save --> test connection --> ok.
Step5: Configure Informatica Integration services.
· Click on Setup --> Informatica Services -->go to new
Name: INFORMATICA_DW_SERVER
Type: informatica
Services: BIA_IS
Domain: Domain_rritec
Login: Administrator
Password: Administrator
Repository name: BIA_RS (open Informatica Admin console and name as per the console)
· Click on save --> test connection --> ok.
Step6: Configuring informatica physical folder.
· Go to Tools menu --> Seed Data --> Task Physical Folder · Click on New --> name it as CUSTOM_RRITEC --> click on save --> Close.
Step7: Creating Logical Folders.
· Go to tools menu --> Seed data--> Task Logical Folder · Click on New --> Name it as RRITEC --> click save --> close.
Step8: Mapping Logical folder And Physical folder.
· Go to Design tab --> double click on Source System Folders --> select New -->Select
Logical folder as RRITEC
Physical folder as CUSTOM_RRITEC
· Click on Save.
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 40 Confidential
Step9: Creating Logical Data Sources
· Go to Tools menu --> Seed data --> Logical Data Source · Click on New --> name it as ORCL_SCOTT_SOURCE - > Save it. · Again click on New --> name it as ORCL_B165TARGET_DW --> Save & Close.
Step 10: creating Task Phases.
· Go to Tools menu --> Seed Data --> Task Phases. · Click on New --> Name it as General --> Save & Close.
4. Development Activities
1. Creating Tasks 2. Creating Task Group 3. Creating Subject Area 4. Creating Execution Plans 5. Creating Schedules 6. Exporting & Importing(Deployment)
1. Creating Tasks:
It is a lowest object in DAC
In Informatica a work flow is equalent to Task
In one task we can map minimum one work flow and max is 2.
Process:
· Open DAC portal and provide user name and password. · Click on Design tab -> double click on Task -> click New -> provide
Name: Router
Command for incremental load: WKF_ROUTER
Command for Full load: WKF_ROUTER
Folder name: RRITEC
Primary source: ORCL_SCOTT_SCOURCE
Primary target: ORCL_B165TARGET_DW
Task phase: General
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 41 Confidential
Execution type: Informatica
· Click on Save. · Right click on Task – Router -> click on Synchronize Task -> ok ->ok.
Similarly create one more task with name of Sorter and use workflow as W_SRT
2. Creating Task Groups.
Task group is mainly used to integrate n number of tasks.
In Task group we will configure dependency order of the task. This dependency order will be shown as Depth in Execution plan.
Dependency order smallest to highest will be running , If dependency order is same for 2 Tasks then both will run parallel.
Process:
· Click on Design tab -> double click on Task Groups -> new
Name: B165_TASKGROUP and Save.
· Click on Child task -> click Add/Remove -> select Router and Sorter -> click on Add -> ok
Under dependency order give 1 and 2 ->click on ok & Save.
3. Creating Subject Area
A Subject area is equalent to Business area or Data mart. (or)
A group of Tasks and Task groups are called as Subject area.
Ex: Loyalty, Marketing, Sales, Finance….
Process:
· Click on Design tab -> double click on Subject area -> new
Name: B165_SA -> Save.
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 42 Confidential
· Click on Child task -> click Add/Remove -> select Router and Sorter, B165_TASKGROUP
Click on Add ->ok ->Save.
· Right click on Subject area -> click on Assemble -> ok -> Accept -> ok -> Save.
4. Creating Execution plan
It is used to integrate n number of Subject areas.
Process:
· Click on Execute Tab -> Execution Plans -> new
Name: B165_EP -> Save.
· Click on Subject Areas -> Add/Remove -> select B165_SA -> click Add -> ok ->Save
· Click on Parameters tab -> click Generate -> ok
Type Name Value Data Source ORCL_B165TARGET_DW ORCL_DW Data Source ORCL_SCOTT_SOURCE ORCL Folder RRITEC CUSTOM_RRITEC
Click on Save.
· Right click on Execution plan -> click on Build -> ok
Running Execution plan:
· Start the DAC server (start -> all programs -> DAC ->Start Server).
·
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 43 Confidential
· Select B165_EP execution plan ->click on Run now->click on -> Yes ->ok · Go to Informatica Workflow monitor -> connect to our Repository and
observe that workflows are running.
Note: only one Execution plan is running at a time.
Scheduling:
· Click on Execute tab ->click Scheduler -> new · Provide name as B165_SC ->select Execution plan as B165_EP · Select Run only once -> give Start date as 3 min.. forward from current
time -> save
Note: The Execution time will be delay 10 – 60 sec.
Configuring Email:
Any change in the server status will be mailed to corresponding users.
Process:
Click Setup tab -> E-mail Recipients -> new -> provide
Name: RAM
E-mail: [email protected]
Click on Save.
5. Deployment:
Copying DAC Repository from one environment to another environment is called as Deployment.
Step1: Data Base Move.
DAC total work will be saved in backend schema what we configured (in lab it is DAC USER).
Step2: Exporting DAC Metadata (Taking Back up of DAC Repository)
· Go to Tools menu ->DAC Repository Management -> Export
RR I-TEC #209,Nilagiri Block,Adithya Enclave,Ameerpet @8801408841,8790998182 44 Confidential
· Select Rritec container ->click on Change Import & Export folder -> select Desktop ->create new folder and name it as DAC_BACKUP ->select it and click ok ->
· Select all the options under Categories -> under Application list select Rritec -> click ok -> ok.
(After few min.. Export process will be completed).
Step3: Importing
Once we can export in Development environment that we can import into testing server
· Go to Tools menu -> DAC Repository Management ->Import -> Select DAC_BACKUP folder ->ok.
·