Home » Developer & Programmer » Forms » cursors and batch files
cursors and batch files [message #145529] Thu, 03 November 2005 12:55 Go to next message
dmack
Messages: 42
Registered: March 2005
Location: TNT
Member
1. can u create a batch file within oracle

2. I am developing a program and have created a program unit that uses a cursor to retrieve specific records. For each record in the cursor i am creating a script for eg.

PROCEDURE deploy_programs IS

dep_script varchar2(1000);

CURSOR rec1 IS
SELECT dep_prog_name, dep_location
FROM temp_location
WHERE :prog_name = dep_prog_name
AND :sl_location_ip = dep_location
AND :v_hd_user = dep_user;

dep_script := ('copy \\systools\data\development\'||a_rec.dep_prog_name ||' \\128.1.80.49\test');
host(dep_script,no_screen);

The problem is i want to create a batch file to run the process instead. However the batch file works fine if i copy the same script but insert the actual file name instead of (||a_rec.dep_prog_name ||).I need the batch file to use the records retrieved from the cursor. Is that possible?
Re: cursors and batch files [message #145784 is a reply to message #145529] Sun, 06 November 2005 18:21 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I thought we answered this in http://www.orafaq.com/forum/m/139379/67467/?srch=copy+program#msg_139379

Have a look at http://www.orafaq.com/forum/m/113478/67467/?srch=dir+utl_file#msg_113478

David
Previous Topic: Oracle Forms 9i
Next Topic: Forms 6i default text field height
Goto Forum:
  


Current Time: Fri Sep 20 03:58:06 CDT 2024