How do you run sql loader?
I can not find suitable documentation on running sql loader in 9i on win2000. Can anyone give me a hint on the syntax of this command? Can I run it in SQL/Plus?
Thanks.
sqlldr.exe is it's own utility. it's not part of sqlplus. To run it in sqlplus you typically have to 'host sqlldr'. To run it, try typing 'sqlldr HELP=Y' from a DOS command prompt. It should get your the parameters.
Similar Messages
-
How to I run SQL Loader in a procedure
Hi
Can somebody tell me how can i run SQL Loader in a pl/sql procedure ?
i tried this:
host sqlldr73 tiger/scott load.ctl
then this
host sqlldr73 tiger/scott "c:\load.ctl"
but none works.
Please advise.
Thanks.
regards
Estherfriend
sqlldr is an application residing in the OS. procedure runs in the dbms engine.
you cannot run an os command directly from a procedure or a function or a package .
If you want to do so you need to use either a daemon process created by a PRO*C program
or a JAVA stored procedure to do so.
just refer to previous question forums, you can find the solution. Somebody has already given a solution using
java to run an OS command . check it out
prakash
[email protected] -
How can we run SQL*Loader from forms. I guess HOST command will run the OS comman on the clinet. How do I invoke the Loader script on the server from the forms clinet?
-Ravi.Look..the oracle server is in UnixWare 7 and the client PC
is on Windows XP Pro, but before install the Oracle Client Software into the client pc the builtin HOST doesn't work
then I install the Software in Windows XP pc and now I'm
working loading the txt file into the server on Unix,
Try to install the Oracle Client Software into the Citrix
client, I think it work. -
How to display list process, when i run sql*loader in c#
Hello,
How to display list process, when i run sql*loader in c#. I mean when i run sql*loader from cmd windows, i get list process how many row has been inserted. But when i run SQL*Loader from C#, i can't get process SQL*Loader.
This is my code:
string strCmd, strSQLLoader;
string strLoaderFile = "XLLOAD.CTL";
string strLogFile = "XLLOAD_LOG.LOG";
string strCSVPath = @"E:\APT\WorkingFolder\WorkingFolder\sqlloader\sqlloader\bin\Debug\8testskrip_HTTP.csv";
string options = "OPTIONS (SKIP=1, DIRECT=TRUE, ROWS=1000000,BINDSIZE=512000)";
string append = "APPEND INTO TABLE XL_XDR FIELDS TERMINATED BY ','";
string table = "OPTIONALLY ENCLOSED BY '\"' TRAILING NULLCOLS (xdr_id,xdr_type,session_start_time,session_end_time,session_last_update_time,session_flag,version,connection_row_count,error_code,method,host_len,host,url_len,url,connection_start_time,connection_last_update_time,connection_flag,connection_id,total_event_count,tunnel_pair_id,responsiveness_type,client_port,payload_type,virtual_type,vid_client,vid_server,client_addr,server_addr,client_tunnel_addr,server_tunnel_addr,error_code_2,ipid,c2s_pkts,c2s_octets,s2c_pkts,s2c_octets,num_succ_trans,connect_time,total_resp,timeouts,retries,rai,tcp_syns,tcp_syn_acks,tcp_syn_resets,tcp_syn_fins,event_type,flags,time_stamp,event_id,event_code)";
strCmd = "sqlldr xl/secreat@o11g control=" + strLoaderFile + " LOG=" + strLogFile;
System.IO.DirectoryInfo di;
try
System.Diagnostics.ProcessStartInfo cmdProcessInfo = new System.Diagnostics.ProcessStartInfo("cmd.exe");
di = new DirectoryInfo(strCSVPath);
strSQLLoader = "";
strSQLLoader += "LOAD DATA INFILE '" + strCSVPath.ToString().Trim() + "' " + append + " " + table;
StreamWriter writer = new StreamWriter(strLoaderFile);
writer.WriteLine(strSQLLoader);
writer.Flush();
writer.Close();
// Redirect both streams so we can write/read them.
cmdProcessInfo.RedirectStandardInput = true;
cmdProcessInfo.RedirectStandardOutput = true;
cmdProcessInfo.UseShellExecute = false;
cmdProcessInfo.LoadUserProfile = true;
//System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
// Start the procses.
System.Diagnostics.Process pro = System.Diagnostics.Process.Start(cmdProcessInfo);
// Issue the dir command.
pro.StandardInput.WriteLine(strCmd);
// Exit the application.
pro.StandardInput.WriteLine("exit");
//Process[] processlist = Process.GetProcesses();
//foreach(Process pro in processlist){
Console.WriteLine("Process: {0} ID: {1}", pro.ProcessName, pro.Id);
Console.WriteLine(pro.StandardOutput.ReadLine());
// Read all the output generated from it.
string strOutput;
strOutput = pro.StandardOutput.ReadToEnd();
pro.Dispose();
catch (Exception ex)
return;
finally
Thanks.friend
sqlldr is an application residing in the OS. procedure runs in the dbms engine.
you cannot run an os command directly from a procedure or a function or a package .
If you want to do so you need to use either a daemon process created by a PRO*C program
or a JAVA stored procedure to do so.
just refer to previous question forums, you can find the solution. Somebody has already given a solution using
java to run an OS command . check it out
prakash
[email protected] -
Running SQL Loader through PL/SQL
Hi All,
Is there a utility package that can be used to run SQL LOADER through PL/SQL?
RegardsExternal tables are new in 9i.
If you need to call SQL*Loader in 8i, you'd be stuck with the Java stored procedure/ external procedure approach. Of course, this might also be an impetus to upgrade, since 8.1.7 leaves error correction support at the end of the year.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Need help to run sql loader from Form6i
Hi All,
I have some problem with the sql loader running from form 6i.
I have done following steps for that.
1. have created bat file to run sql loader.
2.Alos created ctl and txt files inside the same folder.
In the form , in button press i have written below code
HOST('cmd /c C:\load1.bat > C:\output.txt');
But it is giving error as -
"Unable to open Load1.ctl."
but i have run that bat files from command prompt ; and it is running fine.
I guess probably it is not getting the correct path.
Will pls help me, wt exacly I'm doing wrong?
Rg,
SubirHi Francois,
Thanks for reply.
It is not a problem with the batch files. Coz, I just able to run batch files, but that is not correct solution.
Once the host command id firing, that time it is going to path -
"c:\orant\Form60\"
And in this path it searching for that batch files and all the require files; but the require files are present in some different folder. So i think I need to change the path as well, but that I'm unable to do.
To resolve the problem, I have copied all the files in "c:\orant\Form60\" folder, and then it is working.
So I think I need to changed the path, so how to change the path. If I able to change the path I think it will worked. How to change the path?
Best Rg,
Subir -
How to refer the SQL*Loader command line parameters in the control file
The problem I am trying to resolve is to insert the input file name when SQL*Loader is loading the record from the file. I have multiple files to load and it is nice to associate a record with a particular input file.
Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
Another option is to use external tables
Re: Data Loading
Message was edited by:
Jens Petersen -
Is it possible to run host command from SAP environment? How do you run?
Hi
Is it possible to run host command from SAP environment? How do you run?
Thank YouHello Subhash
You will more details in the following thread:
Re: How to define command for SXPG_COMMAND_EXECUTE
Regards
Uwe -
Problem trying to run sql loader
hi ,
i'm trying to run sql loader but i'm getting an error message. it was working a few days ago but not now. i am on oracle version 8.0.6.2.0
from a unix prompt line i type....
sqlldr system/manager id3com.ctl
the error message i get is......
ORA-01017: invalid username/password; logon denied
SQL*Loader-704: internal error: ulconnect: OCISessionBegin [-1]
does anyone know what this is for? i've always used system/manager in the past but just recently i've been getting error messages.I'd say someone changed the password. Try running sql*plus as system.
-
How do you run apps on creative cloud? I can't seem to run them or see them on my desktop
How do you run apps on creative cloud? I can't seem to run them or see them on my desktop
Hi JasonLuong,
You will have to go to www.creative.adobe.com and login with your Adobe Id on which you have purchased the subscription.
You can go to the download center and then start downloading all the cc apps available. It will first download and install the Creative cloud desktop tool in your computer. This creative cloud desktop will show you the option to download all the CC programs, the updates, etc.
Thanks
Kapil Rupani -
How do you run Adobe Reader with New Lions
How do you run Adobe Reader with New Lions?
Lion has Preview, you may not need Adobe Reader.
Preview Help
View your images and PDF documents, touch them up, annotate them, and share your comments.
Regards,
Colin R. -
How do you run a Wagetype G/L report in SAP
Hi SAP experts
In SAP system,How do you run a Wagetype G/L report?
regards
KrishnaAarti
Thanks for your answers,this was the report I was looking for .
Full points awarded to you .we can also use this transaction code directly
PC00_M99_DKON
regards
krishna -
How do you run a full virus scan
How do you run a full virus scan on the Imac
Take a look at this article:
http://en.wikipedia.org/wiki/Phishing
Running a virus scan would not help at all - someone got your email address and is now hoping you're dumb enough to use the links they provided and give them information so they can use your credit card or checking acount number, password, etc.
I would change my user name and password immediately (if not sooner!!) - make it difficult to guess. Do it at least with the bank involved; however, to be safe, it wouldn't hurt doing it with others as well. -
HT5246 How do you run the Flashback malware removal tool?
How do you run the Flashback malware removal tool?
ThanksI am away from my computer and it is somewhat awkward to reply on an iPad.
> I had already done what softwater instructed. I've read that it deletes itself on other threads, but it's still in my Finder as a Device. That's what confused me, because it doesn't appear to have deleted itself.
Sorry, I wasn't clear. That is not the tool. It is the .dmg image mounted to your desktop. Next to the name you will see a small eject icon. Click on it or highlight it and choose "Eject" from the appropriate Finder menu. Once that happens you can drag the .dmg file to the trash as it will not delete itself.
> I only recently upgraded to Snow Leopard and then Lion, in quick succession. My understanding is that there were (are) variants that would have infected my computer prior to my upgrading my OS to Lion. Before the upgrade, they were Adobe, but afterward they were Java. Could it be that be that the pop-ups were/are some other variant?
Difficult to say for certain. Apple says it deletes all the common variants but does not specify which and I haven't seen the results of any testing done to verify that it finds and deletes those. The only dialogs that appeared with the initial variants were for FlashPlayer. They are depicted in the descriptions for Flashback-A on F-Secures site if you want to take a look. There have been none that I am aware of for Java, so that is probably either a web page or application that needs Java to run giving you that alert.
> If the Flashback malware removal tool didn't find anything and my Software Update is current, does that mean the vulnerability has been fixed? At least for now? I understand that I Software Update will prompt downloads in the future if and when it needs to be patched again.
The vulnerability is in Java, nowhere else, so if you don't have it installed there was nothing to fix.
If you download Java in the future it will be the latest version Apple has available at the time, which hopefully will not be subject to exploitation, yet... -
How can I use sql loader to load a text file into a table
Hi, I need to load a text file that has records on lines tab delimited into a table. How would I be able to use the sql loader to do this? I am using korn shell to do this. I am very new at this...so any kind of helpful examples or documentation would be very appreciated. I would love to see some examples to help me understand if possible. I need help! Thanks alot!
You should check out the documentation on SQL*Loader in the online Oracle document titled Utilities. Here's a link to the 9iR2 version of it: http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96652/part2.htm#436160
Hope this helps.
Maybe you are looking for
-
Strange Characters in Mail and Safari
Hello, Just got my mini home and have noticed strange characters appearing in both Mail and Safari. It seems to be a font problem, but changing the fonts in mail and safarui prefs doesn't seem to fix it. Specifically: The apple start page rss stories
-
I can't find where to switch from my internal disc burner to my external burning device
I can not find where to switch from my internal disc burner to my external when burning music in iTunes. Please help.
-
Passing environment variables to netbeans
How can I make netbeans pick my current environment variables
-
Saving still frame for external use
How can I make a still frame in either projects or events to be able to save as a picture file outside of imovie?
-
So the last few days my charger, L-style Mag-safe, would work on and off. When I play with the wire that seemed to do nothing. I've fixed the charger before from cuts in the wire and once the wire broke connection in the box. So I have taken the box