首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sqlplus / as sysdba在windows中不工作,错误: ORA-12560: TNS:协议适配器错误

sqlplus / as sysdba在windows中不工作,错误: ORA-12560: TNS:协议适配器错误
EN

Database Administration用户
提问于 2017-05-22 17:40:22
回答 1查看 10.1K关注 0票数 -1

我试图在Oracle11g中使用sqlplus / as sysdba登录,但它要求输入密码。所以我尝试使用sqlplus "/ as sysdba"登录,因为我使用的是Windows。但它显示了以下错误:

代码语言:javascript
复制
sqlplus "/ as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on Mon May 22 12:51:22 2017

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

ERROR:

ORA-12560: TNS:protocol adapter error

我在谷歌上搜索了同样的问题,但没有什么能帮到我。

EN

回答 1

Database Administration用户

发布于 2017-05-23 06:36:32

好像数据库还没打开。这可能是由于重新启动机器和

代码语言:javascript
复制
1. Go to the windows machine that hosts the Oracle database server
2. Go to Start -> Run -> Services.msc in windows. Locate OracleService (here OracleServiceORCL) and click on "Start" to start the oracle database service (if not already running)

3. Once it is up and running, from the command prompt run the following:

   tnsping < tnsalias >

   (tnsalias entry you can find it in tnsnames.ora file)
票数 1
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/174241

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档