FTP on UNIX

Guys,
I'm trying to write code for FTPing files from a unix server. How do I define the FTP command ?
String ftpCommand = " ??"
I was able to make FTP work on Windows but unable to do so on unix.
and NO, I do not want to use already written FTP API from open sources else when will I learn ?
Thanks a lot in advance.

FTP is FTP is FTP...if you read the RFC's dealing with FTP...and you implement them properly....then they will work on windows AND unix. Of course, we are assuming that your unix ftp server was implemented correctly and as with anything software...you never know.
We have standards for a reason....

Similar Messages

  • FTP for unix to widows using java

    I need to copy files in unix server to my windows system.i can do this using ftp manually. how can i implement this ftp in java?

    i am in need of sample codes for doing ftp (unix to
    windows). can some one suggest to me sites where i
    can get "free" codes.[ _ ] You read the article
    [ _ ] You followed the references the article made
    [ _ ] You know how to use Google

  • Concurrent program to FTP from Unix to windows

    Hi,
    I am trying to FTP files from UNIX to a windows machine. I tried to do it through a shell script but it did not work , so i tried at the command prompt.
    I am able to login and get files from windows to UNIX but I am not able to PUT files.
    I spoke to the admin and he says all permissions are granted on teh remote host. I am able to put files with the same userid from windows to windows but not from UNIX to windows.
    Any ideas why? User id has read/write permissions.
    thanks

    are you sure its a path issue i face the same issue before and find out it was a windwos premission issue
    fadi hasweh
    http://oracle-magic.blogspot.com/
    Oracle is not Magic, it just takes years of experience

  • Excel file from FTP Server UNIX

    Hi All,
    I am trying to fetch data from file server which is in EXCEL(.XLS) format.
    Able to connect FTP using FTP_CONNECT,using FTP_COMMAND(get filename).
    Now the problem is i am able to read text file but not EXCEL file.
    How to capture the excel file entries,help me regarding this?
    Sachin.

    Sachin, this question is asked several times each week in the forum. There are solutions, in short: DOI or OLE for dialog, external softwares for other cases. As said by breakpoint, you'll be able to process these files more easily and quickly, if they are saved under other (text) formats: txt, csv, xml, xslx.
    Please search and read these posts and revert back if any question.

  • Ftp in unix shell script

    hi.
    I have the following requirement to be written as a shell script.
    1. ftp to another server ( say x)
    2. change the directory ( cd /data)
    3. check if there exists a file with extention .csv. If it does,
    3.1 get the file and copy it to a backup directory,
    3.2 rename the file to test.csv
    3.3 login to an oracle schema and execute a procedure.
    3.4. Based on the output, echo success or error
    3.5 If success delete the file
    Can all this be done in one script. ?
    Any help would be highly appreciated.
    Thanx

    Hi ,
    Hope the folllowing scipt listing will help you.
    cd /u01/backup/
    ftp -in << EOF
    open x
    cd data
    ls . /u01/backup/test.out
    EOF
    # Check whether .csv file exists.
    cat /u01/backup/test.out | awk '{print $9}' | tail +2 | cut -d "." -f 2 | grep csv
    if [ $? -eq 0 ]
    then
    cd /u01/backup/
    ftp -in << EOF
    open x
    cd data
    get
    EOF
    fi
    # renaming file
    cd /u01/backup/
    mv *.csv test.csv
    # set environment for database running
    export ORACLE_HOME=
    $ORACLE_HOME/sqlplus/bin -s /nolog << EOF > /dev/null
    connect user/pass
    spool output.lst
    @execute_the_script.sql
    spool off
    EOF
    ## procees output.lst and echo the result.
    ## Execute further steps..
    Regards,
    Aditya.

  • JCA Binding error with FTP Adapter on put operation

    Hi
    I am facing a problem with put operation with ftp adapter. my soa service will get file from the 1st ftp server (Unix) as attachment and is putting the file on another ftp serve(Unix)r. the put operation is failing with the below error:-
    Non Recoverable System Fault :
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Error sending file to FTP Server. Error sending file to FTP Server. Unable to send file to server. Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>Unexpected termination: Socket closed</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>
    this is a SFTP server and the corressponding property is set to true on the configuration. I had also recreated the jndi again & also increased the max connections to 700, but still facing the same issue. Also i am able to ftp the files to this location through filezilla. Also i continously getting the below errors in soa_server1.out:-
    <Jul 24, 2012 7:25:11 AM CDT> <Error> <oracle.soa.bpel.engine> <BEA-000000> <Unhandled exception for ComponentDN=default/NShoreAccrualConcService!1.0*soa_9113be23-2e93-4e54-9987-2e8ae5a4b2e6/ProcessNShoreAccurals CompositeInstanceId=330020 ComponentInstanceId=330018>
    <Jul 24, 2012 7:25:11 AM CDT> <Error> <oracle.soa.bpel.engine> <BEA-000000> <This exception occurred because the fault thrown in the BPEL flow was not handled by any fault handlers and reached the top-level scope. Root cause :
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{
    summary=<summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Error sending file to FTP Server.
    Error sending file to FTP Server.
    Unable to send file to server.
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    ,detail=<detail>Unexpected termination: Socket closed</detail>
    ,code=<code>null</code>}
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:338)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1059)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:586)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:130)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:74)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:158)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2543)
         at com.collaxa.cube.engine.CubeEngine._handleWorkItem(CubeEngine.java:1165)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1071)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:328)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4430)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4361)
         at com.collaxa.cube.engine.CubeEngine._createAndInvoke(CubeEngine.java:698)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:555)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:673)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:293)
         at sun.reflect.GeneratedMethodAccessor1687.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
         at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
         at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
         at sun.reflect.GeneratedMethodAccessor1119.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy277.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:35)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:64)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    >
    <Jul 24, 2012 7:25:11 AM CDT> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{
    summary=<summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Error sending file to FTP Server.
    Error sending file to FTP Server.
    Unable to send file to server.
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>

    Error itself indicates the potential issues -
    Please ensure
    1. Specified remote output Dir has write permission
    2. Output filename has not exceeded the max chararters allowed by the OS and
    3. Remote File System has enough spaceRegards,
    Anuj

  • Forms 6i libraries in UNIX vs NT

    We are trying to compile forms under UNIX but are having problems with upper case and lowere case libraries. Basically forms are created in NT which is where we attach the libraries, save the fmb and ftp to UNIX and try to compile. Get errors indicating libraries do not exist. If we have 2 copies of libraries, one in upper case one in lowere case, then the form compiles. Is there any way to get around having filenames in both upper and lower case ?

    Soryy,I do not have a solution to your problem, but I do need your help on 1 issue. We have Oracle Developer Server 6.0 installed on UNIX server.We want to make changes to a few forms and also develop new forms. Can you tell me whether we need to install the Developer software on the clients to make changes/develop new forms OR Can we access the software on the server from the clients to make the changes.
    Your help would be highly appreciated.
    Regards
    Abhishek

  • Unwanted character in Receiving Files at FTP

    Hi All,
    We have scenario where I am  sending the files(NFS) to FTP,just like file to file scenario. It seems to every thing is fine but when I look at that files in receiver side(FTP) there  is a special charcter placed in end of each record. ^M
    like this :
    werrtt, 123224214, fsdaff,^M
    dsfdsf,6756767,dsfsffdff,^M
    Do you have any idea why it(^M) is coming, do I need to use Unicodes for aviod that ? currently I am using binary/format in channel. If I dont send those files to FTP , then I dont see that character.
    Our FTP on Unix and Files picking from windows(NFS).
    How to avoid this special character(^M)?,  Is this based on FTP behaviour  or environment problem?
    Thanks,
    Shankar

    > This has resolved the issue but I believe instead of unix script if we can handle in XI itself, it will be too good.
    You can do this in PI, but it is a cumbersome:
    Put following modules in the module before the standard module:
    1. Use the StrictXml2PlainBean instead of the content conversion in file adapter
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/748d595dab6fb5e10000000a155369/frameset.htm
    2.ConvertCRLFfromToLF
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/96/f04142099eb76be10000000a155106/frameset.htm

  • FTP problem in ECC6 PROGRAM

    Hi Gurus!
    We have a ftp's problem within a ABAP Program. It runs successfully in DEV and doesn't run in QAS.
    We don't Know if it's a basis or programming problem. Apparently  the program take the local directory instead of de SAP's directory.
    Our landscape is SAP SERVER W2003 - ECC6 , FTP Server Unix
    It's the code
    1        cd sbo_in
    2        lcd D:
    3        put pal_10001412.txt
    resultado
    1        cd sbo_in
    2        250 Instrucción CWD ejecutada con éxito.
    3        lcd D:
    4        Local directory now D:
    5        put pal_10001412.txt
    6        open pal_10001412.txt errno 22: Invalid argument
    Can someone help me with this issue?
    Thanks in advance!
    Regards,
    Miguel

    Hi Kriss, thanks for your reply.
    DEV and QAS are both installed in the same Server, then directory exists. Users <sid>adm and SapService<SID> have the same rights on this folder, furthermore in trx al11 we see the same valor DIR_PUT = D:\usr\sap\put
    The users which run program has the sap_all authorization
    Thanks in advance for your help
    Miguel

  • CS-ACS SE FTP "active" mode

    Dear,
    The CS-ACS SE unit seems to enforce passive-FTP
    when sending backup sets or retrieving CSV files.
    The FTP server (Unix based) mandatorily uses
    IPFilter to protect us from unauthorised accesses,
    and the passive-FTP mode is quite awkward. (IPFilter
    does not have the intelligence to work gracefuly
    with passive-FTP).
    Is it possible to change/control the way
    CS-ACS-SE works:
    a/ Could it be set to use "active" FTP?
    b/ If only passive-FTP: can we restrict t
    the port range used to a small
    predictable range?

    I don't remember coming across an option where choosing between active and passive mode FTP is possible. You could consider changing the filter to permit/drop based on IP only and leave the port info out.

  • Send and receive files between unix machines

    Hi friends,
    I have to send and receive files from one unix machine to another unix machine. In my first unix machine I have tomcat webserver. Using a JSP I have to send and receive files from this machine to another machine. The destination machine contain some BAAN implementation, which take the files I send as input .
    Can you send me a java program to solve this problem.

    Hi friends,
    I am getting a problem in my application. I will state the complete problem in detail. I have to transfer 3 files from one NT machine to unix machine some where kept in net work, I used an ftp in 'Process p = getRunTime().exec("ftp -i -s:ftp.txt")'. In ftp.txt file I have given the necessary things for ftp to unix machine. The files are transfering into the unix box. When I to the process for the 2nd time I have to check whether the file are exists in the unix box, then only transfer the files. Now, again I am doing ftp bring the files from the unix box to NT machines using 'Process p = getRunTime().exec("ftp -i -s:ftp1.txt")' where ftp1 contains all the necessary things for ftp to unix machine . Now I am checking for the files available in the NT machine using boolean=(new File(filename)).exists(), Fine out of 3 files, 2 file shows the return type as 'true' and one file is showing 'false', even the same happens if I delete the 3 files after checking, out of 3 files, 2 file shows the return type as 'true' and one file is showing 'false'. I went to the folder where I am bring files from and removing the files manually, one file is showing share violation, one process is using the file . I am unable to resolve this problem, will this code what I write is acceptable if not suggest any other code. I have sending all the snippets of the programs. I am doing this in the development environment like this. My production environment is totally both are unix machines.
    1. ftp to transfer files.(tranfer.txt)called in java code down
    open 172.16.30.6
    informix
    informix
    bin
    has
    cd /tmp
    put d:/dathu/CSV/bssfa932.txt
    put d:/dathu/CSV/bssfa933.txt
    put d:/dathu/CSV/bssfa936.txt
    bye
    2. ftp to get the files(get.txt)used in java code down
    open 172.16.30.6
    informix
    informix
    bin
    has
    cd /tmp
    lcd d:/dathu/hold
    get bssfa932.txt
    get bssfa933.txt
    get bssfa936.txt
    bye
    3. java code snippet to getfiles
    Process p = Runtime.getRuntime().exec("ftp -i -s:get.txt");
    4. java code to check the files exist
    boolean filestatus=moCreatFlatFilerobj.isFileExists();
    public boolean isFileExists(){
    boolean isfileexisting=false;
    boolean blnordhead = (new File(file1 with path)).exists();
    boolean blnordlines = (new File(file2 with path)).exists();
    boolean blnaccount = (new File(file3 with path)).exists();
    if(blnordhead && blnordlines && blnaccount){
    isfileexisting=true;
    return isfileexisting;
    5. java code to delete files
    public void deleteFiles(){
    boolean header= (new File(file1 with path)).delete();
    boolean line =(new File(file2 with path)).delete();
    boolean account=(new File(file3 with path)).delete();
    6. java code to tranfer files.
    p = Runtime.getRuntime().exec("ftp -i -s:transfer.txt");

  • Bftpd running under root

    Hello
    I have a problem with my bftpd. It is working but its runnig under root user. I dont know how to run it like ftp.
    Thank you for your replies.
    [jerka@pils ~]$ su
    Heslo:
    [root@pils jerka]# su ftp -c "/usr/sbin/bftpd -D" -s /bin/bash
    You must change your password immedeatly (need by rootem)
    Change password for ftp.
    (present) UNIX password:
    [root@pils jerka]#
    I try run it like ftp but as you can see, its not worknig.
    Here is my bftpd.conf
    Configuration file for bftpd.
    global {
    DENY_LOGIN="no"
    PORT="21"
    PASSIVE_PORTS="0"
    DATAPORT20="no"
    ADMIN_PASS="x"
    PATH_BFTPDUTMP="/var/run/bftpd/bftpdutmp"
    XFER_BUFSIZE="2048"
    XFER_DELAY="0"
    ALLOW_FXP="no"
    CONTROL_TIMEOUT="300"
    DATA_TIMEOUT="30"
    RATIO="none"
    ROOTDIR="%h"
    UMASK="022"
    LOGFILE="/var/log/bftpd.log"
    HELLO_STRING="Welcome to PILS ftp server"
    AUTO_CHDIR="/"
    FILE_AUTH="/etc/bftpdpass"
    RESOLVE_CLIENT_IP="no"
    MOTD_GLOBAL="/etc/ftpmotd"
    MOTD_USER="/.ftpmotd"
    RESOLVE_UIDS="yes"
    DO_CHROOT="yes"
    LOG_WTMP="yes"
    BIND_TO_ADDR="any"
    PATH_FTPUSERS="/etc/ftpusers"
    AUTH_ETCSHELLS="no"
    ALLOWCOMMAND_DELE="yes"
    ALLOWCOMMAND_STOR="yes"
    ALLOWCOMMAND_SITE="yes"
    HIDE_GROUP=""
    QUIT_MSG="Stejne jsem to vsechno hodil do krbu!"
    USERLIMIT_GLOBAL="0"
    USERLIMIT_SINGLEUSER="0"
    USERLIMIT_HOST="0"
    GZ_UPLOAD="no"
    GZ_DOWNLOAD="no"
    Last edited by jerka (2007-12-18 11:00:00)

    u can chroot it, or just leave it be, i dont have any ideas how you might use port 21 w/o root privilegies.

  • Download  350MB of data from Application Server to Presentation server

    i want to Download  350MB(Around 2.5Million record of Table BSEG) of data from Application Server to Presentation server..
    i have tried with the transaction CG3Y and program using open dataset,read dataset,close dataset,ws_download...but went in vain,,,ended with TIMEOUT ERROR..will OPEN DATASET 'path' FOR OUTPUT FILTER 'Compress'  be helpful
    ..please help me ..its urgent..

    you can do the FTP with Unix commands..
    initially connect to the application server  by using command
    FTP <app server ip>,then it willl ask for username and password... after successful connection you  can use the following commnads to transfer file
    lcd <destination path name>(set the dest path)
    cd <source path>(set the sorce path),
    get <filename to be transfererd>( do the transfer)....
    You can do same with ABAP code also, for this you need to use some function modules like..
    FTP_CONNECT ( to establish the connection)
    FTP_COMMAND ( to execute the commands like cd, lcd get,put)
    finally FTP_DISCONNECT to close the open connection...
    for further details refer standard program RSFTP002,RSFTP003....
       reward points if helpful...

  • FtpAdapter deploy problem ORABPEL-09903

    Hi,
    What's wrong with my configuration of the FtpAdapter ???
    I've configured the FTP Adapter in the following files :
    * $ORACLE_HOME/j2ee/OC4JINT/application-deployments/default/FtpAdapter/oc4j-ra.xml
    * $ORACLE_HOME /j2ee/OC4JINT/connectors/FtpAdapter/FtpAdapter/META-INF/oc4j-ra.xml
    * and also via the console of OEM : application-defaut / connexion
    factories (an other question : where is this file on the system ???)
    Stop and restart the application server.
    Then I've tried to deploy under Jdev a process with an adapter which reference the entry I've just specified in oc4j-ra.xml (the default one : eis/Ftp/FtpAdapter)
    I've tried the ftp under unix session, it's working.
    Environment
    HP-UX PA-RISC (64-bit)
    Oracle BPEL 10.1.3.1.0
    Here is the message from Jdev
    BUILD FAILED
    C:\Workspace\Application1\Fli_FTP\build.xml:79: Problème détecté lors de la connexion au serveur "frqpux08" sur le port "7778" : bpel_Fli_FTP_1.0.jar failed to deploy. Exception message is: ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "Fli_FTP", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
    at com.collaxa.cube.engine.core.BaseCubeProcess.startAllActivationAgents(BaseCubeProcess.java:354)
    at ...
    Here is some parts of the domain.log in debug mode, my process is called Fli_FTP and FTP_douanes is the partner link FTP Adapter
    <2008-07-17 16:42:45,090> <INFO> <default.collaxa.cube.engine.deployment> Process "Fli_FTP" (revision "1.0") successfully loaded.
    <2008-07-17 16:42:45,158> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/Fli_FTP~1.0/'
    domain='default'
    WSDL location='FTP_douanes.wsdl'
    portType='Get_ptt'
    operation='Get'
    activation properties={portType=Get_ptt}
    <2008-07-17 16:42:45,164> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Locating Resource Adapter for jca:address.. {http://xmlns.oracle.com/pcbpel/wsdl/jca/}address: location='eis/Ftp/FtpAdapter'
    <2008-07-17 16:42:45,164> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JNDI lookup of 'eis/Ftp/FtpAdapter' failed due to: eis/Ftp/FtpAdapter not found
    javax.naming.NameNotFoundException: eis/Ftp/FtpAdapter not found
         at com.evermind.server.rmi.RMIServerContext.lookup(RMIServerContext.java:207)
         at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:255)
         at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:195)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at oracle.tip.adapter.fw.jca.AdapterLocator.findResourceAdapter(AdapterLocator.java:148)
         at oracle.tip.adapter.fw.jca.AdapterFrameworkImpl.endpointActivation(AdapterFrameworkImpl.java:341)
    <2008-07-17 16:42:45,171> <ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Error while performing endpoint Activation: ORABPEL-12510
    Unable to locate the JCA Resource Adapter via WSDL port element jca:address.
    The Adapter Framework is unable to startup the Resource Adapter specified in the WSDL jca:address element: {http://xmlns.oracle.com/pcbpel/wsdl/jca/}address: location='eis/Ftp/FtpAdapter'
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the OC4J Application server or
    2) the 'location' attribute in $J2EE_HOME/application-deployments/default/deployed-adapter-name/oc4j-ra.xml has not been set to eis/Ftp/FtpAdapter. In the last case you might have to add a new 'connector-factory' entry (connection) to oc4j-ra.xml.
    Please correct this and then restart the BPEL/OC4J Application Server
    Here is the part of the oc4j-ra.xml, of course with correct entries for host, username and password
         <connector-factory location="eis/Ftp/FtpAdapter" connector-name="Ftp Adapter">
              <config-property name="host" value="<The name of my server>"/>
              <config-property name="port" value="21"/>
              <config-property name="username" value="<the username>"/>
              <config-property name="password" value="<the password>"/>
              <config-property name="keepConnections" value="true"/>
              <config-property name="serverType" value="unix"/>
              <config-property name="serverLocaleLanguage" value=""/>
              <config-property name="serverLocaleCountry" value=""/>
              <config-property name="serverLocaleVariant" value=""/>
              <config-property name="serverEncoding" value=""/>
              <config-property name="useFtps" value="false"/>
              <config-property name="walletLocation" value="C:\wallet\ewallet.p12"/>
              <config-property name="walletPassword" value="welcome1"/>
              <config-property name="channelMask" value="both"/>
              <config-property name="securePort" value="990"/>
              <config-property name="keyStoreProviderName" value=""/>
              <config-property name="keystoreType" value=""/>
              <config-property name="keystoreAlgorithm" value=""/>
              <config-property name="enableCipherSuits" value=""/>
              <config-property name="proxyHost" value=""/>
              <config-property name="proxyPort" value=""/>
              <config-property name="proxyUsername" value=""/>
              <config-property name="proxyPassword" value=""/>
              <config-property name="proxyType" value=""/>
              <config-property name="proxyDefinitionFile" value=""/>
              <config-property name="useProxy" value="false"/>
              <config-property name="useSftp" value="false"/>
              <config-property name="authenticationType" value="password"/>
              <config-property name="preferredKeyExchangeAlgorithm" value="diffie-hellman-group1-sha1"/>
              <config-property name="preferredCompressionAlgorithm" value="none"/>
              <config-property name="preferredDataIntegrityAlgorithm" value="hmac-md5"/>
              <config-property name="preferredPKIAlgorithm" value="ssh-rsa"/>
              <config-property name="privateKeyFile" value=""/>
              <config-property name="preferredCipherSuite" value="blowfish-cbc"/>
              <config-property name="transportProvider" value="socket"/>
              <connection-pooling use="none">
              </connection-pooling>
              <security-config use="none">
              </security-config>
         </connector-factory>
    Many thanks for your time,
    Francis

    Hi,
    OC4JInt : the OC4J for integration in our system.
    I've already done that : see the first line of the blog :
    "and also via the console of OEM : application-defaut / connexion
    factories (an other question : where is this file on the system ???)"
    One thing is strange, here, I can't see what I create...
    I create a connexion pool, used by a connexion factory (jndi name : eis/Ftp/FtpAdapter), I try also with other names like eis/Ftp/FtpAdapter2, 3...
    I receive an error :
    Unable to add connection factory at eis/Ftp/FtpAdapterFliLast via JMX MBean
    Masquer les autres informations de trace
    oracle.oc4j.admin.jmx.shared.exceptions.JMXException: Unable to add connection factory at eis/Ftp/FtpAdapterFliLast via JMX MBean at oracle.oc4j.admin.management.mbeans.JCAConnectionDefinition.addConnectionFactory(JCAConnectionDefinition.java:244) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36) at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:239) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1071) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:953) at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke
    I can't see them after in the panel
    but I see the entry in OEM, open node OC4J / default link / FtpAdatper link / Admin tab / access on link for the proprietary deployment descriptor
    Many thanks

  • Maximum number of File channels in PI system?

    Hi Experts
    We are replacing a tool into PI system in my company, and because of this we have to create around 350 File (FTP to Unix Fileshare) Sender/Receiver channels. Already there are 100+ File channels running in production system. Is there a limit for having number of File channels in PI system?
    please let us know if there is any parameter to check this limitation or ?
    Thanks for your help and quick response on this is appreciated.
    Thanks,
    Giridhar

    Hi Giridhar,
    Its more of a design approach than limitations of PI.
    There is no limitation of number of channels you create in PI. as a gentleman previously mentioned it might create performance issue as all the channels will be polling at a time to retrieve data.
    few suggestions:
    1. during design talk to the business team and try scheduling the channels. like every day 3hrs (morning 6am to9am) for few interfaces. and other business in evening 5 to 8 pm. (not everytime a business would be sending data. based on the region and other things they would have a time at which data transmission is high). -- this should be done in Prod only.
    2. Keep the size of each message to optimal size 1 to max 5mb so that messages get processed fast.
    3. configure the channels very proper with Connection mode : per file transfer .
    4. in advanced mode set "ftp.timeout" parameter. this will ensure thread is released one the data transfer is complete/or time exceeds.
    5. discuss with the business and set the max file size limit in file sender channel. ...etc
    there are many other things you can do to manage large amount of channels (especially file channels) in PI system. this will give optimal performance of PI system overall.
    Warm Regards,
    Senthilprakash.

Maybe you are looking for