系统: windows xp 32bit
oracle 版本: 10.2.0.1.0
环境准备:
1. 空间 C:1G
D:20G
2. 网络:
因服务器使用DHCP,ORACLE安装检测报错:对于DHCP,设置loopback网络适配器为主适配器。
需要做一些设置:
设置Microsoft loopback Adapter ,停用原有的本地连接。为LOOPBACK 虚拟网卡设置固定IP。
安装:
去掉勾选创建启动数据库。
设置监听器:Net Configuration Assistant -> TCP/1521
cmd>lsnrctl
LSNRCTL> status
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Bin)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
启动日期 14-9月 -2010 16:12:20
正常运行时间 0 天 17 小时 54 分 0 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 D:\oracle\product\10.2.0\db_2\network\admin\listener.o
ra
监听程序日志文件 D:\oracle\product\10.2.0\db_2\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Bin)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
服务摘要..
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
cmd>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 15 09:44:56 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS: 协议适配器错误
复制启动文件
D:\oracle\product\10.2.0\db_2\dbs\initdw.ora initAT.ora
手动创建实例
oradim -NEW -SID AT -STARTMODE manual -PFILE "D:\oracle\product\10.2.0\db_2\dbs\initAT.ora"
配置TNSNAME.ORA
AT=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Bin)(PORT = 1521))
)
(CONNECT_DATA =
(SID = AT
(PRESENTATION = RO)
)
)
cmd>SQLPLUS /NOLOG
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 15 09:57:02 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> CONN /AS SYSDBA
ERROR:
ORA-12560: TNS: 协议适配器错误
SQL> EXIT
cmd>set oracle_sid=AT
cmd>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 15 10:03:08 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
已连接到空闲例程。
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-01506: missing or illegal database name
阅读(640) | 评论(0) | 转发(0) |