
[英]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.