Worklight 6.2迁移工具连接

时间:2015-05-15 06:46:57

标签: oracle migration ibm-mobilefirst upgrade

我正在努力将Worklight从5.0.6.2升级到6.2 我正在做数据库升级的事情。

我在尝试运行迁移工具时遇到困难 显示以下错误

"fwlse3401e Failed to connect to source database"

这是一个本地的dev oracle express 11g

服务名称:xe

要使用的架构:CCC

以下是我试过的命令。

java -classpath ojdbc6.jar -cp worklight-ant-deployer.jar com.ibm.worklight.config.dbmigration62.MigrationTool \
  -p /CCC \
  -sourceurl jdbc:oracle:thin:@192.168.0.*:1521/xe  \
  -sourceschema CCC \
  -sourcedriver oracle.jdbc.driver.OracleDriver \
  -sourceuser CCC \
  -sourcepassword * \
  -targeturl jdbc:oracle:thin:@192.168.0.*:1521/xe \
  -targetschema CCC \
  -targetdriver oracle.jdbc.driver.OracleDriver \
  -targetuser CCC \
  -targetpassword *

我应该同时使用-sourceschema和-sourceuser,还是我错放/错误导入的jdbc驱动程序?

在阅读指南后,顺便说一下, https://www-01.ibm.com/support/knowledgecenter/SSHSCD_7.0.0/com.ibm.worklight.upgrade.doc/devenv/c_upgrade_to_srvr_addl_info_manual_db_update.html

对于-p param,它应该是上下文root的意义还是它的用途?

2 个答案:

答案 0 :(得分:2)

您将多个-classpath / -cp选项传递给java。在这种情况下,最后一个会覆盖之前的那个。要在类路径中启动带有多个jar的java,需要传递一个-classpath / -cp选项,在Unix上用冒号分隔jars或在Windows上用分号分隔:

java -cp ojdbc6.jar:worklight-ant-deployer.jar ...(Unix)

java -cp ojdbc6.jar;worklight-ant-deployer.jar ...(Windows)

答案 1 :(得分:1)

JDBC URL语法不正确。 Oracle支持two syntaxes for a JDBC URL

$(function () { $('#container').highcharts({ chart: { type: 'spline' }, title: { text: 'Monthly Average Temperature' }, subtitle: { text: 'Source: WorldClimate.com' }, xAxis: { categories: ['16 Feb 15', '16 Apr 15', '27 Jul 15', '10 Nov 15', ] }, yAxis: { title: { text: '' }, labels: { formatter: function () { return this.value + '°'; } } }, tooltip: { crosshairs: true, shared: true }, plotOptions: { spline: { marker: { radius: 4, lineColor: '#666666', lineWidth: 1 } } }, series: [{ name: 'Dates', data: [{ y: 26.5, marker: { symbol: 'url(http://www.highcharts.com/demo/gfx/sun.png)' } },{ y: 26.5, marker: { symbol: 'url(http://www.highcharts.com/demo/gfx/sun.png)' } },{ y: 16.5, marker: { symbol: 'url(http://www.highcharts.com/demo/gfx/sun.png)' } },{ y: 26.5, marker: { symbol: 'url(http://www.highcharts.com/demo/gfx/sun.png)' } } ] }] }); });

jdbc:oracle:thin:@hostname:1521:SID

" XE"通常是SID,因此您需要第一种语法。