groupadd dba -g 501
mkdir -p /u01/home/oracle
useradd -c “Oracle Software Owner” -G dba -u 1115 –d /u01/home/oracle -m -s /bin/csh oracle
chown -R oracle:dba /u01
Note: On our servers we had to match the user id to be able to create files on the other systems. On your system you may wish to use different id’s as oracle suggests in their directions.
passwd oracle
write_enabled=yes
anonymous_enabled=no
ssl_enable=YES
force_local_logins_ssl=YES
force_local_data_ssl=YES
chkconfig --level 2345 vsftpd on
# Do not remove the following line, or various programs
# that require network functionality will fail.
172.17.2.31 db1.dep.gov db1
Note: The public ip addresses that begin with 172. are site specific to our site at other locations you will have differing ip addresses.
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
# Oracle changed kernel.sysrq to 1 from 0
kernel.sysrq = 1
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Oracle settings for cluster
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
kernel.hostname = db1.dep.gov
kernel.domainname = dep.gov
kernel.sem = 256 32000 100 150
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.shmseg = 4096
kernel.shmall = 3279547
fs.file-max = 327679
kernel.msgmni = 2878
kernel.msgmnb = 65536
net.ipv4.ip_local_port_range = 1024 65000
cat /proc/sys/net/core/rmem_default
cat /proc/sys/net/core/rmem_max
cat /proc/sys/net/core/wmem_default
cat /proc/sys/net/core/wmem_max
hostname
cat /proc/sys/kernel/sem
cat /proc/sys/kernel/shmmax
cat /proc/sys/kernel/shmmni
cat /proc/sys/kernel/shmall
cat /proc/sys/fs/file-max
cat /proc/sys/kernel/msgmni
cat /proc/sys/kernel/msgmnb
cat /proc/sys/net/ipv4/ip_local_port_range
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
ulimit -n 65536
umask 022
export PATH
unset USERNAME
export ORACLE_HOME=/u01/app/oracle/product/102
export ORACLE_SID=db1_erisdev
export PATH=/u01/app/oracle/product/102/bin:$PATH
export ORACLE_TERM=xterm
export TMPDIR=/tmp
rpm –i sysstat-5.0.5-1.i386.rpm
Configure VNC server
chkconfig –level 345 vncserver on
However personally I turn it on when I want it.
VNCSERVERS=”1:oracle”
Start the vnc server as oracle
vncserver :1
Configure vnc server by issuing these commands:
cd .vnc
mv xstartup xstartup.org
touch xstartup
chmod 755 xstartup
Edit the xstartup file in u01/home/oracle/.vnc and enter this text.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -r \/u01/home/oracle/.Xresources ] && xrdb \/u01/home/oracle/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xhost localhost
PATH=$PATH:/usr/local/bin
export PATH
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Restart the vnc server software
vncserver –kill :1
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)