Files
bin/install-oracle-for-dcm

56 lines
2.0 KiB
Plaintext

echo "supposedly check /etc/hosts has valid entry for this host"
apt-get install alien autoconf automake autotools-dev binutils doxygen elfutils expat gawk gcc gcc-multilib g++-multilib libstdc++6:i386 ksh less libtiff5 libtiff5-dev lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 libelf-dev libltdl-dev libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 libpth-dev libstdc++5 lsb-cxx make pdksh openssh-server rlwrap rpm sysstat unixodbc unixodbc-dev x11-utils zlibc libglapi-mesa:i386 libglu1-mesa:i386 libqt4-opengl:i386 libpthread-workqueue0 libpthread-workqueue-dev libzthread-2.3-2 libzthread-dev libpthread-stubs0-dev
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /bin/basename
ln -s /usr/lib/x8664-linux-gnu /usr/lib64
ln -s /lib/x8664-linux-gnu/libgcc_s.so.1 /lib64/libgcc_s.so.1
groupadd -g 502 oinstall
groupadd -g 503 dba
groupadd -g 504 oper
groupadd -g 505 asmadmin
useradd -u 502 -g oinstall -G dba,asmadmin,oper -s /bin/bash -m oracle
passwd oracle
mkdir -p /u01/app/oracle/product/11.2.0/
chown -R oracle:oinstall /u01
chmod -R 775 /u01
echo "#### Oracle 11g Kernel Parameters ####
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586" >> /etc/sysctl.conf
echo "#### oracle User Settings 4 Oracle 11g ####
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240" >> /etc/limits.conf
sysctl -p
dpkg -i ...
sudo service oracle-xe configure
sqlplus '/ as sysdba'
CREATE USER "DCM" IDENTIFIED BY VALUES '05B3C2C35B50E0B9' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP"
imp...
install apache2 php5-dev
pecl install oci8
pear install MDB2...