Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Month: October 2017

October 10, 2017 Query To find the details of the Accounting Flexfield structure
AppsDBA ScriptsConfigurations-GLScripts

SELECT gls.name, 
       idfs.id_flex_num chart_of_accounts_id, 
       idfs.segment_num, 
       idfs.flex_value_set_id, 
       fvs.flex_value_set_name, 
       idfs.application_id, 
       idfs.id_flex_code, 
       idfs.application_column_name, 
       idfs.segment_name, 
       fvs.security_enabled_flag, 
       ( CASE 
           WHEN fvs.validation_type = ‘F’ THEN ‘Table’ 
           WHEN fvs.validation_type = ‘I’ THEN ‘Independent’ 
           WHEN fvs.validation_type = ‘D’ THEN ‘Dependent’ 
           WHEN fvs.validation_type = ‘N’ THEN ‘None’ 
           WHEN fvs.validation_type = ‘P’ THEN ‘Pair’ 
           WHEN fvs.validation_type = ‘U’ THEN ‘Special’ 
           ELSE ‘Unknown Type’ 
         END )          validation_type, 
       ( CASE 
           WHEN fvs.validation_type = ‘F’ THEN fvt.application_table_name 
           ELSE ‘Not Applicable’ 
         END )          validation_table_name 
FROM   gl_ledgers gls, 
       fnd_id_flex_segments idfs, 
       fnd_flex_value_sets fvs, 
       fnd_flex_validation_tables fvt 
WHERE  gls.chart_of_accounts_id (+) = idfs.id_flex_num 
       AND fvs.flex_value_set_id = idfs.flex_value_set_id 
       AND gls.ledger_id = &ledgerid 
       AND idfs.application_id = 101 
       AND idfs.id_flex_code IN ( ‘GL#’, ‘GLLE’ ) 
       AND fvs.flex_value_set_id = fvt.flex_value_set_id (+) 
ORDER  BY idfs.id_flex_code, 
          idfs.id_flex_num, 
          idfs.segment_num ASC; 

 

 

October 10, 2017 Adding responsibility to SYSADMIN user resulted ORA-20001: FND_CANT_INSERT_USER_ROLE
Errors/Workarounds-ApplicationsOracle APPS DBA

ERROR

Oracle error – 20001: ORA-20001: FND_CANT_INSERT_USER_ROLE
(USERNAME=SYSADMIN)
(ROLENAME=FND_RESP|FND|FND_FUNC_ADMINI|STANDARD)
(ROUTINE=FND_USER_RESP_GROUPS_API.Insert_Assignment) has
been detected in FND_USER_RESP_GROUPS_API.INSERT_ASSIGNMENT

SOLUTION

This Issue exists in default R12 installation

Step 1. Run the concurrent program “Workflow Directory Services User/Role Validation” with parameters : 100000, Yes, Yes, No

Step 2. Bounce all services under oacore or bounce opmnctl .

Reference Oracle Note id : 454988.1

 

 

October 6, 2017 Data Guard Vs SAN To SAN Replication
Installation/Configurations10gInstallation/Configurations11gInstallation/Configurations12cOracle Database Material

Data Guard Vs SAN to SAN Replication

 

Oracle Data Guard

SAN-to-SAN

Implementation Cost

Low High

Database Aware

Yes No

Granularity of Replication

Transaction level Disk Block Level

Distance Limitations

No Limitations Limitations Exist

Recovery from human error or corruption

Easy to detect and can be recovered by replaying logs Replicates block as it is and possible that corrupt blocks gets replicated.
October 6, 2017 Comparison Between Oracle GoldenGate and DataGuard
Installation/Configurations10gInstallation/Configurations11gInstallation/Configurations12cOracle Database Material

Comparison Between Oracle GoldenGate and DataGuard

Technical Points

Oracle Dataguard / Active Dataguard

Oracle Golden Gate

Operating System Primary Database and Standby Database Should be same. (But 11g Onwards it supports Heteregenous Data Guard Configurations.                       Example : We can imeplement Oracle Data Guard between Oracle Linux server 6.2 (x86_64)  and Microsoft Windows 2008 Server R2 (x64) Primary Database and Standby Database need not be same.
Database Should be Oracle Database in both Source and Target. Database can be different in Source and Target. Example :Source database can be Oracle and Target database can be MY SQL/MS SQL server.
Database Version Primary Database and Standby Database Should be same. Primary Database and Standby Database need not be same. (Including Database Software).
Replication method Data movement will be in-form of Log Files. It moves Data Transaction wise through Extract and Replicat process from Source to Target, when commits.
Database mode Source: Read write mode
Target:  Recovery Mode / Open Read Only.
Source: Read write mode
Target:  Read write mode
Replication Type Unidirectional. (Data movement will happen in single direction). Multi-Directional.
Integrated Feature No additional software to install. Oracle Data Guard /Active Data Guard includes in Enterprise Edition. Oracle GoldenGate software to install in Source as well as Target.
License Cost No additional license required for Oracle Data Guard to install. Oracle Active Data Guard is an enterprise option with Oracle Enterprise Edition. Oracle GoldenGate Software Licence required in Source and Target Databases.
Database Edition Source: Oracle Enterprise Edition
Target: Oracle Enterprise Edition.
Source: Can be Oracle Enterprise Edition/Oracle Standard Edition/Oracle Standard Edition One
Target:  Oracle Enterprise Edition/Oracle Standard Edition/Oracle Standard Edition One