在 Ubuntu 16.04 上安装 Oracle Datamodeler [英] Installing Oracle Datamodeler on Ubuntu 16.04
问题描述
我正在我的 Ubuntu 16.04 工作站上设置 oracle 开发环境.安装 Oracle 12c 是一个挑战,但有几个非常有用的教程让我走上了正轨.按照 Dizwell 的说明 --SQL 开发人员的设置轻而易举.
最初,我能够将 oracle 的 rpm 包转换为 deb 并成功安装.我第一次启动 datamodeler 时它工作正常.在所有后续发布中,我收到以下一系列错误:
自定义 UI 类 oracle.bali.ewt.olaf2.OracleLookAndFeel 不在类路径上错误:Data Modeler 无法识别 JDK 版本
我已多次清除并重新安装 .deb 包,但无法再启动它.任何有关如何进行的建议将不胜感激.
为了安装DM,我按照Oracle Noob 的 说明如下:
sudo Alien --scripts data*rpmdpkg -i 数据*deb
我将此行添加到 datamodeler 启动脚本中:
unset -v GNOME_DESKTOP_SESSION_ID
今天,我需要在我的 Ubuntu 16.04 上彻底安装 Oracle Data Modeler (ODM),我已经通过以下步骤成功地完成了安装.
<块引用>信息:以 sudo 非 root 用户身份完成
安装 Java
sudo add-apt-repository ppa:webupd8team/javasudo apt-get 更新sudo apt-get install oracle-java8-installer
设置Java版本(java
,javac
):
sudo update-alternatives --config java须藤更新替代品 --config javac
然后检查版本是否正确
java -versionjavac -version
你应该会看到如下内容:
$ java -versionjava版本1.8.0_121"Java(TM) SE 运行时环境(构建 1.8.0_121-b13)Java HotSpot(TM) 64 位服务器 VM(构建 25.121-b13,混合模式)$ javac -versionjavac 1.8.0_121
安装 Oracle 数据建模器
在撰写此答案 (v4.1.5) 的当天,我使用的是最新、稳定的 ODM 版本.
<块引用>在开始之前我们需要alien
转换器,所以我们这样做:
$ sudo apt-get install alias
- 然后下载建模器(此处)
使用alien将
*.rpm
包转换为*.deb
cd
sudo Alien datamodeler-4.1.5.907-1.noarch.rpm # 可能需要一些时间须藤 dpkg -i datamodeler_4.1.5.907-2_all.deb
<块引用>
关于使用 --scripts
标志的小说明(参考:外星人手册)
-c, --scripts
尝试转换要在安装和删除包时运行的脚本.请谨慎使用,因为这些脚本可能被设计为在与您自己不同的系统上工作,并且可能会导致问题.建议您在使用此选项之前手动检查脚本并检查它们的作用.
在这一步之后,您可以从控制台运行它:
$ 数据建模器
<块引用>
注意:如果您想从启动时运行 Data Modeler,那么您需要在 /usr/share/applications
(对于所有用户)或 ~/.local 中添加新条目/share/applications/
(仅适用于当前用户)如下例所示.
[桌面入口]版本=1.0类型=应用程序名称=Oracle 数据建模器GenericName=Oracle 数据建模器Comment=Oracle SQL Developer Data Modeler 是一个免费的图形工具,可提高生产力并简化数据建模任务.执行=数据建模者终端=假MimeType=文本/普通;图标=数据建模器类别=SQLEditor;开发;启动通知=真操作=窗口;文档;
I'm in the process of setting up an oracle development environment on my Ubuntu 16.04 workstation. Installing Oracle 12c was a challenge, but there were several very useful tutorials that put me on the right track. Following Dizwell's instructions -- SQL developer was a piece of cake to set up.
Initially, i was able to convert oracle's rpm package to a deb and install it succesfully. The first time I launched datamodeler it worked properly. On all subsequent launches I recieve the following series of errors:
Custom UI class oracle.bali.ewt.olaf2.OracleLookAndFeel not on classpath
Error: Data Modeler can't recognize the JDK version
I've purged and reinstalled the .deb package several times, and I can no longer get it to launch. Any suggestions on how to proceed would be appreciated.
To install DM, I followed Oracle Noob's Instructions as below:
sudo alien --scripts data*rpm
dpkg -i data*deb
I added this line to the datamodeler startup script:
unset -v GNOME_DESKTOP_SESSION_ID
Today, I need to get thorough the installation of Oracle Data Modeler (ODM) on my Ubuntu 16.04 and I've done this with success with below steps.
Info: Done as a sudo non-root user
Install Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Set the version of Java (java
, javac
):
sudo update-alternatives --config java
sudo update-alternatives --config javac
Then check if the version is correct
java -version
javac -version
and you should see something like:
$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
$ javac -version
javac 1.8.0_121
Install Oracle Data Modeler
I use most updated, stable version of ODM for the day of writing this answer (v4.1.5).
Before start we need
alien
converter, so we do:$ sudo apt-get install alien
- Then download the modeler (here)
Use alien to convert the
*.rpm
package into*.deb
cd <where-you-download-the-rpm-package> sudo alien datamodeler-4.1.5.907-1.noarch.rpm # it might take some time sudo dpkg -i datamodeler_4.1.5.907-2_all.deb
Small note about using
--scripts
flag (ref:alien manual)-c, --scripts
Try to convert the scripts that are meant to be run when the package is installed and removed. Use this with caution, because these scripts might be designed to work on a system unlike your own, and could cause problems. It is recommended that you examine the scripts by hand and check to see what they do before using this option.
After this step, you're able to run it form the console:
$ datamodeler
Note: If you want to run Data Modeler from startup, then you need to add new entry into the
/usr/share/applications
(for all users) or~/.local/share/applications/
(only for current user) like the example below.[Desktop Entry] Version=1.0 Type=Application Name=Oracle Data Modeler GenericName=Oracle Data Modeler Comment=Oracle SQL Developer Data Modeler is a free graphical tool that enhances productivity and simplifies data modeling tasks. Exec=datamodeler Terminal=false MimeType=text/plain; Icon=datamodeler Categories=SQLEditor;Development; StartupNotify=true Actions=Window;Document;
这篇关于在 Ubuntu 16.04 上安装 Oracle Datamodeler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!