Using Sqlplus to remotely access Oracle on Linux

Source: Internet
Author: User
Tags sqlplus

Centos6.4

Find instant Client from Oracle website:

Http://www.oracle.com/technetwork/cn/topics/linuxsoft-100466-zhs.html

Download Basic and Sqlplus

What I'm downloading here is

Instantclient-basic-linux32-11.2.00.1.zip

Instantclient-sqlplus-linux32-11.2.00.1.zip

Unzip to the same directory

This is what I've extracted here.

Ll/home/www/oracle_client_linux

Then you need to add the directory to the environment variable

VI ~/.BASHRC
#. bashrc# Source Global Definitions if  Then /etc/bashrcfi# User specific aliases and functionspath= $PATH: $HOME/           Binexport PATHld_library_path=/home/www/oracle_client_linuxexport ld_library_path

The red part is the newly added environment variable

Then use the command to log in directly

$user _name/$password@hostname:$port/$service _name

The marked red part is the variable

Change to a string that corresponds to the meaning of it.

Enter after the following interface:

Well, you can execute the command on it.

Using Sqlplus to remotely access Oracle on Linux

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.