Pre-Installation Preparation
Before deploying Oracle Application Server on Ubuntu, complete these critical steps to ensure compatibility and avoid installation issues:
sudo apt update && sudo apt install -y gcc make binutils libaio1 unixodbc libmotif3 libxtst6 libstdc++6 to install essential libraries for Oracle components.sudo groupadd oinstall && sudo groupadd dba && sudo useradd -g oinstall -G dba -d /home/oracle -s /bin/bash oracle && sudo passwd oracle to create a privileged user (oracle) for installation and management./etc/sysctl.conf to optimize system performance. Add/modify these lines:kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
Apply changes with sudo sysctl -p./etc/security/limits.conf to increase resource allowances for the oracle user:oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
/tmp/oracle_app_server).Install Oracle Application Server
Follow these steps to install the software:
su - oracle to switch to the oracle user created earlier.~/.bashrc:export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.1.3.1.0
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export DISPLAY=:0.0
Run source ~/.bashrc to apply changes.cd /tmp/oracle_app_server
./runInstaller
/u01/app/oracle/product/10.1.3.1.0) and click “Next.”sudo su -) and execute the provided commands (e.g., /u01/app/oracle/product/10.1.3.1.0/root.sh).Post-Installation Configuration
After installation, configure the server for optimal performance and security:
emctl status dbconsole to check the status of Oracle Enterprise Manager (OEM). Access OEM via http://<server-ip>:1158/em to manage the database.netca (Net Configuration Assistant) to set up listeners for remote connections. Run netca from the terminal and follow the wizard to create a listener on port 1521.dbca (Database Configuration Assistant) to create a new database. Select “Create a Database” and follow the prompts to configure the SID, character set (e.g., AL32UTF8), and password for administrative users.shmmax for large databases). Monitor system resources using tools like top or vmstat to identify bottlenecks.Troubleshooting Common Issues
xhost +<remote-ip> on your local machine to allow remote connections, then set DISPLAY=<local-ip>:0.0 on the Ubuntu server.apt (e.g., sudo apt install -y libaio1 unixodbc) and rerun the installer.netstat -tuln | grep <port> to check port availability.