我的脚本没有正确执行,所以我查看了同样由批处理脚本创建的日志文件。
它显示以下错误:
2017-09-05 07:34:24.324 Error itgencun016: Waarschuwing itgenuty427: Een verbinding met de database 'Oracle MySQL\***' kon niet worden opgebouwd als gebruiker '***'.
Verbinding 'Oracle MySQL\***' kan niet worden gevonden.
2017-09-05 07:34:24.324 Error itgencun016: Warning itgenuty427: A connection with the database'Oracle MySQL\***' could not be established as user '***'.
Connection 'Oracle MySQL\***' could not be found.
这是我的脚本:
local remark local log on connection "Exact Online (REST interface)\Exact Online REST (nl)" user "***" password "***" silent
use ***, ***, ***
local define boekjaar "2016"
select Division bedrijf
, FinancialPeriod periode
, Date datum
, GLAccountCode grootboek
, Description omschrijving
, trim(AccountCode) crednummer
, AmountDC bedrag
from TransactionLines
where FinancialYear = ${boekjaar}
and GLAccountCode between '***' AND '***'
order
by bedrijf
, datum
local remark export results as "c:\temp\***.csv" format csv
local remark exit 0
local remark Uncomment this part when you have connectivity directly to MySQL.
local memorize results clipboard grootboek
local log on connection "Oracle MySQL\***" user "***" password "***" silent
local remark truncate table ***
local insert results clipboard grootboek in table ***
这以前可以工作。我将如何解决这个问题?