How to Start File (.sql or a shell) by procedure

Dúvidas, dicas e truques de PL/SQL. Aqui também vão assuntos relacionados a pacotes, triggers, funções, Java-Stored Procedures, etc
Post Reply
brauliomsf
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 9
Joined: Thu, 18 Oct 2007 9:18 am
Location: SP
Braulio Moizes

Hello,

I have a .sql file or then a shell script inside an unix directory.
I need to rotate / run this .sql or that shell through a procedure.
Someone would have any tips!

By the host command I can, but running SQL Plus directly from UNIX. What I need is to run this host somehow in my procedure

thanks
joaogarcia
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 91
Joined: Tue, 20 Mar 2007 7:19 pm
Location: Campinas - SP
Contact:
Cordialmente,
João C. Garcia

Friend, I never needed to do something like that, but out of curiosity I did a search on the Asktom website and I ended up finding something that seems to me to be what you need.

Link: http://asktom.oracle.com/pls/asktom/f?p ... 6212348050
T +
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

I always used a package called daemon that runs commands in the operating system:
http://en.glufke.net/oracle/viewtopic.php?t=2226
brauliomsf
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 9
Joined: Thu, 18 Oct 2007 9:18 am
Location: SP
Braulio Moizes

Thomas,

I created PKG Deamon and when the execution passing the parameter
(for example: rm /interface/teste.txt) Always from error I believe Returning status 1 ..

What is missing?
grateful
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Hmmm .. I can not tell you, because I never had to install Daemon. She was always ready for use. Maybe some DBA get the answer: "
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests