远程安装oracle 10.2.1 for redhat 5.0 2.6.18-5..
时间:2009-03-23 来源:sjhf
正好闲着没事,我就答应了。他告诉我:要装数据库的机子在江西,只能通过远程安装。还说现在只开了SSH,SSh1、,还用到一个FTP2、, secureCRT 6.12 包:
[root@oracleERP ~]# rpm -q ftp
ftp-0.17-33.fc6
服务:
[root@oracleERP vsftpd]# /etc/init.d/vsftpd status
vsftpd is stopped
上去。
Microsoft Windows XP [很好,可以FTP数据库软件上去。幸好我这里的网速还可以upload分钟就upload, secureCRT 6.12,升级还真快啊。好费话不多说了。把两个软件安装到电脑上面去,这两个软件都被破解了的,我个人喜欢用破解版。好了,下面我来配置XMANGER环境:在xp方式虚拟Linux为192.168.0.1在xp,默认情况下CRT里显示Linux以oracle在最后加上以下内容:
DISPLAY=192.168.0.1:0.0
export DISPLAY
最后一步、上面的条件都具备了,下面就是来安装数据库软件与建立数据库。下面安装数据库软件全是按照官方文档来的。下面我就不细细的讲。稍稍讲一下要做的步聚:
解压文件。
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named "db/Disk1" or "database".
设置内核参数:
为/etc/sysctl.conf文件加上如下的内容。
Add the following lines to the /etc/sysctl.conf file:
#kernel.shmall = 2097152
#kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
运行下面的命令,来改变当的的内核参数。
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
在/etc/security/limits.conf加上如下的内容。
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
在/etc/pam.d/login文件加上如下的内容。
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required /lib/security/pam_limits.so
关闭防火墙:
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.
安装需要的包:
Install the following packages:
# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject
# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c++-3*
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject
# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject
创建用户名与用户组:
Create the new groups and users:
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle
为数据库软件创建目录。
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01
修改/etc/redhat-releas文件,这样做的目的是为了在安装时能通过。因为oracle 10G 检查文件里对操作系统有要求。所要把它改成redhat-4。
Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:
redhat-4
设置环境变量:编辑:.bash_profile,在里面填上如下的内容。
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; 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
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=本机的IP地址:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
安装完以后,要把/etc/redhat-release这个文件的内容改过来。
Edit the /etc/redhat-release file restoring the original release information:
Red Hat Enterprise Linux Server release 5 (Tikanga)
Edit the /etc/oratab file setting the restart flag for each instance to 'Y':
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
在运行DBCA。后来我把内存分低一点。就通过了。
而我把它分了:7294967295分内存。
Echo 7294967295 > /proc/sys/kernel/shmmax.如果想永久的分shmmax,就可以了。
|
相关阅读 更多 +
排行榜 更多 +