In this post I’ll install the Oracle database software, without having the Oracle Universal Installer (OUI) creating a database.
In a future post, I’ll create a database with DBCA (DataBase Configuration Assistant), and also manually (with the CREATE DATABASE statement).
id oracle
uid=500(oracle) gid=500(oracle) groups=500(oracle)
In my case it exists, but it's not yet in the groups dba and oinstall.
Create the groups:
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
Assign the Oracle account to the dba and oracle groups
/usr/sbin/usermod -g oinstall -G dba oracle [, oper]
(If the Oracle account didn't exist yet, run this instead: /usr/sbin/useradd -u 502 -g oinstall -G dba,[oper] oracle)
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
mkdir -p /u01/app/oraInventory
chown -R oracle:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
umask 022
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib:$LIBPATH
If you're already logged on, run: . $HOME/.bash_profile
I didn't bother changing kernel parameters / setting resource limits. In theory, the installer will come up with a fixup script to alter this.
(you can download the correct version immediately from Oracle support, no need anymore to first install the base release and apply patch sets afterwards).Unzip both zip files:
cd $HOME/11gR2
unzip p10404530_112030_Linux-x86-64_1of7.zipunzip p10404530_112030_Linux-x86-64_2of7.zip
rm *.zip
cd database
Start the Oracle Universal Installer: ./runInstaller
Choose Install Database Software Only:
Choose Single Instance Database Installation:
Add all the languages in the following screen:
Choose Enterprise Edition (or the edition for which you have a licence...):
The ORACLE_BASE environment variable was set => the OUI has filled out the Oracle Base automatically, and derived an OFA compliant directory for the ORACLE_HOME. Accept both values.
The installer will perform some prerequisite checks, and will show you the result:
Click on Fix and Check Again. Oracle will generate a fix up script (since 11g):
Run the generated script as root: /tmp/CVU_11.2.0.0.2_oracle/runfixup.sh
Click Check Again => No errors are displayed. Click Next to go to the following screen, and click on Install:
Execute the following scripts as root, and afterwards press OK:
The installation will now start.
In next posts, I’ll create the database manually (create database command) and using DBCA.
Geen opmerkingen:
Een reactie posten