Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1612059
  • 博文数量: 409
  • 博客积分: 6240
  • 博客等级: 准将
  • 技术积分: 4908
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-01 00:04
文章分类

全部博文(409)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(13)

2015年(22)

2013年(4)

2012年(240)

2011年(127)

分类: Oracle

2012-07-28 10:36:44

背景:Windows下oracle服务、进程均已关闭状态下,进行操作。
--------------------------
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\111111>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 7月 27 13:43:44 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn system/zhangle as sysdba;
ERROR:
ORA-12560: TNS: 协议适配器错误


SQL> quit

C:\Documents and Settings\111111>lsnrctl start

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 27-7月 -2012 13:4
4:09

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

启动tnslsnr: 请稍候...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
系统参数文件为G:\oracle\product\10.2.0\db_1\network\admin\listener.ora
写入G:\oracle\product\10.2.0\db_1\network\log\listener.log的日志信息
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abel-jiang)(PORT=1521)))
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abel-jiang)(PORT=1521)))
LISTENER 的 STATUS
------------------------
别名                      LISTENER
版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
启动日期                  27-7月 -2012 13:44:11
正常运行时间              0 天 0 小时 0 分 1 秒
跟踪级别                  off
安全性                    ON: Local OS Authentication
SNMP                      OFF
监听程序参数文件          G:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
监听程序日志文件          G:\oracle\product\10.2.0\db_1\network\log\listener.log

监听端点概要...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=abel-jiang)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
服务摘要..
服务 "PL***tProc" 包含 1 个例程。
  例程 "PL***tProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功

C:\Documents and Settings\111111>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 7月 27 13:44:21 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn system/zhangle as sysdba;
ERROR:
ORA-12560: TNS: 协议适配器错误


SQL> startup;
ORA-12560: TNS: 协议适配器错误
SQL> quit

C:\Documents and Settings\111111>oracle

C:\Documents and Settings\111111>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 7月 27 13:52:39 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn system/zhangle as sysdba;
ERROR:
ORA-12560: TNS: 协议适配器错误


SQL> quit

C:\Documents and Settings\111111>oracle kaige
Press CTRL-C to exit server:

再开启一个cmd命令行,进行操走,上面的不能关闭(ctrl+c),关闭则oracle实例自动停掉了。。。就算下面的执行完毕,也不行。。。所以,还是在系统服务里面打开,开始——运行——services.msc,找到oracle的服务OracleServiceKAIGE,启动这个父母即可,KAIGE是实例名、服务名。如下:
-----------------------------------------------------------------
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\111111>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 7月 27 13:52:11 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn system/zhangle as sysdba;
ERROR:
ORA-12560: TNS: 协议适配器错误


SQL> conn system/zhangle as sysdba;
已连接到空闲例程。
SQL> quit
ERROR:
ORA-03113: 通信通道的文件结束


已断开连接

C:\Documents and Settings\111111>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 7月 27 13:56:16 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn system/zhangle as sysdba;
ERROR:
ORA-12560: TNS: 协议适配器错误


SQL> conn system/zhangle as sysdba;
已连接到空闲例程。
SQL> startup;
ORACLE 例程已经启动。

Total System Global Area  599785472 bytes
Fixed Size                  1250356 bytes
Variable Size             188746700 bytes
Database Buffers          402653184 bytes
Redo Buffers                7135232 bytes
数据库装载完毕。
数据库已经打开。
SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
kaige

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options 断开

C:\Documents and Settings\111111>
阅读(2234) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~