Connection of oracle database in database server from application server

Hi,
I have two servers, one is application server and another one is database server…..
I want to connect oracle 10g database in database server to application server. In application server oracle 10g client is installed……In database server, I have set tnsnames.ora, Listener.ora …while checking in lsnrctl…the particular sid is running fine…
In application server, while I give as sqlplus
After giving username and password its showing error as
ORA-12545: Connect failed because target host or object does not exist
While surfing in net it shows check tnsnames.ora and listener.ora….. I have set the environmental variables here in application server…..
It’s connecting when I give
Sqlplus
Sql>username/password @ hostname: 1521/sid_name
Is it possible to connect with the username and password
I have set the host names in /etc/hosts….
If we are giving the hostname, port number and Sid name this connects without using tnsnames.ora…..
While pinging between two servers the connectivity is there between two servers…..
Could u pls help me out?
Thanks in advance

hi,
as u said i have done that ..s.till the same problem persists...
lsnrctl>services
$ lsnrctl
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 08-FEB-2007 03:56:23
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> services
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "RBTT" has 1 instance(s).
Instance "RBTT", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "RBTTXDB" has 1 instance(s).
Instance "RBTT", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: emea, pid: 197076>
(ADDRESS=(PROTOCOL=tcp)(HOST=emea)(PORT=37484))
Service "RBTT_XPT" has 1 instance(s).
Instance "RBTT", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER

Similar Messages

  • Checking database connectivitty from application server

    Hello All,
    I am installing Peoplesoft on Oracle Linux 6.3 but the database server is running on a different windows server. I have created the Peoplesoft database already using peoplesoft client tools(Data mover, config manager) installed on the same windows server. So now I want to verify the connectivity to the database running on windows server from app server installed on Linux.
    In the peoplesoft installation guide, I didn't find the sufficient instructions to do so :
    Before continuing, it is critical to verify connectivity to the database that the application server domain will use. To verify connectivity, connect to the database server from the >application server using the native SQL tool on the application server.
    For Oracle use SQL*Plus.Which SQL tool is it talking about and where I can find it? I have already searched inside $TUX_HOME/bin directory but didn't find any.
    Thanks in advance.

    Hakan Biroglu wrote:
    In order for the application server to connect to the database you should have installed Oracle (Client). Did you do this already?
    If so, copy the tnsnames.ora from the db server to your application server Oracle dir and try connectivity using sqlplus
    +sqlplus SYSADM/SYSADM@[YOUR_SID]+
    in dought, please read Nicolas his posts on installing PeopleSoft on Linux.
    http://gasparotto.blogspot.nl/p/installation.html
    Thanks, The problem is that I am not able to install Oracle DB client 11.0.3 in Oracle Linux 6.3 so I though may be tuxedo have such client which could help me connecting to database.
    Isn't there any way we can connect without DB client?

  • Connecting to oracle 12c multitenant database

    My question, using coldfusion 11 enterprise datasource gui,
    how do you connect to oracle 12c multitenant database,
    when you need to log into a pluggable database, beneath
    the container database?
    What's the connection string, or is it even possible to connect(?) because earlier versions of oracle
    didn't use multitenant architecture, you just make a user/password,
    grant connect privileges, and connect.
    Using Oracle Linux 6.5 64bit.
    This is assuming I can connect to the oracle CDB (container database) and PDB (pluggable database) from the shell using sqlplus.
    <!------------------------ I can tsnping the pluggable database name pdb1 ---------------------------------------------->
    [oracle@localhost ~]$ tnsping pdb1
    TNS Ping Utility for Linux: Version 12.1.0.1.0 - Production on 27-JUN-2014 12:13:12
    Copyright (c) 1997, 2013, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = pdb1.localhost.localdomain)))
    OK (0 msec)
    <!------------------------------ I can connect to pdb1 using sqlplus shell ---------------------------------------------------->
    [oracle@localhost ~]$ sqlplus user1/password20@pdb1
    SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 27 12:21:06 2014
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    Last Successful login time: Fri Jun 27 2014 09:45:05 -07:00
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    SQL>

    Having the same issue, can't get the connection string right with the PDB?
    Anyone out there? Kurrttt, did you ever get this figured out?

  • Oracle 11.2 client connecting to Oracle 10.2 databases

    I have an application which currently uses 10.2.0.4 Oracle Client to connect to Oracle 10.2 databases using java (jdbc).
    Now I have to do setup on another linux server and looking into whether I can use 11.2 Oracle clinet avaiable on tcehnet.oracle.com to connect to
    10.2 databases. I will be using jdbc for connectivity.

    Maybe showing my ignorance here, but doesn't the application itself have to be written to use the jdbc thin driver?
    That would not be typical. A Java application will normally be modular as regards DB connections.
    1. The app itself will be written to take an instance of the 'Connection' interface
    http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html
    2. The actual 'Connection' instance will be created by a factory method or other application independent code at startup and then passed to the application code.
    Just like TNSNAMES.ORA contains the parameters for OCI connections an application will normally use a config file and/or command-line parameters for the JDBC connection parameters.
    Naturally, just like everything else, developers can always screw things up by hard coding values. Nothing you can do about that.
    See the 'Database URLs and Database Specifiers' section of the JDBC dev guide
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/urls.htm#BEIJFHHB
    Database URLs are strings. The complete URL syntax is:
    jdbc:oracle:driver_type:[username/password]@database_specifier 
    Note:
      The brackets indicate that the username/password pair is optional.
      kprb, the internal server-side driver, uses an implicit connection. Database URLs for the server-side driver end after the driver_type.
    The first part of the URL specifies which JDBC driver is to be used. The supported driver_type values are thin, oci, and kprb.
    The remainder of the URL contains an optional user name and password separated by a slash, an @, and the
    database specifier, which uniquely identifies the database to which the application is connected. Some database specifiers are valid only for the JDBC Thin driver, some only for the JDBC OCI driver, and some for both.
    Then there are examples of each driver type in 'Table 8-3 Supported Database Specifiers'
    Thin: "jdbc:oracle:thin:scott/tiger@//myhost:1521/myservicename"
    See that table 8-3 for the different OCI options.

  • Uploading the data from Application server to Database

    Hi,
    I am trying to upload tab delimited file from application server into database.
    I have upload the file from presentation to application server by CGZ3
    and i am able to see file in app server with #s and it appers in application server as
    10140#A#E#120#abcd#
    10146#M#P#300#a.b#
    10152#M#P#200#dat123.com##
    140#A#P#300#blicksat123.com#
    10140#A#E#260#cust1at123.com##
    And my notepad records looks like
    10140     A     E     120     abcd
    10146     M     P     300     a.b
    10152     M     P     200     dat123.com     
    140     A     P     300      blicksat123.com
    10140     A     E      260     cust1at123.com
    I am using open data set and read dataset to read the file as shown below
    DATA:
        l_htab      TYPE c,                " Horizontal tab
        l_line(100) TYPE c.                " Content in the file
      l_htab = cl_abap_char_utilities=>horizontal_tab.
    Open dataset
      OPEN DATASET pp_afname FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc EQ 0.
        DO.
    Read dataset
          READ DATASET pp_afname INTO l_line.
          IF sy-subrc EQ 0.
            SPLIT l_line AT l_htab
                       INTO fs_file-carrid
                            fs_file-autoind
                            fs_file-commtype
                            fs_file-resptime
                            fs_file-smtpaddr.
            APPEND fs_file TO pt_afile.
          ELSE.
            EXIT.
          ENDIF.                           " IF SY-SUBRC EQ 0.
        ENDDO.                             " DO.
        CLOSE DATASET pp_afname.
      ELSE.
        MESSAGE 'Problem in opening the App.Server file' TYPE con_msgtyp_i.
      ENDIF.                               " IF sy-subrc EQ 0.
    Load the data to the database
      PERFORM load_data_to_database USING t_afile.
    When i am trying to upload it is taking me to dump and the errpr analysis is like
    "The program attempted to interpret the value "26 0 " as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible."
    Any suggestions on this
    Regards
    VEnk@

    Hi,
    Thats the line feed character. After reading  the application server file, use this
    data: lv_feed type c value CL_ABAP_CHAR_UTILITIES=>CR_LF.
    loop at itab.
    replace all occurrences of lv_feed in itab-field with space.
    modify itab.
    endloop.
    Vikranth

  • I can`t connect to Oracle 11g64bits on a WindowsServer2008R264bits from ASP

    Hi,
    I am trying to connect to Oracle 11g 64 bits on a Windows Server 2008 R2 64 bits from ASP.
    But I can´t no matter what kind of provider or connect string I use.
    Please see this little video to better understanding. https://www.dropbox.com/s/cq7lx08nfad24yy/Oracle%20Connection%20Error.wmv
    I will apreciatte any help I have not ideia what is happening...
    This is my ASP code:
    Imports System.Data.OleDb
    Imports System.Data.OracleClient
    Public Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim cnn As OleDbConnection = New OleDbConnection()
    'SqlServer connection
    'cnn.ConnectionString = "Provider=sqloledb;Data Source=localhost;Persist Security Info=False;User ID=sa;Password=creative;Initial Catalog=DW_Decision;"
    'Oracle Connection
    'cnn.ConnectionString = "Provider=OraOLEDB.Oracle.1;Data Source=orcl64;Persist Security Info=False;User ID=scott;Password=creative;"
    'cnn.ConnectionString = "Provider=msdaora;Data Source=orcl64;User ID=scott;Password=creative;"
    'cnn.Open()
    'Label1.Text = "OK conexion"
    'cnn.Close()
    Dim cnn2 As OracleConnection = New OracleConnection()
    'Oracle Connection
    'cnn2.ConnectionString = "Data Source=orcl64;Integrated Security=yes;"
    cnn2.ConnectionString = "Data Source=orcl64;User Id=scott;Password=creative;Integrated Security=no;"
    cnn2.Open()
    Label1.Text = "OK conexion"
    cnn2.Close()
    End Sub
    End Class
    Edited by: 880676 on Feb 7, 2013 10:12 AM

    Ok, I already installed the Oracle Client 32 in another folder.
    What reference must I include in the page?
    Currently I am using: Imports System.Data.OracleClient
    And what connect string should I use?, please see all options I tried...
    Thanks in advance,
    Imports System.Data.OleDb
    Imports System.Data.OracleClient
    Public Class _Default
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim cnn As OleDbConnection = New OleDbConnection()
    'SqlServer connection
    'cnn.ConnectionString = "Provider=sqloledb;Data Source=localhost;Persist Security Info=False;User ID=sa;Password=creative;Initial Catalog=DW_Decision;"
    'Oracle Connection
    'cnn.ConnectionString = "Provider=OraOLEDB.Oracle.1;Data Source=orcl64;Persist Security Info=False;User ID=scott;Password=creative;"
    'cnn.ConnectionString = "Provider=msdaora;Data Source=orcl64;User ID=scott;Password=creative;"
    'cnn.Open()
    'Label1.Text = "OK conexion"
    'cnn.Close()
    Dim cnn2 As OracleConnection = New OracleConnection()
    'Oracle Connection
    'cnn2.ConnectionString = "Data Source=orcl64;Integrated Security=yes;"
    cnn2.ConnectionString = "Data Source=orcl64;User Id=scott;Password=creative;Integrated Security=no;"
    cnn2.Open()
    Label1.Text = "OK conexion"
    cnn2.Close()
    End Sub
    End Class

  • I have a new lion server and 4 lion laptops. The laptops loose connection to the shared documents and printers from the server after roughly 1 hour. By disconnecting and re-connecting wireless the connection is regained to shares and printers

    I have a new lion server and 4 lion laptops. The laptops loose connection to the shared documents and printers from the server after roughly 1 hour. By disconnecting and re-connecting wireless the connection is regained to shares and printers. We can still surf the web when it goes down.

    Ok 1st one. The warning restriction message relates to this line in main.cf:
    smtpd_helo_restrictions = permit_sasl_authenticated  permit_mynetworks  check_helo_access hash:/etc/postfix/helo_access  reject_non_fqdn_hostname  reject_invalid_hostname  permit reject_invalid_helo_hostname
    The last reject occurs after the single word "permit" and is ignored.
    However, that's not the problem.
    I'm not exactly sure what's happening, but this might be a clue.
    It would appear that either postfix is not being able to create the socket for private/policy or it's somehow created with the wrong permissions.  You might need to ramp up the debug level to get a better idea.
    You could check if it's being created by "netstat -a | grep private/policy" in terminal.
    My guess is that it's not being created because there is no setup statement in your master.cf file, but I don't understand why postfix would be looking for it if it isn't set up.  Private/policy I think relates to grey listing.  Maybe gives you a hint.

  • Connecting to a NT server from another server

    Hello, All. I was wondering If anyone knew the best and more efficient way to connect to a NT server from another server. Once the connection is made I need to be able to execute .cmd file on the NT server.
    Thanks
    Donald

    I doubt if there is a "best" way. Do you want to do this programatically or interactively?
    Interactive methods include:
    Run a terminal server on the NT box and telnet to it.
    Run a webserver on the NT box and create some simple server side script to execute the .cmd
    Programatically:
    Create a simple server to listen on a port, recieve connections, and execute command that are passed. (This is signicantly more arduous than the interactive methods, especially if you want some user authentication).
    Use RMI or CORBA

  • No Response From Application Server - Oracle 10g

    I am Using Oracle 10g Application server.
    When running a transaction (query to the DB) sometimes it takes more than the "x" session.timeout minutes seted.
    Then 'No Response From Application Server ' error message comes out.
    I don`t want to increase the session.timeout minutes because i do want it to work in other issues. The thing is that i don`t want the session to be terminated when waiting for the response from the DB.
    How can i overcome this?
    Thanks

    Thanks for answering...
    Sorry, i`m new in this. I`m using j2EE technology.
    The thing is that i was trying to do a page that prints a loading... while waiting for the response from the DB, but when it comes the resultset, and i redirect to another servlet to print the results, an illegalStateException came out (the response has already made the commit).
    So i was thinking maybe there was a solution for the application to know that the query is being made in the DB(and that the app/session isn`t stopped).
    Maybe with another driver? now i`m trying the ojdbc14.jar.
    Or maybe in J2EE I can do a page that self reloads every "x" minutes while waiting for the response from the DB as you said and when it comes prints it ?
    Thanks a lot
    Andres

  • Open documents/files from Application Server in forms 6i

    Hello All,
    Our requirement is to open files that are in Application server( We do not want to upload them into database).
    Is there a way to open this files from forms 6i.
    I am wondering how the "View Output" or View log button works on the concurrent program submission form. Its the doing the same thing i.e pulling the file from Application server and showing up.
    Please let me know if anyone has any ideas on how to get this done.
    Thanks
    Sunil

    I assume you are using Forms 6i in web mode here. Then it is just a URL to the file if you properly map to a directory where you store the files:
    web.show_document('http://...../myfile.pdf');
    But it also looks like you are using Oracle Apps, so might want to ask it in the e-Business Suite.

  • Uploading and reading file from application server

    Hi
    My problem is when am uploading a file to application server it is getting stored in
    usr/sap/transyp1/prod/in   directory
    after that i want to read that file from application server to update database
    when  using below code it is showing some other directory in f4 help
    DATA: lv_hostname TYPE msxxlist-name.
    DATA: lv_server TYPE bank_dte_jc_servername.
    PARAMETERS: p_file TYPE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'
    IMPORTING
    e_server = lv_server.
    lv_hostname = lv_server.
    CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
    EXPORTING
    dynpfield_filename = 'P_FILE'
    dyname = sy-cprog
    dynumb = '1000'
    filetype = 'P'
    location = 'A'
    server = lv_hostname.
    experts could you please help me out
    Thanks & Regards
    Nagesh.Paruchuri

    User Transaction file. You will get all logical file path names.
    used following fucntion module to read file name and use command open dataset to read the file.
    CALL FUNCTION 'FILE_GET_NAME'
           EXPORTING
                CLIENT           = SY-MANDT
                LOGICAL_FILENAME = C_LOGICAL_FILENAME
                OPERATING_SYSTEM = SY-OPSYS
                PARAMETER_1      = P_IN_FILENAME
           IMPORTING
                FILE_NAME        = P_OUT_FILENAME
           EXCEPTIONS
                FILE_NOT_FOUND   = 1
                OTHERS           = 2.
    OPEN DATASET P_OPEN_FILE ENCODING UTF-8 IN TEXT MODE FOR OUTPUT.
      IF SY-SUBRC <> 0.
        MESSAGE E000(38) WITH 'Error in Opening file: ' V_PHY_FILENAME.
      ENDIF.

  • How to bring the data from application server to presentation server

    hi,
    i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this  topic.folowing is the code .
    *& Report  ZPFA_HIER_LOAD
    REPORT  ZFPA_HIER_LOAD.
    *---- Declaration of Oracle connectioN
    DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
    DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
    DATA : mfilename type string.
    data: begin of matab1 occurs 0,
          MFL1(9) TYPE C,
          MFL2(5) TYPE C,
          MFL3(9) TYPE C,
          MFL4(2) TYPE C,
          MFL5(8) TYPE C  ,
         end of matab1 .
    data: setid(8) type c.
    data: begin of source occurs 0,
          setid(8) type c,
          end of source.
    *PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
    *PARAMETERS : m_bsenty(8). " type c obligatory.
    *mfilename = P_PFILE.
    EXEC SQL.
      SET CONNECTION :con_name
    ENDEXEC.
    EXEC SQL.
      CONNECT TO :con_name
    ENDEXEC.
    EXEC SQL PERFORMING get_source.
      SELECT set_id FROM UNIT_SET INTO
      :setid
      ORDER BY SET_ID
    ENDEXEC.
    start-of-selection.
    LOOP AT SOURCE.
      REFRESH matab1. CLEAR matab1.
      EXEC SQL PERFORMING evaluate.
    SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
    :MFL5
    where set_id = :SOURCE-SETID ORDER BY MEM_ID
      ENDEXEC.
      if SOURCE-SETID = '80000000'.
       mfilename = '/tmp/aesorg'.
      elseif SOURCE-SETID = '80000006'.
       mfilename = '/tmp/Consolidation_Manager'.
      elseif SOURCE-SETID = '80000010'.
       mfilename = '/tmp/10org'.
      elseif SOURCE-SETID = '80000012'.
       mfilename = '/tmp/20org'.
      elseif SOURCE-SETID = '80000018'.
       mfilename = '/tmp/30org'.
      elseif SOURCE-SETID = '80000025'.
       mfilename = '/tmp/40org'.
      Endif.
      mfilename = '/usr/test.dat'.
    ************************This was i tried***********************
      open dataset mfilename for output in text mode encoding default." IN
    *TEXT MODE ENCODING DEFAULT.
    if sy-subrc <> 0.
    exit.
    endif.
    close dataset mfilename.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME         = MFILENAME
         FILETYPE         = 'ASC'
       TABLES
         data_tab         = matab1
       EXCEPTIONS
         file_write_error = 1
         invalid_type     = 2
         no_authority     = 3
         unknown_error    = 4
         OTHERS           = 10.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
      clear matab1.
    ENDLOOP.
    loop at matab1 .
    transfer matab1 to mfilename.
    endloop.
    close dataset mfilename.
         MFL5 = '0'.
       CLEAR MFL5.
    FORM evaluate.
      if MFL5 = -1.
        MFL5 = ''.
      ENDIF.
      concatenate MFL1 ','   into MFL1.
      concatenate MFL1 ','   into MFL3.
      matab1-MFL1 = MFL1.
      matab1-MFL2 = 'ZBUE,'.
      matab1-MFL3 = MFL3.
      matab1-MFL4 = ' ,'.
      matab1-MFL5 = MFL5.
      append matab1 .
      CLEAR MFL1.
      CLEAR MFL2.
      CLEAR MFL3.
      CLEAR MFL4.
      CLEAR MFL5.
    ENDFORM.
                     "evaluate
    *&      Form  GET_SOURCE
          text
    FORM GET_SOURCE.
      source-setid = setid.
      append source.
      clear source.
    ENDFORM.                    "GET_SOURCE

    Hi Rammohan,
    You cannot use OPEN DATASET to transfer data from application server to presentation server.
    You can do the following :
    <b>Do 1st point in BACKGROUND</b>
    1. Read the data file from application server into an internal table using OPEN DATASET
    <b>Do 2nd point in Foreground</b>
    2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
    You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
    Best regards,
    Prashant

  • How to delete file from application server(Unix)

    Hi All,
    Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
    We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
    BEGIN
      IF webutil_file_transfer.AS_to_Client
      (clientFile => Name_In('global.g_file_name')
      ,serverFile => ls_AppServer_Loc)THEN
      message('Data exported Successfully');
      ELSE
       message('File download from Application Server failed');
      END IF;
    EXCEPTION
      WHEN OTHERS THEN
      message('File download failed: '||SUBSTR(sqlerrm,1,200));
      END;
    I have search for solution on OTN. Few suggested to use HOST.
    Can any one help me how to use Host() built_in to delete the file.
    Thanks,
    Maddy

    Can any one help me how to use Host() built_in to delete the file.
    Host('/bin/rm <complete file path>');

  • Regaring file from FTP server to application server

    Hi frnds,
    Below is my code where i am transferring Presentation server file to FTP server.
    Now i want to transfer that file from FTP server to application server.
    any help. below i am providing my code.
    <code>
    *& Report  demo
    report  z_demo_ftp.
    Variables declaration
    data : mi_handle type i,
           pwd       type char30,
           slen      type i,
           key type i value 26101957,
           it_file2 type filetable,
           w_file2 like   line of it_file2,
           l_rc type i,
           v_index type i,
           v_file(30) type c,
           v_path(100) type c,
           v_path_tmp(100) type c.
    *Internal table declaration
    data: begin of mtab_data occurs 0,
           line(132) type c,
          end of mtab_data.
    Selection scree parameters
    parameters: p_file type string default 'C:\'.
    Get the file path
    at selection-screen on value-request for p_file.
      data: p_file1 type string.
      p_file1 = p_file.
      call method cl_gui_frontend_services=>file_open_dialog
        exporting
          default_filename        = p_file1
        changing
          file_table              = it_file2
          rc                      = l_rc
        exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.
        read table it_file2 into w_file2 index 1.
        p_file = w_file2-filename.
        clear w_file2.
        refresh it_file2.
        split p_file at '\' into table it_file2.
        describe table it_file2 lines v_index.
        read table it_file2 into w_file2 index v_index.
        concatenate 'put' w_file2-filename into v_file separated by space.
        delete it_file2 index v_index.
        clear w_file2.
        loop at it_file2 into w_file2.
        if sy-tabix = 1.
        v_path = w_file2-filename.
        endif.
        if sy-tabix ge 2.
        concatenate v_path '\' w_file2 into v_path.
        endif.
        endloop.
        concatenate 'lcd' v_path into v_path_tmp separated by space.
      endif.
    Start of selection
    start-of-selection.
    pwd = 'file456'.
    slen = strlen( pwd ).
    call function 'HTTP_SCRAMBLE'
      exporting
        source      = pwd
        sourcelen   = slen
        key         = key
      importing
        destination = pwd.
    Connect to FTP
    call function 'FTP_CONNECT'
      exporting
        user            = 'client'
        password        =  pwd
        host            = 'saturn'
        rfc_destination = 'SAPFTP'
      importing
        handle          = mi_handle
      exceptions
        not_connected   = 1
        others          = 2.
    if sy-subrc = 0.
    Excute FTP command
    call function 'FTP_COMMAND'
        exporting
          handle        = mi_handle
          command       = 'cd staff
        tables
          data          = mtab_data
        exceptions
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          others        = 4.
    Excute FTP command
          call function 'FTP_COMMAND'
        exporting
          handle        = mi_handle
          command       = v_path_tmp
        tables
          data          = mtab_data
        exceptions
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          others        = 4.
    Excute FTP command
      call function 'FTP_COMMAND'
        exporting
          handle        = mi_handle
          command       = v_file
        tables
          data          = mtab_data
        exceptions
          tcpip_error   = 1
          command_error = 2
          data_error    = 3
          others        = 4.
      if sy-subrc = 0.
        loop at mtab_data.
          write: / mtab_data.
        endloop.
      endif.
    endif.
    *FTP disconnect
    call function 'FTP_DISCONNECT'
      exporting
        handle = mi_handle
      exceptions
        others = 1.call function 'FTP_DISCONNECT'
      exporting
        handle = mi_handle
      exceptions
        others = 1.
          end-of-selection.
    </code>
    so what more code shuld i write.
    regards,
    kamal

    Hi Che Eky  ,
                          Actually the above code is for putting the presentation server file to FTP Server.
    But now i need to Put the same file present in the FTP server to Application server.
    So any help or code which will be helpful.
    regards,
    kamal

  • 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...

Maybe you are looking for

  • Connecting a projector

    WHY can't BB stuff just simply work likeits supposed to!  Got the vga to Hdmi adaptor and a hdmit to mini Hdmi cord...pulled up a power point and hooked everything up...entered presentation mode....no picture...messed with the inputs on the projector

  • Magic mouse disconnecting

    I bought my magic mouse a few months ago and it was working great until about 2 weeks ago, it now decides to disconnect at random times, and the green light won't come on underneath the mouse meaning i have to turn my computer on and off several time

  • Process chains problem in bi 7.0

    Hi, I am creating process chain loading cube , but iam unable to find out delete request in info cube. finaly i found one option delete overlaping reuest in info cube is it correct? please help me onthis. Advance Thanks.

  • Web Dispatcher error pages internationalization

    Hello, I need to show web dispatcher custom error pages in the language of the user making the request. I can get the translated text I just need to know how to dynamically include these translated pages in the custom error pages. Web dispatcher is c

  • My camera app wont open on my 5s.

    why wont my original camera app will not open at all on my 32gb 5s.