RedHatLinux 6.4 安装oracle10G(纯命令版)

说明:安装已经很熟练了,一般情况下,差别只是每个版本的系统rpm包不一样,这个纯命令的版本只是为了方便我自己翻阅。 

 

Red Hat Enterprise Linux 6 The following packages (or later versions) must be installed: 

binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)

 

 [安装过程需要用到的命令总结版]
*************************************************************************

cpio -idmv < 10201_database_linux_x86_64.cpio


cat /etc/issue
uname -r
grep "model name" /proc/cpuinfo
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
free
df-k /tmp
df -k
df-h

rpm -q gcc make binutils openmotif search compat-db compat-gcc compat-gcc-c++ compat-libstdc++

mount -t auto /dev/cdrom /mnt
copy

 

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -m -g oinstall -G dba oracle
id oracle
passwd oracle

mkdir -p /u01/app/oracle
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01/app/oracle /u02/oradata
chmod -R 755 /u01/app/oracle /u02/oradata

vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmnni = 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 /u01/app/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=oracle1
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/sbin
source .bash_profile

mount -t auto /dev/cdrom /mnt
cd /opt/database (where runInstaller is!)
./runInstaller

advanced-->enterprised Edition -->install database soft only-->Install-->/u01/app/oracle/product/10.2.0/db_1/root.sh-->

copy   The following J2EE Applications have been deployed and are accessible at the URLs listed below.

iSQL*Plus URL:
http://localhost.localdomain:5560/isqlplus

iSQL*Plus DBA URL:
http://localhost.localdomain:5560/isqlplus/dba

 

--->dbca --> xiugai neicun,yuyan zhichi
--->netca

-->lsnrctl stop -->lsnrctl start
-->emctl stop dbconsole-->emctl start dbconsole
-->http://192.168.1.2:1158/em
user:   sys
pwd:    oracle
con as: sysdba

-->isqlplusctl stop
-->isqlplusctl start

http://192.168.1.2:5560/isqlplus
user:   system
pwd:    oracle
sid:    oracle1

sqlplus --> / as sysdba-->  startup-->  exit
sqlplus --> / as sysdba-->  shutdown immediate -->exit

***************************************************************************

uninstall oracle db:

su - oracle --> dbca -->del database

cd $ORACLE_HOME/bin-->emctl stop dbconsole -->lsnrctl stop
 -->isqlplusctl stop -->searchctl stop
cd $ORACLE_HOME/oui/bin -->./runInstaller -->Deinstall Products

 

 

___________________________________________________________________________________

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

Author:   laven54 (lurou)

Email:    laven54@163.com

Blog:      http://blog.csdn.net/laven54


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值