Linux db2cc cannot open display

If you are having problem as mention below, you may try this.

—————————————————
Problem Scenario db2cc
—————————————————
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc
No protocol specified

Error : Can not open display
db2inst1@ubuntu:/home/xyiry$

—————————————————
Problem Solving db2cc
—————————————————
Type in this command in terminal.

db2inst1@ubuntu:/home/xyiry$ xhost +
db2inst1@ubuntu:/home/xyiry$ su db2inst1
db2inst1@ubuntu:/home/xyiry$ export DISPLAY=:0.0
db2inst1@ubuntu:/home/xyiry$ db2cc

Hope it works…


About this entry