Running Sqlloader in forms10g [message #329299] |
Tue, 24 June 2008 23:58 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sri_81_in
Messages: 12 Registered: June 2008
|
Junior Member |
|
|
Hi Everybody,
I need to run sqlloader in forms10g. I am using the HOST command. I am mapping the path of the Application server in the forms for taking the control file/DAT file and also SQLLDR.exe.
The form is not displaying any error message and also the records are not getting inserted. Please find attached the code below. Kindly look in to this and help me out.
declare
usid varchar2(10):= get_application_property(username);
pwd varchar2(10):= get_application_property(password);
db varchar2(10):= get_application_property(connect_string);
msqlldr varchar2(300);
ctrl_filename varchar2(300) := 'D:\oracle\product\10.2.0\db_1\BIN\INS.CTL';---This is the path of the application server
data_filename varchar2(300) := 'D:\oracle\product\10.2.0\db_1\BIN\abc.dat';
fname varchar2(1000);
begin
msqlldr := 'D:\oracle\product\10.2.0\db_1\BIN\sqlldr.exe'||
' userid='||usid||'/'||pwd||'@'||db||
' control='||ctrl_filename||
' data='||data_filename||
' bad=D:\oracle\product\bad01'||
' log=D:\oracle\product\log01.log';
host(msqlldr,no_screen);
|
|
|
|
|
|
|
|
Re: Running Sqlloader in forms10g [message #329362 is a reply to message #329356] |
Wed, 25 June 2008 03:37 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sri_81_in
Messages: 12 Registered: June 2008
|
Junior Member |
|
|
Hi,
I am sorry. No screen is coming. I am calling the following code mentioned above from a button (When-Button-Pressed Trigger). Upon clicking the button there is no impact.Neither the bad file nor the log file is getting created. In the application server I have set an environmental variable name PATH and have given the path of sqlloader as value. Still there is no impact upon clicking the button. FORM_SUCCESS is not returning TRUE
I am not able to figure out the exact problem. Kindly help me.
I am calling this form from a URL (of my loacl machine)http://servername:2589/forms/frmservlet
Please let me know if any details is required.I need to sort out this issue.
|
|
|
|
|
|
Re: Running Sqlloader in forms10g [message #361704 is a reply to message #329437] |
Thu, 27 November 2008 11:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
sphinx18
Messages: 2 Registered: April 2008
|
Junior Member |
|
|
sri_81_in wrote on Wed, 25 June 2008 07:37 | Hi Thanks.I got the solution. I am able to run the sqlloader using forms10g.
Need to create a batch file and access the file from the form.
Thanks...
|
I have the same pb, but i dont understand your solution
You must copy the file to server application ?
i must install sqlloader in client post?
pls help
[Updated on: Thu, 27 November 2008 11:22] Report message to a moderator
|
|
|
Re: Running Sqlloader in forms10g [message #384999 is a reply to message #329437] |
Fri, 06 February 2009 00:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
YKKAP
Messages: 5 Registered: February 2009
|
Junior Member |
|
|
sri_81_in wrote on Wed, 25 June 2008 07:37 | Hi Thanks.I got the solution. I am able to run the sqlloader using forms10g.
Need to create a batch file and access the file from the form.
Thanks...
|
What is about the solution?
We got the same problem, would you mind to give us a help?
|
|
|
|
|
|
Re: Running Sqlloader in forms10g [message #385467 is a reply to message #385324] |
Mon, 09 February 2009 18:22 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
YKKAP
Messages: 5 Registered: February 2009
|
Junior Member |
|
|
Littlefoot wrote on Mon, 09 February 2009 01:53 | From the Forms Online Help System:Quote: | The host command operates on the application server machine. Any screen output that it performs is not visible to the user of the application.
|
Does your HOST operate on the application server machine?
|
Yes, our HOST operate on the application server machine.
|
|
|
|
Re: Running Sqlloader in forms10g [message #385540 is a reply to message #385507] |
Tue, 10 February 2009 01:25 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
YKKAP
Messages: 5 Registered: February 2009
|
Junior Member |
|
|
hi David,
(1) Yes, we have
(2) We've installed this Forms&Reports Services 10.1.2.0.2 on application server but the program without SQLLDR.
And we've installed client 10.2.0.1 on application server with SQLLDR.
These are in two different directory.
(3) Yes, it exists on this application server.
Thanks,
Ming_Chung
|
|
|
Re: Running Sqlloader in forms10g [message #385772 is a reply to message #385540] |
Wed, 11 February 2009 00:19 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Please post the code you have in your form and please use the 'code' tags facility.
Please place 'message; pause;' pairs in your code to prove that the code has been exercised.
Search this forum for 'host cmd' and 'client_host cmd' and look at the threads where they have discussed when 'cmd' needs to be used.
David
|
|
|