![](/img/trans.png)
[英]SSIS Intermittent variable error: The system cannot find the file specified
[英]Insert from one DB to another "The system cannot find the file specified"
我正在嘗試插入以下查詢的結果:
with aux as
(select
case
when url = '/my/url/envio'
then 'WEB'
else 'APP'
end canal,
case
when json_query(json, '$.request.listaexcepciones') = '[]'
or NOT json_exists(json,'$.request.listaexcepciones')
then 'SEMANA'
else 'EXCEPCION'
end tipo_operacion
from cats.raw_data rd
where fecha_evento between trunc(sysdate - INTERVAL '1' MONTH, 'MONTH') and
trunc(sysdate, 'MONTH') - INTERVAL '1' DAY and
url in ('/my/url/envio','/my/app/url/envio') and
json_value( json , '$.responsecode') in (200, 202, 204) AND
rownum < 5
)
select tipo_operacion
|| '_'
|| canal categoria,
count(1) valor
from aux
group by tipo_operacion,
canal;
從一個 Oracle DB 到另一個 DB。 但是,當我打開命令提示符並粘貼以下內容時:
echo copy from USERNAME1/PWD1@TNS1 to USERNAME2/PWD2@TNS2 insert MY_TABLE using with aux as (select case when url = '/my/url/envio' then 'WEB' else 'APP' end canal, case when json_query(json, '$.request.listaexcepciones') = '[]' or NOT json_exists(json,'$.request.listaexcepciones') then 'SEMANA' else 'EXCEPCION' end tipo_operacion from cats.raw_data rd where fecha_evento between trunc(sysdate - INTERVAL '1' MONTH, 'MONTH') and trunc(sysdate, 'MONTH') - INTERVAL '1' DAY and url in ('/my/url/envio','/my/app/url/envio') and json_value( json , '$.responsecode') in (200, 202, 204) AND rownum < 5 ) select tipo_operacion || '_' || canal categoria, count(1) valor from aux group by tipo_operacion, canal | C:\sqlcl-latest\sqlcl\bin\sql /nolog
出現此錯誤:
The system cannot find the file specified
我做錯了什么,我該如何解決?
某些字符在 Windows 命令提示符中具有特殊含義。 這些字符必須在echo
命令中轉義。 他們是|
, &
, <
和>
。 轉義字符^
前置,如下所示: ^|
, ^&
, ^<
和^>
。 轉義字符本身可以轉義為^^
。
在您的命令中,您必須將rownum < 5
轉義為rownum ^< 5
和tipo_operacion || '_' || canal categoria
tipo_operacion || '_' || canal categoria
為tipo_operacion ^|^| '_' ^|^| canal categoria
參見: echo/備注部分(微軟學習)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.