How to connect two pcs SQLPLUS

I m on pc ip=11 and want to connect to the listener of pc ip 12...how do i do it?
c:\sqlplus sys as sysdba/oracle@????????????????

920092 wrote:
I WANT TO KNOW IF I CONNECT WITH FOLLOING METHOOD:
SCOTT/TIGER@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sam1.emrsn.org)(PORT=1521))
THEN I NEED TO REGISTER MY PC SERVICE NAME IN TARGETS LISTENER.ORA?? OR TNSNAMES.ORA
i mean to say that i shud have my sources service name registered in destinations listener.ora ..something like thi??There is no need to shout.
You obviously need some fundamental understanding about the relationship between the client, the server, and the listner. Start here: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

Similar Messages

  • How to connect two external monitors to a Mac Book Pro?

    How to connect two external monitors to a Mac Book Pro?

    Not as is, but  Matrox makes a peripheral that enables connecting more than one external monitor - matrox.com.

  • How to connect two computers

    please help me
    how to connect two computers through telephone line

    Double Post. See:
    http://forum.java.sun.com/thread.jspa?threadID=770305&tstart=0

  • Hibernate query...how to connect two databases...

    hi i m new to hibernate..
    i created two tables..
    1st table is catalog:
    2nd table is acctinfo
    //HBM file is :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="hibernate.example.Catalog" table="catalog">
    <id name="id" type="integer" column="ID">
    <generator class="increment"/>
    </id>
    <property name="journal" type="string" column="JOURNAL"/>
    <property name="publisher" type="string" column="PUBLISHER"/>
    <property name="edition" type="string" column="EDITION"/>
    <property name="title" type="string" column="TITLE"/>
    <property name="author" type="string" column="AUTHOR"/>
    <bag name="accinfo" cascade="all" >
    <key column="ID"/>
    <one-to-many class="hibernate.example.Acctinfo"/>
    </bag>
    </class>
    <class name="hibernate.example.Acctinfo" table="acctinfo">
    <id name="id" type="integer" column="ID">
    <generator class="increment"/>
    </id>
    <property name="account" type="string" column="ACCOUNT"/>
    <property name="password" type="string" column="PASSWORD"/>
    <property name="balance" type="string" column="BALANCE"/>
    </class>
    </hibernate-mapping>
    ///******************getter setter file is::****************
    package hibernate.example;
    public class Acctinfo
         int id;
         String account;
         String password;
         String balance;
         public Acctinfo()
         public void setId(int id)
              this.id = id;
         public int getId()
              return id;
         public void setAccount(String account)
              this.account = account;
         public void setPassword(String password)
              this.password = password;
         public void setBalance(String balance)
              this.balance = balance;
         public String getAccount()
              return account;
         public String getBalance()
              return balance;
         public String getPassword()
              return password;
    //********************2nd getter setter file is:***********************
    package hibernate.example;
    import java.util.List;
    public class Catalog
    int id;
    String journal;
    String publisher;
    String edition;
    String title;
    String author;
    private List accinfo;
    public Catalog()
    public void setId(int id)
    this.id = id;
    public int getId()
    return id;
    public void setJournal(String journal)
    this.journal = journal;
    public String getJournal()
    return journal;
    public void setPublisher(String publisher)
    this.publisher = publisher;
    public String getPublisher()
    return publisher;
    public void setEdition(String edition)
    this.edition = edition;
    public String getEdition()
    return edition;
    public void setTitle(String title)
    this.title = title;
    public String getTitle()
    return title;
    public void setAuthor(String author)
    this.author = author;
    public String getAuthor()
    return author;
    public void setAccinfo(List accinfo)
    this.accinfo = accinfo;
    public List getAccinfo()
    return accinfo;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package hibernate.example;
    import hibernate.example.Acctinfo;
    import hibernate.example.Catalog;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.util.ListIterator;
    import org.hibernate.Query;
    import org.hibernate.SQLQuery;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.cfg.Configuration;
    public class CatalogClient
         Session session = null;
         SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
         public static void main(String str[])
              CatalogClient clc = new CatalogClient();
              //clc.saveData();
              //clc.deleteData();
              //clc.showData();
              clc.updateData();
         public void showData()
              try
                   session =sessionFactory.openSession();
                   String SQL_QUERY ="select id, journal, publisher, edition, title, author from catalog";
                   // String SQL_QUERY ="select c.ID, c.JOURNAL, c.PUBLISHER, c.EDITION, c.TITLE, c.AUTHOR, a.ACCOUNT, a.PASSWORD,a.BALANCE from catalog c, ACCTINFO a where c.ID = a.ID";
                   SQLQuery query = session.createSQLQuery(SQL_QUERY);
                   System.out.println("*** query : *** "+ query);
                   //for(ListIterator it=query.list().listIterator();it.hasNext();)
                   for (ListIterator lit = query.list().listIterator(); lit.hasNext();)
                        Object[] row = (Object[]) lit.next();
                        /*System.out.println("ID: " + row[0]);
                        System.out.println("Title: " + row[1]);
                        System.out.println("Author: " + row[2]);
                        System.out.println("Isbn: " + row[3]);
                        System.out.println("Pages: " + row[4]);
                        System.out.println("Copyright: " + row[5]);
                        System.out.println("Cost: " + row[6]);
                        System.out.println("******NEXT****************");
    Object[] row = (Object[]) it.next();*/
                        System.out.println("ID: " + row[0]);
                        System.out.println("JOURNAL: " + row[1]);
                        System.out.println("PUBLISHER: " + row[2]);
                        System.out.println("EDITION: " + row[3]);
                        System.out.println("TITLE: " + row[4]);
                        System.out.println("AUTHOR: " + row[5]);
                        System.out.println("acc: " + row[6]);
                        System.out.println("pass: " + row[7]);
                        System.out.println("bal: " + row[8]);
                        System.out.println("***************************");
                   session.close();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void saveData()
              session =sessionFactory.openSession();
              Transaction transaction = null;
              transaction = session.beginTransaction();
              Catalog catalog = setBean();
              //System.out.println("before save");
              session.save(catalog);
              //System.out.println("after save");
              transaction.commit();
              session.flush();
              session.close();
         public void updateData()
              session =sessionFactory.openSession();
              Catalog catalog = new Catalog();
              catalog.setId(2);
              catalog.setAuthor("manoj");
              catalog.setJournal("java");
              catalog.setEdition("1st");
              catalog.setPublisher("indiabulls");
              catalog.setTitle("java Servlet");
              session.update(catalog);
              session.flush();
              session.close();
         public void deleteData()
              session =sessionFactory.openSession();
              Catalog catalog = new Catalog();
              catalog.setId(3);
              session.delete(catalog);
              session.flush();
              session.close();
         public static Catalog setBean()
              Acctinfo accinfo = new Acctinfo();
              accinfo.setAccount("MANOJ1");
              accinfo.setPassword("orbis");
              accinfo.setBalance("1000");
              List list = new ArrayList();
              list.add(accinfo);
              Catalog catalog = new Catalog();
              catalog.setJournal("india");
              catalog.setPublisher("indiabulls");
              catalog.setEdition("ist");
              catalog.setTitle("orbis");
              catalog.setAuthor("manoj");
              catalog.setAccinfo(list);
              return catalog;
    //********************CFG FILE IS ******************
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory name="session">
    <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
    <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
    <property name="hibernate.connection.url">jdbc:oracle:thin:@172.16.31.25:1521:BOMBAY</property>
    <property name="hibernate.connection.username">mumbai</property>
    <property name="hibernate.connection.password">mumbai123</property>
    <!-- Set AutoCommit to true -->
    <property name="connection.autocommit">true</property>
    <property name="dialect">org.hibernate.dialect.OracleDialect</property>
    <!-- Mapping files -->
    <mapping resource="Catalog.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    **********************error i m facing is :************************
    0 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Documents%20and%20Settings/d.poonam/Desktop/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    1188 [main] WARN org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.getNameParser(Unknown Source)
         at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
         at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
         at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:247)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
         at hibernate.example.CatalogClient.<init>(CatalogClient.java:24)
         at hibernate.example.CatalogClient.main(CatalogClient.java:27)
    please help me out....
    thanks in advance..
    if u know how to connect two tables plz let me know..
    its urgent....

    I made this work with MySQL. Adapt to your situation as needed. - %
    package hibernate.model;
    import hibernate.util.HibernateUtils;
    import hibernate.model.Catalog;
    import hibernate.model.Account;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.hibernate.Session;
    import hibernate.util.HibernateUtils;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    public class CatalogTest
       private static final Log LOGGER = LogFactory.getLog(CatalogTest.class);
       public static void main(String[] args)
          Session session = null;
          try
             session = HibernateUtils.getSessionFactory().getCurrentSession();
             session.beginTransaction();
             int rowsBefore = HibernateUtils.getRowCount(session, Catalog.class);
             assertEquals("should not have any Catalogs", rowsBefore, 0);
             Catalog catalog = new Catalog("test title");
             catalog.addAccount(new Account(100));
             catalog.addAccount(new Account(200));
             Long id = (Long) session.save(catalog);
             assertNotNull("generated id should not be null", id);
             LOGGER.info("returned id: " + id);
             session.getTransaction().commit();
             LOGGER.debug("transaction committed");
          catch (Exception e)
             LOGGER.error(e);
             session.getTransaction().rollback();
    package hibernate.model;
    import java.io.Serializable;
    import java.text.NumberFormat;
    public class Account implements Serializable
       private Long id;
       private int balance;
       public Account()
          this(null, 0);
       public Account(int balance)
          this(null, balance);
       public Account(Long id, int balance)
          this.id = id;
          this.balance = balance;
       public Long getId()
          return id;
       private void setId(Long id)
          this.id = id;
       public int getBalance()
          return balance;
       private void setBalance(int balance)
          this.balance = balance;
       public boolean equals(Object o)
          if (this == o)
             return true;
          if (!(o instanceof Account))
             return false;
          Account account = (Account) o;
          return !(id != null ? !id.equals(account.id) : account.id != null);
       public int hashCode()
          int result;
          result = (id != null ? id.hashCode() : 0);
          result = 31 * result + balance;
          return result;
       public String toString()
          return new StringBuilder().append("Account{").append("id=").append(id).append(", balance=").append(NumberFormat.getCurrencyInstance().format(balance)).append('}').toString();
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
          "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
       <class name="Account" table="accounts">
          <id name="id" column="account_id">
             <generator class="native"/>
          </id>
          <property name="balance" column="balance"/>
       </class>
    </hibernate-mapping>
    package hibernate.model;
    import java.io.Serializable;
    import java.util.Set;
    import java.util.HashSet;
    import java.util.Collections;
    public class Catalog implements Serializable
       private Long id;
       private String title;
       private Set<Account> accounts;
       public Catalog()
          this(null, "", Collections.EMPTY_SET);
       public Catalog(String title)
          this(null, title, Collections.EMPTY_SET);
       public Catalog(Long id, String title, Set<Account> accounts)
          this.id = id;
          this.title = title;
          this.accounts = new HashSet<Account>(accounts);
       public Long getId()
          return id;
       private void setId(Long id)
          this.id = id;
       public String getTitle()
          return title;
       private void setTitle(String title)
          this.title = title;
       public Set<Account> getAccounts()
          return accounts;
       private void setAccounts(Set<Account> accounts)
          this.accounts = accounts;
       public void addAccount(Account account)
          this.getAccounts().add(account);
       public void removeAccount(Account account)
          this.getAccounts().remove(account);
       public boolean equals(Object o)
          if (this == o)
             return true;
          if (!(o instanceof Catalog))
             return false;
          Catalog catalog = (Catalog) o;
          return !(id != null ? !id.equals(catalog.id) : catalog.id != null);
       public int hashCode()
          return (id != null ? id.hashCode() : 0);
       public String toString()
          return new StringBuilder().append("Catalog{").append("id=").append(id).append(", title='").append(title).append('\'').append(", accounts=").append(accounts).append('}').toString();
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
          "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    <hibernate-mapping package="hibernate.model" default-access="field" default-lazy="true">
       <class name="Catalog" table="catalogs">
          <id name="id" column="catalog_id">
             <generator class="native"/>
          </id>
          <property name="title" column="title"/>
          <set name="accounts" cascade="all">
             <key column="catalog_id"/>
             <one-to-many class="hibernate.model.Account"/>
          </set>
       </class>
    </hibernate-mapping>
    <!DOCTYPE hibernate-configuration PUBLIC
         "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
         <session-factory>
          <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
          <property name="connection.url">jdbc:mysql://localhost:3306/hibernate?autoReconnect=true</property>
          <property name="connection.username">hibernate</property>
          <property name="connection.password">hibernate</property>
          <property name="connection.pool_size">1</property>
          <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
          <property name="show_sql">true</property>
          <property name="generate_statistics">true</property>
          <property name="query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
          <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
          <property name="cache.use_minimal_puts">false</property>
          <property name="cache.use_query_cache">false</property>
          <property name="order_updates">false</property>
          <property name="hbm2ddl.auto">create-drop</property>
          <property name="current_session_context_class">thread</property>
          <mapping resource="hibernate/persistence/hibernate/Account.hbm.xml"/>
          <mapping resource="hibernate/persistence/hibernate/Catalog.hbm.xml"/>
         </session-factory>
    </hibernate-configuration>

  • How to make two PCs (one local, one remote) control the same running vi at the same time?

    Hi Labviewers,
    I have a vi running, and two PCs are monitoring it, one is local and another one is remote.
    I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control of the running VI at the same time.
    Is there any way to make the two PCs both have the control of the same vi at the same time?  Switching back and forth the control between two PCs is really annoying.
    Thanks a lot for any help.
    Anne

    What exactly are you trying to control?
    Perhaps another approach? You could use "Shared Variables" from LV 8.0 and have a copy of the writer VI on each of the control PCs edit the value on the host PC. But as soon as I post, someone is going to talk about multiple writers to shared resources being a bad idea.... so just be careful or you may try to edit a value that has already been changed.
    Matt Holt
    Certified LabVIEW Architect

  • How do  connect two iPods at once.

    Hello, I have two iPods that I connect to one computer (1 a 5th gen ipod, and 1 a 4th gen ipod).
    I can only ever connect one of the two iPod's. When ever I try and connect a 2nd iPod, iTunes disconnects the 1st iPod, and only shows the 2nd iPod, and this then gives a windows error on the 1st iPod.
    Has anyone ever been able to connect two iPods at once in itunes for Windows?

    i have the same problem. With one ipod and another ipod nano, the itunes doesnt works, and need to restart it.

  • How to connect two monitors using macbook pro?

    Hi,
    I have a Macbook Pro through which I want to extend the displays to two individual monitors.
    The two monitors should show two different windows which is opened through my macbook.
    I have observed that macbook has only one mini display port through which I connect to HDMI or to DVI ports in monitor.
    So how do I connect another monitor source to my macbook, which ports can help in this situation?
    The monitors I have which can supports HDMI,DVI,VGA and DP ports.
    Could anyone help me on this issue.
    Thanks.

    You can use a USB 2.0/3.0 to HDMI/DVI interface.  You might also consder Thundebolt to HDMI/DVI.
    The MBP 13" will support three screens (two external) and the MBP 15" will support four screen (three external).

  • How to connect two iviews in Visual Composer 2004s?

    Hi,
       I am trying a sample application (Bank Details) in Visual Composer(Netweaver 2004s) but getting a warning as "Event EVT1 is declared but cannot be raised". Actually I want to show the GetList values in the first iview & GetDetil values in the second iview. I have done everything for the two iviews, but not able to connect the two iviews.I tried to drag from Signal Out of the first iview to Signal In of the second iview, but not able to connect them.
    Hope someone can suggest a solution.
    Regards
    Shemim

    Hi
    Sorry for the mistake.
    Please refer this:-
    Re: How can I transfer data form one data store to another iview /dats store
    Re: Popup communicating with multiple iviews (layers)
    Regards
    Navneet
    null
    Message was edited by:
            Navneet Giria

  • How to : connect two routers running under another

    So this issue is tricky and i have had no luck in getting this to work. Basically what i need to do, is connect "Network 2" with "Network 1" and both run off of another larger network. The Base Network is out of my control and i cannot set or change any setting within that network's routers or DHCP Servers. Thus i am forced to set routes within my routers to communicate to each other. The need for this communication is software that runs on a server within "Network 1" needs to be available to all client computers running on both "Network 1" and 'Network 2". Obviously the computers running off the same router as the server are fine. Getting the computers running off the router for "Network 2" is the tricky part. Here is a link to a diagram of the setup : http://i64.photobucket.com/albums/h176/m4x70r/networkquery.jpg Some of the things i have tried are setting the DMZ on "Network 1" to point at the server. Setting routes in both to point at the other. Setting the Gateway in "Network 2" router to point at the WAN address of "Network 1" and setting the DNS of "Network 2" to the WAN of "Network 1". No matter what i do, the laptops inside "Network 2" cannot ping the laptops in "Network 1" or even ping the router for "Network 1". However, when pinging the name of the server, it does show the IP addy i gave it, so it sees it in some small fashion but cannot link to it. I'm stumped. Time to get a networking cert i suppose. Any help or suggestions would be much appreciated!

    First you have missed to mentioned the most important thing for your setup: are those two routers running in gateway mode or router mode?
    It is also quite confusing which routes you tried to set exactly. (in particular why you mentioned the DNS server?). Please simply post the exact settings of the routes you have entered on either routers.
    As you have mentioned that you have no control over the main network I guess your routers operate in gateway mode. In that case they do NAT - network address translation. NAT shares a single public IP address with multiple computers with private IP addresses inside the LAN. NAT makes computers in the LAN inaccessible from the outside unless you have configured an explicit port forwarding or DMZ host.
    Moreover, with NAT you cannot access the computers inside the LAN on an inside IP address. This is impossible because the private IP addresses inside the LAN are not visible on the outside. You can only access any computer on the WAN IP address of the router. You cannot ping any computer inside the LAN behind the router with NAT. UDP or TCP access is limited to what you forward. The DMZ host is the "default" forward which gets all ports which are not forwarded otherwise.
    If both routers are in gateway mode you don't have to define any routes on the routers as the destination subnet is not accessible. To make your server accessible you have to define port forwardings to your server on 192.168.1.2 or put it into the DMZ. You can then access the server the external IP address of the router, i.e. 10.7.2.101. The router forwards incoming traffic on that address to your server at 192.168.1.2.

  • How to connect two thunderbolt devices to Macbook Air?

    I have been using an Apple thunderbolt to VGA adapter to connect my digital projector to a Macbook Air.  Now I need to also connect a pro audio firewire mixer, which has a firewire 400 cable.  If I didn't have to connect the projector as well, I presume that the way to go would be to use an Apple thunderbolt to Firewire 800 adapter with an 800 to 400 adapter on the end, but as I have two devices I am rather stumped.
    I know that thunderbolt/mini display is for daisy chaining, so there isn't such a thing as a thunderbolt hub, except that I could maybe use the Belkin Thunderbolt Express Dock (expensive as it is, it may be a cheaper option than others).  I have read mixed reviews of this device, but it looks like it could essentially work - one thunderbolt cable to connect the Macbook to the dock, then use the Firewire 800 port on the dock with an 800-400 adapter for the mixer and the second thunderbolt port on the dock for the projector with the VGA adapter.  I am wondering if there are any other possible solutions though, other than buying a Macbook Pro!
    Thanks,
    Nick

    Sounds like a good suggestion but it is from 2009 and out of stock at Amazon.
    This URL lists a newer one and says it is Mac compatible.  I also do not have any experience with this product.
    http://www.amazon.com/Plugable-UGA-165-1920x1080-1600x1200-DisplayLink/dp/B004AI JE9G/ref=pd_sim_sbs_e_7
    General advice:  Keep all the packaging material in case you need to to return it in the 30 day Amazon return period (assuming it qualifies for a return).  Purchase it on a credit card with consumer protection that entitles you to a refund if the seller will not accept the return.

  • How to connect two iMacs to the same FCE project?

    Hello All,
    Right now I have an iMac that is about 1 year old. I'm about to purchase another iMac. What I want to do is run FCE on both and work on the same video project on both. Is this possible?
    So the idea would be that I one person A could color correct and person B could edit and perform other functions on the second iMac. Can you hook them up by firewire and do this or is this beyond what you can do with FCE and two iMacs?
    Thanks for your help.
    Mike

    Hello Michael,
    First, you will need two fully licensed copies of FCE, one for each iMac. Each license allows you to install FCE on 1 Apple desktop + 1 Apple laptop as long as you own both computers and do not use FCE on both at the same time. But it *does not* allow you to install it on 2 Apple desktop computers (eg iMacs).
    Second, in order for two people on different computers to access the same project, you would have to store all the media & scratch files in a common location, and set up each copy of FCE to access the files from that location. The problems with this approach are 1) FCE cannot do this over a network, 2) you cannot connect an external FW drive to both computers at the same time, 3) FCE prefers that your FCE Project file(s) be on your system HD.
    You could use an external FW drive to store your media & scratch files; then connect the FW drive to the computer that is going to work on the project - but not to 2 computers at the same time. You will still have to copy the FCE project file between the two iMacs each time you swap from one to the other for editing.

  • How to connect two JComponents with line

    Hi,
    I have GUI which draws different shapes(ovals, rectangles etc) as JComponants on a JPanel . I need to be able to select by clicking a JComponant and connect it to another JComponant on the JPanel. Once I haved established a connection I would like to be able to move the connected JComponants yet maintain the connection. Can you please look at my code and advise as to how this can be achieved.
    Thanks.
    LineSelector selector = new LineSelector(windowPanel);
    windowPanel.addMouseListener(selector);
    class windowPanel extends JPanel
    ArrayList lines;
    public windowPanel()
    lines = new ArrayList();
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setColor(Color.white);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    for(int j = 0; j < lines.size(); j++)
    g2.draw((Line2D) lines.get(j));
    protected void addConnectingLine(Component c1, Component c2)
    Rectangle r1 = c1.getBounds();
    Rectangle r2 = c2.getBounds();
    lines.add(new Line2D.Double(r1.getCenterX(), r1.getCenterY(),
    r2.getCenterX(), r2.getCenterY()));
    repaint();
    class LineSelector extends MouseAdapter
    windowPanel conPanel;
    Component firstSelection;
    boolean firstComponentSelected;
    public LineSelector(windowPanel cp)
    conPanel = cp;
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    Component[] c = conPanel.getComponents();
    Rectangle rv = new Rectangle();
    for(int j = 0; j < c.length; j++)
    c[j].getBounds(rv);
    if(rv.contains(p))
    if(firstComponentSelected)
    conPanel.addConnectingLine(c[j], firstSelection);
    firstComponentSelected = false;
    else
    firstSelection = c[j];
    firstComponentSelected = true;
    break;
    }

    Hi,
    these threads can help you
    http://forum.java.sun.com/thread.jspa?threadID=488823&messageID=2292924
    http://forum.java.sun.com/thread.jspa?forumID=20&threadID=607264
    L.P.

  • How tow connect two external displays that are not mirrored and turn of the retina display

    Hello,
    I have two questions:
    1.  Is it possible to use two external displays either mirrored or not and turn off the retina display, and if so how it is done?
    2.  Is it possible to close the MBP and use an external keyboard while using two external displays?
    I am using a music production DAW Persons Studio One-2 Pro and it would be great to be able to have this type of a setup.
    Thank You,
    Breezinabout
    Macbook Pro  15" Retina display I7 2,3mz 500gb SSD late 2013  OSX Yosemite 10.10.1

    Hi Breezinabout,
    The MacBook Pro Late 2013 retina display model will support two external displays. See this specifications page for reference -
    MacBook Pro (Retina, 15-inch, Late 2013) - Technical Specifications
    Specifically -
    Dual display and video mirroring: Simultaneously supports full native resolution on the built-in display and up to 2560 by 1600 pixels on up to two external displays, both at millions of colors
    And -
    Thunderbolt digital video output
    Native Mini DisplayPort output
    DVI output using Mini DisplayPort to DVI Adapter (sold separately)
    VGA output using Mini DisplayPort to VGA Adapter (sold separately)
    Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter (sold separately)
    HDMI video output
    Support for 1080p resolution at up to 60Hz
    Support for 3840-by-2160 resolution at 30Hz
    Support for 4096-by-2160 resolution at 24Hz
    You would, if you wish, turn off the internal display by closing the MacBook Pro, which is called "closed-clamshell" mode. It requires you to have an external keyboard and mouse. See this article for further information -
    How to use your Mac notebook computer in closed-clamshell (display closed) mode with an external display - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to connect two different tables from different server?

    Dear all expert,
    I need to develop a report where i need to connect 2 different tables from 2 different servers. For examples:
    BUT000 tables from CRM and KNKK from R3.
    Is it possible to do so? Because i try to link these 2 tables together and when i preview the report, it run very slow and sometime it hang. I did not get any result.
    Thank You.

    Moved to SAP Integration kit forum
    Appears you are using SAP data sources.
    And yes you can but the linked field types must match and be able to be converted into the WHERE portion of the SQL. Click on Database, Show SQL... and see if there is one. If not CR can't figure out how to so it brings all data client side and filters on the second pass.
    Thank you
    Don

  • How to connect two BW systems to one ECC system?!?

    Hi Experts!
    We want to connect our ECC system (P11) to multiple SAP BW systems. Therefore we made a system copy of our productive BW System (P81) and create a new second BW System (T81). When I want to restore to connection to the P11 in the T81, Iu2019ll get the following error message:
    u201CDie Verbindung CA wird im Quellsystem P11_001 als Verbindung zum BW T81CLNT001 genutzt.
    Soll diese Verbindung im Quellsystem gelöscht werden? Nach erfolgreicher Löschung wird der Anschluss wiederholt.u201C
    In English this message means something like that: u201EThe connection CA is used as a connection to the BW T81CLNT001 in the source system. Should this connection be deleted in the source system? This connection can be repeated after successful deletion.u201D
    Now I ask myself: How can I connect our new BW System to our ECC System, without destroying the old connection to our productive BW system?!?
    Have anyone of you an idea how we can handle this issue?
    Thanks in advance!
    Regards, Alex

    Hi
    This happens because of RFC settings duplication as your new BW system is copied from Old one.
    First you restore the Production system connection by deleting the existing RFC.  But this will delete the new connection you have created ( that is what your dialog message is saying) 
    Basically , before creating new connection you need to delete some table entries manually , then you can connect both the system to your same source system
    Please find the link below where I mentioned the table names from where you need to delete duplicate entries manually.
    How to delete old source system assignment and assign new source system.
    Regards
    Anindya
    Edited by: Anindya Bose on Oct 13, 2011 9:01 PM

Maybe you are looking for

  • How to create a default value of timestamp column?

    I am trying to create a table with a default value on a timestamp column, can it be done? CREATE TABLE myTbl FutureDateTime date default TIMESTAMP WITH TIME ZONE '2999-12-31 23:23:59.000' )

  • Multiple headerline in alv

    Hi experts... I am using REUSE_ALV_GRID_DISPLAY function for alv... but I want output in below formate: INVENTORY---- OPENING INV INCOMING OUTGOING 00000000999 000000999 0000000999 Can anybody help me...

  • Email step not working with container expression

    Hi All, I have a method in my workflow which retrieves text from a database table and stores it in a wokflow container. I have set the container as a multiline element. this container is then used as an expression in an email step, the email is then

  • Why is the quality SOOO bad?

    I am making text in imovie to make a short title intro I use the built in text tool to render a fade in and out of a title when i export, i can export in the highest quality possible but the resulting movie still looks EXTREMELY bad like, all fuzzed

  • Moved Project To Knew Computer After Everything Is Named-Drive Formatting?

    Did search, and seems to be a common problem, but there are a little differences. In the past, when moving project, after starting, everything just showed up. This time, the red lines everywhere. Tried renaming file to clip and vice-versa, and nothin