14. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
$ sh /u/install/runInstaller
如果不能出现安装画面,查看本文后面的 FAQ。
非 常 值 得 称 道 的 是 ,10g 的 安 装 相 比 以 前 的 多 了 一 个 Checking operating system
certification 的步骤。特别实用。
安装文件会自动检测所需的条件。如果有不符合的地方,安装程序会报告给你.并会给出
具体原因。大大减少了出错的可能.下面是检查成功输出的内容 :
Checking operating system certification
Expected result: One of redhat-2.1,redhat-3,UnitedLinux-1.0
Actual Result: redhat-3
Check complete. The overall result of this check is: Passed
==============================================
Checking kernel parameters
Checking for VERSION=2.4.9.25; found VERSION=2.4.21. Passed
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for shmseg=10; found shmseg=4096. Passed
Checking for semmsl=250; found semmsl=250. Passed
Checking for semmni=128; found semmni=128. Passed
Checking for filemax=65536; found filemax=65536. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100.Passed
Checking for shmmin=1; found shmmin=1. Passed
Checking for shmmax=2147483648; found shmmax=2147483648. Passed
Check complete. The overall result of this check is: Passed
==============================================
Checking recommended operating system packages
Checking for make-3.79; found make-3.79.1-17. Passed
Checking for binutils-2.11.90.0.8-12; found binutils-2.14.90.0.4-26. Passed
Checking for gcc-2.96; found gcc-3.2.3-20. Passed
Checking for openmotif-2.1.30-11; found openmotif-2.2.2-16. Passed
Check complete. The overall result of this check is: Passed
==============================================
Checking recommended glibc version
Expected result: 2.2.4.31.7
Actual Result: 2.3.2.95.3
Check complete. The overall result of this check is: Passed
==============================================
=====================
ITPUB 第 14 页 信息技术新动力
15. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
Validating ORACLE_BASE location (if set)
Check complete. The overall result of this check is: Passed
==============================================
其他的步骤比较清晰,不再赘述.
最后系统会提示你运行 root.sh 文件.按照提示做即可.
三 FAQ (在 Linux 平台安装 Oracle 比较常见)
3.1 不能启动安装界面
运行 runInstaller 提示信息类似如下:
xlib:connection to "localhost:0.0" refused by server
xlib:client is not authorized to connect to server
Exception in thread "main" java.lang.InternalError:can't connect to x11
window server using "localhost:0.0"
at .......
解决办法:
设定你的 DISPLAY 环境参数.
# export DISPLAY= your_IPaddress :0.0
把 your_IPaddress 换成你的 IP.
或者用 root 简单的执行一下
# xhost +
(要注意这样会有安全上的隐患)
3.2 安装界面显示很多"口口"样子的乱码
解决办法:
查看 locale 输出
# locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.GB18030
ITPUB 第 15 页 信息技术新动力
25. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
在 10g 不支持的 Linux 发行版上安装 10g 的解决方法
作者:Kamus
到目前为止,正常安装的 10g 只支持 Red Hat Enterprise Linux 2.1 and 3, and on
UnitedLinux 1.0。如果是其它的版本,比如 fedora,rh9 等,10g 将会说不支持,而不允许安
装,解决方法如下:
1. 跳过检查
运行 runInstaller -ignoreSysPrereqs,这样会跳过检查
2. 修改 redhat-release 文件
摘自www.puschitz.com
修改/etc/redhat-release 文件,让 10g 认为自己处于支持的操作系统中,运行下面的命令
即可
su - root
cp /etc/redhat-release /etc/redhat-release.backup
cat > /etc/redhat-release << EOF
Red Hat Enterprise Linux AS release 3 (Taroon)
EOF
安装完毕,再将那个文件还原:
su - root
cp /etc/redhat-release.backup /etc/redhat-release
puschitz.com 说:
I do not recommend to execute "runInstaller -ignoreSysPrereqs" since this
will disable other checks you probably don't want to.
意思是:我不推荐执行"runInstaller -ignoreSysPrereqs",因为这可能会跳过其它一
些你也许并不想跳过的检查。
End
ITPUB 第 25 页 信息技术新动力
41. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
Oracle10g 跨平台传输表空间
作者:eygle
1. 准备工作:
查询源数据库平台信息
SQL> col platform_name for a40
SQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT
2 FROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE d
3 WHERE tp.PLATFORM_NAME = d.PLATFORM_NAME;
PLATFORM_NAME ENDIAN_FORMAT
---------------------------------------- --------------
Solaris[tm] OE (64-bit) Big
查询目标数据库平台信息
SQL> col platform_name for a40
SQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT
2 FROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE d
3 WHERE tp.PLATFORM_NAME = d.PLATFORM_NAME;
PLATFORM_NAME ENDIAN_FORMAT
---------------------------------------- --------------
Microsoft Windows IA (32-bit) Little
查询 Oracle10g 支持的平台转换
SQL> select * from v$transportable_platform;
PLATFORM_ID PLATFORM_NAME ENDIAN_FORMAT
----------- ---------------------------------------- --------------
1 Solaris[tm] OE (32-bit) Big
2 Solaris[tm] OE (64-bit) Big
7 Microsoft Windows IA (32-bit) Little
10 Linux IA (32-bit) Little
6 AIX-Based Systems (64-bit) Big
3 HP-UX (64-bit) Big
5 HP Tru64 UNIX Little
ITPUB 第 41 页 信息技术新动力
42. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
4 HP-UX IA (64-bit) Big
11 Linux IA (64-bit) Little
15 HP Open VMS Little
8 Microsoft Windows IA (64-bit) Little
9 IBM zSeries Based Linux Big
13 Linux 64-bit for AMD Little
16 Apple Mac OS Big
12 Microsoft Windows 64-bit for AMD Little
2. 创建一个独立的自包含表空间
创建一个独立的自包含表空间用于测试:
$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr 27 14:04:08 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit
Production
With the Partitioning, OLAP and Data Mining options
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------
/opt/oracle/oradata/eygle/system01.dbf
/opt/oracle/oradata/eygle/undotbs01.dbf
/opt/oracle/oradata/eygle/sysaux01.dbf
/opt/oracle/oradata/eygle/users01.dbf
/data1/oradata/systemfile/eygle01.dbf
/opt/oracle/oradata/eygle/EYGLE/datafile/o1_mf_test_03xv34ny_.dbf
/opt/oracle/oradata/eygle/EYGLE/datafile/o1_mf_itpub_03xv5g66_.dbf
7 rows selected.
ITPUB 第 42 页 信息技术新动力
43. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
SQL> create tablespace trans
2 datafile '/data1/oradata/systemfile/trans01.dbf'
3 size 10M;
Tablespace created.
SQL> create user trans identified by trans
2 default tablespace trans;
User created.
SQL> grant connect,resource to trans;
Grant succeeded.
SQL> connect trans/transConnected.
SQL> create table test as select * from user_objects;
Table created.
SQL> select count(*) from test;
COUNT(*)
----------
1
SQL> select * from test;
OBJECT_NAME
--------------------------------------------------------------------
SUBOBJECT_NAME OBJECT_ID DATA_OBJECT_ID
OBJECT_TYPE
------------------------------ ---------- -------------- -------------------
CREATED LAST_DDL_TIM TIMESTAMP STATUS T G S
------------ ------------ ------------------- ------- - - -
TEST
15604 15604 TABLE
27-APR-04 27-APR-04 2004-04-27:14:05:42 VALID NNN
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release
10.1.0.2.0 - 64bit Production With the Partitioning, OLAP and Dat
ITPUB 第 43 页 信息技术新动力
44. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
3. 导出要传输的表空间
$ pwd
/opt/oracle
$ cd dpdata
$ ls
$ expdp eygle/eygle dumpfile=trans.dmp directory=dpdata
transport_tablespace=trans
LRM-00101: unknown parameter name 'transport_tablespace'
$ expdp eygle/eygle dumpfile=trans.dmp directory=dpdata
TRANSPORT_TABLESPACES=trans
Export: Release 10.1.0.2.0 - 64bit Production on Tuesday, 27 April, 2004
14:07
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
64bit Production
With the Partitioning, OLAP and Data Mining options
Starting "EYGLE"."SYS_EXPORT_TRANSPORTABLE_01": eygle/********
dumpfile=trans.dmp directory=dpdata TRANSPORT_TABLESPACES=trans
ORA-39123: Data Pump transportable tablespace job aborted
ORA-29335: tablespace 'TRANS' is not read only
Job "EYGLE"."SYS_EXPORT_TRANSPORTABLE_01" stopped due to fatal error
at 14:08
注意:传输表空间必须置为只读状态
$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr 27 14:08:13 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ITPUB 第 44 页 信息技术新动力
45. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit
Production
With the Partitioning, OLAP and Data Mining options
SQL> alter tablespace trans read only;
Tablespace altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release
10.1.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$ expdp eygle/eygle dumpfile=trans.dmp directory=dpdata
TRANSPORT_TABLESPACES=trans
Export: Release 10.1.0.2.0 - 64bit Production on Tuesday, 27 April, 2004
14:08
Copyright (c) 2003, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
64bit Production
With the Partitioning, OLAP and Data Mining options
Starting "EYGLE"."SYS_EXPORT_TRANSPORTABLE_01": eygle/********
dumpfile=trans.dmp directory=dpdata TRANSPORT_TABLESPACES=trans
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type
TRANSPORTABLE_EXPORT/TTE_POSTINST/PLUGTS_BLK
Master table "EYGLE"."SYS_EXPORT_TRANSPORTABLE_01" successfully
loaded/unloaded
********************************************************
Dump file set for EYGLE.SYS_EXPORT_TRANSPORTABLE_01 is:
/opt/oracle/dpdata/trans.dmp
Job "EYGLE"."SYS_EXPORT_TRANSPORTABLE_01" successfully completed
at 14:09
4. 使用 rman 转换文件格式
$ rman target /
ITPUB 第 45 页 信息技术新动力
46. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
Recovery Manager: Release 10.1.0.2.0 - 64bit Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
connected to target database: EYGLE (DBID=1337390772)
RMAN> convert tablespace trans
2> to platform 'Microsoft Windows IA (32-bit)'
3> Format '/tmp/%U';
Starting backup at 27-APR-04
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK
channel ORA_DISK_1: starting datafile conversion
input datafile fno=00008 name=/data1/oradata/systemfile/trans01.dbf
converted
datafile=/tmp/data_D-EYGLE_I-1337390772_TS-TRANS_FNO-8_01fk92hg
channel ORA_DISK_1: datafile conversion complete, elapsed time:
00:00:01
Finished backup at 27-APR-04
RMAN> exit
Recovery Manager complete.
5. 确认导出文件已生成.
$ ls /tmp/data*
/tmp/data_D-EYGLE_I-1337390772_TS-TRANS_FNO-8_01fk92hg
$ ls -l /tmp/data*
-rw-r----- 1 oracle dba 10493952 Apr 27 14:12
/tmp/data_D-EYGLE_I-1337390772_TS-TRANS_FNO-8_01fk92hg
$ chmod 777 /tmp/data*
$ chmod 777 /opt/oracle/dpdata/*
ITPUB 第 46 页 信息技术新动力
47. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
6. 通过 ftp 传输文件至目标主机
220 billing-center.hurray.com.cn FTP server (SunOS 5.8) ready.
User (172.16.33.32 none)): gqgai
331 Password required for gqgai.
Password:
230 User gqgai logged in.
ftp> bin
200 Type set to I.
ftp> cd /tmp
250 CWD command successful.
ftp> mget data*
200 Type set to I.
mget data_D-EYGLE_I-1337390772_TS-TRANS_FNO-8_01fk92hg? Y
200 PORT command successful.
150 Binary data connection for
data_D-EYGLE_I-1337390772_TS-TRANS_FNO-8_01fk92hg
(172.16.32.65,2885) (10493952 bytes).
226 Binary Transfer complete.
ftp: 10493952 bytes received in 15.90Seconds 659.87Kbytes/sec.
ftp> cd /opt/oracle/dpdata
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 ASCII data connection for /bin/ls (172.16.32.65,2889) (0 bytes).
export.log
trans.dmp
226 ASCII Transfer complete.
ftp: 23 bytes received in 0.01Seconds 2.30Kbytes/sec.
ITPUB 第 47 页 信息技术新动力
48. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
ftp> bin
200 Type set to I.
ftp> mget trans.dmp
200 Type set to I.
mget trans.dmp? y
200 PORT command successful.
150 Binary data connection for trans.dmp (172.16.32.65,2893) (73728
bytes).
226 Binary Transfer complete.
ftp: 73728 bytes received in 0.03Seconds 2457.60Kbytes/sec.
ftp> bye
221 Goodbye.
7. 使用 rman 在目标数据库转换文件
E:Oracleoradatavilendpdata>rman target /
恢复管理器: 版本 10.1.0.2.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
连接到目标数据库: VILEN (DBID=1587222708)
RMAN> CONVERT DATAFILE
'E:Oracleoradatavilendpdatadata_D-EYGLE_I-1337390772_TS-TRANS_F
NO-8_01fk92hg'
2> DB_FILE_NAME_CONVERT
3>
'E:Oracleoradatavilendpdatadata_D-EYGLE_I-1337390772_TS-TRANS_F
NO-8_01fk92hg','E:OracleoradatavilenVILENDATAFILEtrans01.dbf';
启动 backup 于 27-4 月 -04
使用通道 ORA_DISK_1
通道 ORA_DISK_1: 启动数据文件转换
输 出 文 件 名
=E:ORACLEORADATAVILENDPDATADATA_D-EYGLE_I-1337390772_TS
-TRANS_FNO-8_01FK92HG
已 转 换 的 数 据 文 件 =
ITPUB 第 48 页 信息技术新动力
49. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
E:ORACLEORADATAVILENVILENDATAFILETRANS01.DBF
通道 ORA_DISK_1: 数据文件转换完毕, 经过时间: 00:00:04
完成 backup 于 27-4 月 -04
8. 在目标数据库 plugin 数据文件
注意目标数据库中的目标用户必须存在,否则会报错。
E:Oracleoradatavilendpdata>impdp eygle/eygle dumpfile=trans.dmp
directory=dpdata
transport_datafiles='E:OracleoradatavilenVILENDATAFILETRANS01.DB
F'
Import: Release 10.1.0.2.0 - Production on 星期二, 27 4 月, 2004 15:02
Copyright (c) 2003, Oracle. All rights reserved.
连 接 到 : Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production
With the Partitioning, OLAP and Data Mining options
已成功加载/卸载了主表 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01"
启 动 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01": eygle/********
dumpfile=trans.dmp directory=dpdata transport_datafiles='E:
OracleoradatavilenVILENDATAFILETRANS01.DBF'
处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39123: 数据泵可传输的表空间作业中止
ORA-29342: 数据库中不存在用户 TRANS
作业 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01" 因致命错误于 15:02 停
止
E:Oracleoradatavilendpdata>sqlplus "/ as sysdba"
SQL*Plus: Release 10.1.0.2.0 - Production on 星期二 4 月 27 15:03:03 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> create user trans identified by trans;
用户已创建。
SQL> grant connect,resource to trans;
ITPUB 第 49 页 信息技术新动力
50. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
授权成功。
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
E:Oracleoradatavilendpdata>impdp eygle/eygle dumpfile=trans.dmp
directory=dpdata
transport_datafiles='E:OracleoradatavilenVILENDATAFILETRANS01.DB
F'
Import: Release 10.1.0.2.0 - Production on 星期二, 27 4 月, 2004 15:03
Copyright (c) 2003, Oracle. All rights reserved.
连 接 到 : Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Production
With the Partitioning, OLAP and Data Mining options
已成功加载/卸载了主表 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01"
启 动 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01": eygle/********
dumpfile=trans.dmp directory=dpdata transport_datafiles='E:
OracleoradatavilenVILENDATAFILETRANS01.DBF'
处理对象类型 TRANSPORTABLE_EXPORT/PLUGTS_BLK
处理对象类型 TRANSPORTABLE_EXPORT/TABLE
处理对象类型 TRANSPORTABLE_EXPORT/TTE_POSTINST/PLUGTS_BLK
作业 "EYGLE"."SYS_IMPORT_TRANSPORTABLE_01" 已于 15:03 成功完成
9. 检查数据
E:Oracleoradatavilendpdata>sqlplus trans/trans
SQL*Plus: Release 10.1.0.2.0 - Production on 星期二 4 月 27 15:03:50 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select count(*) from test;
COUNT(*)
----------
ITPUB 第 50 页 信息技术新动力
51. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
1
SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options 断开
E:Oracleoradatavilendpdata>
可以选择把表空间更改为读写
SQL> alter tablespace trans read write;
表空间已更改。
10. 总结
10g 的表空间跨平台迁移, 9i 就是增加了一个使用 Rman 进行的文件格式转换的过程.
较
实际上也就是转换了数据文件头的格式信息而已.
然而这一简单改进带来的方便之处是显而易见的.
End
ITPUB 第 51 页 信息技术新动力
55. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
由于 Virtual Disk 的特点,在新创建这个磁盘文件的时候,并不会用到最大的 size,所以
即使整个分区的空闲容量没有 4G(我们要创建 4 个最大 size 是 1G 的虚拟磁盘),也不会
有问题,虚拟磁盘文件的大小是随着需要而持续增加的,最大增加到指定的 max size。
当然这种特性也就导致了使用 Virtual Disk 比使用 Plain Disk(创建时即占用 max size 大
小的磁盘空间)的 I/O 效率要低,所以如果有足够的磁盘空间,那么建议使用 Plain Disk。
创建 Plain Disk 的方法是在上面的第二步时,在“Allocate all disk space now”的复选框
前面打勾,这样将会创建一个以 pln 和 dat 为扩展名的虚拟磁盘文件。
Plain Disk 的好处还在于可以模拟 RAC 环境中的共享磁盘,这是 Virtual Disk 无法作到
的。
模拟RAC不在本文叙述的范围内。如果有兴趣,可以到www.itpub.net的数据库管理版本
精华区查找相应的发贴。
3. 更新内核
>uname -a
RHEL3 默认安装的 linux 内核版本是 2.4.21-4,为了能够正确的地安装 oracleasm
lib,我们需要将内核升级到 2.4.21-15.EL,否则将无法正常启用 oracleasm。
原因是我们安装的 oracleasmlib 是已经编译好的 rpm 包,而我们当前操作系统的内核
必须和编译时候的系统内核版本一样,否则即使看上去安装正常,但是在启动 oracleasm
时候会在/var/log/messages 文件中发现类似如下的报错信息:
kernel-module version mismatch
^I/lib/modules/2.4.21-EL-ABI/oracleasm/oracleasm.o was compiled for
kernel version 2.4.21-15.EL ^Iwhile this kernel is version 2.4.21-4.EL.
ITPUB 第 55 页 信息技术新动力
56. http://www.itpub.net ITPUB 电子杂志
--------------------------- 总第七期
从这个报错信息中我们也可以知道应该安装的内核版本,为了更确切地知道下载的
oracleasm 包需要哪个版本的内核,我们也可以先下载 oracleasm,安装,启动然后查看
这个报错信息,之后再升级内核到相应的版本。
注意:本文中提到的 2.4.21-15.EL 内核是本文编写时 oracleasm 编译使用的内核,随着
oracle 不断地推出 asmlib 的新版本,需要的内核版本可能也在不断变化。
下载新内核:
kernel-2.4.21-15.EL.i686:
http://public.planetmirror.com/pub/pmstuff/patches/kernel-2.4.21-15.EL.i686.rpm
安装新内核:
# rpm –ivh –-nodeps kernel-2.4.21-15.EL.i686.rpm
安装完毕以后,修改/boot/grub/grub.conf,rpm 安装完毕以后,应该已经自动在
grub.conf 文件中添加了新版 kernel 启动的段落,我们需要将 default=1 修改为
default=0,这样保证每次启动都用新的内核启动,当测试没有问题之后,我们也可以直接
删除 grub.conf 文件中的 title Red Hat Enterprise Linux AS (2.4.21-4.EL)部分,防
止因错误操作而使用了原有的系统内核启动系统。
# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.4.21-15.EL ro root=LABEL=/
initrd /boot/initrd-2.4.21-15.EL.img
title Red Hat Enterprise Linux AS (2.4.21-4.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/
ITPUB 第 56 页 信息技术新动力