没有网络配置之前的Oracle的状态
1、注册表里面的信息
ORACLE_BASE:
ORACLE_HOME:
2、Oracle相关的服务信息
修改以后的的配置
3、网络配置的文本路径
4、sqlnet.ora内容
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
配置监听器
点击Net Manager打开配置网络。
按照图片上指示的指示操作。
我们来配置监听服务。
配置监听位置
配置数据库
别告诉我你找不到文件在哪里?再看看这个目录,多出了一个文件。
文件内容
# listener.ora Network Configuration File: F:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = TEST)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = TEID)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC201304011949)(PORT = 1521))
)
ADR_BASE_LISTENER = F:\Oracle\product\11.2.0\dbhome_1\log
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = TEST)
(ORACLE_HOME = F:\Oracle\product\11.2.0\dbhome_1)
(SID_NAME = TEID)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC201304011949)(PORT = 1521))
)
ADR_BASE_LISTENER = F:\Oracle\product\11.2.0\dbhome_1\log
不难理解,就是我们刚刚配置的东东嘛。再在控制台敲如下命令:
再看看服务。
配置服务命名
配置网络服务名
选择协议
配置主机名
配置服务名
测试
点击文件保存。我们又再一次看看某个目录。
又多一个文件,你猜得出的。内容如下:
# tnsnames.ora Network Configuration File: F:\Oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
GP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC201304011949)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
)
)
# Generated by Oracle configuration tools.
GP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC201304011949)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
)
)
我们再回过头来看看。
最初的那个文件对应的是那个呢?大家应该猜得出了。好了,这篇到这里结束了。下一篇,我要谢谢Oracle常用的工具。顺便开启配置一下EM。