RES: [oracle_br] Executar arquivo

2014-03-17 Por tôpico Sergio
Pesquise no Google por Package Oracle Excel, existe uma infinidade packages
free para esse fim.

Boa sorte!
Sérgio

  -Mensagem original-
  De: oracle_br@yahoogrupos.com.br [mailto:oracle_br@yahoogrupos.com.br]Em
nome de Bruno N. Barboza
  Enviada em: Friday, March 14, 2014 11:52
  Para: oracle_br@yahoogrupos.com.br
  Assunto: Re: [oracle_br] Executar arquivo




  É que tipo,


  eu precisava somente abrir/executar um arquivo em EXCEL via PL/SQL.
  Depois assim que o arquivo EXCEL abrisse, iria executar algumas macros.



  Em 14 de março de 2014 11:46, Roberto Warstat ro.wars...@gmail.com
escreveu:



Arquivos do tipo xls não é possível. Mas se quiser, pode salvar a
planilha como texto e abrir via o PL/SQL.


[]´s
Roberto



Em 14 de março de 2014 11:44, Bruno N. Barboza
bruno.n.barb...@gmail.com escreveu:




  Entendi...


  Mas eu digo abrir/executar um arquivo.
  No caso seria um arquivo EXCEL


  Obrigado



  Em 14 de março de 2014 11:40, Andre Machado andres.mac...@gmail.com
escreveu:




arquivos de texto sim, eh preciso criar um diretorio no oracle,
depois ler ele assim




declare
utl_openutl_file.file_type;

linha_w varchar2(4000)


begin
  utl_open   := utl_file.fopen('nome_diretorio', vs_nome_arq, 'r');


  While 1 = 1 loop


   begin
utl_file.get_line(utl_open, linha_w);
   exception when no_data_found then
 exit;


--trata linha
   end;
end loop
end



Em 14 de março de 2014 11:34, Bruno N. Barboza
bruno.n.barb...@gmail.com escreveu:



  Bom dia galera,

  Alguém sabe se é possível abrir um arquivo via PL/SQL?

  Ex: Abrir um arquivo de EXCEL via PL/SQL

  Obrigado

  --
  Att,
  Bruno N. Barboza







--

___
André Machado








  --
  Att,
  Bruno N. Barboza









  --
  Att,
  Bruno N. Barboza

  


Res: [oracle_br] Executar arquivo bat via forms

2007-06-25 Por tôpico Ricardo Francisco
veja o comando HOST
Description
Executes an indicated operating system command. 
Syntax
PROCEDURE HOST
  (system_command_string  VARCHAR2);  
PROCEDURE HOST
  (system_command_string  VARCHAR2, 
   screen_action  NUMBER); 
Built-in Type  unrestricted procedure 
Enter Query Mode  yes 
Parameters
system_command_ string Specifies the system command you want to pass to your 
particular operating system. 
screen_action Specifies one of the following constants: 
no parameter  Specifies that Form Builder will: 
n clear the screen 
n prompt the operator to return from the command 
NO_PROMPT  Specifies that Form Builder will: 
n clear the screen (does not prompt the operator to return from the command) 
NO_SCREEN  Specifies that Form Builder will: 
n not clear the screen 
n not prompt the operator to return from the system command 
(The HOST command should not send output to the screen when using the NO_SCREEN 
parameter.) 
Usage notes 
· Thescreen_action parameter is only relevant to applications running in 
character mode, where the output of the Host command is displayed in the same 
window as the form.  In GUI applications, the output of the Host command is 
displayed in a separate window. 
· Note that the command interpreter for Microsoft Windows NT is cmd, while on 
Windows 95 it is command.  Before using the HOST built-in to run an external 
command, be sure to check for the operating system and pass the appropriate 
command string.
· On Microsoft Windows NT, when using HOST to execute a 16-bit application, the 
FORM_SUCCESS built-in will return TRUE whether the application succeeds or 
fails.  This is a Microsoft Win32 issue.  32-bit applications and OS commands 
will correctly return TRUE if executed sucessfully and FALSE if failed.  
Invalid commands will return FALSE.
· On Windows 95 platforms the FORM_SUCCESS built-in will always return TRUE for 
HOST commands which fail.  This includes calls to command.com or OS functions, 
any 16-bit DOS or GUI application, or an invalid command.  32-bit applications 
will correctly return TRUE if executed sucessfully and FALSE if failed.

EX:

Host( COMANDO, NO_SCREEN ); 

ABS.
Ricardo






- Mensagem original 
De: Guilherme Procópio Arjones [EMAIL PROTECTED]
Para: oracle_br@yahoogrupos.com.br oracle_br@yahoogrupos.com.br; [EMAIL 
PROTECTED] [EMAIL PROTECTED]; oracle_br@yahoogrupos.com.br 
oracle_br@yahoogrupos.com.br
Enviadas: Segunda-feira, 25 de Junho de 2007 13:52:26
Assunto: [oracle_br] Executar arquivo bat via forms

Boa Tarde Pessoal,

Preciso executar um arquivo bat pelo forms ao clicar no botão.
Alguém pode me ajudar com isso ?

Estou usando Forms 6i
Banco 10g
WinXP

Desde já agradeço,

-- 
Att,
Guilherme





   

Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso 

[As partes desta mensagem que não continham texto foram removidas]