Sensitive Administrator Functionality in EBS

What is Sensitive Administrator Functionality in EBS?

These are Administrator / Developer Functionality.Some of Oracle EBS forms and pages allow a user to modify the functionality of the applications by specifying values such as
  • SQL statements or fragments
  • HTML fragments
  • OS commands
These are designed-in SQL injections or XSS injections.
These screens may constitute a security risk if used in an unauthorized fashion and should be disabled, controlled, and audited in production environments.
There are several types of these sensitive pages in EBS, and they are controlled by different mechanisms. These are typically grouped into the following categories:
  1. Oracle Forms Controlled by Function Security
  2. HTML Pages Controlled by Function Security
  3. Pages and Forms Controlled by Profile Options
  4. Pages Controlled by JTF Roles and Permissions Profiles
#3 as,Pages and Forms Controlled by Profile Options , typically Includes:
1) for the feature OA Framework Personalization
Profile Code :FND_CUSTOM_OA_DEFINTION ("Personalize Self service Defn")
Recommended Settings :No
If this profile option is set to Yes, the user can perform "Admin Personalization" for OA Framework-based pages.
2) for the feature Form Personalization/Examine
Profile Code :Combination of profiles:FND_HIDE_DIAGNOSTICS and DIAGNOSTICS
Recommended Settings :
  • FND_HIDE_DIAGNOSTICS: Yes
  • DIAGNOSTICS : No
These profiles control the Help->Diagnostics->Examine choice on the pulldown menu of Oracle Forms-based forms. The default value of FND_HIDE_DIAGNOSTICS (Hide Diagnostics menu entry) profile option is Yes, meaning the Diagnostics menu entry is hidden. If it is set to No, the Diagnostics menu entry is visible to the user.
If DIAGNOSTICS (Utilities:Diagnostics) is set to Yes, then users can automatically use these features. If Utilities:Diagnostics is set to No, then users must enter the password for the APPS schema to use the Diagnostics features.
Wrap-up
You can refer to metalink note #1334930.1 and use the same SQL queries(sensitive_page_access.sql ) to determine who has access to these
  • SQL scripts drive off of page and form names (not functions)
  • Slower, but ensures we pick up custom functions that include these
You should reduce and eliminate access to these pages by admins.
You need to use Fine Grained Auditing to audit the tables associated with these pages.



EBS and Fusion Application Security Models

A quick comparison chart for EBS and Fusion Application Security Models

If you are coming from EBS then this post will help you to understand the difference of security model in these two application.
here is quick comparison chart all the major security features of Oracle Application (EBS) and Fusion Application side by side.

E-Business Fusion Application
Authentication FND_USER
OID/OSSO/OAM
FMW OAM/LDAP
Authorization AOL security model
RBAC (This is optional add-on)
FMW OPSS (this is same as RBAC)
Security platform Proprietary FMW OPSS
Segregation Of Duties (SOD) No explicit functionality Predefined SOD policies
Application Access Controls
Governor (AACG)
Technology Prepackaged eBiz specific
configuration and management
FMW 11g
Management of security
(Roles/Responsibilities)
Proprietary forms OIM
APM
Proprietary forms
HR specific data security Security Groups Security Groups

 

 

Concurrent: Report Access Level and R12

Oracle Applications does not allow users to view other's output. Internally Report Review Agent allows(RRA) only the user who submitting the report to view the report output. For those who are very new to Oracle can understood RRA as a default text viewer that Oracle Applications provides, which allows users to view report output and log files. Very often report Review Agent is also referred by the executable FNDFS.
That mean the output cann't be utlized by another user unless untill you have provided the profile option setup for another user.
Sometime business user wants to see other user report submitted by another?
Minimum you have do is you need to alter the value of seeded profile options "Concurrent:Report Access Level".
dgreybarrow Business case
Within Oracle installation , lets say you have four different user profiles been maintained:
  1. Super User : the one who has access to everything
  2. Supervisor : the one who does not have access to all the functions but access to most of Function expect few setup.
  3. User : the one who has access to limitted screens based on their responsibility
  4. Inquiry :o ne who has access to limitted screens based on their responsibility.

But along with that, all the users belongs to any of the above category has access to all the Request details like Log, Output, Details screen and Parameters.
in 11i we are able to see all the Concurrent Job details if we are using single a responsibility. But with different responsibilities assigned accross users, only those users that belong to the same responibility can see the Concurrent Job details submitted by others.
that mean if a)UserA is superUser b) UserB is only User and if UserB has submitted a Job and UserA canot see the details of that job even if he is SuperUser as he belongs to a different responsibility.
Resolutions
Attach Profile options "Report Access Level" either at Responsibility leval or user level.
dgreybarrow Concurrent: Report Access Level
This profile determines access privileges to report output files and log files generated by a concurrent program. The system profile option "Concurrent:Report Access Level" provides 2 options.
1.If you setting this profile option are set to "User" then you can:
View the completed report output for your requests online
View the diagnostic log file for those requests online
Reprint your completed reports, if the Concurrent:Save Output profile option is set to "Yes".
2.If you setting this profile option is set to "Responsibility", access to reports and diagnostic log files is based on the your current responsibility.
This profile option is visible and updatable at the site, responsibility, and user levels.

Report Access Level
The internal name for this profile option is CONC_REPORT_ACCESS_LEVEL
dgreybarrow R12 - Profile option "Concurrent:Report Access Level"
Within R12 environment,the profile option "Concurrent:Report Access Level" is inactivated.
It is replaced by a 'grants' function,that mean the RBAC (User Management) has to be implemented in R12 to replace this profile Options to enabled users to view out users log and output files in the Oracle Forms.
dgreybarrow Suggested Reading
  • Note:555524.1 :How To Configure Access To Request Output Of Specific Responsibility
     
     

ORA-12514: No TNS Listener

Resolving the “ORA-12514: No TNS Listener” error with Oracle XE 

I faced this particularly nagging error with a personal install of Oracle XE (Oracle Database 10g Express Edition) on my Windows XP laptop:
ORA-12514:No TNS Listener
The SQL Command prompt that came with Oracle XE would work but none of the other tools like Toad, SQL Plus or even the Oracle XE Database Homepage which would open in a browser window would work.
The final resolution after a lot of research seemed to be painfully simple:
  1. Run the LSNRCTL.EXE program from the BIN directory of your Oracle XE install (default: C:\oraclexe\app\oracle\product\10.2.0\server\BIN). You should even be able to run it from any command prompt since the BIN directory is generally added to your PATH environment variable by default.
  2. At the LSNRCTL> command prompt, issue the STOP command. It should say: Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    The command completed successfully
  3. Now, at the LSNRCTL> prompt, issue the START command. It should return: Starting tnslsnr: please wait…
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 – Production
    System parameter file is C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\AD
    MIN\listener.ora
    Log messages written to C:\oraclexe\app\oracle\product\10.2.0\server\network\log
    \listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR
    _XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=port)))

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    ————————
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 – Produ
    ction
    Start Date                14-MAY-2009 01:24:49
    Uptime                    0 days 0 hr. 0 min. 5 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary…
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=port)))
    Services Summary…
    Service “CLRExtProc” has 1 instance(s).
    Instance “CLRExtProc”, status UNKNOWN, has 1 handler(s) for this service…
    Service “PLSExtProc” has 1 instance(s).
    Instance “PLSExtProc”, status UNKNOWN, has 1 handler(s) for this service…
    The command completed successfully
That’s it! That should resolve the problem. Verify by running “tnsping XE” or “tnsping dbname” at the command prompt. It should return OK.
All your tools like Toad, SQL Plus or Oracle SQL Developer should be able to connect to the database now!


ORA-12154:TNS:could not resolve the connect identifier specified



Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
Action: - If you are using local naming (TNSNAMES.ORA file):
- Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
- If you are using directory naming:
- Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Verify that the LDAP directory server is up and that it is accessible.
- Verify that the net service name or database name used as the connect identifier is configured in the directory.
- Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
- If you are using easy connect naming:
- Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
- Make sure the host, port and service name specified are correct.
- Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

ORA-12560: TNS: protocol adapter error

Question:  I installed Oracle 10g on my server but there is a problem with error "ORA-12560:TNS:protocol adapter error".  When I sign on I get the error "ORA-12560:TNS:protocol adapter error"...
Enter password:
ERROR:  ORA-12560: TNS:protocol adapter error

Enter password:
ERROR:  ORA-12560: TNS:protocol adapter error


Answer:-
Is there a listener running? Have you run the netca program to configure and start the listener?  The Oracle docs note that you should troubleshoot the ORA-12560 by tracing the connection:
ORA-12560: TNS: protocol adapter error

Cause: A generic protocol adapter error occurred.

Action: Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and re-execute the operation. Turn off tracing when the operation is complete.


Steps to troubleshoot Oracle connectivity:

To troubleshoot & diagnose Oracle connectivity problems, I like to start at the simplest, outermost level, and follow this checklist:
  1. Check with "ping" using the IP address ("ping 198.11.34.43"

  2. Check with "ping" using DNS name (e.g. "tnsping uranus")

  3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)

  4. Check with "tnsping" using TNS service name

  5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone".  If this fails, check to ensure that your listener has the flintstone service defined.

  6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"

  7. Within SQL*Plus, try a select from table@remote_db_link






There are a variety of common network connectivity error messages, and most DBA's have seen TNS error messages these at sometime in their careers.  Here is just a small sample of possible TNS network connectivity-related errors:
  • TNS-12545: Connect failed because target host or object does not exist
  • ORA-12154: TNS: Could not resolve service name
  • ORA-12157: TNS Internal network communication error
In the simplest of terms, the Oracle*Net architecture is like peeling on onion, with one transport layers nested inside the inner payer.  The lowest level of Oracle transport is TCP/IP (or rarely other protocols), where the packets are shipped between the servers.

Steps to troubleshoot Oracle connectivity

To troubleshoot & diagnose Oracle connectivity problems, I like to start at the simplest, outermost level, and follow this checklist:
  1. Check with "ping" using the IP address ("ping 198.11.34.43"
  2. Check with "ping" using DNS name (e.g. "tnsping uranus")
  3. Try telnet to the IP on port 1521 (telnet 1.2.3.4 1521)
  4. Check with "tnsping" using TNS service name
  5. Invoke SQL*Plus from the OS command line "sqlplus fred@flintstone".  If this fails, check to ensure that your listener has the flintstone service defined.
  6. Sign-on to SQL*Plus and connect with the TNS name ("connect fred/flintstome@service_name"
  7. Within SQL*Plus, try a select from table@remote_db_link
Let's look closer as we peel away the layers of our onion.
Server-level connectivity layer in TNS
When the Oracle DBA creates their tnsnames.ora file to define remote databases they often specify the host name of the foreign server that contains the remote Oracle database.  For example, a entry in the tnsnames.ora file for a remote database might look like this:
sonu =
   (DESCRIPTION =
     (ADDRESS_LIST =
         (ADDRESS =
           (COMMUNITY = TCP)
           (PROTOCOL = TCP)
          (HOST =sujeet)
           (PORT = 1521)
          )
      )
     (CONNECT_DATA = (SID = orcl))
    )
Here we see a TNS service name of sonu, which defines a connection to a remote server named sujeet that contains an Oracle database named orcl. When a remote connection request is made from the UNIX server, the /etc/host file is accessed to get the IP address for the sujeet server. 
From the listing below, we see that the sujeet server is located at 192.133.13.12.  In sum, the /etc/host file is used to isolate the IP address from the tnsnames.ora file.  If the IP address should ever change, the UNIX systems administrator only needs to change the IP address in one place.
root> cat /etc/hosts
192.133.13.22  sujeet.oracle.com   sujeet
192.144.13.22  sonu.oracle.com sonu
 
 
 
 







Script to display status of all the Concurrent Managers


select distinct Concurrent_Process_Id CpId, PID Opid,
            Os_Process_ID Osid,
            Q.Concurrent_Queue_Name Manager,
            P.process_status_code Status,
            To_Char(P.Process_Start_Date, 'MM-DD-YYYY HH:MI:SSAM') Started_At
from   Fnd_Concurrent_Processes P,
            Fnd_Concurrent_Queues Q,
            FND_V$Process
where  Q.Application_Id = Queue_Application_ID
  and  Q.Concurrent_Queue_ID = P.Concurrent_Queue_ID
  and  Spid = Os_Process_ID
  and  Process_Status_Code not in ('K','S')
order  by Concurrent_Process_ID, Os_Process_Id, Q.Concurrent_Queue_Name

ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%'

 This MySQL error — ERROR 1396 (HY000): Operation ALTER USER failed for 'Mysql'@'%' — means that MySQL cannot find the user ...