Linux Oracle Boot Sqlplus cannot connect

Source: Internet
Author: User
Tags sqlplus

1. Fault description

I'm free today. An Oracle test server is installed on Linux, and the installation is complete when you log in using SYSDBA you encounter problems

[Email protected] ~]$ Sqlplus/as SYSDBA


Sql*plus:release 11.2.0.1.0 Production on Fri 29 22:32:46 2014


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


ERROR:

Ora-12162:tns:net Service name is incorrectly specified


2. Failure analysis

Confirm Oracle_home and ORACLE_SID environment variable parameters

[Email protected] ~]$ echo $ORACLE _home

/u01/app/oracle/product/11.2.0/dbhome_1

[Email protected] ~]$ echo $ORACLE _sid

[Email protected] ~]$

Oracle_sid No display


3. Fault resolution

Add Oracle_sid parameter

[Email protected] ~]$ export ORACLE_SID=ORCL

[Email protected] ~]$ echo $ORACLE _sid

Orcl


Test Connection Login Sysdba

[Email protected] ~]$ Sqlplus/as SYSDBA


Sql*plus:release 11.2.0.1.0 Production on Fri 29 22:35:08 2014


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



Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production

With the partitioning, OLAP, Data Mining and Real application testing options


Sql> exit


This article is from the "write-free" blog, please be sure to keep this source http://zymin0823.blog.51cto.com/990123/1546546

Linux Oracle Boot Sqlplus cannot connect

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.