Database mirroring with witness server and availability set

Hi,
I got two VMs Sql1 and Sql2 with mirroring between them, they are in the same availability to achieve 99.95% SLA.
My mirroring config requires a witness server, while configuring a witness server you can specify only one server.
From what I read online load balancing two witness servers and providing the load balancer ip as the witness server will not work.(is that right? or I can do that?)
Anyway, how can i make sure the witness server(since it doesn't have a partner) has 99.95% SLA?
Thank You!

Thanks Manesh.
Availability set ensures that not all the VMs in the Availability set will go down at the same time, and it's possible that only one VM in the Availability set will stay online.
Therefore, if I will put the two partners and the witness in one Availability set there is the chance that both partners will be down at the same time.
On the contrary, if the witness will be out of the Availability set, I can be sure that one partner will always be online.
So including the witness server in the availability set will hurt the High Availability of the database.
Always remember that only VMs that do the exact same job should be in the same Availability set.

Similar Messages

  • Transaction control with DI Server and B1WS

    Hi everyone,
    recentily I started working with DI server and B1WS, and talking with friends and with a brief research in the foruns Its seens to be impossible to have a Rollback in database transactions performed with DI server and B1WS.
    Its really true? I mean, I receive the Session ID when I use the login service, it shouldn't be so difficult to have a rollback function with this info...

    Really? Anyone knows?

  • Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points

    Hi Guys,
    I would like to go for "Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points 1300". I want the AP to broadcast only 1 SSID. The client find the SSID ->put in his user credential->Raudius athentication->assign him to an specific vlan based on his groupship.
    The problem here is that I don't have a AP controller but only configurable Aironet Access Points 1300. I can connect to the radius server, but I am not sure how to confirgure the AP's port, radio port, vlan and SSID.
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    I go through some references:
    3.5  RADIUS-Based VLAN Access Control
    As discussed earlier, each SSID is mapped to a default VLAN-ID on the wired side. The IT administrator may wish to impose back end (such as RADIUS)-based VLAN access control using 802.1X or MAC address authentication mechanisms. For example, if the WLAN is set up such that all VLANs use 802.1X and similar encryption mechanisms for WLAN user access, then a user can "hop" from one VLAN to another by simply changing the SSID and successfully authenticating to the access point (using 802.1X). This may not be preferred if the WLAN user is confined to a particular VLAN.
    There are two different ways to implement RADIUS-based VLAN access control features:
    1. RADIUS-based SSID access control: Upon successful 802.1X or MAC address authentication, the RADIUS server passes back the allowed SSID list for the WLAN user to the access point or bridge. If the user used an SSID on the allowed SSID list, then the user is allowed to associate to the WLAN. Otherwise, the user is disassociated from the access point or bridge.
    2. RADIUS-based VLAN assignment: Upon successful 802.1X or MAC address authentication, the RADIUS server assigns the user to a predetermined VLAN-ID on the wired side. The SSID used for WLAN access doesn't matter because the user is always assigned to this predetermined VLAN-ID.
    extract from: Wireless Virtual LAN Deployment Guide
    http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_technical_reference09186a00801444a1.html
    ==============================================================
    Dynamic VLAN Assignment with RADIUS Server and Wireless LAN Controller Configuration Example
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    ==============================================================
    Controller: Wireless Domain Services Configuration
    http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c951f.shtml
    Any help on this issue is appreicated.
    Thanks.

    I'm not sure if the Autonomous APs have the option for AAA Override.  On the WLC, I can go into the BSSID, Security, Advanced, and there's a checkbox that I would check to allow a Radius server to send back the VLAN.
    I did a little research and it looks like the 1300 may give this option but instead is defined as "VLAN Override".  I've found the release notes for 12.3(7)JA5 (not sure what version you're running) that give mention and a link to configuring EAP on page 4: http://www.ciscosystems.ch/en/US/docs/wireless/access_point/1300/release/notes/o37ja5rn.pdf
    Hope this helps

  • I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    I am trying to setup Microsoft office mail and need assistance  - I am receiving the error, unable to find server and DNS setting in the Network

    Which version of OSX and what email provider are you using.

  • Problems with games server and client

    Hi! I am making an MMORPG game and I have problems with the server and client connection.
    I can connect to the server, but when a second player does, the server console tells me this:
    java.net.SocketException: Connection reset
    After that, all clients disconnect.
    Which is the problem?
    How can I solve it?
    Thank you so much

    Here is how my sever work. I took some of this code from a book called Killer Programming Games in Java. If you google for it, you will find it for sure.
    TourGroup tg = new TourGroup(); // this object stores information about all clients connected to the server
        try {
          ServerSocket serverSock = new ServerSocket(PORT);
          Socket clientSock;
          while (true) {
            System.out.println("Waiting for a client...");
            clientSock = serverSock.accept();
            new TourServerHandler(clientSock, tg).start(); // this is the thread that monitors each client
        catch(Exception e)
        {  System.out.println(e);  }
      } This is some code of TourServerHandler
    public TourServerHandler(Socket s, TourGroup tg)
        this.tg = tg;
        clientSock = s;
        name= "?";
        cliAddr = clientSock.getInetAddress().getHostAddress();
        port = clientSock.getPort();
        System.out.println("Client connection from (" +
                     cliAddr + ", " + port + ")");
    public void run()
      // process messages from the client
        try {
          // Get I/O streams from the socket
          BufferedReader in  = new BufferedReader(
       new InputStreamReader( clientSock.getInputStream() ) );
          PrintWriter out =
    new PrintWriter( clientSock.getOutputStream(), true );  
    // and here goes the rest... The TourServerHandler thread uses this code to send messages:
    tg.broadcast(msg); tg.broadcast works like this:
    synchronized public void broadcast(String cliAddr, int port, String msg)
      // broadcast to everyone but original msg sender
        TouristInfo c; // this object stores info about the client
        for(int i=0; i < tourPeople.size(); i++) {
          c = (TouristInfo) tourPeople.get(i);
            c.sendMessage(msg);
      } This is the error part
    public void sendMessage(String msg)
      PrintWriter out;  
        out.println(msg);  
          System.out.println("OK");
      } I can't find any error but I still get that Connection reset exception...

  • Difference between database features - SQL Server 2008 R2 navtive vs SQL Server 2012 with SQL Server 2008 compatibility set?

    I am investigating the impact of upgrading from SQL Server 2008 R2 to SQL Server 2012. To reduce the impact of the upgrade, I am planning to restore / create our application database onto SQL Server 2012 with compatibility level 100 (SQL Server 2008 and
    SQL Server 2008 R2).
    Are there any differences in feature support for database running in native mode on SQL Server 2008 R2 vs a database installed on SQL Server 2012 with compatibility level 100 set?

    Are there any differences in feature support for database running in native mode on SQL Server 2008 R2 vs a database installed on SQL Server 2012 with compatibility level 100 set?
    Yes there can be difference and impact there are few features deprecated in SQL Server 2012 you must be aware about that. Please see
    Deprecated Database Features in SQL Server 2012
    Deprecated SQL Server features in SQL Server 2012
    After you migrate database to 2012 please don't move ahead with production unless you have tested your application to new created database
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • I am trying to set up my outlook 2007 account on i pad and the process sticks on verifying.  It would appear to be a problem with outgoing server and I have changed the port number but with no success.

    I have just purchased an i pad 2 and am having trouble with the e-mail set up.  Set up with wi-fi, i-cloud etc has worked fine but the i pad is recognising my outlook 2007 account details but is not verifying it.  The trouble appears to be with the outgoing server and I have tried changing the port number, but to no avail!  Also reset the account settings for holding messages on the server...help!  As you can tell I'm not very techy and I'm desperate to get the bloody thing working as I'm going away on Tuesday! Any suggestions?

    I had a similar issue and it was password case sensitive issue

  • Production database sync with Reporting Server

    we have configured always-on on node1 as primary and node 2 as secondary.Now I have launched a new node 3 SQL Server for reporting purpose.I want to have the node 1 Database to be in sync with node 3 Reporting server.
    As I dont want any overhead on the node 1 Production SQL server , I am planning to configure Database Mirroring to have both the database in sync rather than adding the node 3 in the Availability group and syncing the Database in node 3.

    Hi Born4sqldba,
    According to your description, you want to sync the node 1 and node 3 Report Server database. Right?
    In this scenario, since you only want to sync the ReportServer database, we suggest you still configure AlwaysOn Availability Groups because it's for databases. However the Failover Cluster Instances is for instances, and Database Mirroring
    feature will be removed in future version SQL Server. If you insist on using Data Mirroring and AlwaysOn Failover Cluster Instances, please refer to the link below:
    Database Mirroring and SQL Server Failover Cluster Instances
    Reference:
    Reporting Services with AlwaysOn Availability Groups (SQL Server)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Can I sync my iPhone calendar with exchange server AND ical on my mac ?

    I have been happily using my iPhone synced with my Macbook over usb via iTunes.
    I have contacts and iCal syncing. I have a number of 'calendars' set up in iCal which allow me to view separate aspects of home and work but they all exist within iCal. iPhone just treats these as colour coded appointments (different colour for each ical calendar)
    I really like this set up.
    However, I just changed jobs to a firm where they have a hosted outlook exchange set up and I need to use the exchange calendar for work appointments and showing my availability.
    I have managed to setup my iPhone to work with the Exchange server for email as well as in apple Mail on my mac. This has all worked fine. However, I hesitated when iPhone asked if i wanted to sync my contacts and calendar. I said no as I was unsure if my private calendar/contacts would be uploaded to the public work area.
    In fact it seems that this is the least of my worries:
    As I have read on apple support for iPhone:
    "Note that after configuring an Exchange ActiveSync account, all existing contact and calendar information on the iPhone or iPod touch is overwritten. Additionally, iTunes no longer syncs contacts and calendars with your desktop computer. You can still sync your iPhone or iPod touch wirelessly with MobileMe services."
    So I am really pleased that I didn't let it sync those and wipe out my personal data if that is really true.
    But now I am unsure how best to enable myself to view and update the work calendar on exchange.
    Also it would be nice to see work contacts on my iPhone.
    Contacts
    - although i have said no to sync contacts with Exchange in fact it looks like I can get contacts ok - when i send email from the Exchange account on the phone , it searches Exchange contacts on the server as i type in the TO box.
    - also in Contacts on the iPhone I have a new group that has been created with the name of my Exchange account. The group appears to be blank when you go into it on the phone, but you can type in the search box and get contact details from the server just fine.
    This seems workable for now for my purposes, although updating contacts is not going to be possible that way.
    I'd like more info on that if poss but more importantly..
    Calendar
    - Unlike Contacts, no Calendar has been auto created for Exchange
    - Unlike contacts, I can't see how I can view or search or create an appointment in my Exchange calendar on the iPhone
    What is the best solution to this problem - I presume lots of people face the same dilemma. My initial research suggests that there are multiple ways round this but all of them look like workarounds with various disavantages.
    Questions are
    - Can't I just set up Exchange as one of my calendars in ical?
    - Is it really true that I have to choose between syncing Exchange with work server OR syncing iCal with personal Macbook?
    - What is the best work around for this?
    At the moment I am seriously considering getting a separate iPhone for work and have that sync with Exchange fully although that seems a bit drastic and does not solve the problem of seeing work and home appointments on the same calendar.

    Can't I just set up Exchange as one of my calendars in ical?
    Only if you're running Snow Leopard and your employer will allow access (different than iPhone/mobile device access, so most likely not), but not needed - keep reading.
    Is it really true that I have to choose between syncing Exchange with work server OR syncing iCal with personal Macbook?
    No. It was true, but with the v3.0 software that changed - you can now sync your Exchange contacts and calendar over the air, and your Address Book and iCal via iTunes over the docking cable.
    What is the best work around for this?
    None needed. When you set up the exchange account, and choose to turn on syncing of contacts and calendars, you will be prompted to remove all other data, or keep it on the iPhone. Choose the keep option. Note that in that case, your personal data will not be uploaded to the Exchange server - the iPhone keeps them separate (although you can choose to view them in a merged fashion).
    I have this set up on my phone (Exchange calendar along side personal and other calendars from iCal). Same for contacts. Works great.

  • SQL Mirroring Requirement (Witness server) in LYNC 2013

    Hi Everyone,
    We are designing a Highly Available solution of for LYNC 2013 and planning to add a witness server to the backed SQL server.
    Following are my Queries.
    1)For the witness server should the SQL server be dedicated to the LYNC infrastructure or it can be used to host other databases.
    2)I am assuming the Witness Database should be in the same Domain?
    3)What is the version of the SQL server that is supported as the Witness server, can this be the Free SQL express edition ?
    Waiting for some replies :-)

    1)For the witness server should the SQL server be dedicated to the LYNC infrastructure or it can be used
    to host other databases.
    It Can be used to host other database
    2)I am assuming the Witness Database should be in the same Domain?
    Yes 
    3)What is the version of the SQL server that is supported as the Witness server, can this be the Free SQL
    express edition ?
    http://technet.microsoft.com/en-us/library/gg398990.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • Please help with Forms server and forms

    Hi, all
    I am new to oracle.
    Mine is home PC and the spec. of the system are as follows.
    database:Oracle 8i EE
    Forms :6i
    OS :Windows 2000
    Yesterday I downloaded Oracle9iAS Server and followed the documentation in installing.
    As per the documentation, I accepted default values in many cases and went thru with installation.
    At the end of the installation, i got the following config(found at the bottom of the message).
    Please give me steps in resolving the issues below.
    Also,
    when I run the "Run form from web" from Programs....
    what if the web listener port is taken. how do we figure out if one is already in use and if so what are other ports available to me.
    and finally in the same app. is "Web Host" the name of my computer on which I installed the Oracle server?
    TIA
    Shankar
    Configuration Steps for Oracle Forms installation of 00:44:38 2002/05/01
    This file gives details of the configuration steps done for you by the installation process
    (marked '[INFO]') and of any actions you need to do manually (marked '[ACTION]'). Please read
    this file and perform the requested actions.
    [ACTION] If you are installing in a new Oracle Home, please reboot the machine after the installation.
    [ACTION] Please configure the following virtual path with your web listener: /dev60temp for
    physical directory C:\shankar\6iForms\F6i\tools\web60\temp.
    [INFO] NT service Oracle Forms Server [Forms60Server-6Web] has been created and started for
    the Forms Server.
    [ACTION] Please configure the following virtual path with your web listener: /forms60java for
    physical directory C:\shankar\6iForms\F6i\FORMS60\java.
    [ACTION] Please configure the following virtual path with your web listener: /dev60html for
    physical directory C:\shankar\6iForms\F6i\tools\web60\html.
    [ACTION] Please configure the following virtual path with your web listener: /dev60cgi for
    physical directory C:\shankar\6iForms\F6i\tools\web60\cgi.
    [INFO] An internet shortcut to run a standard test form, or any form of your choice, has been
    created for you in the Oracle Forms program group.
    [ACTION] Please configure the following virtual path with your web listener: /jinitiator for
    physical directory C:\shankar\6iForms\F6i\JINIT.

    Thanks, Vikas!
    But I did a search for 6iServer.conf and did NOT locate any such file
    Please help
    TIA
    SHANKAR
    Shankar,
    It would have helped if you had indicated what is the full version of 9iAS that you have installed. By default the portnumber that is used is 7778.
    As per the entries, they should have already been made in the config files. But check that the 6iServer.Conf file and it should contain the entries that you are being told to update. If not, then add the entries in the 6iServer.conf file and that is all you need.
    HTH.
    Vikash

  • Problems with mail server and clients

    I have set up OS X server on my iMac with 2 MacBook Pros as clients. I have set up the server to be a mail server.
    I have two problems.
    1. I can successfully send and receive emails between the server and one MacBook Pro but neither send or receive mail on the other even though the settings are identical. I get the standard dialog box 'cannot connect using Port 25'.
    2. On the MacBook Pro that will send mail I can also send mail out of the LAN but mail sent to me is bounced back to the sender.
    Any help would be greatly appreciated. I am new to OS server my learning curve over the past week has been vertical!!!

    You are not alone. I have started a current thread because of the same problem, http://discussions.apple.com/thread.jspa?threadID=1278072&tstart=0.
    Another thread ended with the poster claiming to have things working after a clean install, but I have had no such luck with any of my installations so far.
    Do you have only one domain on your server, or are you hosting virtual domains also?
    /Lars

  • Download and upload ABAP database table to presentation server and R/3

    Hi experts,
    I want to download ABAP database table (Ztable) to presentation server and again want to upload this to another R/3 server but i dont want to use any transport request. is there any possible sollution for this.
    Thanks in advance

    Hi,
    Look at this code hope this will help you to solve your problem
    REPORT y_test_559.
    Program for
    1. Downloading Data of any DB table to a tab delimited ASCII file
    2. Checking if a tab delimited ASCII file has the structure of a
       DB table and showing its contents
    3. Uploading a tab delimited ASCII file to a DB table with the same
       structure
    4. Showing the data of any DB table
    ======================================================================
    ======================================================================
    DATA DECLARATIONS
    ======================================================================
    TYPES : data_object  TYPE REF TO data.
    DATA  : itab TYPE REF TO data .
    TYPE-POOLS : slis .
    DATA  : it_fieldcat TYPE STANDARD TABLE OF slis_fieldcat_alv
            WITH HEADER LINE .
    DATA : it_fieldcatalog TYPE lvc_t_fcat .
    DATA : wa_fieldcatalog TYPE lvc_s_fcat .
    DATA : i_structure_name LIKE dd02l-tabname .
    DATA : i_callback_program LIKE sy-repid .
    DATA  : dyn_line TYPE data_object .
    FIELD-SYMBOLS : <fs_itab> TYPE  STANDARD  TABLE .
    DATA : table_name_is_valid TYPE c .
    DATA : dynamic_it_instantiated TYPE c .
    CONSTANTS buttonselected TYPE c VALUE 'X' .
    ======================================================================
    SELECTION SCREEN DEFAULT
    ======================================================================
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_tabl.
    PARAMETERS : tabl_nam LIKE rsrd1-tbma_val
                 MATCHCODE OBJECT dd_dbtb_16 OBLIGATORY .
                                   "Search for Database Tables is dd_dbtb_16
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_file.
    PARAMETERS : file_nam LIKE rlgrap-filename .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_down.
    PARAMETERS : p_downld RADIOBUTTON GROUP grp1
                 USER-COMMAND m_ucomm .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_chkf.
    PARAMETERS : p_chkfil RADIOBUTTON GROUP grp1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_upld.
    PARAMETERS : p_upload RADIOBUTTON GROUP grp1 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 5(29) t_show.
    PARAMETERS : p_show_t RADIOBUTTON GROUP grp1 ."show table data
    SELECTION-SCREEN END OF LINE.
    ======================================================================
    AT SELECTION SCREEN OUTPUT
    ======================================================================
    AT SELECTION-SCREEN OUTPUT .
      PERFORM check_filename .
    ======================================================================
    AT SELECTION SCREEN ON VALUE REQUEST FOR FILENAME
    ======================================================================
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR file_nam .
      PERFORM f4_for_filename .
    ======================================================================
    Initialization .
    ======================================================================
    INITIALIZATION .
      t_tabl = 'Table Name' .
      t_file = 'File Name' .
      t_down = 'Download Table' .
      t_chkf = 'Check File to Upload' .
      t_upld = 'Upload File' .
      t_show = 'Show Table Contents' .
    ======================================================================
    START OF SELECTION
    ======================================================================
    START-OF-SELECTION .
      PERFORM check_table_name_is_valid .
    ======================================================================
    END OF SELECTION
    ======================================================================
    END-OF-SELECTION .
      IF table_name_is_valid EQ ' ' .
        MESSAGE i398(00) WITH 'INVALID TABLE NAME' .
      ELSE .
        PERFORM instantiate_dynamic_internal_t  .
        CHECK  dynamic_it_instantiated = 'X' .
        CASE buttonselected .
          WHEN p_downld .
            PERFORM select_and_download .
          WHEN p_chkfil .
            PERFORM check_file_to_upload .
          WHEN p_upload .
            PERFORM upload_from_file .
          WHEN p_show_t .
            PERFORM show_contents .
        ENDCASE .
      ENDIF .
    *&      Form  CHECK_TABLE_NAME_IS_VALID
          text
    -->  p1        text
    <--  p2        text
    FORM check_table_name_is_valid.
      DATA l_count TYPE i .
      TABLES dd02l .
      CLEAR table_name_is_valid .
      SELECT COUNT(*) INTO l_count FROM tadir
      WHERE  pgmid = 'R3TR'
      AND    object = 'TABL'
      AND    obj_name = tabl_nam .
      IF l_count EQ 1 .
        CLEAR dd02l .
        SELECT SINGLE * FROM dd02l WHERE tabname  = tabl_nam .
        IF sy-subrc EQ 0.
          IF dd02l-tabclass = 'TRANSP' .
            table_name_is_valid = 'X' .
          ENDIF .
        ENDIF.
      ENDIF .
    ENDFORM.                    " CHECK_TABLE_NAME_IS_VALID
    *&      Form  SELECT_AND_DOWNLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM select_and_download.
      CLEAR : <fs_itab> .
      SELECT * FROM (tabl_nam)
      INTO CORRESPONDING FIELDS OF TABLE <fs_itab>   .
      PERFORM check_filename.
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          filename                = file_nam
          filetype                = 'DAT'
        TABLES
          data_tab                = <fs_itab>
        EXCEPTIONS
          file_open_error         = 1
          file_write_error        = 2
          invalid_filesize        = 3
          invalid_type            = 4
          no_batch                = 5
          unknown_error           = 6
          invalid_table_width     = 7
          gui_refuse_filetransfer = 8
          customer_error          = 9
          OTHERS                  = 10.
      IF sy-subrc EQ 0.
        MESSAGE i398(00) WITH 'Table' tabl_nam
                              'successfully downloaded to '
                              file_nam .
      ENDIF.
    ENDFORM.                    " SELECT_AND_DOWNLOAD
    *&      Form  UPLOAD_FROM_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM upload_from_file.
      DATA : ans TYPE c .
      DATA : lines_of_itab TYPE i .
      DATA : l_subrc TYPE i .
      CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
        EXPORTING
          textline1 = 'Are you sure you wish to upload'
          textline2 = 'data from ASCII File to DB table '
          titel     = 'Confirmation of Data Upload'
        IMPORTING
          answer    = ans.
      IF ans = 'J' .
        PERFORM check_filename.
        CLEAR l_subrc .
        CALL FUNCTION 'WS_UPLOAD'
          EXPORTING
            filename                = file_nam
            filetype                = 'DAT'
          TABLES
            data_tab                = <fs_itab>
          EXCEPTIONS
            conversion_error        = 1
            file_open_error         = 2
            file_read_error         = 3
            invalid_type            = 4
            no_batch                = 5
            unknown_error           = 6
            invalid_table_width     = 7
            gui_refuse_filetransfer = 8
            customer_error          = 9
            OTHERS                  = 10.
        l_subrc = l_subrc  + sy-subrc .
        IF sy-subrc EQ 0.
          DESCRIBE TABLE <fs_itab> LINES lines_of_itab .
          IF lines_of_itab GT 0 .
            DELETE (tabl_nam) FROM TABLE <fs_itab> .
            COMMIT WORK .
            INSERT (tabl_nam) FROM TABLE <fs_itab> .
            l_subrc = l_subrc  + sy-subrc .
          ENDIF .
        ENDIF.
        IF  l_subrc EQ 0  .
          MESSAGE i398(00) WITH lines_of_itab
                               'Record(s) inserted in table'
                                tabl_nam .
        ELSE .
          MESSAGE i398(00) WITH
                          'Errors occurred No Records inserted in table'
                           tabl_nam .
        ENDIF .
      ENDIF .
    ENDFORM.                    " UPLOAD_FROM_FILE
    *&      Form  F4_FOR_FILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM f4_for_filename.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\'
          mask             = ',.,..'
          mode             = '0'
        IMPORTING
          filename         = file_nam
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    ENDFORM.                    " F4_FOR_FILENAME
    *&      Form  CHECK_FILENAME
          text
    -->  p1        text
    <--  p2        text
    FORM check_filename.
      IF file_nam IS INITIAL
      AND NOT ( tabl_nam IS INITIAL  )
      AND p_show_t NE buttonselected.
        CONCATENATE 'C:\' tabl_nam  '.TXT'  INTO file_nam.
      ENDIF .
    ENDFORM.                    " CHECK_FILENAME
    *&      Form  INSTANTIATE_DYNAMIC_INTERNAL_T
          text
    -->  p1        text
    <--  p2        text
    FORM instantiate_dynamic_internal_t.
      CLEAR dynamic_it_instantiated .
    -----> Step 1 - Finding Field Names and ALV GRID Fieldcatalog
      i_structure_name =  tabl_nam .
      CLEAR it_fieldcat[] .
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = i_structure_name
        CHANGING
          ct_fieldcat            = it_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc EQ 0.
    -----> Step 2 - Creating Field Catalog of the Object
                                                  cl_alv_table_create
        LOOP AT it_fieldcat .
          CLEAR wa_fieldcatalog .
          MOVE-CORRESPONDING it_fieldcat TO  wa_fieldcatalog .
          wa_fieldcatalog-ref_field = it_fieldcat-fieldname .
          wa_fieldcatalog-ref_table = tabl_nam .
          APPEND  wa_fieldcatalog  TO it_fieldcatalog .
        ENDLOOP .
    -----> Step 3 - Creating Internal Table Dynamicaly
        CALL METHOD cl_alv_table_create=>create_dynamic_table
          EXPORTING
            it_fieldcatalog = it_fieldcatalog
          IMPORTING
            ep_table        = itab.
        ASSIGN itab->* TO <fs_itab> .
        dynamic_it_instantiated = 'X' .
      ENDIF.
    ENDFORM.                    " INSTANTIATE_DYNAMIC_INTERNAL_T
    *&      Form  SHOW_CONTENTS
          text
    -->  p1        text
    <--  p2        text
    FORM show_contents.
      CLEAR : <fs_itab> .
      SELECT * FROM (tabl_nam)
      INTO CORRESPONDING FIELDS OF TABLE <fs_itab>   .
      i_callback_program = sy-repid .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = i_callback_program
          it_fieldcat        = it_fieldcat[]
        TABLES
          t_outtab           = <fs_itab>
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    ENDFORM.                    " SHOW_CONTENTS
    *&      Form  CHECK_FILE_TO_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM check_file_to_upload.
      PERFORM check_filename.
    CLEAR l_subrc .
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename                = file_nam
          filetype                = 'DAT'
        TABLES
          data_tab                = <fs_itab>
        EXCEPTIONS
          conversion_error        = 1
          file_open_error         = 2
          file_read_error         = 3
          invalid_type            = 4
          no_batch                = 5
          unknown_error           = 6
          invalid_table_width     = 7
          gui_refuse_filetransfer = 8
          customer_error          = 9
          OTHERS                  = 10.
    l_subrc = l_subrc  + SY-SUBRC .
      IF sy-subrc EQ 0.
        i_callback_program = sy-repid .
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            i_callback_program = i_callback_program
            it_fieldcat        = it_fieldcat[]
          TABLES
            t_outtab           = <fs_itab>
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
      ENDIF .
    ENDFORM.                    " CHECK_FILE_TO_UPLOAD
    Thanks,
    Pramod

  • Creating a simpel network with Lion Server, and add Windows XP computers to it

    We have a Mac Lion Server and 3 computers with Windows XP. Previously we had a Windows 2003 server with a domain name: "MYDOMAIN". When logging into Windows it logs into this domain.
    I would like to replace this Windows 2003 server with my new Mac Lion server so, I build up a test setup. I connected the Mac Lion server (iMac) with my Windows XP pc with an ethernet cable. Then, I setup a DHCP, DNS and Open directory in the Server Admin. Added users. I configured the IP adres of the server to a static one by setting the IPv4 to "using DHCP with manual address".
    Then I wanted to let my Windows XP server join the domain of the Lion Server, however I cannot let my Windows XP client connect to the domain of the Lion Server.
    I read in the advanced administration that you can set up Windows XP for domain login. Where do I find the name of this domain? It should be stated in the server admin, open directory, settings, general tab, but the only thing I find here is: Role: Open Directory Master.
    In Windows XP, when I explore in explorer the Microsoft-Windows Network I can see in "MYDOMAIN" the MacLion Server and my Windows XP pc. So sharing files is no problem.
    However, I really want to create a new domain with my Lion Server and let the Windows XP pc's login to the new domain.
    I hope anyone can help me.

    Thanks for the info.
    I read some stuff about this indeed, so I was thinking, because we have a small network, could it be possible to share files on the server via a workgroup?
    If we add the 3 Windows XP pc's to the same workgroup as the Lion Server, would there be a problem?
    Then at startup of Windows XP, should we login to the pc instead of the domain? And where would I find the Lion server in Windows XP?

  • Database link with the alias and full description in the connect string

    Hi,
    i have created database link with alias in tnsentry and full description
    and suppose i have removed the tnsnames.ora file what will be the impact on the database link that is whether database link will work or not i am sure db link created with alias won't work and how about db link created with full description and which one you prefer
    Thanks

    # Parameter file initora for Database prd
    ### Global database name is db_name.db_domain
    global_names = TRUE
    db_name = prd
    db_domain = world
    # TNSNAMES.ORA for prd ###############################
    prd.world = (DESCRIPTION = (ADDRESS = (COMMUNITY = tcp.world)
    (PROTOCOL = TCP) (Host = 100.10.100.1) (Port = 1521))
    (CONNECT_DATA = (SID = prd) (GLOBAL_NAME = prd.world)
    (SERVER = DEDICATED)))
    Our database link points from the local database test to the remote database prd. Therefore we need the global database name for prd. Ask the remote database administrator for these information or connect to prd and execute the following query on prd:
    SQL> select GLOBAL_NAME from GLOBAL_NAME;
    GLOBAL_NAME
    prd.WORLD
    CREATE DATABASE LINK prd
    CONNECT TO system IDENTIFIED BY system_passwd
    USING 'prd';--- alias
    so the connection description will be ---select ename from [email protected]
    useful link
    http://www.akadia.com/services/ora_dblinks.html

Maybe you are looking for

  • Photos not showing up on ipod

    Ok, so my last post about itunes shutting down when i try to sync photos was never anwsered. So i downloaded another program to send photos to my ipod w/out itunes. Everything transfers fine. Itunes says i have pictures on my ipod, and my ipod says h

  • My airport keeps dropping, any suggestions?

    We had the AirBook hinge replaced.  Since it was returned, it will not stay connected to the internet for more than 5 minutes at a time.  Any ideas?

  • How to host html files on Weblogic - quick question

    Hi All We have an ADF web app already running with WLS. We have another static html app to host on this WLS. (as a web server) 1- how do we deploy from Hudson to the standalone WLS for the static html web app (step-by-step simple process we need) 2-

  • Kindle Plugin for InDesign/Ebook

    Hi. I want to publish my ebooks on Amazon, by jusing the latest version of InDesign - CS5.5 on my iMac. BUT I'm having trouble installing Amazons kindle-plugin, which should make you able to export your InDesign file directly into kindle-format. When

  • FCP Log and transfer doesn't read all my SD cards

    Hello geniuses around the world! I'm L-and-T-ing from SDHC cards with HD footage from a Panasonic HMC151 into the latest FCP. Everything is working fine for 6 of my 8 SD cards... 2 of them won't transfer. NONE of the cards will drag and drop straight