1. Download Oracle 12c software from http://www.oracle.com/technetwork/database/enterpriseedition/downloads/index.html. 2. Unzip files. You should have a single directory called "database" containing installation files. 3. Hosts File The "/etc/hosts" file must contain a fully qualified name for the server. <IP-address> <fully-qualified-machine-name> <machine-name> For example. 127.0.0.1 localhost localhost.localdomain 192.168.6.134 oracle12c oracle12c.localdomain 4. Add or amend the following lines in the "/etc/sysctl.conf" file. fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 9000 65500 Run the following command to change the current kernel parameters. /sbin/sysctl -p 5. Create user named “oracle” useradd oracle 6. Set the password for the "oracle" user. passwd oracle 7. Add the following lines to the "/etc/security/limits.conf" file. oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 8. If you have the Linux firewall enabled, you will need to disable it service iptables stop chkconfig iptables off 9. Create the directories in which the Oracle software will be installed. mkdir -p /u01/app/oracle/product/12.1.0.2/db_1 chown -R oracle /u01 chmod -R 775 /u01 10. Add the following lines at the end of the "/home/oracle/.bash_profile" file. # Oracle Settings export TMP=/tmp export TMPDIR=$TMP export ORACLE_HOSTNAME=oracle12c.localdomain export ORACLE_UNQNAME=orcl export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1 export ORACLE_SID=orcl export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib 11. Install the following packages if they are not already present. yum install compat-libcap1.x86_64 -y yum install compat-libstdc++-33.x86_64 -y yum install libstdc++-devel.x86_64 -y yum install gcc-c++.x86_64 -y yum install ksh.x86_64 -y yum install libaio-devel.x86_64 -y 12. Log in as oracle user. Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory. ./runInstaller 13. On first step of installation wizard specify your email address to receive security updates. Or you may leave all fields empty and just press Next. 14. Select Create and configure a database. Press Next. 15. Select Desctop class. Press Next. 16. Set following values as below. For all others leave defaults. Character set: Unicode(AL32UTF8) Global database name: orcl Administrative password: alfresco Confirm password: alfresco Select Create as Container database checkbox Pluggable database name: alfresco Press Next. 17. Press Next. 18. Press Install. 19. You should see installation progress bar. 20. When installation wizard prompt you about extra configuration required run following commands from terminal as root user. /u01/app/oracle/product/12.1.0.2/db_1/root.sh /u01/app/oraInventory/orainstRoot.sh 21. Press Ok on previous step. Installation should continue. 22. When installation complete you should see following window. This means all is ok. 23. Create user for Alfresco application. sqlplus / as sysdba alter pluggable database alfresco open; alter session set container = alfresco; create user alfresco identified by alfresco container = current; grant connect, resource, exp_full_database, imp_full_database, create any directory, unlimited tablespace to alfresco; 24. Configure alfresco-global.properties: db.username=alfresco db.password=alfresco db.driver=oracle.jdbc.OracleDriver db.url=jdbc:oracle:thin:@192.168.6.134:1521/alfresco hibernate.default_schema=ALFRESCO 25. Start alfresco server.