1、配置环境变量
(1)添加ORACLE_BASE的系统变量
变量名:ORACLE_BASE
变量值:D:\app\kang
(2)添加ORACLE_HOME的系统变量
变量名:ORACLE_HOME
变量值:D:\app\kang\product\11.2.0\dbhome_1
(3)添加NLS_LANG的系统变量
变量名:NLS_LANG
变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
(4)修改Path
添加%ORACLE_SID%;%NLS_LANG%;%ORACLE_HOME%\bin;
2、配置监听服务
用管理员运行CMD
C:\windows\system32>netca重新配置监听和网络
再重新配置网络
检查a
# a Network Configuration File: D:\app\kang\product\11.2.0\dbhome_1\network\a
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = orcl)
(ORACLE_HOME = D:\app\kang\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\app\kang\product\11.2.0\dbhome_1\bin\oraclr11.dll") )
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = kang-PC)(PORT = 1521))
)
)
ADR_BASE_LISTENER = D:\app\kang
检查a
# a Network Configuration File: D:\app\kang\product\11.2.0\dbhome_1\network\a
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = orcl)
(PRESENTATION = RO)
系统变量path修改了怎么恢复)
)
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = kang-PC)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
这时候查看服务只有OracleRemExecService
启动监听
C:\windows\system32>lsnrctl start
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 15-9月-2011 11:16:38
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论