View the terminal IP address of the Oracle server

Source: Internet
Author: User

Many people think that it is not practical to view the terminal IP address connected to the Oracle server. If it is only a data server, it is useless. If there is a central server and a distributed server, it will reflect its role. Specific procedures:

Select sys_context ('userenv', 'IP _ address') from dual;

Select utl_inaddr.get_host_address (terminal) from v $ session;

Select hostname from v $ session;

Ping hostname;

In the system that was previously in charge, the data on the database server needs to be extracted by data servers on multiple other nodes. Therefore, when a database server encounters a problem, you cannot always send someone to perform on-site maintenance, because each database server is located in other cities, you can only remotely connect to the database, view the ip address of the node database, and use the legendary plsql to solve the problem, travel, labor, and time savings for the company.

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.