Overview
This guide provides step-by-step instructions on how to remove the Sign-Out link from the Oracle Analytics Server (OAS) user interface. This customization involves modifying specific XML files and restarting services.
Prerequisites
•
Access to Oracle Analytics Server (OAS) file system
•
Administrative privileges
Steps
1. Locate Important Files and Directories
a. Find the Singleton Data Directory (SDD) location:
/bi/domain/fmw/user_projects/domains/bi/config/fmwconfig/bienv/core/bi-environment.xml
Look for the line:
<bi:singleton-data-directory>$DOMAIN_HOME/bidata</bi:singleton-data-directory>
XML
복사
Note: $DOMAIN_HOME is typically /bi/domain/fmw/user_projects/domains/bi
b. Locate the message database directory:
/bi/domain/fmw/user_projects/domains/bi/bidata/service_instances/bootstrap/metadata/content/msgdb
2. Prepare Custom Messages Environment
a. Copy the l_en directory:
•
From: /bi/app/fmw/bi/bifoundation/web/msgdb
•
To: /bi/domain/fmw/user_projects/domains/bi/bidata/service_instances/bootstrap/metadata/content/msgdb
b. Edit logonmessages.xml:
•
Path: /bi/domain/fmw/user_projects/domains/bi/bidata/service_instances/bootstrap/metadata/content/msgdb/l_en/messages/logonmessages.xml
•
Comment out or remove the following lines:
<!--
<WebMessage name="kmsgAuthenticatenQuireLogOff">
<TEXT><sawm:messageRef name="kmsgProductGeneral"/> Sign Out</TEXT>
</WebMessage>
-->
XML
복사
3. Modify Header Files
a. Copy and edit saw.header.xml:
cp /bi/app/fmw/bi/bifoundation/web/msgdb/common/saw.header.xml /bi/domain/fmw/user_projects/domains/bi/bidata/service_instances/bootstrap/metadata/content/msgdb/common/
Edit the copied file and comment out:
<!--<resource id="kmsgHeaderLogout" />-->
XML
복사
b. Edit the English version of saw.header.xml:
vi /u01/app/1.0.0.0.0-20170105221024-0.0.1/fmw/bi/bifoundation/web/msgdb/l_en/messages/uicmsgs/saw.header.xml
Shell
복사
Comment out:
<!--<WebMessage name="kmsgHeaderLogout"><TEXT>Sign Out</TEXT></WebMessage>-->
Shell
복사
4. Restart Services
Navigate to the bin directory and restart services:
cd /bi/domain/fmw/user_projects/domains/bi/bitools/bin
./stop.sh -i obips1
./start.sh -i obips1
Additional Notes
1.
The saw.header.xml file in OBIEE 11g (which OAS is based on) is typically located in:
•
[middleware_home]\Oracle_BI1\bifoundation\web\app\res\b_mozilla\common
•
or [middleware_home]\Oracle_BI1\bifoundation\web\msgdb\common
2.
The English messages file (saw.header.xml) is usually found in:[middleware_home]\Oracle_BI1\bifoundation\web\msgdb\l_en\messages\uicmsgs
3.
Custom messages should be saved in:[middleware_home]\instances\instance2\bifoundation\OracleBIPresentationServicesComponent\coreapplication_obips1\analyticsRes\customMessages\l_en\messages\uicmsgs
4.
You may also need to modify header.js in [middleware_home]\Oracle_BI1\bifoundation\web\app\res\b_mozilla to completely remove the link functionality.
5.
Always restart all services after making changes to XML files.
6.
These changes will affect all users, not just specific users or groups.
Troubleshooting
If you encounter "Read Only File" errors, ensure you have the necessary permissions or use sudo to edit the files. In some cases, you may need to edit files in the /u01/app/ directory instead of /bi/app/.
Remember to back up all files before making changes. These modifications may need to be reapplied after OAS updates or patches.
