Oracle SQL Developer:通过 Dropbox 共享配置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1101390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 18:33:27  来源:igfitidea点击:

Oracle SQL Developer: sharing configuration via Dropbox

sqloracleoracle-sqldeveloperdropbox

提问by Mark Harrison

I would like to share my Oracle SQL Developer configuration across my several computers that use Dropbox.

我想在使用 Dropbox 的多台计算机上共享我的 Oracle SQL Developer 配置。

How can I do this?

我怎样才能做到这一点?

采纳答案by Mark Harrison

Here's what I did.

这就是我所做的。

#!/bin/bash

# share sqldeveloper config via dropbox
# this is for sqldeveloper 1.5.4, change your paths as necessary
# strace or dtruss sqldeveloper to see what config files are accessed

ITEMS="
o.ide.11.1.1.0.22.49.48/preferences.xml
o.ide.11.1.1.0.22.49.48/settings.xml
o.jdeveloper.cvs.11.1.1.0.22.49.48/preferences.xml
o.jdeveloper.subversion.11.1.1.0.22.49.48/preferences.xml
o.jdeveloper.vcs.11.1.1.0.22.49.48/preferences.xml
o.sqldeveloper.11.1.1.59.40/preferences.xml
o.sqldeveloper.11.1.1.59.40/product-preferences.xml
"

INST=~/Library/Application\ Support/SQL\ Developer/system1.5.4.59.40
DROP=~/Dropbox/Library/SQL\ Developer/system1.5.4.59.40

# note, you can zap your configuration if you are not careful.
# remove these exit lines when you're sure you understand what's
# going on.

exit

# copy from real folder to dropbox
for i in $ITEMS; do
    echo uncomment to do this once to bootstrap your dropbox
    #mkdir -p "`dirname "$DROP/$i":`"
    #cp -p "$INST/$i" "$DROP/$i"
done

exit

# link from dropbox to real folder
for i in $ITEMS; do
    rm "$INST/$i"
    ln -s "$DROP/$i" "$INST/$i"
done

回答by Amit Naidu

In case anyone comes here looking for the location of user configured options like me, they are hiding here:

如果有人来这里寻找像我这样的用户配置选项的位置,他们会躲在这里:

%appdata%\SQL Developer\

This is useful to know when copying your preferences to a new computer. If you are looking for the connection settings, search for connections.xmlin that directory. There are also some other configuration files here that you may need:

将您的首选项复制到新计算机时,了解这一点很有用。如果您正在寻找连接设置,请connections.xml在该目录中搜索。这里还有一些您可能需要的其他配置文件:

sqldeveloper.conf – <sqldeveloper dir>\sqldeveloper\bin\
ide.conf – <sqldeveloper dir>\ide\bin\

This is for Oracle SQL Developer 3.

这适用于 Oracle SQL Developer 3。

回答by ik_zelf

Simple sharing SQLDeveloper config on Dropbox, the easiest way on MACOSX is to

在 Dropbox 上简单分享 SQLDeveloper 配置,在 MACOSX 上最简单的方法是

cd ~/Dropbox
mkdir -p Library/SQLDeveloper
cp -rp ~/.sqldeveloper/* Library/SQLDeveloper/
mv ~/.sqldeveloper ~/remove_when_sure_sqldeveloper
ln -sf $PWD/Library/SQLDeveloper ~/.sqldeveloper

Do this on your most important machine and on the machine on which to share only do

在您最重要的机器和仅共享的机器上执行此操作

cd ~/Dropbox
mv ~/.sqldeveloper ~/remove_when_sure_sqldeveloper
ln -sf $PWD/Library/SQLDeveloper ~/.sqldeveloper

This works like a charm.

这就像一个魅力。