简体   繁体   English

Oracle SQL Developer命令Java命令行

[英]Oracle sql developer command java commandline

Our system administrator has disabled starting non-approved programs from the commandline and I am not allowed to start sqldeveloper.exe, but I am allowed to start java. 我们的系统管理员已禁用从命令行启动未经批准的程序,并且不允许我启动sqldeveloper.exe,但可以启动Java。 Does anyone therefore know what the commandline syntax is to start java with sqldeveloper as the application ? 因此,没有人知道以sqldeveloper作为应用程序启动Java的命令行语法是什么?

It is possible not recommended but possible since as you say it's a java program. 不建议这样做,但是可能的,因为正如您所说的这是一个Java程序。 The only things that will be lost is file associations with the base OS. 唯一会丢失的是与基本操作系统的文件关联。 Which means double-click a .sql file will not open sqldev. 这意味着双击.sql文件将不会打开sqldev。

The cmd line is a not simple and running on linux/osx the sqldeveloper shell script you can get it. cmd行并不简单,可以在linux / osx上运行sqldeveloper shell脚本来获取它。

bash -x sqldeveloper

Then you'll see the java command in the console which will be something like this which is my mac. 然后,您将在控制台中看到java命令,该命令类似于我的mac。

java -Xbootclasspath/a:/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/lib/dt.jar -Djdeveloper.system_http_proxy=DIRECT -Djdeveloper.system_http_non_proxy_hosts= -Dsun.java2d.noddraw=true -XX:CompileCommand=quiet -XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot -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 -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/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=https://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 -Djava.util.logging.config.file=logging-debug.conf -Dsqldev.debug=true -Dsqldev.cloud=true -Dsqldev.onsd=true -Dsqldev.onsdDDL=true -ea -Dosgi.clean=true -Dsqldev.debugbuild=true -Dcom.sun.management.jmxremote -Dprism.order=sw -Dprism.verbose=true -Dcom.apple.mrj.application.apple.menu.about.name=SQL_Developer -Dcom.apple.mrj.application.growbox.intrudes=false -Dcom.apple.macos.smallTabs=true -Dapple.laf.useScreenMenuBar=true '-Xdock:name=Oracle SQL Developer' -Xdock:icon=SQLDeveloperIcons.icns '-Dide.conf="/Users/klrice/workspace/raptor_trunk/ide/sqldeveloper/bin/sqldeveloper.conf"' '-Duser.conf="/Users/klrice/.sqldeveloper/17.4.0/product.conf"' '-Dtool.user.conf="/Users/klrice/.sqldeveloper/17.4.0/sqldeveloper.conf"' '-Dide.startingcwd="/Users/klrice/workspace/raptor_trunk/ide/sqldeveloper/bin"' -Xbootclasspath/p:../../ide/bin/../../rdbms/jlib/ojdi.jar -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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM