如何运行Oracle';Linux headless上的sql developer sdcli命令行工具?

如何运行Oracle';Linux headless上的sql developer sdcli命令行工具?,oracle,cron,oracle-sqldeveloper,headless,Oracle,Cron,Oracle Sqldeveloper,Headless,我让我们的系统管理员在linux机器上安装OracleSQLDeveloper和JDK8,这样我就可以从cron运行一些报告。但是,我似乎无法在没有X显示的情况下运行SQLDeveloper的sdcli命令。有人知道怎么做吗?我正在从一台Windows机器(运行Cygwin)ssh'ing进入盒子。因为我的目标,我不想跑X 我看到的结果是: $ sdcli reports help Oracle SQL Developer Copyright (c) 1997, 2015, Oracle

我让我们的系统管理员在linux机器上安装OracleSQLDeveloper和JDK8,这样我就可以从cron运行一些报告。但是,我似乎无法在没有X显示的情况下运行SQLDeveloper的sdcli命令。有人知道怎么做吗?我正在从一台Windows机器(运行Cygwin)ssh'ing进入盒子。因为我的目标,我不想跑X

我看到的结果是:

$ sdcli reports help

 Oracle SQL Developer
 Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.

$ echo $?
0
如果我以“bash-x sdcli reports help”的形式运行它,我会获得更多的输出,但没有任何帮助:

++ /opt/jdk8/bin/java -Xbootclasspath/a:/opt/jdk8/lib/tools.jar:/opt/jdk8/lib/dt.jar -Dsun.java2d.noddraw=true -Dnetbeans.home=../../ide/bin/../../netbeans/platform/ -Dnetbeans.logger.console=true -Dexcluded.modules=org.eclipse.osgi -Dide.cluster.dirs=../../ide/bin/../../netbeans/fcpbridge/:../../ide/bin/../../netbeans/ide/:../../ide/bin/../../netbeans/../ -Xverify:none -Doracle.ide.extension.HooksProcessingMode=LAZY -Dorg.eclipse.equinox.simpleconfigurator.configUrl=file:bundles.info -Dosgi.bundles.defaultStartLevel=1 -Dosgi.configuration.cascaded=false -Dosgi.noShutdown=true '-Dorg.osgi.framework.bootdelegation=*' -Dosgi.parentClassloader=app -Dosgi.locking=none -Dosgi.contextClassLoaderParent=app -Xbootclasspath/p:../../ide/bin/../../rdbms/jlib/ojdi.jar -Dosgi.classloader.type=parallel -Dosgi.bundlefile.limit=500 -Dide.feedback-server=ide.us.oracle.com -Djavax.xml.transform.TransformerFactory=oracle.ide.xml.switchable.SwitchableTransformerFactory -Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory -Djavax.xml.stream.util.XMLEventAllocator=oracle.ideimpl.xml.stream.XMLEventAllocatorImpl -Doracle.ide.reportEDTViolations=bug -Doracle.ide.reportEDTViolations.exceptionsfile=../../ide/bin/../../ide/bin/swing-thread-violations.conf -Xms128M -Xmx800M -Doracle.ide.IdeFrameworkCommandLineOptions=-clean,-console,-debugmode,-migrate,-migrate:,-nomigrate,-nonag,-nondebugmode,-noreopen,-nosplash,-role:,-su -Dide.update.usage.servers=http://www.oracle.com/webfolder/technetwork/sqldeveloper/usage.xml -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -Doracle.ide.startup.features=sqldeveloper -Doracle.ide.osgi.boot.api.OJStartupHook=oracle.dbtools.raptor.startup.HomeSupport -Doracle.jdbc.mapDateToTimestamp=false -Doracle.jdbc.autoCommitSpecCompliant=false -Doracle.jdbc.useFetchSizeWithLongColumn=true -Dsun.locale.formatasdefault=true -Dorg.netbeans.CLIHandler.server=false -Dide.AssertTracingDisabled=true -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Djava.util.logging.config.file=logging.conf -Dsqldev.debug=false -Dsqldev.onsd=true -Dapplication.handle.help=true -Dno.shell.integration=true -Dnetbeans.security.nocheck=true -Dide.AssertTracingDisabled=true '-Dide.conf="/opt/sqldeveloper/sqldeveloper/bin/sdcli.conf"' '-Duser.conf="/home/dsm26/.sqldeveloper/4.1.0/product.conf"' '-Dtool.user.conf="/home/dsm26/.sqldeveloper/4.1.0/sdcli.conf"' '-Dide.startingcwd="/opt/sqldeveloper/sqldeveloper/bin"' -classpath ../../ide/bin/../../ide/lib/ide-boot.jar:../../ide/bin/../../netbeans/platform/lib/boot.jar:../../ide/bin/../../netbeans/platform/lib/org-openide-util-ui.jar:../../ide/bin/../../netbeans/platform/lib/org-openide-util.jar:../../ide/bin/../../netbeans/platform/lib/org-openide-util-lookup.jar:../../ide/bin/../../netbeans/platform/lib/org-openide-modules.jar:../../ide/bin/../../ide/lib/fcpboot.jar:../../ide/bin/../../ide/lib/xml-factory.jar:../../ide/bin/../../ide/lib/woodstox-core-asl-4.2.0.jar:../../ide/bin/../../ide/lib/stax2-api-3.1.1.jar:../lib/oracle.sqldeveloper.homesupport.jar oracle.ide.osgi.boot.OracleIdeLauncher reports help
++ exitCode=2
++ ProductCanRestart
++ '[' X = X ']'
++ return 1
++ CanRestart=1
++ '[' 1 = 0 ']'
++ '[' 2 = 245 ']'
++ '[' 2 -gt 0 ']'
+++ /opt/jdk8/bin/java -Xbootclasspath/a:/opt/jdk8/lib/tools.jar:/opt/jdk8/lib/dt.jar -version
++ s='java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)'
+++ expr 'java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)' : 'java version \"1\.[0-3]'
++ '[' 0 -gt 0 ']'
+++ expr 'java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)' : 'java version \"1\.[0-9].*\"'
++ '[' 23 -le 0 ']'
++ return 2
谢谢你的帮助。仅供参考…在我的系统管理员完成安装后,我不得不chmod 755 sqldeveloper.sh和ide/bin/launcher.sh

我在Centos 6.7(最终版)

谢谢,,
不要

很遗憾,我对你的问题没有答案,但我想指出,正是出于这个目的,Oracle引入了一个新的SQL命令行,名为。它本质上是打包为独立Java命令行实用程序的SQL Developer SQL执行引擎。也许值得一试。什么是linux?在Oracle Linux上,./sdcli reports运行程序并提供运行报告的使用信息。我使用的是CentOS 6.7版(最终版)。uname-a输出为:2.6.32-573.3.1.el6.x86#u 64#1 SMP周四8月13日22:55:16 UTC 2015 x86_64 x86_64 GNU/LinuxWe确认在Oracle Linux上我们的安装工作正常。所以这看起来像是CentOS上的一个问题。我不是100%肯定我们在CentOS上安装得很好,但我们可能会使用Oracle Linux box。