第一种办法:直接22端口用dmdba用户登录!!!百试百灵
第二种:以下方式为参考:
[dmdba@bogon tool]$ ./console
(Console:62267): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(Console:62267): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(Console:62267): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(Console:62267): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion 'GDK_IS_DISPLAY (display)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_monitor_at_point: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_monitor_geometry: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
(Console:62267): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f3998bb2597, pid=62267, tid=139885766346496
#
# JRE version: OpenJDK Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: OpenJDK 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgdk-x11-2.0.so.0+0x7b597] gdk_window_enable_synchronized_configure+0x7
#
# Core dump written. Default location: /dm8/tool/core or core.62267
#
# An error report file with more information is saved as:
# /dm8/tool/hs_err_pid62267.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
./console: line 20: 62267 Aborted (core dumped) "$JAVA_HOME/bin/java" -Xms256m -Xmx2048m -XX:+PerfDisableSharedMem -DDM_HOME="$DM_HOME" -Djava.library.path="$DM_HOME/bin" -Ddameng.log.file="$TOOL_HOME/log4j.xml" -DeclipseHome="$TOOL_HOME" -Dosgi.nl="$INSTALL_LANGUAGE" -Ddameng.dts.explorer.root="$TOOL_HOME/workspace/local/dts" -Ddameng.isql.explorer.root="$TOOL_HOME/workspace/local/isql" -Duse_bak2=true -Dapp.name=console -jar "$TOOL_HOME/plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar" -os linux -ws gtk -arch x86_64 -showsplash "$TOOL_HOME/console.bmp" -data "$TOOL_HOME/workspace/console" -product com.dameng.console.product -name Console
[dmdba@bogon tool]$
[dmdba@bogon tool]$
[dmdba@bogon tool]$
解决如下:
检查变量:
[dmdba@bogon tool]$ echo $DISPLAY
[dmdba@bogon tool]$ exit
logout
切回root设置:
[root@bogon ~]# export DISPLAY=:2
[root@bogon ~]# xhost +
xhost: unable to open display ":2"
[root@bogon ~]# export DISPLAY=:0
[root@bogon ~]# xhost +
access control disabled, clients can connect from any host
[root@bogon ~]# su - dmdba
切回dmdba用户
Last login: Tue Aug 3 11:12:37 CST 2021 on pts/4
[dmdba@bogon ~]$ export DISPLAY=:0
[dmdba@bogon ~]$ xhost +
access control disabled, clients can connect from any host
[dmdba@bogon ~]$ cd /dm8/tool/
[dmdba@bogon tool]$ ls
analyzer console dbca.sh dropins hs_err_pid62246.log manager.bmp p2 templates
analyzer.bmp console.bmp disql dts hs_err_pid62267.log monitor plugins version.sh
backup.xml core.62246 dmagent dts.bmp log4j.xml monitor.bmp restore.xml workspace
configuration core.62267 dmservice.sh dts_cmd_run.sh manager nca.sh server_connection.xml
再次执行:
[dmdba@bogon tool]$ ./console
更多资讯请上达梦技术社区了解:https://eco.dameng.com