Two sockets in a single server

May I open two sockets with different listening port numbers in a single server? For each socket, the way to deal with the inputstream and outputstream is different. May the thread be like this:
public class twoSocketServer implements Runnable {
public twoSocketServer() {
try{
SSLServerSocketFactory fact = SSLServerSocketFactory.getInstance(rand, selfPrivateKey, selfCertificate, trustEngine, null);
serverSocket1 = (SSLServerSocket) fact.createServerSocket(ListeningPort1);
serverSocket1.setNeedClientAuth(false);
serverSocket2 = (SSLServerSocket) fact.createServerSocket(ListeningPort2);
serverSocket2.setNeedClientAuth(false);
} catch {...}
public void run()
while(true)
try
SSLSocket socket1 = (SSLSocket) serverSocket1.accept();
new handler1(socket1).start();
SSLSocket socket2 = (SSLSocket) serverSocket2.accept();
new handler2(socket2).start();
} catch {...}
class handler1 extends Thread {...}
class handler2 extends Thread {...}
Is there something wrong with this idea? If yes, how can I correct it? Thanks.

This is better :
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import java.net.*;
public class MultSrv extends JFrame
     JTextArea   panel   = new JTextArea();
     JScrollPane sbr     = new JScrollPane(panel);
     Vector      sockets = new Vector();
     Vector      servers = new Vector();
public MultSrv() 
     super();
     SocServer ss1 = new SocServer(this,4444);
     if (ss1.servS != null) ss1.start();
          else               System.out.println("err");
     SocServer ss2 = new SocServer(this,4445);
     if (ss2.servS != null) ss2.start();
          else               System.out.println("err");
     SocServer ss3 = new SocServer(this,4446);
     if (ss3.servS != null) ss3.start();
          else               System.out.println("err");
     try
          InetAddress inet = InetAddress.getLocalHost();
          setTitle("MultServer v1 - "+inet+"  Port=4444/5/6");
     catch(IOException e){}
     setBounds(10,10,400,450);
     setContentPane(sbr);
     panel.setEditable(false);
     addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
          {   dispose();
               System.exit(0);}});
     setVisible(true);
     javax.swing.Timer ta = new javax.swing.Timer(2000, new ActionListener()
          public void actionPerformed(ActionEvent e)
               panel.setText("");
               for (int i = 0; i < sockets.size(); i++)
                    SocServer ss = (SocServer)sockets.get(i);
                    if (ss.servS == null) panel.append(""+ss.port +ss.err);
                         else              panel.append(""+ss.port +" Active");
                    panel.append("\n");     
               for (int i = 0; i < servers.size(); i++)
                    Server server = (Server)servers.get(i);
                    panel.append(""+server.clnt.getInetAddress()+" Is serviced");
               repaint();
     ta.start();     
public void go(Socket clnt)
     Server server = new Server(clnt);
     servers.add(server);
     server.start();
//  The ServerSocket
public class SocServer extends Thread
     ServerSocket servS;
     int          port;
     String       err = "";
     Socket       clnt;
     MultSrv      mserv;
public SocServer(MultSrv mserv, int port) 
     this.mserv = mserv;
     this.port  = port;
     sockets.add(this);
     try
          servS = new ServerSocket(port);
     catch (IOException e)
          err = e.toString();;
public void run()
     try
          while (true)
               clnt = servS.accept();
               mserv.go(clnt);
     catch (IOException e)
//  The Server.. one for each client
public class Server extends Thread
     Socket                clnt = null;
     OutputStream       out  = null;
     InputStream        ins  = null;
public Server(Socket soc) 
     clnt = soc;
public void run()
     try
          ins  = clnt.getInputStream();
          out  = clnt.getOutputStream();
          while (true)
     catch (IOException e){}
     try
          ins.close();
          out.close();
          clnt.close();
     catch (IOException e){}
public static void main (String[] args) 
     new MultSrv();
}     

Similar Messages

  • How to open two sockets in one single server

    May I open two sockets with different listening port numbers in a single server? For each socket, the way to deal with the inputstream and outputstream is different. May the thread be like this:
    public class twoSocketServer implements Runnable {
    public twoSocketServer() {
    try{
    SSLServerSocketFactory fact = SSLServerSocketFactory.getInstance(rand, selfPrivateKey, selfCertificate, trustEngine, null);
    serverSocket1 = (SSLServerSocket) fact.createServerSocket(ListeningPort1);
    serverSocket1.setNeedClientAuth(false);
    serverSocket2 = (SSLServerSocket) fact.createServerSocket(ListeningPort2);
    serverSocket2.setNeedClientAuth(false);
    } catch {...}
    public void run()
    while(true)
    try
    SSLSocket socket1 = (SSLSocket) serverSocket1.accept();
    new handler1(socket1).start();
    SSLSocket socket2 = (SSLSocket) serverSocket2.accept();
    new handler2(socket2).start();
    } catch {...}
    class handler1 extends Thread {...}
    class handler2 extends Thread {...}
    Is there something wrong with this idea? If yes, how can I correct it? Thanks.

    try
    SSLSocket socket1 = (SSLSocket)
    serverSocket1.accept();
    new handler1(socket1).start();
    SSLSocket socket2 = (SSLSocket)
    serverSocket2.accept();
    new handler2(socket2).start();
    Is there something wrong with this idea? If yes, how
    can I correct it? Thanks.You can do it.
    In the above code block you are going to need two threads. One for each SocketServer. The accept() method blocks until it recieves a connection. So in your above code it would first wait only for a connection on port 1. Then it would wait only for a connection on port 2. And then start over. That probably isn't what you want.

  • How to config RAM of two instance sap on single server ???

    I have a server (HDD: 146 Gb, 18 Gb RAM, RHEL 5.4 64bit, Oracle 10g R2), I used as system DEV and I have two questions:
    Question 1: I want to install two instance SAP (SAP ECC 6.0 and BI 7.0) on this same server. I want to spend 9 Gb RAM for each SAP instance. So I have to configure how (Oracle instance is how much each instance SAP) ?
    Question 2: Sap Application generally takes much RAM for each instance
    Question 3: I need to install the package to install the SAP instance on RHEL 5.4 64 bit?
    Question 4: What j2sdk package for 64-bit REHL 5.4 64bit?
    thank for your advice
    Edited by: myfriend280985 on Dec 31, 2009 6:20 PM

    Hi,
    Please refer to SAP Notes
    1172419 - Linux Supported Java versions on the x86_64 platform
    1048303 - Red Hat Enterprise Linux 5.xInstallation and upgrade
    171356 SAP software on Linux: Essential information
    There is enough info available for all your questions and prepare a plan, start the installation.
    Best of Luck.
    Cheers.....,
    Raghu

  • Run two Database in single server

    Hi...
    I want to run two database into single server. For that I had created one another database.
    But now I am not able to connect with two database at the same time.
    When I am going to connect to another database i have to shutdown the first one.
    Is it possible to connect and work on two database at the same time?
    Thanks
    pratik

    You should have a good enough to have two or more instances running on the same machine.
    The performance of a single instnace will always be better compared to having two or more instances on the same machine.
    Is it possible to connect and work on two database at the same time?Yes
    Here is an example
    $ ps -ef |grep pmon
    ora101AS 548928 1 0 Aug 06 - 0:31 ora_pmon_orcl
    ora102DB 552974 1 0 Aug 06 - 0:36 ora_pmon_TEST
    ora102DB 1380412 1 0 00:58:49 - 0:04 ora_pmon_LIVE
    testuser 1613946 1691868 0 10:46:11 pts/2 0:00 grep pmon
    Single machine having multiple instances
    $ ps -ef |grep pmon
    ora102DB 4086 1 0 Aug 06 - 1:39 ora_pmon_LIVE10
    testuser 32848 31172 0 10:46:24 pts/0 0:00 grep pmon
    Single machine having a single instance
    The second machine performance is much better compared to the first machine that has mutiple instances.
    Normally CREATE DATABASE is used by advance users while DBCA is relatively easy to use.
    Adith

  • We have two company user,till now there are using same URL.but they wanted to access particular URL to related company user in single server

    Hi Experts,
    We have two company user,till now there are using same URL.but they wanted to access particular URL to related company user in single server.
    As per my knowledge ,it is possible through create new aliases with different URLs in network.
    But i dont how to create. Please help on this.
    Thanks in advance.
    Regards,
    Prasad

    Hi Prasad,
    Please explain in clear english as to what is your requirement. I got lost after "two company user" . I suppose it means there are users from two separate company: A and B. They were using same portal till now: http://commonportal:50000/irj/portal.
    Now they need different urls - specific for each company say companyAportal.com and companyBportal.com. But still the same old common portal in the end.
    If that's your requirement please search the forum with correct terms, else "Google".
    Thanks,

  • Multiple Domains in a Single Server

    Hi:
    I have a requirement where two domains (at this time) need to be set-up in single server.
    Each domain need to have a Admin Server , OSB, SOA, OSR and OER as managed servers and each runs in different port.
    Each domain has it own schema, but shares the same instance and database
    Is it possible to run both domain at same time, (i-e) i should be having both the servers up and running and should be able to open the consoles of Admin server and managed servers for each of the domains configured?
    Regards,
    RK

    Is it possible to run both domain at same time, (i-e) i should be having both the servers up and running and should be able to open the consoles of Admin server and managed servers for each of the domains configured?That should be no problem... Use different port numbers, different schemas and different domain directories... You can share the same product installation...
    Cheers,
    Vlad

  • Intermittend DNS resolution, timeserver, group policy updates errors in client logs in Win 2012 R2 single server environement

    We recently switched hardware and server software Win SBS 2008 to 2012R2 for a small network roughly 40 clients (Win7 Pro / Win 8.1 Pro) about 16 running concurrently at a given time and one network printer with the printer queue residing on the DC as well.
    I read that a single server environment might not be ideal in particular no fail-over but that is an accepted risk in this particular network here.
    Errors:
    Error 1043: Timeout during name resolution request
    Error 1129: Group policy updates could not be processed due to DC not available
    Error 5719: Could not establish secure connection to DC, DC not available
    Occasionally but disappears after a while
    Error 134: As a result of a DNS resolution timeout could not reach time server
    Symptoms
    On Win 7 Clients
    Network shares added through Group Policy will not show sometimes
    Network shares disconnect (red X) and when accessed return access authorization error after one or two clicks on the share finally grant access again
    When the issue with accessing network shares occurs, it usually also affects Internet access meaning a 'server not responding' error appears in the browser windows when trying to open just any web page
    nslookup during the incident returns cannot resolve error
    ipconfig on client shows correct default router (VDSL Router) and DHCP / DNS Domain Controller
    Also, the Win system log shows the above errors during these incidents, however, the nuimber of incidents vary from 20-30
    On Win 8.1 Clients
    Same as above with the slight variation for network shares apparently due to Server 2012 and Win 8.1 clients managing drive shares differently. However, network share refresh does not work with this clients. In most cases only a gpupdate /force returns
    drive shares but usually only for the active session. After logoff / logon the shares are gone again.
    The issue does appear to be load related since it occurs even if there are only one or two workstations active.
    Server Configuration
    Dell R320 PowerEdge 16GB / 4TB 7200RPM RAID10 / GBitEthernet
    Zyxel 1910-48 Port Switch
    VDSL 50Mbps Down / 20Mbps Up
    Since the DC is the only local DNS and there are no plans to add another one or move DNS to another server, the DNS server is configured with this own address as preferred DNS with three DNS forwarders 1) VDSL Router 2) ISP DNS1 3) ISP DNS2
    Currently only one Network card is active for problem determination reasons.
    There appears to be no consensus concerning IPV6 enabled or disabled, I tried both with no apparent effect
    I have set all network cards server and client to Full Duplex and the same speed, also disabled Offload functions within the adapter settings. Some but no consistent improvements.
    Best Practice Analyzer Results
    DNS server scavening not enabled
    Root hint server XYZ must respond to NS queries for the root zone
    More than one forwarding server should be configured (although 3 are configured)
    NIC1 should be configured to use both a preferred and alternate DNS (there is only one DNS in this network)
    I have found some instructions to apply changes to the clients through a host file but I would rather like to understand whether this DNS response time issue can be resolved on the server for example timing setting perhaps. Currently the DNS forwarders are
    set to 3 second.
    Since a few people have reported issues with DNS but most are working with multi DNS, DC environment I could not really apply any suggestions made there. perhaps there is anyone like me who is running a single server who has overcome or experience the same
    issues. Any help would be appreciated

    Hello Milos thx for your reply.. my comments below
    1. What does it "switched"? You may mean migration or new installation. We do not know...
    >> Switched is probably the incorrect term, replaced would be the appropriate wording. Before, there was a HP Proliant Server with SBS 2008 with distinct domain and now there is a Dell Server with MS 2012 R2 with a distinct domain. Client were
    removed from one (SBS) domain and added to the new Server 2012 domain. Other components did not change for example same Network Switch or VDSL Router, Workstations and Printer
    2. Two DCs are better alternative. Or backup very frequently. There are two groups of administrators. Those who have lost DC and those who will experience this disaster in near future.
    >> Correct, and I am aware of that
    3. NIC settings in W 7 and W 8.1, namely DNS points to DC (...and NOTHING else. No public IP or that of router DNS.))
    >> Correct, this is how it's currently implemented. Clients point to DC for DHCP and DNS and Default Router, no public IP or DNS. The only references to ISP DNS exist on the VDSL Router itself as provided through ISP when establishing VDSL
    Link and the list of Forwarders in the DNS Server configuration. However, I have just recently added the ISPs DNS as forwarders for test purposes and will probably learn tomorrow morning whether this had any effect for better or worse.
    4. Do nslookup to RR on clients. RR branch is saying client basic info on LDAP parameters of AD.
    >> Will post as soon as available
    5. I do not use forwarders and the system works
    >> Ok, does this mean it works for you in a similar or the same infrastructure setup or are you saying it is not required at all and I can remove any forwarder in a scenario like mine? If not required can you explain a bit more why it is not
    required apart from that it does work for you that way?
    6. DHCP should sit on DC (DHCP on router is disabled)
    >> Correct, no other device is configured to provide DHCP service other than DC and DHCP is currently running on DC
    7. NIC settings in DC points to itself (loopback address 127.0.0.1)
    >> Are you sure this is still correct and does apply to Server 2012? I am reading articles stating that it should be the servers own IP but local loop or should this be added as alternate DNS in addition to the servers own IP?
    8. Use IPCONFIG /FLUSHDNS whenever you change DNS settings.
    >> OK, that was not done every time I changed some settings but I can do that next week. Reboot alone would not suffice, correct?
    9. Test your system with dcdiag.
    >> See result below
    10. Share your findings.
    Regards
    Milos
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
      Home Server = GSERVER2
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
    Testing server: Default-First-Site-Name\GSERVER2
          Starting test: Connectivity
             ......................... GSERVER2 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\GSERVER2
          Starting test: Advertising
             ......................... GSERVER2 passed test Advertising
          Starting test: FrsEvent
             ......................... GSERVER2 passed test FrsEvent
          Starting test: DFSREvent
             ......................... GSERVER2 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... GSERVER2 passed test SysVolCheck
          Starting test: KccEvent
             ......................... GSERVER2 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... GSERVER2 passed test
             KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... GSERVER2 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... GSERVER2 passed test NCSecDesc
          Starting test: NetLogons
             ......................... GSERVER2 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... GSERVER2 passed test
             ObjectsReplicated
          Starting test: Replications
             ......................... GSERVER2 passed test Replications
          Starting test: RidManager
             ......................... GSERVER2 passed test RidManager
          Starting test: Services
             ......................... GSERVER2 passed test Services
          Starting test: SystemLog
             ......................... GSERVER2 passed test SystemLog
          Starting test: VerifyReferences
             ......................... GSERVER2 passed test VerifyReferences  
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : GS2
          Starting test: CheckSDRefDom
             ......................... GS2 passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... GS2 passed test CrossRefValidation  
       Running enterprise tests on : GS2.intra
          Starting test: LocatorCheck
             ......................... GS2.intra passed test LocatorCheck
          Starting test: Intersite
             ......................... GS2.intra passed test Intersite
    Server:  gserver2.g2.intra
    Address:  192.168.240.6
    *** gserver2.g2.intra can't find g2: Non-existent domain
    > gserver2
    Server:  gserver2.g2.intra
    Address:  192.168.240.6
    g2.intra
            primary name server = gserver2.g2.intra
            responsible mail addr = hostmaster.g2.intra
            serial  = 443
            refresh = 900 (15 mins)
            retry   = 600 (10 mins)
            expire  = 86400 (1 day)
            default TTL = 3600 (1 hour)
    > wikipedia.org
    Server:  gserver2.g2.intra
    Address:  192.168.240.6
    Non-authoritative answer:
    wikipedia.org   MX preference = 10, mail exchanger = polonium.wikimedia.org
    wikipedia.org   MX preference = 50, mail exchanger = lead.wikimedia.org
    polonium.wikimedia.org  internet address = 208.80.154.90
    polonium.wikimedia.org  AAAA IPv6 address = 2620:0:861:3:208:80:154:90
    lead.wikimedia.org      internet address = 208.80.154.89
    lead.wikimedia.org      AAAA IPv6 address = 2620:0:861:3:208:80:154:89
    Final benchmark results, sorted by nameserver performance:
     (average cached name retrieval speed, fastest to slowest)
      192.168.240.  6 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      + Cached Name   | 0,001 | 0,002 | 0,003 | 0,001 | 100,0 |
      + Uncached Name | 0,027 | 0,076 | 0,298 | 0,069 | 100,0 |
      + DotCom Lookup | 0,041 | 0,048 | 0,079 | 0,009 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                 gserver2.g2.intra
                    Local Network Nameserver
      195.186.  4.162 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,022 | 0,023 | 0,025 | 0,000 | 100,0 |
      - Uncached Name | 0,025 | 0,071 | 0,274 | 0,065 | 100,0 |
      - DotCom Lookup | 0,039 | 0,040 | 0,043 | 0,001 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                         cns8.bluewin.ch
               BLUEWIN-AS Swisscom (Schweiz) AG,CH
      195.186.  1.162 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,022 | 0,023 | 0,026 | 0,001 | 100,0 |
      - Uncached Name | 0,025 | 0,072 | 0,299 | 0,066 | 100,0 |
      - DotCom Lookup | 0,039 | 0,042 | 0,049 | 0,003 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                         cns7.bluewin.ch
               BLUEWIN-AS Swisscom (Schweiz) AG,CH
        8.  8.  8.  8 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,033 | 0,040 | 0,079 | 0,011 | 100,0 |
      - Uncached Name | 0,042 | 0,113 | 0,482 | 0,097 | 100,0 |
      - DotCom Lookup | 0,049 | 0,079 | 0,192 | 0,039 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                 google-public-dns-a.google.com
                     GOOGLE - Google Inc.,US
      UTC: 2014-11-03, from 14:33:12 to 14:33:29, for 00:17,648
    15: 40
    192.168.240.  6 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      + Cached Name   | 0,001 | 0,002 | 0,004 | 0,000 | 100,0 |
      + Uncached Name | 0,025 | 0,074 | 0,266 | 0,063 | 100,0 |
      + DotCom Lookup | 0,042 | 0,048 | 0,075 | 0,007 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                 gserver2.g2.intra
                    Local Network Nameserver
      195.186.  1.162 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,022 | 0,024 | 0,029 | 0,001 | 100,0 |
      - Uncached Name | 0,024 | 0,073 | 0,289 | 0,067 | 100,0 |
      - DotCom Lookup | 0,039 | 0,041 | 0,043 | 0,001 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                         cns7.bluewin.ch
               BLUEWIN-AS Swisscom (Schweiz) AG,CH
      195.186.  4.162 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,022 | 0,024 | 0,029 | 0,001 | 100,0 |
      - Uncached Name | 0,025 | 0,073 | 0,286 | 0,065 | 100,0 |
      - DotCom Lookup | 0,041 | 0,066 | 0,180 | 0,037 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                         cns8.bluewin.ch
               BLUEWIN-AS Swisscom (Schweiz) AG,CH
        8.  8.  8.  8 |  Min  |  Avg  |  Max  |Std.Dev|Reliab%|
      ----------------+-------+-------+-------+-------+-------+
      - Cached Name   | 0,033 | 0,038 | 0,077 | 0,009 | 100,0 |
      - Uncached Name | 0,042 | 0,105 | 0,398 | 0,091 | 100,0 |
      - DotCom Lookup | 0,049 | 0,066 | 0,141 | 0,025 | 100,0 |
      ---<-------->---+-------+-------+-------+-------+-------+
                 google-public-dns-a.google.com
                     GOOGLE - Google Inc.,US
      UTC: 2014-11-03, from 14:39:59 to 14:40:12, for 00:13,363

  • Single server solution for RDS / TS / RDP using Windows Server 2012 R2

    Planning on setting up a small single server and  need this functionality:
    * 3 local users runnnig Windows 7 Home Premium needs to access files on the server
    * The same 3 users should also be able to connect from home (PC, Mac, iPhone) and run an application on the server. (Session-Based Remote Desktop).
    We want to use Windows Server 2012, and found out that Essentials does not support RDP, so that leaves Foundation and Standard versions.
    However, I also found out that in WS 2012 the RDP can not be on the same server as the Domain Controller, and we therefor needs to run 2 server instances on our hardware. I think this starts to look way to complicated for what we want to do, but found out
    that WS 2012 R2 allows a single server to run RDP (See TechNet article 2833839).
    So we will go for Windows Server 2012 R2, either Foundation or Standard to set up our RDP.
    So now the question: Will that solution work with our local machines running Windows 7 Home Premium, as they cannot connect to a domain? Can we set up some kind of simple file share or Workgroup to acces files locally while still keeping the RDP
    functionality on the server?
    And, will WS 2012 Foundation R2 do this as well as WS 2012 Standard R2?
    (I have been asking several locat MS representatives to find a solution to our needs, but no one seems to know how this works....of cause we could just get 2 WS 2012 Standard server instances, run one as DC and on as RDCB and upgrade all our clients to Win
    7 Pro, but we would like a solution with minimal investment in time and money)
    Rgds
    Petter

    Hi Ryan, 
    and thanks for the answer! I do not know how to do "multiple quote" in this forum so I do it this way:
    "have you considered virtualisation, as you can run multiple virtual machines under one licence. I think this would be the cheapest and most efficient use of your money. Upgrading your clients to Windows 7 pro would allow you to have domain control
    Single Sign On SSO. "
    This is the "official" solution I think: Upgrade all clients to Win 7 Pro and run two instances of Win Server 2012 Standard on the server.
    However, I was hoping to get away with something a bit more Quick & Dirty.....;-) We do not have big security issues and will have a good backup system, and I think for 3 users only, it will be more work trying to centralise administration like updating,
    backups etc, than to just go to each machine and do what is needed. 
    We are good with computers/Windows but have no Server experience. A server guy will help us get started, but I dont want him around after that, so it must be a very simple solution.
    Also, installing 2 instances of WS 2012 and upgrading all 3 clients to Win Pro, and then installing all software and settings on the clients into the new domain user accounts on these clients is quite a lot of work. So I was hoping to keep only existing local
    users on the client machines and only have some kind of file share thing going on with the server disks that we need to access. So perhaps use a Workgroup instead of a domain, if that works with the RDS setup?
    "Option 1
    2 virtual machines 1x DC and 1x RDS server."
    So, if we set up RDS this way (so we can log in remote and run our application session-based on the server), can we keep the local clients running Windows Home Premium using our current local user logins (ie no domain user accounts created on the client machines,
    as this is impossible in Home versions) and still access the server disks somehow, or is it impossible? 
    Another question is if it is stupid/a really bad solution...but I still want to know if it is possible....;-)
    "Option 2 
    2 virtual machines 1x DC and 1x RDS server.
    You can configure your RDS solution as a domain joined platform and will still be able to access resources from the local device as you can map local drives to the session host. http://www.serverintellect.com/support/techfaq/drive-rdp/
    Your users would have two sets of credentials, one for the local client and one for the domain."
    I do not want to access files over VPN or RDP, we only want to run an application on the server from remote (Session-Based Remote Desktop). However when we use the local clients we want to access files on the server, and then we access huge image and film files
    on fast RAID drives, so local network speed must be top speed. Also if possible we would like to not upgrade to Win Pro, and then joining a domain is not possible.
    "Option 3
    1x Server
    The second option would be to manually deploy the session host role and licencing role to a work group server. This would limit access to RDP only and you would loose web access functionality."
    I think this is what I was hoping for. It seems that the new R2 release of WS 2012 allows you to rund RDP and Domain Controller roles on the SAME instance of the server. That sounds nice, it limits what we need to keep track on and minimises the load on the
    server that needs to act as a very fast file server locally.
    However, can we do this and still keep file acces with only Windows Home (no domain) in the local clients (same question as above under "Option 1")?
    Rgds
    Petter

  • How to install multiple E-Business Suite in a single server?

    Hello,
    I read somewhere that we can install multiple E-Business Suite in a single server as long as the storage is enough, is it true? If yes do any of you can give me the steps to install it or refer me to a link? I'd searched here but couldn't find it, hope that I didn't miss something. What I want to do is install Vision database and another one is fresh install for testing, both in a single server. There will be about 20 people accessing that system. What kind of hardware must I use? Thanks.

    If you want to run 2 instances concurrently, It would be safe to assume you want 8 GB of RAM plus enough storage to host both instances, backups, archive logs, patches etc. For CPU, most entry level servers can be single, dual or quad socket, or CPU socket. Most CPUs are dual core, meaning there are 2 physical CPU cores in each socket. So if you get a 2 socket dual core server, you see 4 physical CPUs on the operating system. If you get a 4 socket dual core server, you see 8 physical CPUs. If you want to run R12 applications, you will definately need 4 GB of ram per instance (E-Business Suite installation). 11i might get by on 3 GB of ram per instance.

  • Do I need DFSR in a single server environment?

    I have a 2012 Host, running a single 2012 Guest.  Guest is running as a DC with AD, DNS, DHCP, and File Services.  DFSR is running, and it gives a warning every time my back runs (Backup is running on Host).  Warning is The DFS Replication
    service stopped replication on volume F:......and long message about Database, yada yada yada.  
    Do I need to run DFSR?  Again, single server, no file replication to different offices.  I'm not finding a clear answer to that question.
    Second, Server Manager should, according to TechNet, have under the Tools option the ability to turn off DFSR.  I cannot find that option.  So, IF I can turn it off, can I simply disable the DFS Namespace and DFS Replication services?  
    I would prefer eliminating rather than ignoring warnings.
    Thanks

    Sorry, one more time.  I have a single server environment, there is NO upstream domain controller, no replication between DC's.  There is ONE DC.  So, this is digressing into two questions.  One, why do I need to run DFSR (again, lots
    of articles talking about how to turn it off, and not as a discussion of temporary turn off https://msdn.microsoft.com/en-us/library/cc753144.aspx) in a single server, single domain, non-replicating environment.  
    Second, how do I address the warning I receive during my backup?  It appears to be caused by a replication error to downstream servers, since there is no downstream server, I should be able to resolve it by turning DFSR off.  I would like some
    documentation discussing the issue of turning it off in a non-DFS environment.
    The DFS Replication service stopped replication on volume F:. This occurs when a DFSR JET database is not
    shut down cleanly and Auto Recovery is disabled. To resolve this issue, back up the files in the affected replicated folders, and then use the ResumeReplication WMI method to resume replication. 
    Additional Information: 
    Volume: F: 
    GUID: 65E46942-B9D6-11E3-9400-00155D325402 
    Recovery Steps 
    1. Back up the files in all replicated folders on the volume. Failure to do so may result in data loss due
    to unexpected conflict resolution during the recovery of the replicated folders. 
    2. To resume the replication for this volume, use the WMI method ResumeReplication of the DfsrVolumeConfig
    class. For example, from an elevated command prompt, type the following command: 
    wmic /namespace:\\root\microsoftdfs path dfsrVolumeConfig where volumeGuid="65E46942-B9D6-11E3-9400-00155D325402"
    call ResumeReplication 
    For more information, see http://support.microsoft.com/kb/2663685.  
    Jeff Ferris

  • Multiple database in single server

    Hi experts,
    Please tell me how to configure multiple SID with single listener.
    I configured the DR setup of two databases in single server. Now the problem is, if I start one listener from orapm1(CRM), my data is replicating only for CRM, and if I am going to start my listener from oraPE2 user (DBM), error is coming u201C listener is already startu201D but DBM is not replicating with DR site.
    And when I stop the listener from oraPM1, and start listener from user oraPE2(DBM), my DBM is replicating properly, I want to start both in parallel with one listener.
    Right now I have only one port for both database (1527) and only one LISTENER, should I need to change the port for one server e.g DBM (primary and standby), and then change in listener files. For both side (primary and standby)
    If I am correct please let me know the steps, what precautions we need to take.
    And what change I need to do in listener file.
    2nd) Can I work on same port for both SIDs, if yes please tell me the steps.
    My CRM is working properly so I need to change in DBM part.
    I am attaching listener file from both users in same server (10.11.230.12)
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER_PE2 =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = PE2.WORLD)
    (ADDRESS=
    (PROTOCOL = IPC)
    (KEY = PE2)
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.11.230.12)
    (PORT = 1527)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PE2)
    (ORACLE_HOME = /oracle/PE2/102_64)
    pm1 listener file
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = PM1.WORLD)
    (ADDRESS=
    (PROTOCOL = IPC)
    (KEY = PM1)
    (ADDRESS =
    (COMMUNITY = SAP.WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.11.230.12)
    (PORT = 1527)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PM1)
    (ORACLE_HOME = /oracle/PM1/102_64)
    Thanks in advance.

    Dear Experts,
    please tell me is it ok or i need to change something else?
    this example is for only one listener, and i put both SID details in same LISTENER, or i need to change the listener name for another server. it is very confusing...
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = PM1.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = PM1)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = 10.11.230.12)
              (PORT = 1527))
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY =PE2.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = PE2)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = 10.11.230.12)
              (PORT = 1528))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PM1)
          (ORACLE_HOME = /oracle/PM1/102_64)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = ON
    SID_LIST_LISTENER  =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PE2)
          (ORACLE_HOME = /oracle/PE2/102_64)
    Rishi

  • When deploying a single server on new hardware, do you virtualize it or not?

    There are a few questions that I've found on ServerFault that hint around this topic, and while it may be somewhat opinion-based, I think it can fall into that "good subjective" category based on the below:
    Constructive subjective questions:
    * tend to have long, not short, answers
    * have a constructive, fair, and impartial tone
    * invite sharing experiences over opinions
    * insist that opinion be backed up with facts and references
    * are more than just mindless social fun
    So that out of the way.
    I'm helping out a fellow sysadmin that is replacing an older physical server running Windows 2003 and he's looking to not only replace the hardware but "upgrade" to 2012 R2 in the process.
    In our discussions about his replacement hardware, we discussed the possibility of him installing ESXi and then making the 2012 "server" a VM and migrating the old apps/files/roles from the 2003 server to the VM instead of to a non-VM
    install on the new hardware.
    He doesn't perceive any time in the next few years the need to move anything else to a VM or create additional VMs, so in the end this will either be new hardware running a normal install or new hardware running a single VM on ESXi.
    My own experience would lean towards a VM still, there isn't a truly compelling reason to do so other than possibilities that may arise to create additional VMs. But there is the additional overhead and management aspect of the hypervisor now, albeit
    I have experienced better management capabilities and reporting capabilities with a VM.
    So with the premise of hoping this can stay in the "good subjective" category to help others in the future,what
    experiences/facts/references/constructive answers do you have to help support either outcome (virtualizing or not a single "server")?

    In the general case, the advantage of putting a standalone server on a hypervisor is future-proofing. It makes future expansion or upgrades much easier, much faster, and as a result, cheaper. The primary drawback is additional complexity and cost (not necessarily
    financially, but from a man-hours and time perspective).
    So, to come to a decision, I ask myself three questions (and usually prefer to put the server on a hypervisor, for what it's worth).
    How big is the added cost of the hypervisor?
    Financially, it's usually minimal or non-existent.
    Both VMware and Microsoft have licensing options that allow you to run a host and a single guest for free, and this is sufficient for most standalone servers, exceptions generally being servers that are especially resource-intensive.
    From a management and resource standpoint, determining cost can be a bit trickier.
    You basically double the cost of maintaining the system, because now you have two systems to monitor, manage and keep up-to-date with patches and updates (the guest OS and the host OS).
    For most uses, this is not a big deal, as it's not terribly taxing to maintain one server, though for some especially small or especially technically challenged organizations, this can be a real concern.
    You also add to the technical skills required. Now, instead of just needing someone who can download updates from Windows Update, you need someone who knows enough to manage and maintain the virtualization environment.
    Again, not usually a problem, but sometimes, it's more than an organization can handle. 
    How big is the benefit from ease-of upgrade or expansion?
    This boils down to how likely future expansion is, because obviously, if they don't expand or upgrade their server assets, this benefit is zero.
    If this is the type of organization that's just going to stuff the server in a corner and forget about it for 10 years until it needs to be replaced anyway, there's no point.
    If they're likely to grow organizationally, or even just technically (by say adding new servers with different roles, instead of just having an all-in-one server), then this provides a fairly substantial benefit. 
    What's the benefit now?
    Virtualization bring benefits beyond future-proofing, and in some use-cases, they can be substantial.
    The most obvious one is the ability to create snapshots and trivial-to-restore backups before doing something on the system, so if it goes bad, you can revert in one click.
    The ability to experiment with other VMs (and play the "what if" game) is another one I've seen management get excited about. For my money, though, the biggest benefit is the added portability you get from running a production server on a hypervisor. If something
    goes really wrong and you get yourself into a disaster-recovery or restore-from-backups situation, it is almost infinitely easier to restore a disk image to a machine running the same hypervisor than trying to do a bare-metal restore.

  • SAP BW(NW2004s) Development and SAP BW Production(NW2004s) on Single Server

    Hello Experts,
    Currently we are having BW development and BW production on seperate IBM iseries servers with AS400.
    Can we have dev and prd on same servers. What would be the implications of this landscape.
    Please provide me the links for documentation (if any).
    Waiting for the reply.
    Thanks and regards,
    Vinayak
    Edited by: VGM on Apr 16, 2009 12:37 PM

    I wouldn't put the two systems in the same server.
    Simply... you'll find yourself with a single point of failure, any downtime required for OS maintainance or failure will affect the whole environment, having the two system in the same box could affect performance (depending on the resources available)... etc, etc....
    In my opinion having a 2 tier environment is not ideal... and having them in the same box is even worst.
    Thats my 2 cents
    Regards
    Juan

  • BEA-090513 "ServerIdentity failed validation" on single domain single server

    Hi!
    I'm getting loads of
    <Error> <Security> <BEA-090513> <ServerIdentity failed validation, downgrading
    to anonymous.>
    errors though I'm running a single server in a single domain - so the information
    in
    http://e-docs.bea.com/wls/docs81/messages/Security.html
    isn't very helpful. What can I do to remove this problem?
    Thanks so much,
    Hans-Peter Stoerr

    Hi I get the similar error
    <Error> <Security> <BEA-090513> <ServerIdentity failed validation, downgrading to anonymous.>
    <Sep 12, 2007 4:04:51 PM CDT> <Error> <Security> <BEA-090513> <ServerIdentity failed validation, downgrading to anonymous.>
    ####<Sep 12, 2007 2:47:32 PM CDT> <Error> <Security>sb1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Defau
    lt (self-tuning)'> <<WLS Kernel>> <> <> <1189626452736> <BEA-090513> <ServerIdentity failed validation, downgrading to anonymous.>
    ####<Sep 12, 2007 2:47:32 PM CDT> <Error> <Security> > <sb1> <ExecuteThread: '8' for queue: 'weblogic.socket.Muxer'> <<WLS
    Kernel>> <> <> <1189626452759> <BEA-090513> <ServerIdentity failed validation, downgrading to anonymous.>
    ####<Sep 12, 2007 2:47:32 PM CDT> <Error> <Security> < <sb1> <ExecuteThread: '8' for queue: 'weblogic.socket.Muxer'> <<WLS
    Kernel>> <> <> <1189626452760> <BEA-090513> <ServerIdentity failed validation, downgrading to anonymous.>
    I tried the bea method to change the credentials that the domain is interacting with (trust certificate) but no help.The errors keep coming still.
    iN order to rule out some possiblity i shutdown the other domain completley and i could still see same errors in my managed server logs.i would really appreciate anyones tips to fix this issue.

  • ARFC: Single Server and Load Balancing

    Hi All,
    I am trying to create aRFC model. In SAP logon screen, I can see two tab pages - Single Server and Load Balancing.
    Can you please let me know when we have to use which tab?
    Thanks
    TG

    Single Server Connect or Load Balancing connect is completely independend from the location where SAP Gui Client is installed.
    Single Server connect means that your are directly connecting to an ABAP Server using hostname and systemnumber you have to provide.
    Load Balancing Connect means that you specify the message server of the central instance of an ABAP Server group. The SAPGUI first connects to the message server which will provide the SAPGUI with the information about the best performing ABAP server. SAPGUI will then connect to this ABAP server.
    Single Server is suitable for small landscapes with lets say less than 4 application servers. In huger configurations (and those which I know will grow to more than 3 servers)I would prefer to use logon groups - aka Load Balancing.
    Peter

Maybe you are looking for

  • My fiance and i share 1 icloud account on 2 iphones, after the ios 7 update he can now see all my messages on his phone, how can i fix this?

    my fiance and i share 1 icloud account on 2 iphones, after the ios 7 update he can now see all my text messages that I type on his phone, how can i fix this?  I don't see any of his, just the other way around.  The icloud account is in my name.  also

  • Billing block in sales orders

    10.09.2008 Hi friends, My Sales Orders have items  with billing plan and normal items i.e items without billing plan. When i put a billing block for items with billing plan then these items rightly dont appear in report vf04, but if a billing block i

  • MySQL Locks

    Hi, This is quite complicated, and probably I'm making a big mess in many concepts... but can someone help me with this?? All right... I'm using MySQL DB, and it's default table types do not support transactions, so I'm supposed to use table locks in

  • Actual cost for the Process Orders

    Hi Experts, I want to know the actual cost for total one month process orders. I can check actual cost for each order in COR2- by entering in to cost analysis. But, my request is, where to check actual cost for One perticular product for the total mo

  • Adobe won't open a file that Adobe reader will....

    I have a file created by a third party (scanned) that opens fine in Acrobat Reader but doesn't open in Acrobat 10.0.3. This is on Windows 7. The PDF cproducre is Pixel Translations (PIXPDF Ver.7.5.48) and the version is 1.1 (Acrobat 2.x). There are a