Re: doubt in tcp/ip

hi,
       How can i call the other than r/3 function module from r/3.  My requirement is to upload the delivery order from r/3 to TAS by calling c function module.
HOw it is possible.
rgds
p. krishnaprasad

It depends on where your c function module is located.  Is it on a different system?
If it is on a different system you might try setting up an RFC Connection to that system and use a remote function call in your program using the rfc destination.  See code below.  <c function> is the name of your fuction <tas> is the name of the RFC connection you set up.
call function <c function>
  destination <tas>
Another option might be to try and use a logical command.  I forget the exact transaction but there is a way to set up a command in SAP that points to the function you are trying to call.  Then you use the function module SXPG_COMMAND_EXECUTE to call this command.  I think you will still need and RFC destination for this as well.
Chris

Similar Messages

  • Some doubts in FI-SL?

    hello friends,
    I have doubts in fi-sl,
    there are two tables, summary table and ledger.
    why we activate summary table first?
    in ledger selection,why so mnay ledgers la,lb,lc like that is there.
    for every single ledger means bank take example ,
    shall we have to assign to every single ledger there la or lb or lc.
    plz let me know the process wiht one scenarion.
    srinu

    Hi,
    1) a) A Web Server understands and supports only HTTP protocol whereas an Application Server supports HTTP,TCP/IP and many more protocols.
    b) Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object.
    c) Webserver is used only for jsp and servlets and for static functionality it has limited functionality and it doesn't provide any security ,persistence and it doesn't support EJB and JMS and JAAS like other functionality
    whereas Application server provide all functionalities.
    In short, Applicaion Server is a super set of which Web Server is a sub set.
    2) Two-tier architecture is a client/server architecture , where a request to do some task is sent to the server and the server responds by performing the task.where as a three-tier or a multi tier architecture has client, server and database. Where the client request is sent to the server and the server in turn sends the request to the database. The database sends back the information/data required to the server which inturn sends it to the client.

  • Some doubts in j2ee

    Hii..,
    Some doubts in j2ee .plz help with as
    1.What are the main difference between application server and web server
    2. two and three tier architecture differences
    by Anand PC

    Hi,
    1) a) A Web Server understands and supports only HTTP protocol whereas an Application Server supports HTTP,TCP/IP and many more protocols.
    b) Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object.
    c) Webserver is used only for jsp and servlets and for static functionality it has limited functionality and it doesn't provide any security ,persistence and it doesn't support EJB and JMS and JAAS like other functionality
    whereas Application server provide all functionalities.
    In short, Applicaion Server is a super set of which Web Server is a sub set.
    2) Two-tier architecture is a client/server architecture , where a request to do some task is sent to the server and the server responds by performing the task.where as a three-tier or a multi tier architecture has client, server and database. Where the client request is sent to the server and the server in turn sends the request to the database. The database sends back the information/data required to the server which inturn sends it to the client.

  • TCP/IP socket programming in ABAP

    Hi,
    Is there any method of TCP socket programming in ABAP? For example is there any function module for creating a socket for a IP address and port number. After that, is it possible to send binary/text data to a connected IP/port destination. I need such a solution because I need to send raw data (native commans) to barcode printer on our network which has a static IP address and listens incoming data through a fixed port number specified in its documentation. For a solution, I coded some .NET VB and built a small application that acts as a RFC server program which can be called by SAP according to definitions I made in SM59 (I defined a new TCP connection and it works well sometimes!). In this application, data coming from SAP are transferred to the barcode printer. This is achived by the .NET Socket class library. This solution works well but after a few subsequent call from SAP, connection hangs! SAP cannot call the application anymore, I test the connection in SM59 and it also hangs, so I need to restart the VB application, but this is unacceptable in our project.
    As a result, I decided to code the program that will send data to the printer in ABAP as a function module or subroutine pool, so is there any way to create a socket in ABAP and connect to specific IP/port destination? I searched for possible function modules in SE37 and possible classes in SE24 but unfortunately I could not find one. For example, do know any kind of system function in ABAP (native commands executed by CALL statement), that can be used for this purpose?
    I would appreciate any help,
    Kind regards,
    Tolga
    Edited by: Tolga Togan Duz on Dec 17, 2007 11:49 PM

    Hi,
    I doubt that there is a low level API for sockets in ABAP. There is API for HTTP but probably that won't help you. As a workaround you can use external OS commands (transactions SM69 and SM49). For example on Unix you can use netcat to transfer file. Your FM needs to dump data into folder and then call netcat to transfer file.
    Cheers

  • Tcp Connection timeout on ASA for vpn traffic

    Hello All
    I need an answer please.
    I wanted to give tcp conenction timeout as unlimited for some IPs coming through VPN.
    So, I created an access-list defining the traffic for which I want this tcp timeout.
    Then a class map, policy map, entered set timeout to '0'
    Applied it under default service-policy, which is applied as global (by default).
    My doubt is should I apply the service policy on the interface or the global will work.
    Just a silly doubt
    Thanks in advance.

    Hi,
    I think it should work just fine if you attach it to the default "policy-map" configuration that you have attached globally on the ASA.
    You might want to configure the timeout value as something long rather than setting it as unlimited.
    - Jouni

  • Tcp connection timeout

    Hi
    I'm using utl_tcp to send some information. My problem is, it takes approx. 21 seconds the connection to time out, when host does not exist. So no read, no write, only bulding up the connection takes 21 seconds to time out, and I want to set this to a lower value, if it is possible. I read the documentation, and googled a lot, a found some tips, that is related to sqlnet.ora, but those don't seem to work.
    thanks for the answers in advance

    894414 wrote:
    I'm using utl_tcp to send some information. My problem is, it takes approx. 21 seconds the connection to time out, when host does not exist. So no read, no write, only bulding up the connection takes 21 seconds to time out, and I want to set this to a lower value, if it is possible. I read the documentation, and googled a lot, a found some tips, that is related to sqlnet.ora, but those don't seem to work.SQL*Net setting should not be applicable to a manual/programmatic tcp client created in PL/SQL code.
    I doubt that you can do anything with increasing speed of the timeout. This is a protocol stack issue as the connect() socket call explains. The issue with PL/SQL is that async calls cannot be made - so wrapper calls like tcp sockets in PL/SQL need to be synchronous.

  • Persistent TCP socket trouble

    Hello everybody!
    I'm writing a server/client chat app, mostly for fun but I actually have some use for it as well, when it works that is.
    The server part is pretty much complete, written in Python (since it's so easy and fast to write).
    Anyway, since my chat protocol is supposed to use as little bandwidth as possible, I'm aiming for persistant TCP connections. To make that possible, I've implemented an end of message-marker, so that it reads until it finds the marker, and that's the end of the transmission, instead of reading until the socket is closed and a new connection needs to be reestablished all the time.
    My problem is that I have no idea how to implement this in java! Not in python either to be honest, I used the code from here, although with a few slight modifications:
    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/408859
    (the recv_end function)
    For those who don't understand python, it reads 8kB from the socket, checks in the end marker is in there. If not, it checks if the end market got split between multiple packets, and concatenates everything until the original string is restored.
    Now, I need to do this in java (J2ME/MIDP 2.0 to be exact, but if I get some code to work with I'm sure I can make it work).
    I've got this code in my app, that needs to be replaced:
         protected synchronized StringBuffer read ()
              StringBuffer sb = new StringBuffer();
              int i = 0;
              try
                   while (((i = input.read()) != -1))
                        sb.append((char)i);
              catch (Exception e){}
              finally
                   return sb;
         }I'd be glad to post more code or explain more throughly if needed.
    Other ideas might be welcome as well.
    Help would be very appreciated!

    I've solved it, well kinda anyway. :)
    Not the most effective solution, but since I doubt
    that transmissions >1kB will ever be sent/received
    using this program, it doesn't matter that much.
    This is what I did:
         protected StringBuffer read ()
              StringBuffer soFar = new StringBuffer();
    int r = 0;
              while (true)
                   try
                        r = input.read();
                   catch (Exception e)
                        System.out.println(e.toString());
                   if (r != 4)
                        soFar.append((char)r);
                   else
                        return soFar;
    Surely somewhere in that code you will also need
    r++;

  • IDOCs creation - Transfer Orders(TOs)  for Deliveries - Basic doubts, thanq

    Hi Experts,
    Am new to IDOCs.  I hv a requirement, so, request u that, Can I get some Wht to do tips from u?
    My doubts:
    1- I hv been asked to create IDOC, Wht does it mean?
    2 - How the created IDOC will be get posted?
    My requirement is:
    Original inbound idoc sent from Gentran will update the delivery with all serial numbers per material for all serialized product.  The message code will be the indicator that a Transfer Order-TO, idoc must be created for TO confirmation.
    I need to do===>   Should be executed only when the message code on the delivery idoc is u201CTOCu201D.  Look up the warehouse code on the delivery header using the delivery nbr in the delivery idoc.  Create a new TO confirm idoc per delivery idoc being processed.  Create a line item on this idoc for every line on the delivery idoc.  Each TO line includes the delivery number and delivery item number so the TO number and line number can be looked up in table LTAP by using the delivery number and line item number found on the delivery idoc.  There will be at 2 transfer orders for each delivery item b/c of the 2 step pick process, so select the TO nbr that has 916 as the destination storage type (LTAP-NLTYP).  There may be more than 1 pair of TOs per delivery item so this must be completed for each TO found relevant to each delivery item.
    The inbound delvry03 idoc will update the delivery with the serial numbers as part of the standard functionality.  Since the transfer order must also be confirmed with the quantities on the inbound idoc, an additional idoc must be created from within the delivery update process.  The transfer order can be updated and confirmed using the standard idoc and function module which should be created and initiated from the delivery update function module customer exit.
    Source = DELVRY03     Destination = WMTCID01
    Record Name-Field Name-Record Name-Field Name-Description---Comments
    E1EDL20     VBELN-E1LTCOH-LGNUM-Warehouse Number-Look w/ idoc delivery nbr
    E1EDL20     VBELN-E1LTCOH-TANUM-Transfer Order Number- Look w/ idoc delivery nbr
    E1EDL24     POSNR-E1LTCOI-TAPOS-Transfer Order Line Item- Look  w/ idoc delivery line nbr
    EVERY THING IS DATA TRIGGERED!!!
    thanq
    Edited by: Srinivas on Jun 27, 2008 4:41 PM

    IDOC Programming
    There are two processes in IDOC processing one is INBOUND PROCESS( IDOC coming to the system and its handling at various stages) and the other is OUTBOUND PROCESS( IDOC is send to other system . Separate ABAP programs are written for these 2 processes and different configuration settings are required for each one .Depending upon the trigeering mechanism different programming approaches are used.OUTBOUND PROGRAMS handle the IDOC creation and INBOUND PROGRAMS handle the inbound IDOC and the data trasfer from the IDOC to the database tables.
    NEED FOR ABAP PROGRAMMING arises if
    1)New IDOC was created
    Depending upon the triggering mechanism i.e change pointer,message control
    etc the programming technique changes and the type of process.
    2)Existing IDOC was extended
    User Exits are used to populate data in new segments added and to read them
    back.
    3)To enhance an exsiting process.
    User Exits are used .
    Basic structure of an OUTBOUND PROGRAM
    The basic structure of all outbound programs is same. The CONTROL
    record which is of TYPE EDIDC has to be filled. It contains important fields like
    IDOCTP IDOC type
    MESTYP Message Type
    RCVPRN Recieving Partner (Destination)
    RCVPRT Partner Type (it is LS i.e Logical System)
    The DATA RECORD internal table which is of TYPE EDIDD has to be filled
    in the same order as there are segments in the IDOC definition.
    It has 2 important fields which are to be filled ,these are
    SEGNAM Name of the segment
    SEGDATA Data in the segment and can be upto 1000 bytes.This field
    is corresponds to each data segment in the IDOC.
    e.g.
    DATA INT_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
    DATA W_SEGDATA LIKE zsegment "custom segment zsegment
    INT_EDIDD-SEGNAM = 'ZSEGMENT'
    W_SEGDATA-field1 = value "taken from some table
    W_SEGDATA-field2 = value "taken from some table
    INT_EDIDD-SEGDATA = W_SEGDATA
    APPEND INT_EDIDD
    This will fill the data record corresponding to the segment ZSEGMENT . For all
    segments the sam steps will be repeated until all the data corresponding to all the
    segments in the idoc is filled in the internal table of type EDIDD.
    There is only one control record and can be multile data records in the idoc
    structure.
    Which data is to be extracted from the tables to be filled in EDIDD type internal table is determined in standalone programs from the objects which are specified in the selection screen and from the object key passed to the function module in case of message control and is taken from BDCP table in case of change pointers using function modules "CHANGE_POINTERS_READ"
    In case of stand alone programs and function modules based on change pointers method the function module "MASTER_IDOC_DISTRIBUTE" is used to send the IDOC to ALE layer for distribution ,in case of message control it is handled automatically by the RSNASTED program invoked by the message control.
    OUTBOUND PROCESS AND OUTBOUND PROGRAM.
    Outbound programs are used in outbound process to genearte IDOCs . There
    purpose is to extract the data from the tables and to fill the IDOC data records
    and the control record in the IDOC and pass ito the ALE layer for distribution to the recieving system .
    Depending upon the triggering mechanism (how and when the outbound program will be started different techniques and interface is used for outbound program.
    1)Message control
    Application like PO(purchase order) creation use this technique , where the output type is linked to the application(Message control is a configurable cross application component which can be set in IMG .Such programs are created in the form of function modules and linked to the output type which is linked to the apllication.These have predefined interfaces.
    In outbound programs(function module) that use message control the key of the
    application document is passed to the function module whcig will read the data from the table depending upon the key passed(NAST structure) and fill the IDOC segemnts with the application data.The control record is also passed to the function module but is not fully filled, the rmaining fields are filled and the control is passed back to the calling program which is RSNASTED and is invoked by the
    message control to process ALE and EDI output types and this program on recieving the IDOC data will create the physical IDOC in the system.
    The parameteers passed to the function module are
    IMPORTING PARAMETERS
    OBJECT LIKE NAST
    It contains documents key.
    CONTROL_RECORD_IN LIKE EDIDC
    It contains the partailly filled control record
    EXPORETING PARAMETER
    OBJECT_TYPE
    CONTROL_RECORD_OUT LIKE EDIDC
    TABLES
    INT_EDID LIKE EDIDD
    The internal table used to fill the data records in the same order as they exists in the IDOC.
    The important parameters that should be filled in the custom function module are
    CONTROL_RECORD_OUT and INT_EDIDD .The OBJK field of the structue NAST contains the key of the apllication document.
    2)Stand alone programs
    Generally used for Master Data transfer and as such depending upon the requirement can have different interfaces.The programs have a selection screen which has select options to select the objects, and parameters for specifying the recipient Logical System and the Message Type.
    Data is selected based on the specified objects from the tables . and control record of type EDIDC is created and filled with important values like DIRECTION ,IDOCTP,RCVPRT,RCVPRN and MESTYP .
    Data is filled in an internal table of TYPE EDIDD according to segment definitions
    and in same order and the function module MASTER_IDOC_DISTRIBUTE is called passing the control record and the internal table containg IDOC data and importing an internal table consisting of control records for each communication IDOCS created.
    3)Change pointer
    Change Pointer table is read and checked if changes were made to important fields , if so the outbound program will be triggered automatically , these have predefined interfaces
    ALE/IDOC Transaction
    SALE Area Menu for ALE configurations.It includes transactions for
    Logical System definition and linking it to a client, Transactions for
    RFC Destination and Port Definition Etc.
    SM59 RFC Destination
    Here we specify the login settings for the destination including
    the I.P address or Application Server name and the User name and
    password.The information entered here is used to run Remote Function
    Calls(RFC ) on the destination server .We can create number of types
    of RFC Destinations but 3 types are important .
    R/3 (R/3 to R/3), LS(logical system) and TCP/IP.
    The name of the RFC destination should be same as that of Logical
    System as it helps in creation of automatic partner profiles.
    WE21 Port Definition.
    There are 6 types of ports but only 2 types File and Transactional RFC
    types of ports are important.
    We have to specify the RFC Destination before a port can be created.
    WE57 This is used to assign the Inbound function module to the Message Type
    and to the IDOC Type.
    WE42 This is used to define the process Code for Inbound Processing.
    BD95 Define Filter object type .We can specify the field and the table it belongs
    to as a filter object .
    BD59 Assignment of Filter object type to the Message Type .Here we create the
    link between Filter object and the segment and the message type and the
    segment Field.
    BD50 Set message Type to reducible.
    BD65 Define Mandatory Fields.
    BD64 Distribution Model . Also known as Customer Distribution Model Used to
    define all the messages that will be exchanged between remote systems
    and the name of thes logical systems. Any filters can also be specified.
    The model once created has to be distributed on every system which will
    be communicating ,It can be maintained on only One system.
    BD21 Creating IDOcs from change pointers.
    This can be used to create IDOCs from change pointers for a particular
    message LIKE MATMAS.
    BD22 This can be used to delete change pointers.
    BD87 Status Monitor. Idocs can be selected base on number of criteria and there
    processing status can be seen in detail.
    BD10 Material Master Data Distribution .
    Based on Message MATMAS.
    BD12 Customer Master Data Distribution .
    Based on Message CREMAS.
    BD14 Vendor Master Data Distribution
    Based on Message DEBMAS .
    BDFG Generate ALE Interface for BAPI.
    Here we specify the Business Object and the BAPI Function module for
    which the interface has to be created.
    WE31 Segment Editor.
    This is used to create segments. We create the segment type and
    segment definition is automatically created by editor e.g. Z1DUMMY is
    segment type and Z2DUMMY is the segment definition .We specify the
    fields and the data elements these cp\orresponds to create segments.
    WE30 IDOC Editor
    It is used to create a new IDOC Type or IDOC Extension .We specify the
    segments that will be addd to the IDOC type.
    WE02/05 IDOC List.
    Various selct options and parameters are provided to select IDOCs
    depending on the date, direction , mesage type etc.
    WE20 Partner Profile
    Here we create partner profile for each and every partner from / to which
    the messages will be exchanged.There are 6 types of PF generally only
    profiles of type LS(Logical System) ,KU(Customer) ,LI(Vendor) is used.
    We specify the partner number and partner type and the agent and
    the agent type responsible for handling of errors .
    For every message send to the partner we have a outbound record and for
    evry message coming from the partner we have the inbound record .
    We specify the message in the otbound/inbound records ,double
    clicking will take us to the detailed screen where the IDOC Type ,Port
    and whether the IDCO will be immediatelt processed or collected are
    mentioned.

  • Selection of  TCP/IP Or FILE Port

    Hi Experts,
    I have one Doubt While We are doinng IDOC To File Scenario.
    We have to Create Port In WE21 of Type TCP /IP.
    If We Select the Type As FILE Means What wil Happend.
    Please Explain me little bit on this.
    Regards
    Sesh

    Hi
    The Port can be a File Port (IDocs will be saved in this folder)
    REFER THIS THREAD
    http://help.sap.com/saphelp_nw04s/helpdata/en/dc/6b7fa443d711d1893e0000e8323c4f/frameset.htm
    Ports are use to define the way data is send (or received) from another partner (e.g. other system).
    - Port type Transactional RFC defines an RFC Destination.
    - Port type File defines a file and directory (and a function module that does the record handling for your output file)
    - Port type CPI-C defines an SAP R/2 system and transmission parameters.
    - Port type Internet, allthough in the system is no longer supported (See SAP note 315083).
    - Port type ABAP-PI defines a function module that will do the transmission. This is often used if you want total control over the sending (or receiving) process.
    - XML defines a file and directory (and a function module) specific to XML formatted files. The XML-HTTP leaves out the file and can transmit directly to a website location

  • How to read bytes at port in TCP/IP communication

    Hiii
    I am having 1 doubt in visa we knows bytes at port by using the property node...
    but for TCP/IP how should i get  bytes at port .... i want to read how many bytes are available in that port.....
    can any 1 suggest answer...... 

    Would you please explain why you need this?
    I always use TCP Read instead of VISA Read for TCP/IP communications. If you send a package, you can first send the length of the package and then the package itself. If you read you read first 2 or 4 bytes, where the length of following package is, and than the whole package.
    It works fine.
    LabVIEW Portal

  • TCP/IP Connections in RFC Destination

    Hi,
    When we are using TCP/IP Connections in RFC Destinations in SAP XI and why?
    Regards
    bobby

    >
    jak jak wrote:
    > Hi Sujit,
    >
    > i have one small doubt,we are using WAS 6.40 with EP 6.0. So can we use this RFC destination service in our code?
    >
    >
    >
    > Thanks,
    > Jak
    You can use RFC Destinations with WAS 6.40. I wrote a blog on about it [here|/people/stefan.thibeault2/blog/2008/07/16/a-real-world-example-of-using-the-sap-enterprise-connector].

  • Windows 2008 R2 TCP/IP KeepAliveTime not working

    Hi,
    We have configured the KeepAliveTime for the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters both on the server and the client and time for the KeepAliveTime is 300000(5 minutes). Now , we restarted the computers after setting this
    parameter in the windows registry.
    When checking the firewall we do not see the keepAlive packets flowing through the firewall. The session seems to be expiring because of the firewall timeout after sixty minutes and we get network error on the server because of the idle session. could someone
    explain what is the reason the KeepAlive packets is not flowing between the server and the client for every five minutes as configured. The OS is windows 2008 R2 64 bits.
    We did research on different sites about this topic but we could not find any correct answer which is the reason we had posted in this forum.
    Thanks,
    Bharan Bhaskar

    So you've posted this question about Windows Server 2008 in a group discussing Windows Embedded Compact. That's pretty different and I doubt you'll get a definitive answer here. Having said that, I'll give it a go anyway:
    Keep-alive is designed to keep ***a connection*** alive. It's a per-connection setting and both server and client in that connection must enable it in their code to make it work. The registry settings control how it works, but it won't happen unless
    the server and client enable it for the connection they make with each other. My best guess is that one or the other is not doing that.
    I see no way the firewall could be responsible for this. Keep-alive packets aren't some strange beast that the firewall can detect and filter; they're just ordinary TCP packets without data, to which the other end of a connection sends an ACK, triggering
    original sender to ACK. That's one keep-alive transaction. If you aren't seeing those packets at the firewall, back to my first guess: no one is sending them.
    Paul T.

  • JIMM and the TCP settings

    Hello all,
    On different sites in different threads I read that many people have problems getting the JIMM messenger software running because of the network settings. I am one of them. The problem is, that there are some hints which I all tried, but there is no real solution. Perhaps someone here can help.
    The problem should be the same for any other software using direct internet connection.
    What I already managed: It runs using sockets connection via the APN "web.vodafone.de", which I entered in Options - TCP.
    Since I'm additionally charged for this APN I would like to have it work using the blackberry APN "blackberry.net". I entered it in the TCP settings.
    So here are my questions:
    1) Do I need login information for the APN "blackberry.net" (user / password)?
    2) Does this APN only support HTTP or also sockets? Both does not work on my BB. I get errors 118 or 125.
    3) I using HTTP, which are the correct settings for port, user agent and profile in the JIMM software? If you cannot enter the correct strings, please tell me where I can copy them. (Service books etc.?)
    4) Are there any additional settings I have to change?
    Thanks a lot in advance.
    Joerg.

    I doubt you can do something about this from within Java. The TCP/IP stack is not a part of Java. It is handled by the operating system. Sorry...
    /Michael

  • TCP keepalives sent too early and terminates connection

    I'm trying to implement an persistent TCP connection between an Android phone and a desktop server.
    I've got heartbeat threads on both ends which are sending keepalive-packets on application level successfully.
    The problem is that after a while (varies between 5-20min) the phone is starting to send TCP keepalives to the server, which the server does not seem to respond to. (I'm using Wireshark to monitor this).
    This results in an exception on the server thread which is reading from the phone:java.net.SocketException: Connection reset
    Why are the phone sending TCP keepalives so early? Even when there's constantly activity on application level? And why doesn't the desktop server respond to this keepalives?
    I've checked my Android phone's settings with "sysctl -A | grep net.ipv4" and "net.ipv4.tcp_keepalive_time" is set to 7200 (2 hours).
    Thanks.

    shuwo wrote:
    I'm holding both a wakelock and a wifilock, so that shouldn't be the problem. I also tried it without putting my phone to sleep at all. I want a persistent connection because I need live data to be transmitted over the network, is there any other method for that?
    If it isn't keep alive packets, what could it be? What causes a connection reset on server side?I wouldn't rely on a persistent connection. Mobile phones and bad network conditions/lost connections is bound to happen, and can happen frequently.
    What do you mean by live data? Are you e.g streaming data? Polling (e.g. once per minute) could otherwise be better, that is how gmail works.
    I doubt that the battery will last more than 6-7 hours if the phone never goes down to sleep mode. You can easily test it. Create an app, that just aquires a wakelock and then run it on your phone without doing any else like accessing network etc. Constantly using the network will also reduce the battery time even more.

  • How to upgrade standby doubt

    hello,
    I read various Oracle documents, guides and metalink notes but I still have some doubts. Perhaps I missed something.
    starting env: dataguard (manual config, without broker) env with primary and physical standby in 11.2.0.1 on Linux x86_64
    I don't want to go with rolling upgrades or similar; I'm on a test environment and also for production I can tolerate some downtime during the week end.
    My upgrade scenario is to install sw in new oracle_home as recommended.
    One note: the link provided in note 884522.1 gives a file for preupgrade (utlu112i.sql) that is not current ... I had to make a clean install of 11.2.0.2 and get the file provided inside rdbms/adin directory....
    I start runInstaller with primary DB open and physical in mount with managed recovery and in sync
    I install new binaries and then complete the dbua step (100% without errors)
    I only had to change my log_archive_dest_2 that was
    service=TESDB1DR ASYNC DB_UNIQUE_NAME=TESDB1DR VALID_FOR=(primary_role, online_logfile) COMPRESSION=ENABLE
    and worked in 11.2.01. but dbua complained about syntax and so I had to change in:
    service=TESDB1DR ASYNC DB_UNIQUE_NAME=TESDB1DR VALID_FOR=(online_logfiles,primary_role) COMPRESSION=ENABLE
    Now I have my primary db in new version.
    dbua didn't update the tnsnames.ora, so I get this on primary alert.log
    Thu Nov 04 15:25:33 2010
    Error 12154 received logging on to the standby
    PING[ARC2]: Heartbeat failed to connect to standby 'TESDB1DR'. Error is 12154.
    while at the end of upgrade, on standby alert.log I got:
    TNS-00507: Connection closed
    nt secondary err code: 0
    nt OS err code: 0
    Error 12537 received logging on to the standby
    FAL[client, USER]: Error 12537 connecting to TESDB1 for fetching gap sequence
    Errors in file /app/oracle/diag/rdbms/tesdb1dr/TESDB1DR/trace/TESDB1DR_pr00_21338.trc:
    ORA-12537: TNS:connection closed
    Errors in file /app/oracle/diag/rdbms/tesdb1dr/TESDB1DR/trace/TESDB1DR_pr00_21338.trc:
    ORA-12537: TNS:connection closed
    Thu Nov 04 13:23:12 2010
    What are the steps to do at standby? The same as in primary:
    1) install binaries for 11.2.0.2
    2) upgrade db
    and only at the end
    3) modify parameters on both instances tnsnames.ora so that they are able again to communicate
    Can the standby db stay in mount + recovery mode while upgrading?
    I hope I have not to refresh the whole standby....
    Thanks for suggestions,
    Gianluca

    What do you mean by "Do I have to manually update my .ora files?" and where Primary or Standby?When on standby I select install software only, I get a new $ORACLE_HOME/network/admin that is empty
    So I presume I have to copy my 11.2.0.1 tnsnames.ora and listener.ora to the new path
    And to change inside my listener.ora the line
    (ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)
    matching now
    (ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_2)
    at least for the instances I want to upgrade (if more than one)
    Also, I noticed that upgrading the primary with dbua, it got as a result this kind of "strange" tnsnames.ora:
    # tnsnames.ora Network Configuration File: /app/oracle/product/11.2.0/dbhome_2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TESDB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server_name)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESDB1)
    LISTENER_TESDB1 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server_name)(PORT = 1522))
    And this listener.ora
    # listener.ora Network Configuration File: /app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary_server_name)(PORT = 1522))
    ADR_BASE_LISTENER = /app/oracle
    So it seems it didn't update the network config. It has no knowledge of my standby TESDB1DR
    I presume I can copy listener.ora and tnsnames.ora as configured in 11.2.0.1...
    From 11.2.0.1 to 11.2.0.2 I don't think about major changes in these files... am I correct?
    Thanks for your time.
    Gianluca

Maybe you are looking for

  • How can I delete a file from Adobe Acrobat Reader DC?

    How can I delete a file from Adobe Acrobat Reader DC?

  • How to print all images in each page

    hi this is indela. developing print option in flex. in a folder i have 100 images. when click on print its going only one images. but i want to send all images to printer without displaying. the no. of images change dynamically. please tell me how to

  • Adapter needed for projector?

    I purchased an Epson EX71 projector last night and cannot figure out how to connect it to my Mac Pro. Do I need a special mac adaptor? I want to display photos and dvds from my computer on it. Also, the cord is too short, are extensions available? TI

  • I would like to create a list of MP3 files to download from a MUSE web site.

    I have the honour of creating web site for our church. We would like to publish the ministers sermons on the web (audio files to download). How do I do this in Muse, or is it not possible and should use another web site creating software to do this?

  • Maximum contacts in palm desktop 6

    I'm trying to import my contacts into Palm desktop...  I have about 650 contacts - what's the max I can import?  Can I split up the file and import smaller chunks at once? Post relates to: Treo 650 (Unlocked GSM)