安装oracle 10g经常会遇到的问题解决方案

本文介绍了Oracle 10g在安装过程中遇到的问题及解决方法,包括配置Microsoft Loopback Adapter来避免网络核查失败,以及如何通过设置静态IP地址解决EM控制台登录问题。

最近在学习Oracle数据库,在安装过程中出现了一些小问题,虽说是小问题但却使我耗费大量精力去尝试总结,最后终于把问题解决掉了,心情不言而喻了。
       在安装oracle数据库时过程中主要困扰大家主要有两种情况:
一、他要先检查几个先决条件别一般都不会出问题,主要是在核查网络需求时,可能会遇到”警告“字样,网络核查失败(虽然可以继续安装使用,但在用IE登录oracle时会出现登录不上去的情况),一般情况下只要保证把网络断开就不会出现此类问题;

二、另一种情况就是在安装oracle 10g时,在先行条件检测时会出现,核查网络需求一项,检测网络配置结果是未执行,在下面会有提示信息:
      正在检查网络配置需求...检查完成。此次检查的总体结果为: 未执行 <<<<
建议方案: Oracle 支持在具有 DHCP 分配的 IP 地址的系统上进行安装。但在安装之前, 必须将 Microsoft LoopBack Adapter 配置为系统的主网络适配器。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。”通过查阅安装指导,终于找到了解决方案。
        解决方法:
       在安装ORACLE 10g前系统会检测安装的一些前提条件是否满足,往往会提示说:将Microsoft LoopBack Adapter配置为系统的主网络适配器。

        如果你没有这样配置,且你不希望安装过程由于这个而出错,那么过程如下:
到控制面板/添加硬件,在向导中选择“是,已经连接了此硬件”→“网络适配器”→“Microsoft Loopback Adapter”,添加完成,你会发现新建了个“本地连接”,用的就是这个假的“Microsoft Loopback Adapter”(因为根本就没有连接这个硬件,只是骗下Oracle而已)。把这个本地连接的IP设置一下(例如192.168.0.8)。好了,现在回去重新让Oracle检测一遍吧,应该通过了吧。
注:上面是XP系统的设置,其他系统大同小异,我的是vista系统,只是界面有些变化,在控制面板/添加硬件/网络适配器,在左侧选择厂商为 Microsoft的那个,右边会列出相关适配器类型,选择Microsoft回环适配器,一路下一步就可以了,记得在新建的"本地连接"中点右键选"属性",把IP设置一下,例如192.168.0.102,否则也是通不过的.
 

--  oracle 10G 在DHCP方面需要注意的

       oracle 10g em是绑定ip地址的,所以如果网络采用dhcp的话,那么ip一旦变化,就将无法启动console。
解决方法是:采用虚拟网卡的方式,
添加一个microsoft的网卡,loopback模式
在hosts文件中,添加10。10。10。10对应机器名,这样就在console中配置虚拟网卡这一选项,就可以不怕dhcp变换ip地址了。

具体方法是:
1。控制面板--->添加硬件--->下一步--->是,我已经连接了此硬件--->添加新硬件--->安装我手动从列表选择的硬件-->网络适配器--->
    microsoft---->Microsoft loopback Adapter--->下一步---->安装完成
2. 在hosts文件中添加   “10.10.10.10    机器名”

这样,无论你的DHCP怎么变化,ORACLE都能找到固定的10.10.10.10的IP地址。



    先前安装oracle10g时没有设定静态IP,使用DHCP获得的IP地址安装的,结果装好之后,EM打开之后总是报TNS-12541错误,可我明明监听打开了啊。上网找资料,查看安装向导,原来需要安装一个looback adapter,其目的是要主机名对应一个静态IP。
    下面是我重建EM的步骤:
1、安装loopback adapter。在控制面板添加硬件向导里进行,具体步骤就不用说了。
2、修改网络连接里新建的loopback adapter的属性,设置TCP/IP,添加一个IP,如:10.0.0.1,掩码:255.255.255.0,其他留空。在“高级”里设置DNS连接后缀,如:mydomain.com。
3、编辑C:/WINNT/system32/drivers/etc/hosts,添加IP和主机名的对应关系
    10.0.0.1   cocofish
4、在系统属性里更改计算机名,添加主机名后缀,如mydomain.com,然后重启计算机。
5、重建em console
    emca.bat -repos  recreate
6、启动em console
    emctl.bat start dbconsole
    
    完成之后,在浏览器中连接地址http://cocofish:1158/em,哈哈,监听正常了,试试登录,一切OK。

 



如下是oracle官方英文安装指导文件中关于Microsoft Loopback Adapter(微软回环适配器)的相关信息:

How to install the Microsoft Loopback adapter in Windows XP
View products that this article applies to.
Article ID : 839013
Last Review : April 22, 2004
Revision : 1.0
For a Microsoft Windows 2000 version of this article, see 236869 (http://support.microsoft.com/kb/236869/).
On This Page
SUMMARY
Manual installation
Unattended installation
MORE INFORMATION
APPLIES TO

SUMMARY
The Microsoft Loopback adapter is a testing tool for a virtual network environment where network access is not available. Also, you must use the Loopback adapter if there are conflicts with a network adapter or with a network adapter driver. You can bind network clients, protocols, and other network configuration items to the Loopback adapter, and you can install the network adapter driver or network adapter later while retaining the network configuration information. You can also install the Loopback adapter during the unattended installation process.


Back to the top

Manual installation
To manually install the Microsoft Loopback adapter in Windows XP, follow these steps: 1. Click Start, and then click Control Panel.
2. If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
3. Double-click Printers and Other Hardware, and then click Next.
4. Under See Also in the left pane, click Add Hardware,and then click Next.
5. Click Yes, I have already connected the hardware, and then click Next.
6. At the bottom of the list, click Add a new hardware device, and then click Next.
7. Click Install the hardware that I manually select from a list, and then click Next.
8. Click Network adapters, and then click Next.
9. In the Manufacturer box, click Microsoft.
10. In the Network Adapter box, click Microsoft Loopback Adapter, and then click Next.
11. Click Finish.
After the adapter is installed successfully, you can manually configure its options, as with any other adapter. If the TCP/IP properties are configured to use DHCP, the adapter will eventually use an autonet address (169.254.x.x/16) because the adapter is not actually connected to any physical media.

Note By default, TCP/IP properties are configured to use DHCP.


Back to the top

Unattended installation
To install the Microsoft Loopback adapter, use the following sample Unattend.txt file as a model for your Unattend.txt file: [NetAdapters]
Adapter01=Params.Adapter01

[Params.Adapter01]
InfID="*msloop"
; Microsoft Loopback Adapter
ConnectionName ="MS Loopback Adapter"

[NetProtocols]
MS_TCPIP=Params.MS_TCPIP
; TCP/IP parameters
; Use parameter values specific to your network

[Params.MS_TCPIP]
AdapterSections=params.TCPIP.Adapter01
DNS=yes
DNSSuffixSearchOrder=mycorp.com
EnableLMHosts=No
; Adapter Specific TCP/IP parameters
; Use parameter values specific to your network

[params.TCPIP.Adapter01]
SpecificTo=Adapter01
DNSDomain=mycorp.com
DNSServerSearchOrder=192.168.5.251
WINS=no
DHCP=no
IPAddress=192.168.5.10
SubnetMask=255.255.255.0
DefaultGateway=192.168.5.254

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值