Connect Oracle Discoverer with batch file and execute an SQL












0














I have a batch File to connect the Oracle Discoverer



C:orantDISCVR4DIS4USR.EXE /connect MyUserID/MyPassword@myserver /open "C:DiscoReport.DIS" /export xls "C:MyFile.xls" /batch 1>


but I need to execute the batch file and change date from query. How can I do it?



This is the SQL extracted from Discoverer:



SELECT estudios.estado,
estudios.subestado,
servicios.c_agr,
servicios.c_est,
servicios.c_ser,
servicios.tipo_ser,
servicios.fecha,
servicios.resultado,
servicios.serv_dpto,
servicios.fcierre,
servicios.fecha_lote,
servicios.fecha_crea,
servicios.cod_mensajero,
servicios.reprogramacion,
servicios.serv_ori
FROM jamar.estudios estudios, jamar.servicios servicios
WHERE ( ( estudios.c_emp = servicios.c_emp
AND estudios.c_agr = servicios.c_agr
AND estudios.c_est = servicios.c_est))
AND (servicios.fecha BETWEEN TO_DATE ('20181101000000',
'YYYYMMDDHH24MISS')
AND TO_DATE ('20181231000000',
'YYYYMMDDHH24MISS'))
ORDER BY servicios.c_est ASC, servicios.c_agr ASC;









share|improve this question
























  • I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
    – Jåcob
    Nov 21 at 6:44
















0














I have a batch File to connect the Oracle Discoverer



C:orantDISCVR4DIS4USR.EXE /connect MyUserID/MyPassword@myserver /open "C:DiscoReport.DIS" /export xls "C:MyFile.xls" /batch 1>


but I need to execute the batch file and change date from query. How can I do it?



This is the SQL extracted from Discoverer:



SELECT estudios.estado,
estudios.subestado,
servicios.c_agr,
servicios.c_est,
servicios.c_ser,
servicios.tipo_ser,
servicios.fecha,
servicios.resultado,
servicios.serv_dpto,
servicios.fcierre,
servicios.fecha_lote,
servicios.fecha_crea,
servicios.cod_mensajero,
servicios.reprogramacion,
servicios.serv_ori
FROM jamar.estudios estudios, jamar.servicios servicios
WHERE ( ( estudios.c_emp = servicios.c_emp
AND estudios.c_agr = servicios.c_agr
AND estudios.c_est = servicios.c_est))
AND (servicios.fecha BETWEEN TO_DATE ('20181101000000',
'YYYYMMDDHH24MISS')
AND TO_DATE ('20181231000000',
'YYYYMMDDHH24MISS'))
ORDER BY servicios.c_est ASC, servicios.c_agr ASC;









share|improve this question
























  • I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
    – Jåcob
    Nov 21 at 6:44














0












0








0







I have a batch File to connect the Oracle Discoverer



C:orantDISCVR4DIS4USR.EXE /connect MyUserID/MyPassword@myserver /open "C:DiscoReport.DIS" /export xls "C:MyFile.xls" /batch 1>


but I need to execute the batch file and change date from query. How can I do it?



This is the SQL extracted from Discoverer:



SELECT estudios.estado,
estudios.subestado,
servicios.c_agr,
servicios.c_est,
servicios.c_ser,
servicios.tipo_ser,
servicios.fecha,
servicios.resultado,
servicios.serv_dpto,
servicios.fcierre,
servicios.fecha_lote,
servicios.fecha_crea,
servicios.cod_mensajero,
servicios.reprogramacion,
servicios.serv_ori
FROM jamar.estudios estudios, jamar.servicios servicios
WHERE ( ( estudios.c_emp = servicios.c_emp
AND estudios.c_agr = servicios.c_agr
AND estudios.c_est = servicios.c_est))
AND (servicios.fecha BETWEEN TO_DATE ('20181101000000',
'YYYYMMDDHH24MISS')
AND TO_DATE ('20181231000000',
'YYYYMMDDHH24MISS'))
ORDER BY servicios.c_est ASC, servicios.c_agr ASC;









share|improve this question















I have a batch File to connect the Oracle Discoverer



C:orantDISCVR4DIS4USR.EXE /connect MyUserID/MyPassword@myserver /open "C:DiscoReport.DIS" /export xls "C:MyFile.xls" /batch 1>


but I need to execute the batch file and change date from query. How can I do it?



This is the SQL extracted from Discoverer:



SELECT estudios.estado,
estudios.subestado,
servicios.c_agr,
servicios.c_est,
servicios.c_ser,
servicios.tipo_ser,
servicios.fecha,
servicios.resultado,
servicios.serv_dpto,
servicios.fcierre,
servicios.fecha_lote,
servicios.fecha_crea,
servicios.cod_mensajero,
servicios.reprogramacion,
servicios.serv_ori
FROM jamar.estudios estudios, jamar.servicios servicios
WHERE ( ( estudios.c_emp = servicios.c_emp
AND estudios.c_agr = servicios.c_agr
AND estudios.c_est = servicios.c_est))
AND (servicios.fecha BETWEEN TO_DATE ('20181101000000',
'YYYYMMDDHH24MISS')
AND TO_DATE ('20181231000000',
'YYYYMMDDHH24MISS'))
ORDER BY servicios.c_est ASC, servicios.c_agr ASC;






sql oracle batch-file oracle-bi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 9:41









double-beep

1,108619




1,108619










asked Nov 20 at 22:10









Alexis Arteta

1




1












  • I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
    – Jåcob
    Nov 21 at 6:44


















  • I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
    – Jåcob
    Nov 21 at 6:44
















I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
– Jåcob
Nov 21 at 6:44




I reckon, parametrise the date attribute (if it is not) by which Discoverer report execute with conditions, in this case, it is the date attribute. This could be of some help, perhaps.
– Jåcob
Nov 21 at 6:44

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402367%2fconnect-oracle-discoverer-with-batch-file-and-execute-an-sql%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402367%2fconnect-oracle-discoverer-with-batch-file-and-execute-an-sql%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'