Home > Database > Mysql Tutorial > body text

Oracle Connect to Idle Instance解决方法

WBOY
Release: 2016-06-07 17:56:00
Original
1108 people have browsed it

本文将介绍Oracle如何解决Connect to Idle Instance问题,需要了解的朋友可以参考下

解决Connect to Idle Instance问题
第一步
查看Oracle_SID.
[oracle@linuxserver ~]$ echo $ORACLE_SID
cjdl
这里的SID要和初始化文件spfilecjdl.ora里的一样才行。
[oracle@linuxserver ~]$ cd $ORACLE_HOME
[oracle@linuxserver 11.2.0]$ cd dbs
[oracle@linuxserver dbs]$ ls
hc_cjdl.dat hc_DBUA0.dat init.ora lkCJDL orapwcjdl spfilecjdl.ora
多数情况下,都是因为这里出了问题。
第二步
[oracle@linuxserver dbs]$ export ORACLE_SID=cjdl
一般来讲,export一下,就可以正常连接了。
第三步
[oracle@linuxserver dbs]$ sqlplus / as sysdba
Ok!正常连接。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!