How to run command SQLLoader Oracle in c#

Hello,
How to run command SQLLoader Oracle in c#. I try my sourcode for run this SQLLoader, but nothing happen and error "No process is associated with this object.". Please tell me how i fix it. Thanks.
This is my code:
System.Diagnostics.Process process1;
process1 = new System.Diagnostics.Process();
process1.EnableRaisingEvents = false;
string strCmdLine;
strCmdLine = @"/C SQLLDR XL/secreat@O11G CONTROL=E:\APT\LoadXL.ctl";
System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
process1.WaitForExit();
process1.Close();

jesperdj ,thanks:)
actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
robin

Similar Messages

  • How to run script file Oracle XE?

    Hi there,
    I'm new here. I've just started on a tutorial (i.e. ADF) and it requires me to run a script, i.e.
    SQLPLUS>Start <tutorial_install>\scripts\build.sql
    How do I run this in Oracle XE?
    The content of the build.sql is included below.
    The build.sql also calls other sql scripts in the same directory.
    I can't seem to get this to run in the SQL command prompt in Oracle XE. Can you please help?
    Thanks,
    Will
    build.sql contains the following...
    REM Main build Script for the SRDemo schema, objects and demo data
    REM To be run from SQL*Plus conected as a DBA
    REM Note you can also run this SQL install from ANT
    REM Schema Owner SRDEMO is parameterized to allow for simpler workshop /
    REM classroom setup where only one shared server is available
    REM $Id: build.sql,v 1.5 2005/12/22 22:46:41 duncan Exp $
    SET FEEDBACK 1
    SET NUMWIDTH 10
    SET LINESIZE 132
    SET TRIMSPOOL ON
    SET TAB OFF
    SET PAGESIZE 999
    SET ECHO OFF
    SPOOL SRDemo_Install.log
    REM Define the changable data
    DEFINE DEMO_SCHEMA = SRDEMO
    DEFINE DEMO_SCHEMA_PASSWORD = ORACLE
    REM Create the schema owner - this can fail if the
    REM Script has alreadt been run, but that's OK as the first
    REM Step of the createSchemaObjects is to drop the existing objects just in case
    @@createSchema &&DEMO_SCHEMA &&DEMO_SCHEMA_PASSWORD
    REM connect to user account and invoke the scripts that create schema objects.
    CONNECT &&DEMO_SCHEMA/&&DEMO_SCHEMA_PASSWORD
    @@createSchemaObjects
    REM Add the triggers needed for the ADF BC version of the Demo
    @@createSequenceTriggers
    REM Add the sample data to the tables
    @@populateSchemaTables
    REM And Commit all that
    commit;
    REM Report Back
    Prompt What OBJECTS were created?
    column object_name format a30
    column object_type format a30
    select object_type,
    object_name
    from user_objects
    group by object_type, object_name
    order by object_type desc, object_name
    Prompt ------------------------------------------------------
    Prompt
    Prompt Are there any INVALID OBJECTS?
    select      object_type,
    object_name
    from user_objects
    where status='INVALID'
    group by object_type, object_name
    order by object_type desc, object_name
    Prompt Disconnecting....
    disconnect
    spool off

    I've just started on a tutorial (i.e.
    ADF) and it requires me to run a script, i.e.
    SQLPLUS>Start <tutorial_install>\scripts\build.sql
    How do I run this in Oracle XE?You must start SQL*Plus (SQL Command Line) and there execute the script.
    For more info about using SQL*Plus take a look here:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108/xedev_sqlplus.htm#CJABIFFE
    HTH

  • URGENT-How to run command in java application???

    URGENT!
    i would like to run command to invoke some applications (like invoke application using command line in DOS) in my java appication.
    Do anyone know how to do this? Thanks a lot.

    This question has been asked upteen times.
    ok the code is
    for win95
    Runtime.getRuntime().exec( "start c:\\tmp.txt" );
    for win 2000
    Runtime.getRuntime().exec( "cmd /C startc:\\tmp.txt" );
    //change the file to your desire file..
    i am not so sure about win98, sorry...

  • How to run command line argument programe

    Hi guys, I am doing pass command line argument programe in java but I don't know how to run this programe. Path for this programe in my my computer is C:\Users\Desktop\Mainjava\mycode\CommandProgjava*
    {code/}
    public class CommandProg
    public static void main(String[] args)
    System.out.println("d");
    for (int i = 0; i < args.length; i++)
    System.out.println(args);
    {code/}
    Where i need to go and what command i need to give so i can execute this programe(I am using window vista). I only know i have to give
    this command some where CommandProg arg1 arg2 arg3 arg4. Output should be
    Output:
    arg1
    arg2
    arg3
    arg4
    Please help me, Thanks in advance.
    Edited by: JayVirk on Dec 30, 2007 11:33 AM

    Jay,
    Your question isn't very clear, hence Joerg's well meaning but irrelevant advise.
    Do you mean:
    I've written a simple program in java which echos
    it's command-line arguments to back to the console.
    Here's my code:
    package forums;
    public class ArgsEchoer
      public static void main(String[] args) {
        for (String arg : args) {
          System.out.println(arg);
    But can't figure out how to compile and run the program.
    I'm using winblows shista, and it's cr@p.
    Please help me, Thanks in advance.So... where are you at? Have you installed the JDK (java development kit)? Which version? Is your path set? Is your classpath set?
    Start here: http://java.sun.com/developer/onlineTraining/new2java/

  • How to run commands like "ipconfig" and get the output in adobe AIR in windows?

    import flash.desktop.NativeProcess; 
    import flash.desktop.NativeProcessStartupInfo;   
    if (NativeProcess.isSupported) {     
         var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo();     
         var processpath:File = File.applicationDirectory.resolvePath("MyApplication.whatever");     
         var process:NativeProcess = new NativeProcess();       
         npsi.executable = processpath;     
         process.start(npsi); 
    The above can only run a sub-application, but how to run an independent  application(command) like ipconfig and get the result?

    Hi,
    here is an example of running a net Use command line from AIR, unig the new NativeProcess. Hope it will help !
    function launchProcess()
      var file = air.File.applicationDirectory;
      // set command path
      file = file.resolvePath("C:/Windows/system32/net.exe");
      var nativeProcessStartupInfo = new air.NativeProcessStartupInfo();
      nativeProcessStartupInfo.executable = file;
      // prepare command parameters
      var args = new runtime.Vector["<String>"]();
      args.push('USE');
      args.push('W:');
      args.push('/delete');
      args.push('/y');
      // set arguments
      nativeProcessStartupInfo.arguments = args;
      // add listeners to catch command outputs
      process.addEventListener(air.ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
      process.addEventListener(air.ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
      process.addEventListener(air.NativeProcessExitEvent.EXIT, onExit);
      // create and run Native process
      process = new air.NativeProcess();
      process.start(nativeProcessStartupInfo);
    function onOutputData(ProgressEvent)
      var processResults = process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable);
      air.trace("Results: \n" + processResults);
    function onErrorData(ProgressEvent)
      var processResults = process.standardError.readUTFBytes(process.standardError.bytesAvailable);
      if(processResults.search('password') > -1){
        window.alert('Bad password');
      air.trace("Errors: \n" + processResults);
    function onExit(NativeProcessExitEvent)
      air.trace("Process ended with code: " + NativeProcessExitEvent.exitCode);

  • How to run commands upon system boot as user?

    How can I as a user run commands upon system boot? In Vixie's cron, one can use the @reboot syntax in a crontab, and the job is ran every time the cron daemon starts. Arch however, uses Dillon's cron which seems not support this feature.

    bwalk wrote:Hmm, does not work, because root owns init, so everything requires root. stb's version is valid, the -s parameter drops privileges to <USER>, spawns a shell and executes <COMMAND>. So, no security problem whatsoever.
    So there is nothing like @reboot in vixiecron?

  • How to run and display oracle application standard reports in portal

    We have portal with oracle applications framework. We want to provide the users the ability to run certain standard oracle applications reports in Portal?
    Is there a way to do it?
    thanks -
    sri

    Hi Sri,
    Here you can learn about integrating Oracle Reports with OracleAS Portal: Oracle Application Server Reports Services Publishing Reports to the Web.
    Peter

  • How we run command line commands in oracle

    Hi,
    In sql server i have an option "xp_cmdshell" i can run windows commands e.g "dir " using query analyzer.
    How can i do same thing in oracle
    Thanks in advance.
    Regards
    Faheem

    > MY SELECT:select OSexec('dir') as STDOUT from dual;
    ERROR:-1command[dir] The handle is invalid.
    In the sample code, I've executed a Linux/Unix program called date, physical file /usr/bin/date.
    Is there a DATE.EXE or a DIR.EXE program that you can execute on Windows?
    No. Both DATE and DIR are commands of a program - a 32bit console program called CMD.EXE.
    Your confusion stems from thinking that OSEXEC is calling the Windows shell command line. It is not. It is not calling CMD.EXE and passing Window Shell Commands to CMD.EXE.
    OSEXEC is calling, via Java, the Win32 API call called CreateProcess(). This is a call to the Win32 kernel. It requests the kernel to load an executable program as a process image.
    The kernel expects an EXE (or executable) file to load. You are passing it a command from a program. You just as well can pass it a Java command, a MS Access Basic Command, an Excel Macro, etc... Same thing. The kernel has no idea that this "command" needs another program to be loaded, and that command be "passed" somehow to that program.
    So, you need to call CMD.EXE via OSEXEC. And you can pass parameters to it. Open a Command Console and type cmd /? for help on the command line switches and parameters for CMD.EXE.
    I believe the following should work:
    SQL> select OSEXEC( 'c:\windows\system32\cmd.exe /c date /t') from dual;

  • Set up export script and how to run it. Oracle 10gR2

    Can someone help explain this script to a newbie. I need to write a script to export all data from our Oracle 10gR2 Tru64 Unix to another system. We need to test how long a 200GB tablespace export will take writing directly to nfs mount on SAN.
    1. The only option we have is to use a NFS Mount to the new SAN. ( there is no space on our existing system)
    2. What needs to be declared to describe the environment in both Oracle and/or in the script to make it run?
    3. Do I need to tell Oracle where the export directory is? (NFS Mount).
    4. how is exp run? Do dba run via a XXX.sh script or SQLPLUS XXX.sql script?
    5. how can I check the progress....
    I don't understand the set up of the oracle environment lines, can someone help me?
    Here is a sample script I found on our system....
    1 #!/bin/sh
    2 # /usr/users/oracle/nfsoraexpt_linux.sh
    3 # Export up the specified instance of the db tar it to an nfs mount point and log it
    4
    5 # Set up the oracle instance and environment
    6
    7 ORACLE_SID=pdsprod; export ORACLE_SID
    8
    9 ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1; export ORACLE_HOME
    10 PATH=/usr/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/apg/0800/mercator:/usr/users/oracle/bin:.; export PATH
    11
    12 # Do logging and export the instance
    13 rm /nfs_dir/oraexpt.log
    14 echo `date` >> /nfs_dir/oraexpt.log
    15 exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' full=y direct=y feedback=5000000
    16 #exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' tablespace='ENC_DS_DATA' direct=y feedback=5000000
    17 cat /nfs_dir/pdsprodexp.log >> /nfs_dir/oraexpt.log; rm /nfs_dir/pdsprodexp.log
    18
    19 echo `date` >> /nfs_dir/oraexpt.log
    20 cd /nfs_dir
    21 # gzip -f pdsprod.exp
    22 ls -al pdsprod.exp >> oraexpt.log
    23 mail -r email email2 < /nfs_dir/oraexpt.log
    24
    Any help for this first time user would be appreciated. Thanks

    First it sets some environment variables in the shell.
    Then it removes a log file.
    Then it uses an obsolete tool to export some data.
    Then it displays the contents of the log file.
    Then it changes the present working directory.
    Then it lists the files in the directory.
    Then, presumably, it emails a copy of the log file somewhere.
    In 10gR2 I would suggest throwing it away and using a proper tool to do the job such as RMAN or DataPump.
    Additionally find someone to teach you how to navigate and perform basic tasks in Linux. This may help.
    http://www.psoug.org/reference/unix_vi.html
    as might Arup Nanda's excellent tutorial here:
    http://www.oracle.com/technology/pub/articles/advanced-linux-commands/part1.html

  • How to run command on all machine in AD?

    Hi,
    I need to run few commands on different OU's in my Active directory environment, and want to make sure commands did run successfully on all machines. Please guide me for the same.

    Hello,
    Either use a Start-Up script or use Enter-PSSession at Powershell or use
    PSExec. Below links might be helpful. You need WinRM up and running on your clients.
    Use PowerShell to Run WMI Commands on Remote Computers
    PsExec v2.11
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or
    to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • How to run command line tool in my program???

    Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them accept some command line params.The problem is that how could i integrate the tools in my own program,like JBuilder or some other IDE,you configure the params and compile and run in the IDE which don't need to open a command line prompt.Hope i have got my question clear:)
    Best regards..

    jesperdj ,thanks:)
    actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
    robin

  • URGENT: How to Run an existing Oracle apps page in Jdev 10g

    Hi All,
    I have downloaded Jdeveloper 10G with OA Extension from the patch 5856648. I am able to successfully run the "test_fwktutorial.jsp" and "HelloWordPG.xml". I need to customize an existing Oracle apps page for one of our client requirement. I've done the following:
    1. Downloaded the BC4J components of the page which include xml and .class files from $JAVA_TOP/oracle/apps/ego and placed it in myproject( C:\p5856648_R12_GENERIC\jdevhome\myprojects) and also myclasses( C:\p5856648_R12_GENERIC\jdevhome\myclasses) folder of my jdeveloper.
    2. Downloaded the mds PG.xml from $APPL_TOP/ego/mds and placed it in C:\p5856648_R12_GENERIC\jdevbin\jdev\oamdsxml\fwk with the appropriate folder structure.
    I need to extend one of the VO and one of the controllers from the above standard oracle files. But since there are only .class files in the server, if I open the .class files, the methods are missing in those files. By decompiling the class files also, during run time it gives me error.
    What is the right approach and steps to use the existing Oracle apps files. Is there some way in Jdeveloper where we can set the source of java file with compiled .class files. I'm not able to work in the Jdeveloper for this customization. Please could some one help.
    Thanks & Regards,
    Anita

    1st thing to make sure is that you want to do changes for an R12 instance because that's this version of Jdev is provided for.
    Class files are required in myclasses folder only. Also page xml files should be in myprojects folder with the appropriate folder path.
    Decompiling class files are only way to work with them.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to run command line in LABVIEW 7.1

    Dear Sir/Madam,
    I want to execute such as command like this:
    c:\data\rename aa.txt aa.hex
    In LABVIEW 7.1, how do we implement this command. I really appreciate your help on this matter.
    Regards,
    Xia

    Use the sys exec function.  In LV 7.1 it is in the Communications palette.
    paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How to run servlets in Oracle 10g Application server

    I have tried running the simple servlet given in this URL
    oracle.com/technology/sample_code/tech/java/servlets/samples/hellouser.
    The following error comes when i try to access it
    "Invalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocol"
    I have used simple deploying method and followed alll the steps given

    The following error comes when i try to access it
    "Invalid protocol verification, illegal ORMI request or request performed with an
    incompatible version of this protocol"You are using the rmi port of oc4j in your URL. Instead, your should use the http port. Yes, of course, the http port.
    The initial ports are defined at ORACLE_HOME/install/portlist.ini ... if you reconfigure (say, by changing the ORACLE_HOME/Apache/Apache/conf/*.conf or the ORACLE_HOME/Apache/conf/* files), the portlist.ini will not be updated. Well, you can always use "opmnctl status -l" to find the http port.

  • How to run isqlplus in oracle 9i on client machine

    hi experts,
    i have successfully installed the oracle 9i on a server.i have also run the isql plus on the same server. The Problem is that when i want to start isqlplus on the client machine but i am not successful to doing that. i am already set the many things in confg files and proxyserver setting but i am not a right way so plz help me if possible.
    thx & regards
    rahul

    hi ,
    i am also using a isqlplus url on web browser but i received some error message
    like
    1. can not find server or dns.
    2. http 404 file not found
    ok
    jaideep awasthi

Maybe you are looking for

  • Time Machine does not see old Time Capsule backsups after change in network setting?

    Hi all, Just brought our TC to our summer home for the season and have a few issues. Instead of using it as our router, I added it to our existing AEBS network.  After doing this, all of our macs did not backup for a day or so.  Once I noticed this i

  • Mapping from legacy to BW

    Hi Gurus We will be having BW which will feed legacy and legacy will do some transformation of data and it will again feed BW. we are in initial stage but not sure which kind of mapping I need to do to prepare initial mapping document.would you pl he

  • Generating a sequence of waveforms with NI 5640R card

    Hello, I have a question regarding generating a sequence of waveforms. I want to use the example "NI 5640R analog input and output" (I know this example is capable of generating a QAM or single tone signal) and make changes such that the when i run t

  • Physical inventory  cycle counting

    hi friends,                    i have maintained cc indicator in mmr and period of counting set in omco. but while running the physical inventory , it is not showing the list. so can anybody give the cycle counting procedure with tcodes. i will award

  • How to make a phone call from my ipad

    hello question is can i make a phone call like with an iphone ipad2 wifi 3G with expresso network in senegal thanks