今天,我需要在我的Ubuntu 16.04上彻底安装Oracle数据建模器(ODM),我已经成功地完成了以下步骤。
信息:以sudo非root用户身份完成
安装Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
设置 Java 版本(java
,javac
):
sudo update-alternatives --config java
sudo update-alternatives --config javac
然后检查版本是否正确。
java -version
javac -version
您应该会看到类似以下内容:
$ 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
安装Oracle数据建模工具(ODM)
在撰写本答案时,我使用的是最新稳定版本的ODM(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
关于使用--scripts
标志的小提示 (参考:alien手册)
-c,--scripts
尝试转换在安装和卸载软件包时要运行的脚本。请谨慎使用此选项,因为这些脚本可能设计用于与您的系统不同的系统,并可能会导致问题。建议您先手动检查这些脚本并查看它们执行的操作,然后再使用此选项。
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
StartupNotify=true
Actions=Window