Experience of connecting SQL plus to Oracle on the server

Source: Internet
Author: User
Today, when I use sqlplus to connect to Oracle on the server, I cannot connect to it. The database name on the server is cebdsp, and tnsnames. ora is configured

Today, when I use sqlplus to connect to Oracle on the server, I cannot connect to it. The database name on the server is cebdsp, and tnsnames. ora is configured

When I used sqlplus to connect to Oracle on the server today, I couldn't connect it. The database name on the server is cebdsp, and tnsnames. ora is configured

Cebdsp =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.101) (PORT = 1521 ))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = cebdsp)
)
)

View the tnsping cebdsp in the command line.

C: \ Users \ zyxuc> tnsping cebdsp

TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0-Production on 30-1-
18:41:15 2012

Copyright (c) 1997,200 5, Oracle. All rights reserved.

Used parameter files:
D: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ sqlnet. ora

TNS-03505: unable to resolve name

The reason is that there is a space in front of the Coordination cebdsp. After deleting the space, run: tnsping cebdsp to get:

C: \ Users \ zyxuc> tnsping cebdsp


TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0-Production on 30-1
18:41:35 2012

Copyright (c) 1997,200 5, Oracle. All rights reserved.

Used parameter files:
D: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ sqlnet. ora

Alias resolved using TNSNAMES Adapter
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168
1.101) (PORT = 1521) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = cebds
)))
OK (30 ms)

Run sqlplus cebdsp/cebdsp @ cebdsp to test whether the database can be connected to the cebdsp database:

C: \ Users \ zyxuc> sqlplus cebdsp/cebdsp @ cebdsp
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE does not work

Finally, permission issues were discovered. I used a non-Administrator user and did not have the permission. Just change it to the Administrator user.

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.