#########################################################################################################################
# README TO FOLLOW THE INSTRUCTION TO PERFORM SILENT INSTALLATION AND CONFIGURATION OF ORACLE ANALYTICS SERVER 2024.
#########################################################################################################################

Oracle Analytics Server 2024 Download Link: 
https://www.oracle.com/solutions/business-analytics/analytics-server/analytics-server.html

---------------------------------------------------------------------------------------------------------
Oracle Analytics Server 2024

Install in the below sequence:

1. Java Developers Kit 8

2. Oracle WebLogic Server 12c (12.2.1.4) Generic - Download the file "Fusion Middleware Infrastructure Installer (1.5 GB)"

3. Download and apply the latest Oracle Fusion Middleware 12.2.1.4 patches

4. Oracle Analytics Server 2024 Linux 
---------------------------------------------------------------------------------------------------------

Download the Prerequisite Softwares:
------------------------------------
1. Download Java Development Kit (JDK) 8:
https://www.oracle.com/java/technologies/downloads/#java8
Under the Linux OS, Select the Compressed Archive based on your Operating System).
e.g. x64 Compressed Archive --> jdk-8u421-linux-x64.tar.gz

2. Download the Oracle WebLogic Server 12c (12.2.1.4):
Go to the section "Oracle WebLogic Server 12.2.1.4" and Download, Fusion Middleware Infrastructure Installer (1.5 GB) File.
https://www.oracle.com/middleware/technologies/weblogic-server-installers-downloads.html

3. Download and apply the latest Oracle Fusion Middleware 12.2.1.4 patches
Navigate to the below OAS documentation link and open the right Support Doc ID that advises the Critical Path Updates for OAS 2024.
https://docs.oracle.com/en/middleware/bi/analytics-server/install-config-oas/installing-product-software.html#GUID-94C32691-7E21-48EC-BB13-8F75820AB8F4
https://support.oracle.com/epmos/faces/DocContentDisplay?id=2832967.2
Navigate to Analytics Server (OAS) tab --> Analytics Server 2024.

-----------------------------------
Below are the patches section wise: 
-----------------------------------

######################
Analytics Server 2024 
######################
Simplified Stack Patch Bundle (Recommended): This includes FMW, Weblogic, OAS patches. 

a. Oracle Database Check:  
-------------------------
https://support.oracle.com/epmos/faces/DocumentDisplay?parent=DOCUMENT&sourceId=2832967.2&id=2817011.1#cegbbcde%3E%3E

b. Java SE 8 Update 421 or later:
---------------------------------
Patch 18143322	Java SE 8 Update 421 or later.	-- Skip: Already downloaded and will use the JDK8u421 , can ignore this Patch.

c. OAS Stack Patch Bundle 7.6.0.0.240710, or later:
---------------------------------------------------
As of July 2024 there is a single Stack Patch Bundle (SPB) file that includes FMW, WebLogic and OAS patches.

Download the Patch: 36823847 (for Linux OS)
https://updates.oracle.com/Orion/Services/download/p36823847_76000_Linux-x86-64.zip?aru=25746982&patch_file=p36823847_76000_Linux-x86-64.zip

4. Download Oracle Analytics Server 2024 Linux Installer For Linux x86-64-bit 
Download from https://edelivery.oracle.com/  ---  V1041086-01.zip  (Oracle_Analytics_Server_2024_Linux for (Linux x86-64), 4.6 GB)

5. Installing Libraries Required for Machine Learning in Oracle Analytics Server
https://docs.oracle.com/en/middleware/bi/analytics-server/install-config-oas/installing-product-software.html#GUID-94C32691-7E21-48EC-BB13-8F75820AB8F4
At the command line, run the following command to install the libraries:
For example:
(Linux 7/Red Hat Linux 7) sudo yum install -y libgfortran
(Linux 8/Red Hat Linux 8) sudo dnf install -y compat-libgfortran-48.X86_64
(SUSE Linux) sudo zypper install libgfortran3
 
##################################################################################################

---------------------------------------------------------------------
Installation of the Softwares Downloaded:
---------------------------------------------------------------------

# Login to the Oracle Linux 7.x/8.x Compute as opc user.

Create a Folder /tmp/softwares as opc user.
Copy all the downloaded softwares and patches to /tmp/softwares as opc user.
Copy the script 01_Create_OAS_Install_User_Group.sh to /tmp/softwares as opc user.
Copy the script 02_OAS_Install_Silent.sh to /tmp/softwares as opc user.
Copy the script 03_OAS_Apply_CPU.sh to /tmp/softwares as opc user.
Copy the script 04_OAS_Config_Silent.sh to /tmp/softwares as opc user.
Give Execute permissions to the scripts.

If there exists a user:group like oracle:oinstall who will install OAS:
-----------------------------------------------------------------------
Change the ownership of /tmp/softwares folder from opc user to oracle or OAS Install User and Group.

If there is no user:group like oracle:oinstall who should install OAS:
----------------------------------------------------------------------
Execute the Script "01_Create_OAS_Install_User_Group.sh" as root user.

This script creates a group "oinstall" and a user "oracle".
Grants sudo permissions without password to the oracle user.
Changes the ownership of the "/tmp/softwares" folder from "opc" user to "oracle" user.
Grants execute permissions to the script other scripts for oracle user.


# Execute the Script "02_OAS_Install_Silent.sh" as non-root i.e. oracle user.
#----------------------------------------------------------------------------
This script installs JDK8, FMW, and OAS 2024 in silent mode.
Prerequisites: 
a. Create a Install_Base_Location as /u01 (or any folder and path)
b. Make sure the owner of the /u01 is oracle:oinstall (the user created recently using the first script).
c. Set the Variable Install_Base_Location=/u01 in the script.
d. If the boot volume has less space even after allocating required space, resize or extend unallocated or free space in linux using the command: sudo /usr/libexec/oci-growfs

# Execute the Script "03_OAS_Apply_CPU.sh" as non-root i.e. oracle user.
#-----------------------------------------------------------------------
This script applies the Stack Patch Bundle (SPB) that includes the FMW, WebLogic and OAC Patches as a single SPB file.


# Execute the Script "04_OAS_Config_Silent.sh" as non-root i.e. oracle user.
#---------------------------------------------------------------------------
This script configures the OAS domain in silent mode and starts the services.


NOTE: Set the required Parameter values in the respective scripts accordingly.
#########################################################################################################################