• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

Scientific Linux 4.0 上安装Oracle10g(2)

发布: 2007-7-04 12:06 | 作者: 小眯的爸爸软件测试论坛讨论

领测软件测试网

在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.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
oracle@192.168.2.114'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 ~]$

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网