Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9255746
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: Oracle

2011-12-05 15:01:15

ORA-12514 监听程序当前无法识别连接描述符中的服务(2008-08-27 16:54:43)
var $tag='刘帝勇,ora-12154,oracle,it'; var $tag_code='7e1c450273524efd847270b4e015f191'; var $r_quote_bligid='3f2ef1180100aj1a'; var $worldcup='0'; var $worldcupball='0'; 标签: 刘帝勇 ora-12154 oracle it 分类: ORACLE
    某日,出现如下错误:

C:\Documents and Settings\Administrator>sqlplus ifsapp/ifsapp@smtest

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 8月 27 16:53:09 2008

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

ERROR:
ORA-12514: TNS: listener does not currently know of service requested in connect descriptor

请输入用户名:

经检查:
    1. 检查服务器端服务为【已启动】状态。
    2. 客户端tnsping状态为:
C:\Documents and Settings\Administrator>tnsping smtest

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 27-8月 -
2008 16:57:25

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

已使用的参数文件:
D:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora


已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 10.10.2.60)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = TEST)))
OK (10 毫秒)
    3.服务器端
C:\Documents and Settings\Administrator>SET ORACLE_SID=TEST

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

SQL*Plus: Release 10.2.0.2.0 - Production on 星期三 8月 27 16:49:08 2008

Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.

SQL> conn / as sysdba;
已连接到空闲例程。
SQL> select * from v$instance;
select * from v$instance
*
第 1 行出现错误:
ORA-01034: ORACLE not available

    有点想不明白,明明在Windows服务列表中看到服务是启动的,可为何是空闲例程。想了半天,才猛然想起:此前为了将服务器重启时间减少,而将HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb10g_home1 下的ORA_TEST_AUTOSTART值设置为FALSE。参看文章《Windows 下逐状态启动 Oracle数据库》。于是:

SQL> startup;
ORACLE 例程已经启动。

Total System Global Area  645922816 bytes
Fixed Size                  1291108 bytes
Variable Size             432016540 bytes
Database Buffers          209715200 bytes
Redo Buffers                2899968 bytes
数据库装载完毕。
数据库已经打开。
SQL>

    问题解决。
阅读(1014) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~