You are on page 1of 19

VMware Workstation 10 Redhat 5 Oracle 10g

2014-01-09

1......................................................................................................................................... 2
2.window .................................................................................................................. 3
2.1 ......................................................................................................................... 3
2.2 Redhat 5 ..................................................................................................................... 4
2.3 Redhat 5 SSH ................................................................................................ 7
2.4 ............................................................................................................. 8
2.5 Xmanager ................................................................................................................. 10
2.6 FTP ............................................................................................................... 11
3.Oracle .................................................................................................................. 12
4.Oracle .......................................................................................................................... 13
5.Oracle .................................................................................................................................. 16

1.
VMware Workstation v10.0 Redhat 5
FTP Xmanager

VMware Workstation v10.0 _ttrar.7z

VMware

Workstation 10 Readme
.txt
rhel-server-5.4-i386-dvd.iso
database.zip

redhat 5 redhat 5

oracle 10g iso/rar

linux window zip/tar.gz

Dependencies.zip

redhat 5 oracle 10g

redhat 5 redhat 5

zip/tar.gz

compat-db-4.2.52-5.1.i386.rpm/compat-gcc-34-3.4.6-4.i386.rpm/compat-gcc-34-c++
-3.4.6-4.i386.rpm/compat-libstdc++-296-2.96-138.i386.rpm/compat-libstdc++-33-3.2
.3-61.i386.rpm/libaio-0.3.106-3.2.i386.rpm/libX11-1.0.3-11.el5.i386.rpm/libX11-deve
l-1.0.3-11.el5.i386.rpm/libXau-1.0.1-3.1.i386.rpm/libXau-devel-1.0.1-3.1.i386.rpm/li
bXp-1.0.0-8.1.el5.i386.rpm/libXp-devel-1.0.0-8.1.el5.i386.rpm/libXpm-3.5.5-3.i386.rp
m/libXpm-devel-3.5.5-3.i386.rpm/openmotif-2.3.1-2.el5.i386.rpm
Serv-U .rar

window FTP

@.exe
NetSarang.Xmanager.Enterprise.v4.0.0182 .rar

Xmanager

Xmanager oracle
Xmanager
Xshell
SecureCRT
2

SecureCRT.rar

2.window
2.1
VMware Workstation v10.0 _ttrar.7z
I:\VM10

Readme .txt!) VMware.cmd

VMware 0
e

2.2 Redhat 5
vmware.exe

rhel-server-5.4-i386-dvd.iso

Redhat 5 / root

Redhat 5 20G

1024M1G

20G

Redhat 5
VMware Tools

2.3 Redhat 5 SSH


Redhat 5Ctrl+Alt+F1 1 root
7

SSH /ect/rc.d/init.d/sshd start


netstat -tlp ssh

IPifconfig -a | grep addr


Redhat 5 IP 192.168.128.129( IP
192.168.128.128)
Redhat 5

2.4
SecureCRT.rar

SecureCRT.exe 192.168.128.129

2.5 Xmanager
NetSarang.Xmanager.Enterprise.v4.0.0182 .rar window
Xmanager Oracle
Xmanager Enterprise 4
Xmanager - Passive

Xmanager window cmd

window ipconfig IP

10

IP :192.168.1.101 ( IP IP )
SecureCRT root root
IP IP/etc/profile
IP
IP export DISPLAY=192.168.1.101:0.0
xdpyinfo | grep name IP

xhost +
xclock

2.6 FTP
window 7Redhat 5FTP
FTP
FTP
Serv-U .rar window FTP Serv-U
@.exe-->
Serv-U
11

IP

ID
1.
window Serv-U

3.Oracle
root Redhat 5
mkdir /home/root

//

cd /home/root
ftp 192.168.1.101

// FTP

zhangmz

//FTP
12

//FTP
ls

// FTP

bin

//

get database.zip

//

get Dependencies.zip

//

bye

// FTP

ls

//

unzip database.zip

//

unzip Dependencies.zip

//

ls

//

cd Dependencies

//

ls

//

rpm -ivh libaio-0.3.106-3.2.i386.rpm


rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
rpm -ivh libXpm-3.5.5-3.i386.rpm
rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
rpm -ivh libX11-1.0.3-11.el5.i386.rpm
rpm -ivh libXau-1.0.1-3.1.i386.rpm
rpm -ivh libXau-devel-1.0.1-3.1.i386.rpm
rpm -ivh libXp-devel-1.0.0-8.1.el5.i386.rpm
rpm -ivh compat-db-4.2.52-5.1.i386.rpm
rpm -ivh openmotif-2.3.1-2.el5.i386.rpm

4.Oracle
root Redhat 5:
groupadd oinstall
13

groupadd dba
useradd -m -g oinstall -G dba oracle
// oracle

passwd oracle

mkdir -p /oracle/product/10g/db_1
mkdir -p /oracle/product/10g/oradata
mkdir -p /oracle/install
chown -R oracle:oinstall /oracle
chown -R oracle:oinstall /home/root/database
chmod -R 775 /oracle
chmod -R 775 /home/oracle
vi /etc/sysctl.conf

//

# 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
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

/sbin/sysctl -p
vi /etc/security/limits.conf

//

# For Oracle Install


oracle

soft

oracle

hard

oracle

soft

nofile

1024

oracle

hard

nofile

65536

vi /etc/pam.d/login

nproc
nproc

2047
16384

//

# For Oracle Install


14

session

required

/lib/security/pam_limits.so

// SELINUX

vi /etc/selinux/config
SELINUX=disabled

vi /etc/profile

//

# For Oracle Install


if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi

vi /etc/csh.login

//

# For Oracle Install


if ( \$USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
umask 022
endif

vi /etc/redhat-release

// Redhat 5.4 4

Red Hat Enterprise Linux Server release 4 (Tikanga)

su - oracle

// oracle

vi .bash_profile

//

# For Oracle Install


TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10g/db_1; export ORACLE_HOME
15

ORACLE_SID=orcl; export ORACLE_SID


ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

root reboot

5.Oracle
oracle Redhat 5:
export LANG=en_US

//

export DISPLAY=192.168.1.101:0.0
xclock

//

cd /home/root
chmod -R 744 database
./database/runInstaller
oracle 10g window
16

NextNext
Yes
Install

17

scott

root Redhat

SecureCRT root Redhat


/oracle/oraInventory/orainstRoot.sh
/oracle/product/10g/db_1/root.sh

//

oracle OK
Exit oracle

18


root Redhat 5:
vi /etc/redhat-release

// Redhat 5.4

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

vi /etc/oratab

// N->Y

orcl:/oracle/product/10g/db_1:Y

su - oracle

// Oracle

lsnrctl start

//

sqlplus /nolog
connect /as sysdba
startup

// oracle

connect scott

//
//

select sysdate from dual;

//

SYSDATE
--------10-JAN-14

19