Hello,

I am running an Ubuntu 16.0.4 host for a SQL Anywhere v17 server. I am trying to run iSQL but failing. Here are the two commands:

ubuntu@ip-172-26-8-253:~/SQL Anywhere Scripts$ source /opt/sqlanywhere17/bin64/sa_config.sh ubuntu@ip-172-26-8-253:~/SQL Anywhere Scripts$ dbisql -c "UID=dba;PWD=<passwd>;SERVER=<servername>;DBN=<dbname>"

Here is the error:

The DISPLAY environment variable is not set. It must be set for Interactive SQL to operate correctly.

What am I doing wrong here?

Thank you.

asked 14 Jul '17, 16:44

AlK's gravatar image

AlK
735313554
accept rate: 37%


Dbisql is a GUI application and needs to use your xwindow display. As the error message states, you need to set the DISPLAY environment variable in the shell before you run dbisql.

permanent link

answered 14 Jul '17, 20:23

Mark%20Culp's gravatar image

Mark Culp
24.8k9139296
accept rate: 41%

Sound of hand slapping forehead! Thanks Mark.

(26 Jul '17, 18:23) AlK
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×46

question asked: 14 Jul '17, 16:44

question was seen: 1,593 times

last updated: 26 Jul '17, 18:23