linux下安装oracle 10g记录

以下操作在root用户下进行
$uname -a
Linux yndxjk 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
$grep MemTotal /proc/meminfo
MemTotal:      3115144 kB
$grep SwapTotal /proc/meminfo
SwapTotal:     1044184 kB
$df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda9             2.0G  177M  1.7G  10% /
/dev/sda1             2.0G   41M  1.9G   3% /boot
/dev/md0              537G  1.7G  508G   1% /data02
none                  1.5G     0  1.5G   0% /dev/shm
/dev/sda7             8.7G  136M  8.1G   2% /home
/dev/sda6             4.6G   42M  4.3G   1% /opt
/dev/sda5             4.6G   42M  4.3G   1% /tmp
/dev/sda3             4.9G  2.6G  2.1G  55% /usr
/dev/sdb1             2.0G   36M  1.9G   2% /usr/local
/dev/sda2             6.0G  126M  5.5G   3% /var
$/usr/sbin/groupadd oinstall
$/usr/sbin/groupadd dba
$/usr/sbin/useradd -m -d /home/oracle -g oinstall -G dba oracle
$id oracle
uid=511(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
$passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
$pwd
/data02
$mkdir oracle

$ls -l
total 40
drwxrwxr-x  3 das      das    4096 Mar 30  2009 bin
drwxr-xr-x  3 dcsinput users  4096 Jul 29 16:55 data
drwxr-xr-x  2 root     root   4096 Aug  5 16:26 db
drwxrwxr-x  3 db2      db2    4096 Apr 29  2009 db2
drwx------  4 root     root   4096 May 21  2009 ftphome
drwx------  2 root     root  16384 Mar 27  2009 lost+found
drwxr-xr-x  2 root     root   4096 Aug  5 16:23 oracle
$mkdir db


$chown -R oracle:oinstall ./oracle
$cd db
$mkdir oralce
从另一台主机上ftp安装包过来
$ls
oralce
10g_linux_x86_db_10_1_0_3.iso
$ls -l
total 671956
-rw-r--r--  1 root root 687407104 Aug  5 16:29 10g_linux_x86_db_10_1_0_3.iso
$ mount -o loop -t iso9660 10g_linux_x86_db_10_1_0_3.iso /tmp


$cp -R /tmp /data02/db/oracle/

$chmod -R 777 oralce


$rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc
gcc-3.4.6-3
make-3.80-6.EL4
binutils-2.15.92.0.2-21
openmotif-2.2.3-10.RHEL4.5
setarch-1.6-1
compat-db-4.1.25-9
package compat-gcc is not installed
package compat-gcc-c++ is not installed
package compat-libstdc is not installed


以下操作在oralce用户下进行

 

设置oralce的环境变量:

$cd

$vi .bash_profile

ORACLE_BASE=/data02/oracle;
export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.1.0;
export ORACLE_HOME


PATH=$PATH:$HOME/bin:/data02/oracle/product/10.1.0/bin:.
export PATH

 

NLS_LANG=american_america.ZHS16GBK
export NLS_LANG
LANG=en_US
export LNAG
if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

set -o vi


cd /home/oracle
PS1='$'

 

然后可以开始安装了
$cd /data02/db/oracle/tmp

$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-2.1, redhat-3, SuSE-9, SuSE-8 or UnitedLinux-1.0
                                      Failed <<<<

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2011-08-05_05-35-35PM/installActions2011-08-05_05-35-35PM.log

 

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

报了以上的错误,需要用root用户修改修改Linux的发行标记
 
需要将文件 '/etc/redhat-release'的内容由
 
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
 
修改为

Red Hat Enterprise Linux AS release 3 (Nahant Update 4)

然后重新执行./runInstaller就开始安装了,我使用VNC连接到主机服务器上,都是图形界面。

$lsnrctl start

$lsnrctl status

LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 06-AUG-2011 09:51:15

Copyright (c) 1991, 2004, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.1.0.3.0 - Production
Start Date                06-AUG-2011 09:30:57
Uptime                    0 days 0 hr. 20 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /data02/oracle/product/10.1.0/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=yndxjk)(PORT=1521)))
The listener supports no services
The command completed successfully
$

我并没有建立一个数据库

你可能感兴趣的:(oracle,linux,db2,Authentication,Dictionary,installer)