How to Connect to multiple oracle databse
Dear All
As I am new to Java
Can you post java code for how to connect mutliple database (I am using Oracle database) with one class or method and the Connection con object I want use in my jsp to get connected and obtain result for response.
Can you plz post JAVA code and how do i call the the connection in JSP.
Thanks Lot in Advance for help...
Here a simple typical oracle connection code :
Connection connection = null;
try {
// Load the JDBC driver
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
// Create a connection to the database
String serverName = "127.0.0.1";
String portNumber = "1521";
String sid = "mydatabase";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String username = "username";
String password = "password";
connection = DriverManager.getConnection(url, username, password);
} catch (ClassNotFoundException e) {
// Could not find the database driver
} catch (SQLException e) {
// Could not connect to the database
}You can take a look [here |http://courses.coreservlets.com/Course-Materials/csajsp2.html] (http://courses.coreservlets.com/Course-Materials/csajsp2.html) for JSP, Servlets, MVC pattern
and [here |http://courses.coreservlets.com/Course-Materials/msajsp.html] (http://courses.coreservlets.com/Course-Materials/msajsp.html) for database connection.
You'll also find there many other useful resources.
good luck
Similar Messages
-
How to connect Java to oracle Database Express Edition?
Anyone can help me?
How to connect JAVA TO ORACLE DATABASE EXPRESS EDITION?I suggest you to read this article:
http://wiki.oracle.com/page/JDBC
Regards,
Ricky -
How to connect java with oracle
can any body show me the code of how to connect java with oracle database.
thank youTo configure Oracle JDBC:
1. Add Oracle JDBC JAR file classes12.zip or ojdbc14.zip to classpath.
2. Load and register the JDBC driver.
Class.forName("oracle.jdbc.driver.OracleDriver");
3. Obtain a connection:
String url="jdbc:oracle:thin:@<host>:1521:<database>
Connection con = DriverManager.getConnection(url,
"myLogin", "myPassword");
4. Create a SQL statement.
Statement stmt = con.createStatement();
5. Obtain a result set.
ResultSet rs = stmt.executeQuery(
"SELECT ..."); -
How to connect Discovere to oracle apps
Hi professors,
Help Help Help can some one pls explain to me how to connect discoverer to oracle apps , i installed the vision 11.5.10.2 and discoverer is pre installed with it. Pls ineed to connect it.pls help.
secondly how do i create end user layer after connection and connect to oracle apps standard reportHi
Take a look on MetaLink at document: 313418.1
That contains all of the rules and steps for connecting Discoverer to E-Business Suite.
In order to have an EUL that understands E-Business Suite's logins and responsibilities, please take a look at the document called Setting up an Apps mode EUL available as a free download from my website here: http://learndiscoverer.com/downloads/downloads.htm
Best wishes
Michael -
How to connect to an Oracle XE database from Forms
Hello,
I have just installed Oracle XE on my computer. After that I downloaded Oracle Developer Suite. My intention is to build programs with Forms. This forms program shall manage data stored in my Oracle XE database.
My question is: How to connect to the Oracle XE database from forms. In forms developer I have tried to connect the database with the command Ctrl+J. Then I registered username, password and oracle instance (orcl). It will not work!
best regards
Håkan AxheimHello,
the tnsnames.ora must have been updated with the XE information.
the SID for Xpress Database is always XE
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = XE)
)Francois -
How to connect Servlet to Oracle
so far i have see some example from internet on how to connect servlet with Oracle.. but i don't undertand the statement below
"jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
can any expert please explain to me??
what is @elab-unix4.bus.umich.edu ?? elab is database's name?so far i have see some example from internet on how to
connect servlet with Oracle.. but i don't undertand
the statement below
"jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
can any expert please explain to me??
what is @elab-unix4.bus.umich.edu ?? elab is
database's name?jdbc:oracle: type driver
thin: Type of driver again. Oracle distinguishes between thin/thick, but I'm not sure of the features. We use thin.
:@elab-unix4.bus.umich.edu:1521:elab
IP Address of box where db resides:@elab-unix4.bus.umich.edu, port:1521, db instance: elab. -
How to connect to multiple backend systems to IMS
Hi,
I want to connect multiple backend system to SRM IMS.How to connect multiple backend system.
Thanks in advance
Regards
Nitin AmritkarHi
see page 63. it is possible.
define backend systems in spro and record all your ecc systems and create a distribution model fpr bbpiv message in srm and distibute to all backend systems.
http://www.portal.state.pa.us/portal/server.pt/gateway/PTARGS_0_160867_305341_0_0_18/2006_05_26_srm_007.pdf
br
muthu -
How to connect to an oracle database server from a linux server?
Hi,
I am a total newbie to oracle. At my work, I only know that there is a server with an oracle 10g database set up.
I was provided with the hostname, oracle sid, port, username and password but i don't know how to connect to it, log on to it and do things on the database.
Can anyone give me a pointer on how to get started (like how to log on to the server and start doing some simple things. )
Any help is appreciated :)
Thank youGoto your local Oracle install directory and then goto folder NETWORK/ADMIN
cd ${ORACLE_HOME}/network/admin
do you see a tnsnames.ora file there? If you edit that file in your favorite editor, you would hopefully see some entries there already setup. See if one of those entries contain the hostname, sid, port that was given to you. if it does, that name is what you will use:
$ sqlplus username/password@name_of_tns_entry_you_found_aboveif not, then just duplicate an existing entry and change the relevant settings for your database, give it a new name and use it to connect.
alternatively you can also use the "Net Configuration Assistant" application. -
How to connect mysql and oracle 10g by UTL_HTTP?
how to connect mysql 5.0 and oracle 10g r2 by UTL_HTTP?what to do for this url connection exactly?
cant i change anything to stup a link?
SQL> desc utl_http
PROCEDURE ADD_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN
FUNCTION BEGIN_REQUEST RETURNS RECORD
Argument Name Type In/Out Default?
URL VARCHAR2(32767) OUT
METHOD VARCHAR2(64) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
URL VARCHAR2 IN
METHOD VARCHAR2 IN DEFAULT
HTTP_VERSION VARCHAR2 IN DEFAULT
PROCEDURE CLEAR_COOKIES
PROCEDURE CLOSE_PERSISTENT_CONN
Argument Name Type In/Out Default?
CONN RECORD IN
HOST VARCHAR2(256) IN
PORT BINARY_INTEGER IN
PROXY_HOST VARCHAR2(256) IN
PROXY_PORT BINARY_INTEGER IN
SSL BOOLEAN IN
PROCEDURE CLOSE_PERSISTENT_CONNS
Argument Name Type In/Out Default?
HOST VARCHAR2 IN DEFAULT
PORT BINARY_INTEGER IN DEFAULT
PROXY_HOST VARCHAR2 IN DEFAULT
PROXY_PORT BINARY_INTEGER IN DEFAULT
SSL BOOLEAN IN DEFAULT
PROCEDURE END_REQUEST
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE END_RESPONSE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
SCHEME VARCHAR2 OUT
REALM VARCHAR2 OUT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE GET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 OUT
FUNCTION GET_BODY_CHARSET RETURNS VARCHAR2
PROCEDURE GET_COOKIES
Argument Name Type In/Out Default?
COOKIES TABLE OF RECORD IN/OUT
FUNCTION GET_COOKIE_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_COOKIES BINARY_INTEGER OUT
MAX_COOKIES_PER_SITE BINARY_INTEGER OUT
PROCEDURE GET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
FUNCTION GET_DETAILED_SQLCODE RETURNS BINARY_INTEGER
FUNCTION GET_DETAILED_SQLERRM RETURNS VARCHAR2
PROCEDURE GET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER OUT
PROCEDURE GET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
N BINARY_INTEGER IN
NAME VARCHAR2 OUT
VALUE VARCHAR2 OUT
PROCEDURE GET_HEADER_BY_NAME
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 OUT
N BINARY_INTEGER IN DEFAULT
FUNCTION GET_HEADER_COUNT RETURNS BINARY_INTEGER
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
PROCEDURE GET_PERSISTENT_CONNS
Argument Name Type In/Out Default?
CONNECTIONS TABLE OF RECORD IN/OUT
FUNCTION GET_PERSISTENT_CONN_COUNT RETURNS BINARY_INTEGER
PROCEDURE GET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
MAX_CONNS BINARY_INTEGER OUT
PROCEDURE GET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 OUT
NO_PROXY_DOMAINS VARCHAR2 OUT
FUNCTION GET_RESPONSE RETURNS RECORD
Argument Name Type In/Out Default?
STATUS_CODE BINARY_INTEGER OUT
REASON_PHRASE VARCHAR2(256) OUT
HTTP_VERSION VARCHAR2(64) OUT
PRIVATE_HNDL BINARY_INTEGER OUT
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
RETURN_INFO_RESPONSE BOOLEAN IN DEFAULT
PROCEDURE GET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN OUT
PROCEDURE GET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER OUT
PROCEDURE READ_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
REMOVE_CRLF BOOLEAN IN DEFAULT
PROCEDURE READ_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW OUT
LEN BINARY_INTEGER IN DEFAULT
PROCEDURE READ_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 OUT
LEN BINARY_INTEGER IN DEFAULT
FUNCTION REQUEST RETURNS VARCHAR2
Argument Name Type In/Out Default?
URL VARCHAR2 IN
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
FUNCTION REQUEST_PIECES RETURNS TABLE OF VARCHAR2(2000)
Argument Name Type In/Out Default?
URL VARCHAR2 IN
MAX_PIECES BINARY_INTEGER IN DEFAULT
PROXY VARCHAR2 IN DEFAULT
WALLET_PATH VARCHAR2 IN DEFAULT
WALLET_PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE SET_AUTHENTICATION
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
USERNAME VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
SCHEME VARCHAR2 IN DEFAULT
FOR_PROXY BOOLEAN IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_BODY_CHARSET
Argument Name Type In/Out Default?
R RECORD IN/OUT
STATUS_CODE BINARY_INTEGER IN/OUT
REASON_PHRASE VARCHAR2(256) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
CHARSET VARCHAR2 IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_COOKIES BINARY_INTEGER IN DEFAULT
MAX_COOKIES_PER_SITE BINARY_INTEGER IN DEFAULT
PROCEDURE SET_COOKIE_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_DETAILED_EXCP_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_FOLLOW_REDIRECT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
MAX_REDIRECTS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_HEADER
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
NAME VARCHAR2 IN
VALUE VARCHAR2 IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN
MAX_CONNS BINARY_INTEGER IN DEFAULT
PROCEDURE SET_PERSISTENT_CONN_SUPPORT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_PROXY
Argument Name Type In/Out Default?
PROXY VARCHAR2 IN
NO_PROXY_DOMAINS VARCHAR2 IN DEFAULT
PROCEDURE SET_RESPONSE_ERROR_CHECK
Argument Name Type In/Out Default?
ENABLE BOOLEAN IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_TRANSFER_TIMEOUT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
TIMEOUT BINARY_INTEGER IN DEFAULT
PROCEDURE SET_WALLET
Argument Name Type In/Out Default?
PATH VARCHAR2 IN
PASSWORD VARCHAR2 IN DEFAULT
PROCEDURE WRITE_LINE
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN
PROCEDURE WRITE_RAW
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA RAW IN
PROCEDURE WRITE_TEXT
Argument Name Type In/Out Default?
R RECORD IN/OUT
URL VARCHAR2(32767) IN/OUT
METHOD VARCHAR2(64) IN/OUT
HTTP_VERSION VARCHAR2(64) IN/OUT
PRIVATE_HNDL BINARY_INTEGER IN/OUT
DATA VARCHAR2 IN -
How to connect OC4J of Oracle VM manager
Hi:
I want to connect OC4J of Oracle VM manager.
http://hostname:8888/em
403 Forbidden
Access forbidden from this IP/hostnameHi,
the administration of OC4J is per default restricted to the local node.
So this will work, if you access the site locally (from the server where your OC4J is running).
To change this, you can edit the "allow" entries in
/opt/oc4j/j2ee/home/application-deployments/ascontrol/ascontrol/orion-web.xml
(You will possibly need to restart oc4j).
Regards
Sebastian -
How to connect to personal oracle using oracle thin driver on windows98
Hi,
i would like to know is it possible to connect to personal oracle8 using oracle thin driver on windows98.iam getting some exceptions when iam running ,could any one help me
1.exception in thread main java.sqlexception:IOexception:the
networkadapter could not establish the connection
2.at oracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
3.atoracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
4.atoracle.jdbc.driver.oracleconnection.<init>(oracleconnection.java)
5.atoracle.jdbc.driver.oracledriver.getconnectioninstance(oracledrive
r.jva)
6.atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
7.atjava.sql.DriverManager.getConnection(unknown source)
8.atjava.sql.DriverManager.getConnection(unknown source)
9.at JEmp.main(JEmp.java:16)
nullhttp://www.orafaq.com/wiki/JDBC#Thin_driver
-
Visual Studio 2013 Ultimate - how to connect to multiple TFS Servers?
Hi Folks,
I have to use two different Team Foundation servers (different solutions on each one). I have connected to one TFS server using Team Explorer, but I cannot work out how to connect to the second server. I have the settings 'Connect:
Offline' - but I cannot find the dialog where I can enter the address of the other TFS Server.
On previous versions of Visual Studio, one could 'Disconnect' and then choose 'Connect to Team Project', however, that option no longer seems to be available.
When I try and open the solution that is on the other server I get binding not found errors and cannot checkout the solution.
Regards
AndyHi Andy,
Thanks for your post.
In Team Explorer, click Select Team Project… to open the
Connect to Team Foundation Server dialog to connect to another TFS Server. Please refer to the screenshots under
Work from Team Explorer section in this document:
http://msdn.microsoft.com/en-us/library/ms181475.aspx.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to connect to multiple iTune stores?
I listen to music from different countries and I find it difficult not to be able to connect to multiple iTunes stores of different countries in which I can easily get album info/artwork/etc and purchase music and many more. I wonder if I ve missed something which allows me to do so. Otherwise I hope Apple has thought about the possiblities for customers to do that and hope it will come with the new iTune in time.
The iTunes Store in a country is intended only for use by that country's residents, and only while they are in the country. To use the iTunes Store in a country you need a credit card (or other card type if acceptable in a country) issued in that country, billed to an address in that country, and also be physically present in that country when using the store. You are also restricted to waiting 90 days between country changes.
I am sure Apple wants to sell you as much as it can in order to make as much money from you as possible. However, it has to abide by restrictions placed upon it by the media rights holders and to a lesser extent by country laws. -
How can i make multiple oracle homes co-exsist on windows
I have a windows box on which I have just installed oracle 9i and 10g.
Whenever I connect through the sqlplus , it defaults to the first one installed which is oracle10g every attempt to connect to the second database which is 9i keeps coming with “ORA-12154: TNS: could not resolve the connect identifier specified”
I know on unix I can easily set my environment, I will like to know how to get my environment set on windows for me to connect easily to the two databases.
Thank you for your time
bekkyYes, they must be in different homes. The 'definition' of an ORACLE_HOME is the software for one product at one version/patch-level.
The easiest way to do what you want - search for all the TNSNAMES.ORA files and make them the same. They will be in each ORACLE_HOME/network/admin directory.
If you intend to have multiple homes for a while, the smartest way (IMO) to do what you want is to study the custom installation capabilities of the 10g installer and install just a listener in a new ORACLE_HOME. Then add a TNS_ADMIN variable to point to the central LISTENER and TNSNAMES.ORA and keep just that one TNSNAMES.ORA file up to date.
Takes a lot more effort up front but is easiest administrative effort in the long run. There is a lot of information in the Oracle Network User's Guide and Reference at http://www.oracle.com/pls/db102/homepage -
How to connect sqlserver use oracle sql developer?
I created a non-oracle location connection in owb and can load data from sqlserver to warehouse. Now, I want to use sqlplus or sqldeveloper to connect sqlserver directly, But I got this error message"ora-03135:connection lost contact".
How can I connect sqlserver in sqldeveloper or sqlplus?
ThanksHi Napo,
SQLDeveloper can migrate to oracle, browse sqlserver and run and display results from single statements.
I have not seen "ora-03135:connection lost contact" have you set up sqlserver for tcp/ip connection, checked the port is open (and not blocked by, for example, firewalls) and used the jtds driver to connect SQLDeveloper to sqlserver?
Note that "ora-03135:connection lost contact" is an oracle error and does not seem related to sqlserver.
Oracle also has heterogenous gateway products which may be useful
Oracle® Database Gateway for SQL Server User's Guide
http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31049/toc.htm
-Turloch
Maybe you are looking for
-
Log In to Windows 8 by RDP with Assigned Access User
I've set up a user account called Kiosk that has Google Chrome as it's assigned app and seems to work fine when I log on locally. However, when trying to connect to the machine by RDP with the Kiosk user it logs in and immediately logs out without sh
-
How to adjust letter (or character) spacing on PDF Form?
I am using Acrobat X Pro. On my fillable form, I would like to set the spacing between letters. As an example, if you go to the IRS.gov site and download the 1040EZ PDF form, you can see that the spacing between the digits of the social security nu
-
[Prime Access Registrar 6.0] Minimum System Requirements
Dear, CSC: In the installation requirements it says the following: Table 1 Minimum Hardware and Software Requirements for Cisco Prime AR Server Component Operating System Solaris Linux OS version Solaris 10 RHEL 5.3/5.4/5.5/6.0/6.1/6.2 Model SP
-
Universal Dock remote capabilities
Are you able to use the remote that comes with the Universal Dock to also control the computer it's hooked up to? I mainly want to control simple functions of DVD Player with it. I have a 2009 aluminum iMac.
-
CS6 Web and Design Premium install
I have CS6 Design Standard installed and upgraded to CS6 Web and Design Premium version. Do I need to uninstall the Design Standard before installing Web and Design Premium or can I install directly on top of the Design Standard version. Trying to a