Oracle installation failure: Perfect solution Xhost + Error: Unable to open display ""

Source: Internet
Author: User

Oracle Installation

First switch to root user, execute Xhost +

Then switch to Oracle User and execute export display=:0.0

Garbled execution Export Lang=us_en

Here are some common questions to tell you about the following two situations:

One is a locally run command and the other is a remote SSH command installation.

Display Science

The display variable is used to set where the graphic will be displayed. For example, CentOS, you log in with a graphical interface, display is automatically set to display=:0.0 for explicit to the local monitor, then through the terminal tool (for example: Xshell), run the graphical interface program, If not set, the system is not allowed to start the program.
Executing the Xhost + command (which makes it accessible to all customers)

The normal return information is:
Access control disabled,clients can connect from any host

If Xhost + cannot execute, error: xhost:unable to open display ""

You can enter the command export display=:0 Execute

Then execute Xhost +

Xhost + IP (name indicates that the service can be used by the IP machine)

Remote SSH Installation

Install Xmanager first, self-Baidu download installs, otherwise cannot play the window.

First switch to root user, execute Xhost + ()

Normal return: Access control disabled,clients can connect from any host

Cut back to Oracle user, execute: Export display=192.168.1.2:0.0

For example, your Oracle server IP is 192.168.0.1, the IP of the client to access is 192.168.1.2, when you connect the database with 192.168.1.2, you want to display the image interface on 192.168.1.2, it is necessary to export display=192.168.1.2:0.0

Then execute the Oracle installation file, which will prompt the popup window authorization:

650) this.width=650; "class=" AlignCenter size-full wp-image-2748 "src=" http://www.vuln.cn/wp-content/uploads/2016/ 05/display.jpg "alt=" Unable to open display "width=" 366 "height=" 251 "style=" border:none;margin:0px Auto 15px;height: auto; "/>

When you click Yes, the window will pop up normally.

If the following error occurred after the pop-up window:

650) this.width=650; "class=" AlignCenter "src=" http://www.vuln.cn/wp-content/uploads/2016/05/ 616b40704337a0eebeb0cf9f825ca9d5.jpg "style=" border:none;margin:0px auto 15px;height:auto;/>


Oracle installation failure: Perfect solution Xhost + Error: Unable to open display ""

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.