Do a tnsping to both databases and post the results. Verify that the entries in the tnsnames.ora file are connect and point to different databases. Check your listener.ora file, verify the sid names, ports and server names. If everything looks correct try renaming the sqlnet.ora file and then connecting to both databases.