歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

Scientific Linux 4.0 上安裝Oracle10g(2)

在Scientific Linux 4.0 上安裝Oracle10g轉載自 極速 論壇 作者:小瞇的爸爸 第 3 部分: 安裝Oracle10g 數據庫 [oracle@scientific linux ] cd /var/ftp/pub/database/Oracle/10g/linux/ [oracle@scientific linux] su Password: [root@scientific linux]# c

在Scientific Linux 4.0 上安裝Oracle10g轉載自極速論壇

作者:小瞇的爸爸
第 3 部分: 安裝Oracle10g 數據庫


[oracle@scientific linux]$ cd /var/ftp/pub/database/Oracle/10g/linux/
[oracle@scientific linux]$ su
Password:
[root@scientific linux]# chmod +x *.*
[root@scientific linux]# ll
total 1630336
-rwxr-xr-x  1 root root  47913091 Apr 21 16:08 htmldb_1.6.0.zip
-rwxr-xr-x  1 root root 423431309 Apr 21 16:21 ship.clearcase/" target="_blank" >ccd.lnx32.cpio.gz
-rwxr-xr-x  1 root root 381603731 Apr 21 16:22 ship.client.lnx32.cpio.gz
-rwxr-xr-x  1 root root 131198605 Apr 21 16:21 ship.crs.lnx32.cpio.gz
-rwxr-xr-x  1 root root 683621376 Apr 21 16:24 ship.db.lnx32.cpio
[root@scientific linux]# gunzip ship.db.lnx32.cpio.gz
[root@scientific linux]# cpio -idcmv < ship.db.lnx32.cpio



這樣把文件解壓縮成安裝文件夾Disk1。

[root@scientific linux]# ll
total 1630336
drwxr-xr-x  7 2840  562      4096 Dec 21  2004 Disk1
-rw-r--r--  1 root root       947 Jun 23 03:25 EOF
-rwxr-xr-x  1 root root  47913091 Apr 21 16:08 htmldb_1.6.0.zip
-rwxr-xr-x  1 root root 423431309 Apr 21 16:21 ship.ccd.lnx32.cpio.gz
-rwxr-xr-x  1 root root 381603731 Apr 21 16:22 ship.client.lnx32.cpio.gz
-rwxr-xr-x  1 root root 131198605 Apr 21 16:21 ship.crs.lnx32.cpio.gz
-rwxr-xr-x  1 root root 683621376 Apr 21 16:24 ship.db.lnx32.cpio


[oracle@scientific linux]$ cd Disk1/
[oracle@scientific Disk1]$ ./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/OraInstall2005-06-23_04-09-00AM/installActions2005-06-23_04-09-00AM.log
[oracle@scientific Disk1]$

非常遺憾,出現了報錯:(

想想看怎麼解決呢?通過查一些資料,發現可以先這樣欺騙系統一下:


[oracle@scientific Disk1]$ su
Password:
[root@scientific Disk1]# cp /etc/redhat-release /etc/redhat-release.backup
[root@scientific Disk1]# cat > /etc/redhat-release << EOF
> Red Hat Enterprise Linux AS release 3 (Taroon)
> EOF
[root@scientific Disk1]# exit
exit


再試一下:

[oracle@scientific Disk1]$ ./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
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2005-06-23_04-28-53AM. Please wait ...
DISPLAY not set. Please set the DISPLAY and try again.
Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
- For csh:                      % setenv DISPLAY 192.168.1.128:0.0
- For sh, ksh and bash:         $ DISPLAY=192.168.1.128:0.0; export DISPLAY
Use the following command to see what shell is being used:
        echo $SHELL
Use the following command to view the current DISPLAY environment variable setting:
        echo $DISPLAY
- Make sure that client users are authorized to connect to the X Server.
To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
% xhost +
To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
        % <full path to xclock.. see below>
If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
Typical path for xclock: /usr/X11R6/bin/xclock
[oracle@scientific Disk1]$

Ok, 看來我們似乎需要在x-win下面操作了。

啟動數據庫

login as: oracle
[email protected]'s password:
Last login: Thu Jun 23 04:45:09 2005
-bash: /u01/app/oracle/product/10.1.0/db_1/jdk/jre/lib/i386/server:: No such fil
e or directory
-bash: /u01/app/oracle/product/10.1.0/db_1/rdbms/lib:/u01/app/oracle/product/10.
1.0/db_1/lib:: No such file or directory
-bash: /u01/app/oracle/product/10.1.0/db_1/jdk/fre/lib/i386:: No such file or di
rectory



[oracle@scientific ~]$ sqlplus "scott/tiger as sysdba"

SQL*Plus: Release 10.1.0.3.0 - Production on Thu Jun 23 08:12:32 2005

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area  285212672 bytes
Fixed Size                   778776 bytes
Variable Size              95428072 bytes
Database Buffers          188743680 bytes
Redo Buffers                 262144 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options





[oracle@scientific ~]$ lsnrctl

LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 23-JUN-2005 08:13:39

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

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> start
Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.1.0.3.0 - Production
System parameter file is /u01/app/oracle/product/10.1.0/db_1.network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=scientific)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.1.0.3.0 - Production
Start Date                23-JUN-2005 08:13:52
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=scientific)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> exit
[oracle@scientific ~]$

Copyright © Linux教程網 All Rights Reserved