Urgent!FTP command oracle 10g

The msdos command (FTP) in oracle 10g don´t work.
v_ficbat := client_text_io.fopen(v_tmpdir || '\' || 'execftp.bat', 'W');
          client_text_io.put_line(v_ficbat, v_tmpdir);
client_text_io.put_line(v_ficbat, 'ftp -n -i -s:' || v_tmpdir || '\execftp.scr <ip ftp>');
          client_text_io.fclose(v_ficbat);
     -- execftp.scr
     v_ficscr := client_text_io.fopen(v_tmpdir || '\' || 'execftp.scr', 'W');
client_text_io.put_line(v_ficscr, 'user');
client_text_io.put_line(v_ficscr, '<user>');
client_text_io.put_line(v_ficscr, '<passaword>');
client_text_io.put_line(v_ficscr, 'cd directory1');
client_text_io.put_line(v_ficscr, 'cd directory2');
          client_text_io.put_line(v_ficscr, 'get file.txt');
client_text_io.put_line(v_ficscr, 'quit');
          client_text_io.fclose(v_ficscr);
          client_host(v_tmpdir || '\' || 'execftp.bat');
What is the problem?
thanks!!!

try this.
file_handle := CLIENT_TEXT_IO.FOPEN(lv_FtpScript_Path, 'W');
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'OPEN'||' '||lv_hostname|| ' '||ln_port);
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'USER'||' '||lv_user|| ' '||lv_pwd);
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'LCD' ||' '||lv_File_Dir);
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'GET '||' '||target_file||' '||source_file);
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'CLOSE');
     CLIENT_TEXT_IO.PUT_LINE(file_handle, 'BYE');
     CLIENT_TEXT_IO.FCLOSE(file_handle);
     WEBUTIL_HOST.HOST('FTP -d -n -s:'||lv_FtpScript_Path);
replace the variables with your actual values. this works fine.
good luck.

Similar Messages

  • Ftp in oracle 10g

    Does anyone has sample program for ftp in oracle 10g. Thanks

    There are various third party implementations of the FTP protocol based on UTL_TCP. If you do a Google search on UTL_FTP, you'll get a few dozen hits
    http://sourceforge.net/projects/plsqlftp/
    is one potential option.
    Justin

  • SYSTEM HANGS WHILE RUNNING EXP COMMAND IN ORACLE 10G

    WHEN WE ARE RUNNING THE EXP (EXPORT) COMMAND IN ORACLE 10G
    TO TAKE THE BACKUP IT GETS HANGED FOR A LONG TIME AND THEN IN THE LOG FILE WE FIND THE FOLLOWING ERROR MESSAGE.
    SOMETIMES AFTER RESTARTING THE SERVER WE ARE ABLE TO RUN THE EXP COMMAND.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user MANHAR
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user MANHAR
    About to export MANHAR's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    *********************************** AT THIS POINT THE SYSTEM HANGS FOR A LONG TIME.
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00056: ORACLE error 24324 encountered
    ORA-24324: service handle not initialized
    EXP-00000: Export terminated unsuccessfully
    THE EXP COMMAND THAT WE USE IS AS FOLLOWS:
    EXP MANHAR/MANHAR FILE=F:\BACKUP\MANHAR.DMP LOG=F:\BACKUP\MANHAR.LOG BUFFER=1000000 GRANTS=Y CONSTRAINTS=Y
    WE ARE RUNNING THE EXP COMMAND ON THE SERVER ITSELF.
    THE SERVER OPERATING SYSTEM IS WINDOWS 2003 SERVER.
    Kindly give us a solution at the earliest.

    You should ask Oracle support for help. There's only one entry for this error stack (Bug 3361288 - Export of XMLSCHEMA may fail with ORA-24324 in UTF8), but it should have been fixed for your DB version and , as far as I can see, you don't have a Unicode database.
    Werner

  • Errors in impdp command on oracle 10g database

    Hi,
    could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Job "DCA"."SYS_IMPORT_SCHEMA_01" stopped due to fatal error at 15:31
    i tried to restart job but the following errors coming
    UDI-00008: operation generated ORACLE error 39078
    ORA-39078: unable to dequeue message for agent KUPC$A_1_20081111155728 from queue "KUPC$C_1_20081111155728"
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2356
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3261
    ORA-06512: at line 1
    thanks in advance

    NAME TYPE VALUE
    streams_pool_size big integer 0
    sga_target big integer 200M
    what could be the value for avoiding errors! thanks in advance

  • Errors in impdp command on oracle 10g database-urget help needed

    Hi,
    could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Job "DCA"."SYS_IMPORT_SCHEMA_01" stopped due to fatal error at 15:31
    i tried to restart job but the following errors coming
    UDI-00008: operation generated ORACLE error 39078
    ORA-39078: unable to dequeue message for agent KUPC$A_1_20081111155728 from queue "KUPC$C_1_20081111155728"
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2356
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3261
    ORA-06512: at line 1
    thanks in advance

    Can you check Metalink Note 376022.1? Your STREAMS_POOL_SIZE parameter may be too small.
    If you don't have Metalink access, try this :
    sql> alter system set STREAMS_POOL_SIZE=100M scope=spfile;
    sql> shutdown immediate
    sql> startup
    Note : the Portal Applications forum may not be the appropriate forum for this datapump issue. Try one of the database forums as you'll have a wider audience there.

  • Calling java from pl/sql in oracle 10g?its very urgent.

    Hi Friends,
    i hve simple java code:
    class Hell
    public static String Hello()
    return"hello world";
    & compile this code using javac & loaded Hell.class in to database using this command
    c:\>loadjava -user chandru/shekar@pulser c:\Hell.class
    & i wrote pl/sql like:
    CREATE OR REPLACE FUNCTION Hell RETURN String as language java name 'Hell.Hello() return java.lang.String';
    i will compile the code & run but at that time this error i am getting:
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:317
    Uncaught exception System error: java/lang/UnsupportedClassVersionError
    I am using oracle 10g.Plzzzzzzzzz help me.Its very important to for me.
    Is any path i hve to set for oracle 10g database.Plz any one help me.
    regards
    shekar

    Hello here is how I solved the problem
    Let us assume that i try to load the file Hello.Java into the user scott.
    public class Hello {
         public static String world() {
              return "hello world";
    1) Dropjava          
    You must drop the java class if you already have loaded the class onto the server.
    dropjava -u scott/tiger Hello.class
    2) load class on server and let the server compile the source code.
    It is necessary to compile the source code on the server when the server and the local machine have different Java versions. To check which Java version there is running on the client machine open a command prompt and write Java -version
    loadjava -user scott/tiger -resolve Hello.java
    3) Publish stored procedure      
    sqlplus scott/tiger@oracle
    CREATE OR REPLACE FUNCTION helloworld RETURN VARCHAR2 AS                LANGUAGE JAVA NAME 'Hello.world () return java.lang.String';
    4)Call stored procedure      
    VARIABLE myString VARCHAR2(20);
    CALL helloworld() INTO :myString;
    PRINT myString;
    RGDS
    Thomas Winterberg

  • URGENT- Apply OracleAS 10g Release 3 (10.1.3.0) Patch Set 5 (10.1.3.5.0)

    Hi friend;
    I had one urgent issue. I am following Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business Suite Release 12 [ID 454811.1]
    I had one issue and i restart to installation but on OUI screen i have,
    There are no patches that need to applied from the patchsert Oracle application Server Patchset 10.1.3.5
    I dont have oraInventory and i followed :
    How to Create a Clean oraInventory in Release 12 [ID 834894.1]
    My oraInventory which i created its shows:
    inventory_loc=/etc/oraInventory
    inst_group=dba
    Any one has idea?
    Regard
    Helios
    Edited by: Helios- Gunes EROL on Jul 13, 2010 5:57 PM

    You say you have 10.1.3.0 and your message says "There are no patches that need to applied from the patchset Oracle application Server Patchset *10.2.3.5*"
    You can't patch 10.1.2 with a 10.1.3.
    are you sure you have the appropriated patch?

  • Copy and open Command in Oracle 10g Linux (Minut, Ubuntu)

    Dear All;
    I am facing one problem we used to copy any document and for open any document in WINDOWS
    Host('CMD /C COPY '||'"'||:Old_Doc||'"'||' X:\03\03\'||:New_Doc);
    Client_Host('Cmd /C Start '||'X:\03\03\'||:New_Doc);
    But these commands not running in Linux. Please provide me any solution that will help me to copy and open any kind of document in oracle 10g in Linux. I am waiting of your positive response. thx.

    I am not using any thing istead of HOST command, I dn't know any thing similier about HOST command. When I run this in Linux then it give me error message. I think there is something like HOST command in Linux but........ is it??

  • Very Urgent - Export Oracle 10G and Import Oracle 9i

    Dear Friends,
    I am in a very tense sitution. Please help to sort out this problem. I am running an application against Oracle 10G. Now I want the the data of the application running under 10G(server A) to be imported to Oracle 9i (another Server B) and run the same application. What should I do so that i can export the data from Oracle 10G and import in Oracle 9i.
    Please treat this as very urgent.

    You need to post your question in the database forum. This forum is for Oracle Forms. There are database tools such as SQL Developer that let you move data back and forth between databases.

  • Restoring Oracle 10g Using Command Line

    OK. I have used Oracle 10g for about 4 hours now, so don't laugh when i ask dumb questions. I have installed Oracle 10g and just can't get the interface to work. So I used SQL in command line and I can connect and diconnnect from the database, I can log into the database as SYSDBA. So from what I can tell the database is working, not the interface though. I get Java Exceptions, URL:null errors and so on.... Can I use the command Prompt to restore a cold backup? I don't know how to use RMAN functions, but if thats the only way i guess i will have to learn. Thanks in advance.

    Ok well to detail more....I performed a cold backup on a customer production server and need to restore that cold backup to a test server to check for consistency. So right now I have 2 files in a folder which are the cold backup files and a server with a non functioning Oracle Interface to restore. I can't startup the database in the interface, and when i navigate to the perform restore in the interface it asked me to supply host and database credentials. I did that and it returns a error of something like URL null cant contact agent. I forget what the exact error is and I have already uninstalled oracle hoping to install again to fix problem, but after 4 times I doubt it will. All Oracle Services are running also. The admin accout is part of the ora_dba group as well. Any other permission things I need to check for?

  • See the detalis of DDL commands executing on oracle 10g

    Hi,
    how can i see the detail of DDL command executed on oracle 10g on ECC 6.0
    ECC 6.0
    HPUX
    Regards,

    Did you activated the auditing mechanish on the Oracle? If it is active, you can query the audit table;
    select * from sys.aud$;
    Another way is using Oracle Log Miner. You can find the related information, on the link below;
    http://docs.oracle.com/cd/B10501_01/server.920/a96521/logminer.htm
    Best regards,
    Orkun Gedik

  • Installing oracle 10g release 2 on spark solaris!! urgent help!

    hi guys!
    Am installing oracle 10g r2 on spark sun solaris. I did install the software without any pb, but when installing the database using dbca, I have this errors.
    ORA-27154: post/wait create failed
    ORA-27300: OS system dependent operation:semget failed with status: 28
    ORA-27301: OS failure message: No space left on device
    ORA-27302: failure occurred at: sskgpcreates
    Edited my kernel parameters and in the /etc/system file, ai've added
    set noexec_user_stack=1
    set semsys:seminfo_semmni=100
    set semsys:seminfo_semmns=1024
    set semsys:seminfo_semmsl=256
    set semsys:seminfo_semvmx=32767
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=10
    Space aint an issue and dont know how to over come this error!
    Should ai just install the db using scripts and run the neccessary .sql scripts instead of going through dbca?
    junior DBA in distress.

    This appears to be because of low semaphores setting. Did you reboot your server after making the /etc/system parameter changes ?
    -Ramesh

  • Urgent: problem running reports in Oracle 10g application server

    Hi all,
    our problem is that we deployed a jsp report as Ear file in Oracle 10g application server in infrastructure node.deployment says successfull.when we try to run that report it says 401 unauthorised.while sending request we are passing the database username,password &sid is this correct or any configuration setting to be done to make it run.
    one morething normal jsp works fine.when we run reports jsp it gives the above mentioned 401 error.

    hello,
    when you deploy reports JSPs they still require the reports specific componentes (e.g. TLD file, classes, ...) etc be available. i doubt that's the case in your ear file.
    thanks,
    ph.

  • Need Urgent Help with trigger in Oracle 10g

    Hello frd,
    I am working on my DBMS Project in VB 6.0 that is Tollbooth management system
    i have to insert one trigger for my project so i had decided to insert time trigger.
    I have total 3 table UserLogin, Vehice and Vehicle_Data
    the 3rd table Vehicle data contain the following fields
    Vehicle_Type, Vehicle_No, Tax_Time, Source, Destination and Tax
    Now i had done coding for tax when you select Vehicle Type, Source and Destination the Tax Field will automatically fillup and all the data will Saved in Oracle table but now my problem is that i want to create trigger for Tax_Time column When any new data inserted current time will stored in that column
    I had create one but it gives error
    create trigger time after insert on vehicle_Data
    for each row
    begin
    insert into Vehicle_Data(Tax_Time) values(to_char(sysdate, 'HH:MI:SSAM DD_MON_YYYY'));
    end;
    Note: I am Using VB 6.0 and Oracle 10g Express Edition

    I had create one but it gives errorWelcome to the forum and many many thanks for not posting the full error message, that is really helpful, since we're all a 100% sure what's going on now (yes, that was ironic ;) ).
    Let me guess: a mutating table error?
    Read:
    http://www.oracle-base.com/articles/9i/MutatingTableExceptions.php
    http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936
    But before that, actually you should read:
    http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html

  • Oracle 10G forms not running.......very urgent

    Hi all,
    shayan here......
    i have just installed oracle databse 10g and oracle 10G developer........i have done it first time....the forms is not running even the test form is not running....i have start the OCJ4 but still the same result..............any sujjestion how to configure....
    plz tell me

    Shayan,
    I assume that you are trying to run the form from within Forms Developer and that you are connected to the database.
    Now you have to apply the URL that have to be used when running a form. At one of the tabs in the options screen (where you also can choose to save before generating and generate before running or to get debug messages) you can set the default URL by pressing a button.
    At this moment I don't have a 10g installation in reach so I cannot give you the exact menuoptions and mouse clicks.
    With kind regards,
    Martin Schaap

Maybe you are looking for

  • OWB 10gR2 map returning status = Complete and Result = Null in Process Flow

    Hi, I have an OWB process flow which invokes an OWB map. There are 2 outgoing transitions attached to the OWB map. 1st transition is a conditinal one (on SUCCESS) and the 2nd one is unconditional transition. I am monitoring the status of process flow

  • Mask gradiant black and white no matter what color is chosen

    My mask gradiant is black and white not matter what color I choose. How do I fix that?

  • Unable to access Transaction iView

    Friends, Need your help on the following issue: Assume that we have a user id called FIAP in BW and R/3 systems.We have configured BW and R/3 systems in portal and tested SSO functionality.For BW system we could access all iviews.We have also created

  • Maintenance Plan Numbers created by system is out of sequence

    Hi, I have set the internal no. range of maintenance Plan as 100000000 - 199999999, I found system is generating plan no. as 100000001, 100000002, 100000010, 100000011. I have also checked the selection criteria on IP15 and IP24, Please tell me why m

  • Sales Area - Maintenance and Replication

    Dear experts, In our scenario (CRM 5.0 interated with ERP 2005): - We ceate a sold to party BP in CRM - This BP is replicated as a contract partner in R3 with a SD customer. 1/ We need to maintain ONE sales area in CRM in order to be able to create a