Wednesday, November 30, 2016

Database direct path read and resource_manager_plan setting after upgrade/migrate Oracle 11g database

Hi,
We encountered a  Bug 8671349 - Automatic degree of parallelism may be too high ( Doc ID 8671349.8 )  on our Core Oracle Production database 11.2.0.1 ,  the two options were either to run the system in no parallel mode taking a hit on performance or to upgrade .
This update from oracle came late Thursday night so early Friday an executive decision was taken by our higher management to upgrade and migrate our production from existing server to new server(with better specs).
I successfully upgraded and migrated the database from 11.2.0.1, Win 2008 R2 to 11.2.0.4 Win  2012, but observed that the database was extremely slow.
I ran the below query and observed that the maximum time spent by database was on direct path reads! Awr also confirmed the same

select * from(  select dba_objects.object_name, dba_objects.object_type,active_session_history.event,
 sum(active_session_history.wait_time +  active_session_history.time_waited) ttl_wait_time
from v$active_session_history active_session_history,    dba_objects
 where active_session_history.sample_time between sysdate - 1/24 and sysdate
and active_session_history.current_obj# = dba_objects.object_id group by dba_objects.object_name,
dba_objects.object_type, active_session_history.event  order by 4 desc);
The query to check this hidden parameter is
select a.ksppinm name,b.ksppstvl value,b.ksppstdf deflt,decode
(a.ksppity, 1,'boolean', 2,'string', 3,'number', 4,'file', a.ksppity) type,
a.ksppdesc description from sys.x$ksppi a,sys.x$ksppcv b where
a.indx = b.indx and a.ksppinm like '\_serial_direct_read%' escape '\'

To disable this
alter system set "_serial_direct_read"=never scope=both;

The above change worked like magic and the performance improved.


The next day was Sunday  which is a working day in gulf, observed that all sessions were hanging with event  resmgr:cpu quantum.

Since a production system stabilizes over a period of time we had many such tweaking s to be done on the new database.
After the database installation the database  by default took the default maintenance window which should be Friday and Saturday in gulf and not Sunday which is a working day.

Checked resource_manager_plan setting
SQL> show parameter resource_manager_plan

NAME_COL_PLUS_SHOW_PARAM
------------------------------------------------------------------------------
TYPE
------------------------------------------------------------------------------
VALUE_COL_PLUS_SHOW_PARAM
------------------------------------------------------------------------------
resource_manager_plan
string
SCHEDULER[0x32DF]:DEFAULT_MAINTENANCE_PLAN        


alter system set resource_manager_plan='' scope=both;
Quantum cpu gone after this :)
You can create a plan as per your organization maintenance windows and set it as a default plan.

























Saturday, January 8, 2011

Installing and Configuring Oracle VM Server 2.2.1 and Oracle VM Manager 2.2

I had attended Oracle's VM Roadshow in Riyadh recently and wanted to test Oracle VM Server 2.2.1 to see if it was worth the hype.

I planned to Install Oracle VM Server and Oracle VM Manager as a VMware guest, but when I researched on various forums and blogs including OTN, I came to know that "Oracle VM Server is a bare-metal product and that it cannot be installed as a VMware guest!".

Failure to procure a spare machine and having some time to kill made me try and succeed in installing Oracle VM Server and Oracle VM Manager as a VMware Guest.

The following are the steps:-
Download Oracle Server and Oracle VM Manager from http://edelivery.oracle.com/oraclevm

Open VMware and select New Virtual Machine option.
Select the option Typical for type of configuration.

 
Click next to go to the next screen
Select “Installer disk image file” option here and browse and select the iso file of Oracle VM Server you downloaded from the above link.


 Select Linux as OS

Select the Location where you want to store the Virtual Disk

Specify the maximum size of the disk
 
Click Finish

Oracle VM Server loads 
Press Enter to start the installation of Oracle VM Server
 Press Skip

 Select the Type of Keyboard


Press Yes to Create new partitions
 
Select the option Remove all partitions and press ok

Click Yes to confirm


 Click Yes to Review and Modify Partition Layout

Click on the /OVS mount point and select Delete
Goto the / partition select EDIT 

Select the option Fill all the available space and press OK(If you go with the defaults then during the installation of Database XE the pre-requisites might fail, as it requires a minimum space of 2600 MB in the installation drive.)


Press OK on the partitioning page

Press OK on Boot Loader Configuration Screen

Select OK on Oracle VM Management Interface

Select Manual address configuration on the IPv4 Configuration Screen and specify the IP and Netmask




Set the Gateway and Primary DNS


Manually Set the Hostname

Set the Time Zone

Set the Oracle VM Agent Password
Set the Root Password


click OK to begin the installation




 Select Reboot after the installation is completed

When the VM is restarting press enter to enter the GNU-GRUB to select the 32-bit option else you will encounter an error "ERR: Not a 64-Bit CPU!erver-ovs (xen-64-3 .1.3 2.6.18-8.1.15.0.16.el5ovs)'" as by default the Oracle VM Server boots as a xen-64-3 .1.3 2.6.18-8.1.15.0.16.el5ovs!


When you press Enter during reboot you will see the below screen, select the first option and press enter

You will be prompted for EUL Agreement, select Agree

Login with Username 'root' and its password.

Installing and Configuring Oracle VM Manager 2.2
Goto Virtual Machine Settings and change the change the CD/DVD ISO image to point to the iso image of VM Manager you downloaded from Oracle Website.

Execute the following as root
# mkdir /media/cdrom
# mount /dev/cdrom /media/cdrom
#cd /media/cdrom
#sh runInstaller.sh
 This will start the Oracle VM Manager Installation



 Select the option 1 on the next screen
Select 1 on the next screen

Specify the passwords for SYS and SYSTEM

 Select 'y' on the next screen 

Set the 'OVS','oc4jadmin','keystore','admin' Passwords



Enter the outgoing SMTP mail server to end the installation.

As Oracle VM server does not include XWindows thus there is no Graphical User Interface.


So, from the browser of Host PC of VMware Workstation enter the following address
https://192.168.1.111:4443/OVS or 
https://ahmed.blogspot.com/OVS(If you mapped VM Server IP to Host name in etc/hosts file
And, you would see Oracle VM Manager home screen

All the Best ;)


Sunday, January 2, 2011

Changing OC4J ORMI Default Port for Oracle Warehouse Builder

I had an issue recently when i had to move Oracle Warehouse Builder and OBIEE on the same machine, they were running on separate machines in the production environment.

I was not able to start the OC4J service of Oracle Warehouse Builder as OBIEE OC4J was already running.

I Changed the ORMI OC4J Port of the Oracle Warehouse Builder and it worked like a charm!
  
The following are simple steps to change the ORMI default port in Oracle Warehouse Builder.

Navigate to OWB_HOME\bin\win32 and run ccashut.bat(in case OC4J is already running).
Next navigate to OWB_HOME\owb\jrt\config\rmi.xml file look out for rmi-server tag for port and ssl-port attributes.
Change the default non-ssl port 23791 and ssl port 23943, to any port which is not blocked.
Now start OC4J by navigating to OWB_HOME\bin\win32 and run ccastart.bat.
Edit the ccashut.bat in OWB_HOME\bin\win32, look out for string ormi://localhost:23791 and change the port number here to the value you specified in rmi file, If this step is not done you cannot shutdown CCA.

After the above changes you have to un-register and re-register the Default Agent to make the mappings work.

Goto Control Center Manager
Right Click Default Agent
Select Unregister Option select Yes
Right Click again on Default Agent select Register
Change the Port here(the same port that was put in rmi.xml file) and Press Ok.

Tuesday, December 28, 2010

Deleting the duplicates from ct_dn table

Manual modification of the OID database is not supported. The proper way is to always restore from a valid backup.
However, in certain circumstances you may need to delete the duplicate rows from the CT_DN table. In such circumstances you may need to follow the steps given below. You MUST take a backup of system before proceeding with the steps below:

REMOVING DUPLICATE ENTRIES:

1) In order to determine duplicate values in table cn_dn issue the following command while logged in as ODS user:
select rdn, parentdn, count(*)
from ct_dn
group by rdn, parentdn
having count(*) > 1;

2) If (1) returns any values then for sanity reasons we need to find out which rows we need to keep.
You can do that using the following sql:
select min(rowid),rdn, parentdn
from ct_dn
group by rdn, parentdn;

3) Now you can delete rows from ct_dn table using the following command:
delete from ct_dn
where rowid not in (select min(rowid) from ct_dn group by rdn,parentdn);

4) You will need to do the same thing for any other tables that have duplicate rows.
(Obs: Because the other table named here generic TABLENAME should have different columns name
sql statements are similar
for 2. select ENTRYID, count(*) from TABLENAME group by ENTRYID having count(*) > 1;
for 3. select min(rowid),ENTRYID from TABLENAME group by ENTRYID;
for 4. delete from TABLENAME where rowid not in (select min(rowid) from TABLENAME group by ENTRYID);
)
Please note there’s an index on CT_DN table which prevents this. You will need to check if you have the right indexes on your table.

5) Run the following selects using sqlplus when logged in as ODS:
- select index_name, uniqueness from user_indexes where table_name=’CT_DN’;
- select index_name, column_name, column_position from user_ind_columns
where table_name=’CT_DN’ order by 1,3;
It should return 3 indexes:
INDEX_NAME UNIQUENESS
—————————— ———-
EP_DN UNIQUE
RP_DN UNIQUE
PN_DN NONUNIQUE
The index RP_DN which consists of two columns, parentdn and rdn makes sure that we can’t have duplicate DNs. Check that this index exists and that it is unique, and that it covers correct columns.
If you do not have the index RP_DN then most likely your result will look like this:
SQL> select index_name, uniqueness from user_indexes where table_name=’CT_DN’;
INDEX_NAME UNIQUENESS
—————————— ———-
EP_DN UNIQUE
PN_DN NONUNIQUE
SQL> select index_name, column_name, column_position from user_ind_columns
2 where table_name=’CT_DN’ order by 1,3;
INDEX_NAME COLUMN_NAME COLUMN_POSITION
—————————— ————————- —————
EP_DN ENTRYID 1
EP_DN PARENTDN 2
PN_DN PARENTDN 1
As discussed earlier there should be an index called “RP_DN” listed – notice it is not.
Since it is missing you can create it with the following sql but ONLY after you have removed duplicate rows
:
CREATE UNIQUE INDEX rp_dn on ct_dn (parentdn,rdn)
TABLESPACE OLTS_IND_CT_DN
PARALLEL 2 UNRECOVERABLE;
After you have created the index you will see the following result:
select index_name, uniqueness from user_indexes where table_name=’CT_DN’;
INDEX_NAME UNIQUENESS
—————————— ———-
EP_DN UNIQUE
RP_DN UNIQUE
PN_DN NONUNIQUE
select index_name, column_name, column_position from user_ind_columns
where table_name=’CT_DN’ order by 1,3;
INDEX_NAME COLUMN_NAME COLUMN_POSITION
—————————————————————
EP_DN ENTRYID 1
EP_DN PARENTDN 2
PN_DN PARENTDN 1
RP_DN PARENTDN 1
RP_DN RDN 2

Finding and Updating the GUID of a User in Oracle Application Server

1) Finding the GUID of a User

a. Using SQL
SQL> select guid from portal.wwsec_person$ where user_name = ‘<user_name>’;

b. Using ldapsearch:
ldapsearch -h myhost -p 3060 -D cn=orcladmin -w <GUI_password_for_orcladmin_user> -b “” -s sub “cn=<cn_for_problem_user>” “*” orclguid

2) Manually updating a users GUID
SQL> update portal.wwsec_person$ set guid = <OID_user_GUID> where user_name =’user_name’;
SQL> commit;

Monday, December 27, 2010

Installation and configuration of Oracle BI Applications 7.9.6 with Oracle EBS R12 and Informatica 8.6


I had a recent activity which involved configuring Oracle BI Applications to utilize the preconfigured reports that come with it.
I was able to do the entire setup on my Dell Vostro with 4GB RAM and 2.2 GHz processer, but for better performance I would recommend better hardware.

When I initially started I had difficulty as the Oracle Documentation is very vast and it’s not specific to Oracle EBS, and deals with PeopleSoft, JD Edwards, Siebel and Oracle EBS moreover you will have to follow different guides for OBI Apps, Informatica and OBIEE.

Thus I have compiled this precise document which should help anyone who is planning this setup.

The following Steps also include the common issues you might encounter during setup and their solution.

Before proceeding you will require the following software’s.
1)      Oracle Business Intelligence Enterprise Edition 10.1.3 http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/index.html
4)      Oracle EBS R12(Which will be the source)
5)      Informatica 8.6 with hot fix 6 (You will get this along with the CD’s for Oracle BI Apps), if you don’t then try torrents.
6)      Oracle Database 10g(Which will hold DAC and Informatica Repositories) http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Assumptions:-
I am assuming that you have already installed Oracle BI Enterprise Edition 10(which should be a complete installation).
I am assuming that you have already installed an Oracle 10g/11g database to store the DAC Repository, Informatica Repository and the Oracle Business Analytics Warehouse.
I am assuming that you have already installed Oracle EBS R12

Step 1)
Database Configurations –
Create two users dac_rep and info_rep which will be the schemas for the DAC Repository and Informatica Repository.
Creating schema’s :-
Create user dac_rep identified by dac_rep;
Create user info_rep identified by info_rep;
**For Performance you can give separate tablespaces for both the users.
Creating SSE_ROLE
Create role sse_role;       
Grant connect,resource to sse_role;
Grant sse_role to dac_rep

Step 2)
Installing Oracle BI Apps
1)      Click on Setup.exe -> on welcome page click next ->Give the locations of Oracle BI Infrastructure and Oracle BI Data(Ex: - ‘D:/OracleBI’ and  ‘D:/OracleBIData’) -> select the application you want to install, select Financial Analytics Now wait after clicking on next till the finish button is displayed->click on finish

Step 3)
Installing Informatica Power Center
a)      Installing informatica Power Center Client Tools
Run the install.exe from PowerCenter_8.6.1_SE_for_Windows_32bit, follow the instructions of the installation wizard
b)      Installing Informatica PowerCenter HotFix 6
Install Informatica PowerCenter Hotfix 6 from the PowerCenter_8.6.1_HotFix6_for_Windows_32bit follow the instructions of the installation wizard.
c)       Installing Informatica Power Center Services 8.6.1
Run the install.bat from PowerCenter_8.6.1_SE_for_Windows_32 , follow the instructions of the installation wizard.
d)      Install the Informatica PowerCenter Hotfix 6
Install the Informatica PowerCenter Hotfix 6 from the   PowerCenter_8.6.1_HotFix6_for_WIN_32 and follow the instructions of the installation wizard.
Step 4)
Creating the Informatica Repository Service
Go to Start->Programs->Informatica->Informatica PowerCenter Administration Console
On the left side of the Administration Console click create and then select ‘Create Repository Service’
The following are the options:-
Service Name – Name of the Repository Service
This name should be same as your OBIEE Repository name that got installed with , ex:- Oracle_BI_DW_Base, which got installed during the installation of Oracle BI Applications(in location OracleBI\dwrep\Informatica\Repository)

If you name it to something else other than the repository than you will have problems later as oracle ‘assumes’ that you shall name it the same as Oracle BI Repository,
 Unfortunately I did the mistake of naming it different and it took me a week to realize what the problem was!

Location – Domain and Folder where the service is created
License  - Leave it as it is
Version – Leave it as it is
Node- Leave it as it is
Primary Node – Leave it as it is
Backup Nodes  - Leave it as it is
Database Type – Leave it as it is
CodePage – Leave it as it is
ConnectString – Use the service name of the database 10g Database, that will hold the informatica repository i.e orcl
DBUser – info_rep
DBPassword – Password of info_rep
Tablespace_name – Leave it as it is
       Creation Mode – Select ‘Create new repository content’
            Enable the repository Service – Select this option to enable the service after its creation


Step 5)
Creating the Informatica Integration Service
Go to Start->Programs->Informatica->Informatica PowerCenter Administration Console
 Service Name – Name of the Integration service
Location – Leave it as it is
License – Leave it as it is
Version – Leave it as it is
Assign – Leave it as it is
Run the Service on Grid – Leave it as it is
Primary Node – Leave it as it is
Backup Nodes  – Leave it as it is
Domain of Associated Repository Service – Leave it as it is
Associated Repository Service – Select the Repository
Repository User Name – info_rep
Repository Password – info_rep
Security Domain – Leave it as it is
Data Movement Mode - Leave it as it is

Step 6)
Restoring the Prebuilt Informatica Repository
1)      Copy the file Oracle_BI_DW_Base.rep from OracleBI\dwrep\Informatica\Repository to \Informatica PowerCenter8.6.1\server\infa_shared\Backup directory.
2)      In Informatica PowerCenter Administration Console, select  Oracle_BI_DW_Base
3)      In the General Properties area of the Properties tab, make sure the OperatingMode value is Exclusive.
To change the Operating Mode value, click Edit, and then select a new value from the drop-down list. Click OK to exit edit mode.
4)      Choose Actions, then Delete Contents.
5)      At the Delete Contents for <repository name> dialog box, enter Oracle_BI_DW_Base and password (for example, Administrator\Administrator), then click OK.
6)      Choose Actions > Restore Contents.
7)      At the Restore Contents dialog box, select Oracle_BI_DW_Base.rep  from the Select Backup File drop-down list.
8)      Select the Restore as New check box.
9)      Click OK to start the restore process.
10)  When the restore process is complete click close
11)  When a repository is restored, the repository becomes a standalone repository. After restoring the repository, you need to promote it to a global repository.
12)  In the Administration Console, select Oracle_BI_DW_Base.rep .
13)  If the Repository Service is running in normal mode, change the operating mode to exclusive.
14)  If the Repository Service is not enabled, click Enable.
15)  In the general properties for the service, click Edit.
16)  Select GlobalRepository, and click OK
17)  Enter your user name, password, and security domain,Click OK.
18)  Change the OperatingMode value to Normal.
a.      Go to the Properties tab.
b.      In the General Properties area, click Edit.
c.       Click the OperatingMode drop-down list, and select Normal.
19)  If prompted, enter the repository username and password.
Step 7)
Copying Source Files and Lookup Files
1)      Copy the source files in \OracleBI\dwrep\Informatica\SrcFiles on the machine where the Oracle BI Applications installer was run to the source files directory on the PowerCenter Services machine, for example \Informatica PowerCenter8.6.1\server\infa_shared\SrcFiles
2)      Copy the lookup files in \OracleBI\dwrep\Informatica\LkpFiles on the machine where the Oracle BI Applications installer was run to the lookup files directory on the PowerCenter Services machine, for example Informatica PowerCenter8.6.1\server\infa_shared\LkpFiles.
Step 8)
Setting PowerCenter Integration Services Custom Properties
To set Informatica PowerCenter Integration Services Custom Properties, In Informatica PowerCenter Administration Console, select the Integration Service -> Click the Properties tab -> In the Custom Properties area, click Edit -> Create a custom property by clicking Add to display new Name and Value fields
Click Add and add the following
ServerPort   4006(Default)
overrideMpltVarWithMapVar  Yes
Click ok
Step 9)
Creating the Repository Administration User in Native Security Domain             
1)      Go to PowerCenter Administration Console -> click Configure Security icon in the top, right corner of the page-> on security page, click Create User, or select an existing user defined in the native domain
2)      On the Privileges tab of the new or existing user, click the appropriate Repository Service.
3)      In the Edit Roles and Privileges page, expand the Repository Service, and under System-Defined Roles, select the Administrator role check box, Click OK
Step 10)
Installing and configuring DAC
1)      Click on Setup.exe in Oracle Business Intelligence Data Warehouse Administration Console directory ->Next-> In the Specify Installation Location, enter the path where you want to install DAC -> select the informatica version 8.x -> Specify the locations of Informatica PowerCenter Services and Informatica PowerCenter domain file -> click install-> Finish
2)      For JDBC Connectivity copy the file ojdbc14.jar from jdbc\lib(ex:- C:\oracle\product\10.2.0\db_1\jdbc\lib\classes14.jar) to dac\lib(as I am using database 10g if its 11g then copy ojdbc6.jar from jdbc\lib to dac\lib)                                                                                                       

Applying DAC Patch 
      Apply DAC Cumulative Patch 10052370, follow the 'readme.txt' file in the folder p10052370_101341_Generic(which is extracted after you download the patch)
Step 11)
Creating ODBC Connection on Windows
Control Panel ->Administrative Tools ->Data Sources(ODBC)->SYSTEM DSN T->Add->select Oracle Merant ODBC
Enter the following details
Data Source Name – EBS R12
Server Name – apps
Client version – 10gR1
Click Test to check for connectivity.
Step 12)
Copying the Metadata Files
1)      Copy the Folder name ‘Export’ fromOraclelBI\dwrep\DAC_metadata\DAC_Client\export’ to ‘dac\export’
2)      Copy the filedeletetriggers.list’ from ‘OraclelBI\dwrep\DAC_metadata\DAC_Client’ to ‘dac\conf’
3)      Copy the fileparameterfileOLTP.txt’ from ‘OraclelBI\dwrep\DAC_metadata\DAC_Server’ to ‘dac\Informatica\parameters\input’
4)      Copy the fileparameterfileDW.txt´from ‘OraclelBI\dwrep\DAC_metadata\DAC_Server’ to ‘dac\Informatica\parameters\input’
Step 13)
Upgrading the DAC Repository Schema
1)      Start the DAC Client clicking on startclient.bat from bifoundation\dac directory -> Click Configure->Create Connection->Connection Type->Enter ‘orcl’ as connection string->Host name of orcl database->1521->leave default->leave default->click on create authentication file-> navigate to the folder where you want to store the file, click OK->Enter a unique name for Authentication file, click OK->enter table owner name as ‘dac_rep’ and password, click test connection->Apply->Finish
2)      In the Login Dialog box select the connection->enter username as Administrator->enter password ->login ->Click YES for ‘Create a repository’
Step 14)
 Importing metadata in DAC Repository
Go to DAC->Tools->DAC Repository Management->Import->select Logical Check and System Check -> In the Application List table select Universal and Oracle R12.1(Our Source System version)->Select Truncate Repository check box->select Enable batch mode check box ->click ok->to confirm retype the text in text box and click yes->click yes->click OK.
Step 15)
Creating the Business Analytics Warehouse Tables
Go to DAC ->tools->ETL Management->Configure->in source dialog box select target and source database ->Click OK->Data Warehouse Configuration Wizard->select create data warehouse tables check box->click next->
In the Data Warehouse tab enter the details
Database type -> Oracle
Container-> Leave Blank
Table Owner-> DAC_REP
Password -> Password
ODBC Data Source -> ORCL
Data Area -> Leave as it is
Index Area -> Leave as it is
Select ‘Is Unicode’ option then Click Start
Step 16)
Configuring the Connection between DAC Server and DAC Client           
Go to DAC->Tools->    DAC Server Management-> DAC Server Setup
In the Repository Connection Information Tab enter the following details:-
Connection Type – Oracle
Connection Fields – Select OCI8 and enter TNSNAME as ‘orcl’
Table Owner Name – dac_rep
Password – Password
Click |Test to check if its working and then click on save

Step 17)
Setting DAC System Properties
Go to DAC->Views menu->Setup-> DAC System Properties
DAC Server Host – Host Name where you installed DAC Server
DAC Server OS – Windows
InformaticaParameterFileLocation - \Informatica\PowerCenter8.6.1\ server\infa_shared\SrcFiles

Step 18)
Registering Informatica Services in DAC
Go to DAC ->Setup View->Informatica Servers Tab
1)      Modify the record “INFORMATICA_DW_SERVER”
Name  - Integration Service Name(It need not be the same as the one created in Step 5)
Type – Informatica
Service – Integration Service Name (as created in Step 5)
Server Port – 4006
Domain – Informatica Domain name
Login – Administrator
Password – Informatica Repository Password
Maximum Sessions – Leave the Default to 10
Repository Name - Oracle_BI_DW_Base.rep
Inactive – Leave it as default
Test to check if it’s working fine
Click Save
2)      Modify the record “INFORMATICA_REP_SERVER”
Name – Repository Service Name (It need not be the same as the one created in Step 4)
Type – Repository
Hostname – Hostname of Repository Server
Server Port – 6001
Login – Administrator
Password – Password
Maximum Sessions – 10
Repository Name -  Oracle_BI_DW_Base.rep
Inactive - Leave it as default
Test to check if it’s working fine
Click Save

Step 19)
Setting Physical Data Sources

Go to DAC -> Setup-> Physical Data Sources
Name – DataWarehouse (Do not Change this to anything else, this is the default)
Type – Warehouse
Connection Type – Oracle(OCI 8)
Instance or TNS Name – ORCL
Table Owner – DAC_REP
Table Owner Password – Password
Max Num Connections – Leave as default
DB Host – Full name of Database Instance (ex:- orcl.domain.com)
Port – 1521
Dependency Priority – Leave as default
Data Source Number - Leave as default
Default Index Space  - Leave as default
Test to check if it’s working fine
Click Save
Step 20)
Configuring Relational and Application Connections in Informatica Workflow Manager
Goto Informatica PowerCenter Workflow Manager from Start->Programs
Click on Repository->Add->Add Repository Dialogue box ->
Repository - Oracle_BI_DW_Base
Username – Administrator
Choose the repository and click on Connect->Connect to Repository dialog box appears
Password – Administrator
Click Add beside Add Domain box
Specify the Domain that was created during Informatica PoweCenter Services installation
Hostname – Full Name of machine(Ex: hostname.domain.com)
Gateway – 6001

Click OK and Save and click on Connect




Step 21)
Configuring Relational Connections
Goto Informatica PowerCenter Workflow Manager from Start->Programs

New -> select Oracle as database type ->OK
Define the Connections in relational connection dialog box
Name – DataWarehouse( This should be exactly same as the one in Physical Data Sources tab in DAC, else it will cause inconsistency between DAC and Informatica
Type – Oracle
User Name – info_rep
Password – Password
Connect String – Connection String of the database
CodePage – Your Code page

Step 22)
Configuring Oracle BI Repository Connections
In the physical layer  click on Oracle Data Warehouse , Enter the connection information for data warehouse in Oracle Data Warehouse Connection Pool and Oracle Data Warehouse Repository Initblocks Connection Pool.

Step 23)
Configuring Connection Pools
Goto File Open in Oracle BI Administration Tool and open OracleBIAnalyticsApps.rpd file from \OracleBI\Server\Repository
In the Physical pane, double-click the Oracle Data Warehouse object, in the database field specify Oracle and click on Save, click Yes when it asks to check global Consistency, click OK when the warnings are displayed.
In the Physical Pane double-click the Oracle Data Warehouse Connection Pool to display the Connection Pool dialog.
Do not change the below fields starting with VALUEOF, these are Functions which will update the value from Variables Manager, which will be configured in next step.
Data source name - 'VALUEOF(ORACLE_OLTP_USER)'
User name field - 'VALUEOF(ORA_EBS_OLTP_DSN)'
Password – Password

Step 24)
Configuring Repository Variables
In Oracle BI Administration Tool click on Manage -> Variables ->Static

OLAP_DSN – Data Source Name of warehouse database
OLAP_USER – DAC_REP
OLAPTBO  - DAC_REP
GLOBAL_CURRENCY1  - Same as the one specified in Source System Parameter values in DAC
GLOBAL_CURRENCY2 - Same as the one specified in Source System Parameter values in DAC
GLOBAL_CURRENCY3 - Same as the one specified in Source System Parameter values in DAC
ORA_EBS_OLTP_DSN  - EBS R12(Created in Step 11)  
ORA_EBS_OLTP_USER  - apps

Step 25)
Creating a new Container
You will not be able to edit the pre-configured containers so create a new container.
Goto DAC -> File -> New Source System Container  -> Create as a Copy of Existing Container-> select Universal from drop down -> OK

Step 26)
Creating an ETL Process
In DAC -> Goto Execute view -> click on Execution Plan tab -> New -> Edit -> Specify Name of the ETL Process -> Goto Subject Areas->Click on Add/Remove -> Select the new container that you created in above step -> Select Financials – Payables or anything click Add and OK
On the Parameters tab click Generate , select the below values
 DBConnection_OLAP - DataWarehouse
DBConnection_OLTP  - ORA_R12
Click Build

 Do not Click Run Now as you will get an error ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found during Full Load of ETL

There is a bug in R12 Vision that has to be removed before running a full ETL
Go to the Source system, connect using apps, issue the following command
SQL> SELECT person_id, effective_start_date, effective_end_date FROM per_all_people_f WHERE person_id = 6272;
person_id
effective_start_date
effective_end_date
6272
04-JAN-91
06-FEB-02
6272
04-JAN-91
31-DEC-12

                        

As you can see person_id ‘6272’ has duplicate values effective_start_date, change the effective_start_date in the second row to a date after 06-FEB-02 or delete that record by giving
SQL> delete from per_all_people_f where person_id=6272 and effective_end_date ='06-FEB-02';
 
1 row deleted.
Now Goto DAC and click on Run Now to Start Full Load.