Sqlplus login to remote ORACLE host

Source: Internet
Author: User

D: \ oraclexe \ app \ oracle \ product \ 10.2.0 \ Server \ Network \ admin

Tnsnames. ora

 
Xe = (description = (address = (Protocol = TCP) (host = spark) (Port = 1521) (CONNECT_DATA = (Server = dedicated) (SERVICE_NAME = Xe ))) ora254 = (description = (address_list = (address = (Protocol = TCP) (host = server-name) (Port = 1521) (CONNECT_DATA = (SID = test ))) extproc_connection_data = (description = (address_list = (address = (Protocol = IPC) (Key = extproc_for_xe) (CONNECT_DATA = (SID = plsextproc) (Presentation = Ro ))) export lr_connection_data = (description = (address_list = (address = (Protocol = IPC) (Key = extproc_for_xe) (CONNECT_DATA = (SID = clrextproc) (Presentation = Ro )))

Ora254: configure the new host:

Open sqlplus input:

Connect sys @ ora254 as sysdba

Password :***

Connection successful.

Diagnosis: Use the tnsping command. CMD->

$ Tnsping ora254

Output:

TNS Ping utility for 32-bit windows: Version 10.2.0.1.0-production on 22-9-

14:03:43 2011

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

Used parameter files:

D: \ oraclexe \ app \ oracle \ product \ 10.2.0 \ Server \ Network \ admin \ sqlnet. ora

Alias resolved using tnsnames Adapter

Attempting to contact (description = (address_list = (address = (Protocol = TCP)

(Host = server-PC) (Port = 1521) (CONNECT_DATA = (SID = test )))

OK (20 ms)

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.