Remote access to the oracle database

Source: Internet
Author: User
Remoteaccesstotheoracledatabase first we have installed the Oracle software in linux, created a database, and configured the listener server: You need to enable the listener (lsnrctlstart [listenername]); open the database (setoracle_sidjuan; sqlplusassys; startup); client (linux): Account:

Remote access to the oracle database first we installed the Oracle software in linux, and created a database, and configured the listening server: listener needs to be enabled (lsnrctl start [listener name]); open the database (set oracle_sid = juan; sqlplus/as sys; startup); client (linux): Account:

Remote access to the oracle database

First, we installed Oracle software in linux, created a database, and configured a listener.
Server:

You need to enable the listener (lsnrctl start [listener name]);

Open the database (set oracle_sid = juan; sqlplus "/as sys"; startup );

Client (linux ):
Account: salley password: salley_123
1. Install the linux client;
A. connection string configuration file/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames. ora;

The file configuration is as follows:

Song_tasks =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.139.20.) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = song)
)
)

Then use sqlplus "salley/salley_123 @ song_slave as sysdba" to connect to the database.

B. You can also use netca to select the Local Net Service Name configuration graphical interface to configure the connection string;

(Note that you must use an ordinary account with no dba permission to test the connection, otherwise the error ORA-01017: invalid username/password; logon denied will be reported)
C. You can also directly connect to sqlplus salley/salley_123@192.168.139.135/song

Original article address: remote access to the oracle database, thanks to the original author for sharing.

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.