400-833-8380

Redhat 6.5安装Grid和Oracle 11g - 02安装Redhat

发表日期:2018-09-27 17:47

1.5.4创建快照

 

为了防止后续安装不成功花费太多时间重装系统,把刚刚装好的初始系统创建快照,用于安装oracle失败可以快速重试。

关闭虚拟机,并在VMware Workstations选中oradb01虚拟机,菜单:虚拟机快照拍摄快照

 

1.5.5设置Linux启动到命令行界面

 

用root登录到Linux的图形化桌面,桌面空白处点击右键,打开配置终端


通过编辑一下文件,把5改成3,启动到命令行界面,修改完重启系统。

 

[root@oradb01]#Vi /etc/inittab

改完按ESC并输入wq!退出保存

重启系统可以使用shutdown –r now 命令

 

如果要从命令行界面启动到可以在root下使用一下startx命令临时启动到图形化界面(前提是已经安装了图形化界面)






1.5.6设置SecureCRT通过SSH连接Linux

 

安装完Redhat 6.5后, 系统启用了SSHD服务,可以使用SecureCRT直接通过SSH2远程连接并配置系统。除了用secureCRT也可以用PUTTY或者xshell等工具软件。











1.5.7配置YUM源为DVD系统安装光盘

 

为了从光盘上安装Oracle需要的依赖包,我们把DVD安装光盘设置成YUM的安装源。

注意:当安装完linux后,VMware Workstation会断开光驱的连接,需要我们手动连接,方法就是在虚拟机的右下角,找到光盘的图标,右键,选择”连接”


挂载光驱到/mnt

[root@oradb01 ~]# mount /dev/cdrom /mnt

mount: block device /dev/sr0 is write-protected, mounting read-only

[root@oradb01 ~]#









设置YUM安装源, 添加一下红色字体内容,保存并推出

[root@oradb01 ~]#vi /etc/yum.conf

[zhmici]

name =Redhat 6.5 DVD

baseurl=file:///mnt/Server/

gpgcheck=0

enabled=1

[root@oradb01 ~]#
















 


1.5.8安装VNC服务

 

查找VNC安装包
 

[root@oradb01 ~]# yum search tigervnc-server

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

EL                                                                                                                                           | 3.9 kB     00:00 ...

EL/primary_db                                                                                                                                | 3.1 MB     00:00 ...

=================================================================== N/S Matched: tigervnc-server ===================================================================

tigervnc-server.x86_64 : A TigerVNC server

 

  Name and summary matches only, use "search all" for everything.

[root@oradb01 ~]#


安装VNC服务
 

[root@oradb01 ~]# yum install tigervnc-server.x86_64 –y

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tigervnc-server.x86_64 0:1.1.0-5.el6_4.1 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=======================================================================

 Package                                    Arch                              Version                                       Repository                         Size

=======================================================================

Installing:

 tigervnc-server                            x86_64                            1.1.0-5.el6_4.1                               zhmici                            1.1 M

 

Transaction Summary

=======================================================================

Install       1 Package(s)

 

Total download size: 1.1 M

Installed size: 2.9 M

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : tigervnc-server-1.1.0-5.el6_4.1.x86_64                                                                                                           1/1

zhmici/productid                                                                                                                             | 1.7 kB     00:00 ...

  Verifying  : tigervnc-server-1.1.0-5.el6_4.1.x86_64                                                                                                           1/1

 

Installed:

  tigervnc-server.x86_64 0:1.1.0-5.el6_4.1                                                                                                                         

 

Complete!

[root@oradb01 ~]#

启用VNC服务并关闭防火墙

 

[root@oradb01 ~]# vncserver

 

You will require a password to access your desktops.

 

Password: oracle           /--设置VNC连接密码---/

Verify: oracle

xauth:  creating new authority file /root/.Xauthority

xauth: (stdin):1:  bad display name "oradb01:1" in "add" command

New 'oradb01:1 (root)' desktop is oradb01:1

Creating default startup script /root/.vnc/xstartup

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/oradb01:1.log

[root@oradb01 ~]#service iptables stop
 





















使用客户端vncviewer


后续我们会使用相同的方法用oraclegrid两个用户通过VNC连接安装数据库软件和Grid软件。

 

1.5.9通过Xmanager传输安装文件

  
进入Xmanager Enterprise 5的软件目录,运行xftp



连接之后选择挂载点/software, 选择需要传输的文件




 

标签:    
相关文章

Redhat 6.5安装Grid和Oracle 11g - 0...

使用RedHat安装Grid和Oracle 11g,使用UDEV配置ASM磁盘...

日期:2018-09-27 浏览次数:275

Redhat 6.5安装Grid和Oracle 11g - 0...

使用RedHat安装Grid和Oracle 11g,使用UDEV配置ASM磁盘...

日期:2018-08-04 浏览次数:236