Sql loader on client

how can i run sql loader on client PC where only forms are installed. I am using forms 10g and i am new to it....
plz help..

this is the code which i am using to upload data in the table ..
first i am creating to file then tranfer two file to dabase server .
then conneting to database using id and password..and then run
the file which has start with 'LOAD DATA'. but on unix system..
you just find how to run the file on window Os.
if (nvl(:fl_name,' ') <> ' ') then
path := :global.VIRRPTDIR || :global.os_user || '\';
tag := replace(:global.tty_no,':','_') || '_' || :global.os_user || '_fa3' ;
ctl_nm := path || tag || '.ctl';
fctl := Text_Io.Fopen(:global.WEBSERVER || ctl_nm, 'w');
     Text_Io.Put_Line(fctl, 'LOAD DATA');
     Text_Io.Put_Line(fctl, 'INFILE '||:fl_name );
     Text_Io.Put_Line(fctl, 'APPEND INTO TABLE tmp' );
     Text_Io.Put_Line(fctl, 'fields terminated by "|" optionally enclosed by '''||'\\'||''' trailing nullcols' );
     Text_Io.Put_Line(fctl, '(' );
--Text_Io.Put_Line(fctl, 'n CHAR(1000)' );
     Text_Io.Put_Line(fctl, 'TMP_FIELD1 CHAR(256)' );
Text_Io.Put_Line(fctl, ',TMP_TTYNO constant '||chr(39)||:global.tty_no||chr(39));
     Text_Io.Put_Line(fctl, ')' );
     Text_Io.Fclose(fctl);
     opath_nm := path || tag ;
     opath := Text_Io.Fopen(:global.WEBSERVER || opath_nm, 'w');
     Text_Io.Put_Line(opath, 'ORACLE_BASE=/usr1/app/oracle');
Text_Io.Put_Line(opath, 'ORACLE_HOME=/usr1/app/oracle/product/7.3.3');
Text_Io.Put_Line(opath, 'ORACLE_SID=JYTDEV');
Text_Io.Put_Line(opath, 'ORAENV_ASK=NO');
Text_Io.Put_Line(opath, 'ORACLE_PATH=.');
Text_Io.Put_Line(opath, 'export ORACLE_BASE ORACLE_HOME ORACLE_SID ORAENV_ASK ORACLE_PATH');
Text_Io.Put_Line(opath, 'LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:');
Text_Io.Put_Line(opath, 'PATH=$PATH.:/usr/jytbin:$ORACLE_HOME/bin:/bin:/usr/ccs/bin:/usr1/client/bin:/opt/SUNWspro/bin:/usr/ucb:/etc');
Text_Io.Put_Line(opath, '$ORACLE_HOME/bin/oraenv');
Text_Io.Put_Line(opath, 'sqlldr devjyt/devjyt@jytdev control='|| tag ||'.ctl');
Text_Io.Fclose(opath);
     nm := path || tag || '_ftp.txt';
f1 := Text_Io.Fopen(:global.WEBSERVER || nm, 'w');
Text_Io.Put_Line(f1, 'open 192.9.200.1');
     Text_Io.Put_Line(f1, 'user ' || :global.FTPDIR );
     Text_Io.Put_Line(f1, 'lcd ' || :global.WEBSERVER || replace(path,':',''));
     Text_Io.Put_Line(f1, 'put ' || :fl_name );
     Text_Io.Put_Line(f1, 'put ' || tag || '.ctl');
     Text_Io.Put_Line(f1, 'put ' || tag );
     Text_Io.Put_Line(f1, 'lcd');
     Text_Io.Put_Line(f1, 'disconnect');
     Text_Io.Put_Line(f1, 'quit');
     Text_Io.Fclose(f1);
     host('ftp -v -n -i -g -s:' || :global.WEBSERVER || replace(path,':','') || tag || '_ftp.txt');
     host('rsh jyoti -l '||substr(:global.FTPDIR,1, instr(:global.ftpdir,' ')-1) || ' sh '|| tag );
     synchronize;
end if;

Similar Messages

  • Download SQL Loader for client

    Hi, I have been searching for a download of SQL Loader which will work from a client machine. Can someone post a link to the most recent version please?
    Edited by: 934989 on May 17, 2012 5:36 AM

    934989 wrote:
    Hi, I have been searching for a download of SQL Loader which will work from a client machine. Can someone post a link to the most recent version please?Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
    Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (32-bit)
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html
    Thanks,
    Hussein
    Edited by: MarkP on May 22, 2012 10:59 AM - Please don't link directly to download files since license acceptance is required.

  • Automate SQL*LOADER

    Hi,
    I am working on a Decision Support System project.
    I need to load flat files into Oracle tables through SQL * Loader. And the entire process should be invoked through JAVA front end.
    How do I go about?
    I will deeply appreciate any help.
    Raghu.

    Hi,
    In our prev. project, We have customized-(automated) SQL*LOADER. There, we were using UNIX O/S. So We have used shell scripts for creating the control file (a script can create control file automatically). And it will call the sql loader and load the data into tables.
    Here u can use same logic.
    If ur flat file contents are in same format, u can use the static control files (means, at installation time u can create control files) and whenever u want this, u can call. Dont go for dynamic control files.
    1. If u is using Java as front end, u can use native methods and call sql loader (exe). Problem is, U can not invoke, and such thing from client m/c. U can do it only from server side.
    2. This way also u can try. By using external procedure method, u can call shared library and shared library can invoke sql loader (write a small C shared library program for invoking SQL*LOADER). Here, u can invoke SQL*LOADER from client m/c also.
    3. One more ways is there. By using listener tech. u can invoke it. Create listener program and run on server side as back ground process. Whenever, there is request, it will sql loader.
    With regards,
    Boby Jose Thekkanath
    [email protected]
    Dharma Computers(p) Ltd.
    Bangalore-India.

  • Sql loader control file path........

    Hello all,
    I am running the below query through sql loader from client machine.....
    saved the below query in loader.ctl file, which I kept in "D:\loader.ctl" path....
    options (skip=1)
    load data
    infile 'D:\flat.txt'
    into table GL_INTERFACE
    fields terminated by "," optionally enclosed by '"'
    *( STATUS, LEDGER_ID, USER_JE_SOURCE_NAME, USER_JE_CATEGORY_NAME, ACCOUNTING_DATE, CURRENCY_CODE, DATE_CREATED, CREATED_BY,*
    SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4, SEGMENT5, ACTUAL_FLAG, ENTERED_DR, ENTERED_CR, GROUP_ID )
    Now my doubt is, to execute the above I have to run the below command in sql loader....
    sqlldr USERID=apps/apps CONTROL=loader.ctl
    In the control file we have given the path for the data file, but * How the command (SQLLDR) identify the path of control file.?*
    Do I need to give or......?
    Is it possible to run the above loader program in client machine? or we have to run only server alone.....
    Please clarify my doubt.
    Thanks and Regards,
    Muthu

    Hi,
    The good practice is, If you are using oracle apps then register a concurrent program of type sql*loader
    put yor ctl file in $<ANY_TOP>/bin. Run Concurrent program to load the data.
    I am just givng you the hints, You search on google u will get multiple ways to do the same things.
    There are lots of ways like using of external table,UTL_FILE or Shell Script to do the same thing.
    Thanks,
    Pritam

  • Use of SQL*Loader and Thin Client

    I have a java application that is currently using the thin client. For portability issues, I am unable to use an OCI driver. My application also uses SQL*Loader.
    My big issue is that The Thin client requires the HOST and SID for a connection.
    But, for SQL*Loader to work in a client/server environment it needs to use the SERVICE_NAME and net8. Is there any way to have SQL*Loader use similar information that the thin client is using?
    I know the right solution is to use the OCI drivers, but right now that is not feasible.
    Thanks for any help in advance
    Jeff McNurlan
    Navigation Technologies.

    I assume you are using an ObjectInputStream. Without seeing your code or a snippet I can't be certain...
    The JDBC spec says the following about ObjectInputStream :
    "An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream"
    Since there was nothing written by ObjectOutputStream, ObjectInputStream has nothing to deserialize and this exception would be raised.

  • SQL*Loader-704 & ORA-12535 error , Oracle 9i AIX, Windows Client

    Hi All,
    I try to run SQL*Loader from Windows Client to Oracle 9i server on AIX. The control file is in the windows machine.
    C:\SqlLdr user/password@myoradb control=mycontrol.ctl
    (the data is 300,000 rows, on the same control file)
    I get this error :
    SQL*Loader-704 : Internal error : ulconnect: OCIServerAttach [0]
    ORA-12535: TNS:Operation timed out.
    FYI, from the same machine, TNSPing is OK, SQL*Plus run perfectly.
    What is wrong here ?
    Should I copy the CTL file into the AIX Server and run the SQL*Plus from AIX client console ?
    Thank you for your help,
    Krist

    Have you checked the sqlnet.log file for an indication of the underlying error? You can also enable network tracing in the sqlnet.ora file, by setting trace_level_client=16.

  • No SQL*Loader in Instant Client;  any alternatives?

    My Windows application uses SQL*Loader to bulk-load very large data files. Instant Client appears not to include SQL*Loader.
    Is there an alternative to SQL*Loader that my application should be using instead? And (getting greedy here) does the same alternative work in both Oracle 10 and Oracle 9?
    Thank you for any assistance,
    Brett

    Oracle XE has sqlldr. You can set it as the client environment unless you want to install the full Oracle client (of course can do custom installation) and then use for loader. You can configure your tnsnames.ora for the target database and that should work.

  • SQL Loader part of Oracle Client? Seperate install,licensing

    I use Oracle SQL Loader on one of my network machines.
    The second does not have the SQLLDR.exe in the /bin directory.
    First, can I install this component seperately and secondly
    what are the licensing implications ?
    Thanks

    Assuming you are referring to client installation, the other machine where the SQLLDR.EXE is missing seems to be a "runtime" client installation. Oracle client is a free download so there should be no implications for installing an administrator type install on this machine.
    If this is not the case, then you should be talking to the sales person about knowing the implications.

  • Adding sql loader into 11g Client already installed

    I have already installed Oracle 11g client and need to add in sql loader. How is that best accomplished?

    Easier than I thought. Just go back into the previous oracle client home install and the preinstalled items will be greyed out. Just add additional components you want to install.

  • SQL * Loader client the disappeared in version 11g?

    Hi,
    I had to import data from a file to a table in my schema, but did not find the executable sqlldr.exe in my home directory client installation.
    I've always made use of it in version 10i, but after installing the file win32_11gR2_client.zip, he disappeared.
    He no longer comes from the client installation from version 11g?
    Where can I download the utility?

    I am not sure about the client software since I don't have it but with the Enterprise Edition, it surely is there.
    SQL*Loader: Release 11.2.0.1.0 - Production on Mon Jun 27 22:09:30 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.HTH
    Aman....

  • Dumb question re Sql Loader in XP Client

    Hi all,
    I have a rather silly question. Previously I've worked exclusively in a Unix environment, but now find myself in XP.
    I've done the full install of the Windows client for XP, but SQL*Loader is missing. I've RTFM'd, but can't find the necessary section. How do I get sql*loader installed in the XP environment?
    Thanks (and apologies) in advance

    IF you are talking of the 9i version, there should be the three database install disks (that contain both the database and the client tools). When you run the installer from the first disk from this set, you will have the option of installing the client tools (including SQL*Loader).
    http://www.oracle.com/technology/software/products/database/oracle10g/index.html
    http://www.oracle.com/technology/software/products/oracle9i/htdocs/winsoft.html

  • Installing Oracle SQL loader in Oracel Client

    Hi
    Our Customer does not have SQL Loader in Oracle client
    I want to add Oracle SQL loader to the Oracle Client.
    Is there any solution other than uninstalling the present oracle client and
    re-installing the oracle client with SQL loader
    Regards
    Kandakuru

    Thanks a lot Kristian
    I will try with the oracle universal installer
    Regards
    Kandakuru

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • SQl loader is not working in 10g but working in 9i

    In My PC i have installed both 9i and 10g. could you please tell me why it is not working

    "SQL loader is not working" is rather like "my car won't start" http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    The 9i Oracle Client install includes sqlldr. The 10g Oracle Client install does NOT include sqlldr. You'd have to do a "Custom" Install and specifically select "Oracle Database Utilities" to install.
    See MetaLink Note#437377.1
    Edited by: Hemant K Chitale on Dec 31, 2008 3:58 PM
    Edited by: Hemant K Chitale on Dec 31, 2008 4:00 PM

  • SQL Loader AND Temporary Tables

    Hi :
    Have a Couple of Questions..
    (1) Is SQL Loader not part of the ORACLE DB 9.X?? Coz I could not find that exe.
    (2) Can we have the Data file on the Client Machine?? OR is it mandatory that the data file should be on the Server to load the data?

    SQL loader is part of Oracle9i and you can use its driver to create external table.Moreover for external tables datafiles should be on server.

Maybe you are looking for

  • How can I watch a downloaded movie on my TV from my Ipad ?

    I downloaded a movie from iTunes and would like to watch it on my TV. How do I do this ?

  • Error Operation could not be completed movie rental

    I Rented a movie and when I press "Watch" it asks if I want to play it, Press OK and I get the message"The operation could not be completed".  Home sharing is on, mirroring is on...It briefly shows the remote control screen then the Rented Movie scre

  • Is there a way to find old PowerMac files on my Intel Mac?

    I'm running into some problems here and there where things freeze up, kernel panic, stuff like that -- on my new March 2009 Intel 8-core Mac. I'm wondering if I have some old PowerPC files or preferences buried in folders somewhere that could be caus

  • Video Import Problem: Decompressing?

    So I have had Premiere Pro for a couple months now and I don't know why this problem is happening now when it wasn't a few days ago. I try to import my video file (.mpg) and it gives me this error: "There was an error decompressing audio or video." W

  • How to add a drop shadow on this flattened PNG image?

    First timer here - When I mask the blue globe wireframe where I want the shadow, the Property Inspector no longer allows me to add the effect. Is there a workaround or a different way to select the globe, or to make the globe its own layer and apply