Dbeaver

提供: ArchWiki
2024年1月12日 (金) 18:16時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (→‎DBeaver configuration location: 飜訳)
ナビゲーションに移動 検索に移動

Dbeaver はフリーのマルチプラットフォーム、データベース管理ツールです。機能に関する詳しい情報は 公式ホームページ を見てください。

MySQL, PostgreSQL, MariaDB, SQLite, Oracle などの多数のデータベースがサポートされています。

(Eclipse のプラグインアーキテクチャに基づく) プラグインアーキテクチャを使っており、アプリケーションの挙動の多くを変えることができ、データベース固有の機能とデータベースに依存しない機能を実現しています。Dbeaver は Java で書かれているデスクトップアプリケーションで、Eclipse プラットフォームを基にしています。

インストール

dbeaver パッケージをインストールしてください。DBeaver は java 11 以降に依存しています。jvm のインストールと設定については、Java を参照してください。

様々なプラグインが存在します:

トラブルシューティング

JVM terminated error

以下のようにエラーが表示される場合:

 JVM terminated. Exit code=1
 /bin/java
 -XX:+IgnoreUnrecognizedVMOptions
 -Xms64m
 -Xmx1024m
 -jar /usr/lib/dbeaver//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
 -os linux
 -ws gtk
 -arch x86_64
 -showsplash
 -launcher /usr/lib/dbeaver/dbeaver
 -name Dbeaver
 --launcher.library /usr/lib/dbeaver//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834/eclipse_1630.so
 -startup /usr/lib/dbeaver//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
 --launcher.overrideVmargs
 -exitdata 5b000e
 -vm /bin/java
 -vmargs
 -XX:+IgnoreUnrecognizedVMOptions
 -Xms64m
 -Xmx1024m
 -jar /usr/lib/dbeaver//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"xinitrc に追加してみてください。

DBeaver 設定ファイルの場所

DBeaver設定ファイルの場所は~/.local/share/DbeaverDataです。

Java version

DBeaver relies on java 11 or above.

If you get an error message starting like this:

!ENTRY org.eclipse.compare 4 0 2021-02-25 11:11:08.257
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.compare [27]
   Unresolved requirement: Require-Bundle: org.eclipse.ui.navigator; bundle-version="[3.2.0,4.0.0)"; resolution:="optional"

This means that your java version is outdated. You can fix it by installing a newer java version and changing the default java.

GUI elements too big or filled with black rectangles

For HiDPI screens, GUI elements of Dbeaver might appear too big and certain parts of the interface might be filled with black rectangles.

This can be fixed by setting the following environment variables:

GDK_SCALE=2
GDK_DPI_SCALE=0.5

or this enviroment environment variables:

GDK_BACKEND=x11

Obviously the optimal values depend on the resolution of the screen, so a bit of trial and error might be needed. See HiDPI for more information.

Broken clipboard on Plasma Wayland between DBeaver and other applications

Running DBeaver with XWayland seems to fix the problem :

$ GDK_BACKEND=x11 dbeaver