OCP-Win8系统利用VMware10.0,RHEL6.3虚拟机安装Oracle10g-32位linux完整图文教程(3)

物理机:win8核心板    虚拟机:RHEL6.3     虚拟机版本:VMware10.0.0
OCP-VMware虚拟机安装Oracle10g-32 linux·图文(2)中完成了第二部分
上次最后,我提到匪夷所思的事情:
要知道,我在安装Oracle10过程中一直在处理一个问题,就是win8下的VMware10.0.0虽然能够出现两块虚拟网卡vmnet1、vmnet8,可是在虚拟机下,关于eth0网卡竟然不能启用,而且在虚拟机启动之前就报错了:

显然,这对于OCP来说是致命的,没有网络,别人不能访问,数据库就是个摆设了,这个也必须处理。

我的另外一篇日志也谈到关于虚拟机网卡的问题,网上的所有解决方案都尝试过了,在这里还要感谢QQ群:44268217(中国Linux工程师)的清风朋友帮我远程处理。最后,我也只能把这个问题归结为VMware10.0.0针对Win8系统不稳定了。
我只好苦苦的查看日志文件了vmware.log:突然发现日志文件也没想象中的困难(呵呵,ctrl+F嘛)截图:  
所以,就可以发现
 Ethernet0: can't get driver version (6)
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: VNET: ethernet0 enable link state propagation, lsp.state = 5
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: VNET: MACVNetPort_Connect: Ethernet0: can't get driver version (6)
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: Msg_Post: Warning
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: [msg.vnet.connectvnet] Could not connect Ethernet0 to virtual network "VMnet0". More information can be found in the vmware.log file.
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: [msg.device.startdisconnected] Virtual device Ethernet0 will start disconnected.
2014-02-23T14:36:54.653+08:00| vcpu-0| I120: ----------------------------------------
解决方案:
利用控制面板卸 载掉vmware10.0.0, 安装VMware9.0.0 吧,因为9.0.2也可能也不让我顺利了。扯远了,欢迎回来。
并且利用ipconfig命令查看ip地址 192.168.168.180
我们接着安装Oracle的网络部分net:
客户端安装过程的NET-configuration assistant配置

 //配置监听器
 
 
 
 
 
 //配置本地服务器名称
 
 
 
 //在此之前,我的网卡问题还是没有解决的,我暂且设置了192.168.168.168
 
 
 
 
 
//安装过程中的终端log消息:
 

 
 
至此,完成net设置,进行测试:(那个successful是骗人的,O(∩_∩)O~,至少过程没错也没报错)
//首先测试监听器
[oracle@localhost ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-FEB-2014 13:39:32
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER//消息
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                23-FEB-2014 13:16:05
Uptime                    0 days 0 hr. 23 min. 27 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /opt/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "myocp01" has 1 instance(s).
  Instance "myocp01", status READY, has 1 handler(s) for this service...
Service "myocp01XDB" has 1 instance(s).
  Instance "myocp01", status READY, has 1 handler(s) for this service...
Service "myocp01_XPT" has 1 instance(s).
  Instance "myocp01", status READY, has 1 handler(s) for this service...
The command completed successfully//可以说监听器是正常的了
//继续测试本地服务器的连通性
[oracle@localhost ~] $ tnsping 192.168.168.168

TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-FEB-2014 13:39:48
Copyright (c) 1997, 2005, Oracle.  All rights reserved.
Used parameter files:

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=( SERVICE_NAME=192.168.168.168))(ADDRESS=(PROTOCOL= TCP)(HOST= 192.168.168.168)(PORT= 1521)))
TNS-12543: TNS:destination host unreachable//果然,坑我了。
//查看配置文件
[oracle@localhost admin]$  tail -n 300 tnsnames.ora 
# tnsnames.ora Network Configuration File: /opt/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
MYOCP01 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)( HOST = 192.168.168.168)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = myocp01)
    )
  )(省略)
解决:载掉vmware10.0.0, 安装VMware9.0.0
并且利用ipconfig命令查看ip地址 192.168.168.180

[oracle@localhost admin]$ vim  tnsnames.ora  
# tnsnames.ora Network Configuration File: /opt/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
MYOCP01 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)( HOST = 192.168.168.168)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = myocp01)
    )
  )(省略)

[oracle@localhost admin]$ tnsping 192.168.168.180
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 23-FEB-2014 15:47:59
Copyright (c) 1997, 2005, Oracle.  All rights reserved.
Used parameter files:

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA= (SERVICE_NAME=192.168.168.180))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.168.180)(PORT=1521)))
TNS-12541: TNS:no listener//可以认为连通性没问题了,至少连接通了。

至此,Oracle10g数据库彻底完成,也设置完成,之后就是利用命令来做实验了。
//SQLPLUS以管理员(sys)登陆数据库:
[oracle@localhost admin] $ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Feb 23 15:44:27 2014
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup;

最后,再提出一个问题:以后修改参数都要执行这个命令
SQL>create pfile from spfile

作为对Oracle没任何经验的菜鸟,仅仅完成了安装过程,有些东西也不知道是什么。
感谢我的04级学长(哈哈,又碰到一个),感谢Node诺达OCP讲师刘老师,感谢生命。
喜欢请推荐给需要的朋友http://redcisco.blog.163.com/

你可能感兴趣的:(Oracle运营商)