vmware7+redhat enterprise 5.6+oraclel环境搭建


由于工作原因,需要搭建如题的开发环境。
 
1.使用vmware创建虚拟机,创建方法网上有很多帖子介绍就这里就不再说了。
 
关键是

\
 
该图这个步骤,选择第一项和第三项有很大的区别,选择第一项并选择了安装镜像,VMWARE会自动完成整个安装过程。
 
如果选择了第三项,则创建完虚拟机后再进行安装,这个安装过程和在实际机器上的安装过程完全相同。
 
2.本人第一次安装就选择了第一项,安装完系统后进行后续安装时遇到了许多问题:
 
1)硬盘分区不能满足需求,所以新加硬盘进行挂载。
 
挂载过程:
 
 
 
[root@localhost dev]# fdisk /dev/sdb
 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
 
The number of cylinders for this disk is set to 2610.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
 
Command (m for help): new
Command action
   e   extended
   p   primary partition (1-4)
 
p
Partition number (1-4): 1
First cylinder (1-2610, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610): 2610
 
Command (m for help): write
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
 
[root@localhost dev]#
[root@localhost dev]# mke2fs -j /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5241198 blocks
262059 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000
 
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
 
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost dev]# mkdir /users
[root@localhost dev]# mount /dev/sdb1 /users
 
这个生效后,在重起机器后将不会自动挂载该分区,需要在
/etc/fstab中增加一行
 
 
/dev/sdb1   /users
ext3    defaults
1  2
在增加这个过程中由于输错了一个字母造成系统重起时不能启动,具体的解决办法请参看下一篇。
2)更换为中文后显示为方框乱码。
 
试了网上的很多方法,改了很多配置还是不成功。因为在安装时都是默认选项,可能是有些安装包没有安装造成的。
解决方法1:重新安装,虚拟机采用非自动安装方式,安装过程中提示的语言选择中文。
解决方法2:安装rpm -ivh ttfonts-zh_CN-2.14-6.noarch.rpm
rpm -ivh iiimf-le-chinput-0.3-16.i386.rpm --aid
rpm -ivh iiimf-x-12.1-10.EL.i386.rpm
rpm -ivh iiimf-gnome-im-switcher-12.1-10.EL.i386.rpm
 
3.使用非自动安装方式安装系统后上述两个问题都不会出现
安装oracle中出现问题:检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      未通过<<<<
解决方法:通过修改/etc/redhat-release内容为支持的版本redhat-4

摘自 apn172的专栏

相关内容

    暂无相关文章