Error in connecting to database using a datasource in a jsp file
Dear SDN's,
I have a program which retreives Data from the Employee table and displays on portal page.
What i have done is,
I have created a pageprocessor component, with 2 jsp files one is for data insert and other is for retriving the data from the database table.
For inserting the records, i have written the code in the Even handling method of Page Proceessor component.
For retriving the data i have written the following jsp code in the jsp file and this i am calling in PBO of pageprocessor component based on the condition.
When i try to insert the records it is working fine.But i am getting an error when try to execute the retreving the records in other jsp.
Please go through the following code and correct me if anything is wrong here.
<b><%@ page language="java" %>
<%@ page import ="java.lang.*,java.sql.Connection,javax.sql.DataSource,java.sql.Statement,java.sql.ResultSet,javax.naming.InitialContext" %>
<body>
<center>
<table border="1">
<tr cellpadding="1">
<th>Empid</th>
<th>Name</th>
<th>City</th>
</tr>
<%
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("jdbc/MyDS");
Connection conn = ds.getConnection();
stmt = conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from EMP_DETAILS");
while(rs.next())
out.println(rs.getString("EMPID"));
out.println(rs.getString("NAME"));
out.println(rs.getString("CITY"));
%>
<tr cellpadding="1">
<td><%=rs.getString("EMPID")%></TD>
<TD><%=rs.getString("NAME")%></td>
<td><%=rs.getString("CITY")%></td>
<br>
</table>
catch (Exception e) {
e.printStackTrace();
out.println("Exception" + e);
}</b>
The error what i am getting is.
Portal Runtime Error
An exception occurred while processing a request for :
iView : JSPdbProject.Empjava
Component Name : JSPdbProject.Empjava
Error occurs during the rendering of jsp component.
Exception id: 04:29_16/11/06_0005_507480350
See the details for the exception ID in the log file
Hi Sumathi,
here is the error log.
#1.5#0017087C79D800760000004700001C000004225B24927786#1163674757780#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#J2EE_ADMIN#10231##OBTDEV15_O50_507480350#J2EE_ADMIN#6afb6760756111dbaf3c0017087c79d8#SAPEngine_Application_Thread[impl:3]_24##0#0#Error#1#/System/Server#Java###Exception ID:04:29_16/11/06_0005_507480350
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : JSPdbProject.Empjava
Component class : Empjava
User : J2EE_ADMIN
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:116)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
... 38 more
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
... 41 more
Thanks,
sireesha.B
Similar Messages
-
Error Connecting to Database using Weblogic Datasource
Hi,
I am trying to connect to oracle database from my program using weblogic DataSource. I am using JDK1.3.1.08 , weblogic 7.
I am using the following code to get Connection object.
contextFactory ="weblogic.jndi.WLInitialContextFactory";
providerURL="t3://192.168.0.29:7001";
dataSource ="temp_ds";
if(contextFactory!=null)
properties.put(Context.INITIAL_CONTEXT_FACTORY,contextFactory);
if(providerURL !=null)
properties.put(Context.PROVIDER_URL, providerURL);
initCtx = new InitialContext(properties);
DataSource ds= (javax.sql.DataSource) initCtx.lookup(dataSource);
Connection con = ds.getConnection();
con.setAutoCommit(false);
I am getting the following error while running the program. Can any body help?
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.net.SocketException.<init>(SocketException.java:36)
at java.net.ConnectException.<init>(ConnectException.java:34)
at weblogic.socket.UnrecoverableConnectException.<init>(UnrecoverableCon
nectException.java:19)
at weblogic.rjvm.RJVMManager.checkVersion(RJVMManager.java:451)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
:201)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:203)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:169)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compi
led Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:221)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at WeblogicTest.getConnection(WeblogicTest.java:40)
at WeblogicTest.<init>(WeblogicTest.java:23)
at WeblogicTest.main(WeblogicTest.java:18)
at WeblogicTest.printTableData(Compiled Code)
at WeblogicTest.<init>(WeblogicTest.java:24)
at WeblogicTest.main(WeblogicTest.java:18)
Regards
KumarI am not sure if this is the reason, but going thru the stack trace ...
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]Make sure you have JDK 1.3 or higher installed.
Cheers
Sekar -
Error: unable to connect to database using user system. please check privil
Hi All,
i have 2 oracle databases in my system (ORCL,RR). i am able to connect both databases i sql prompt. but in ggsci prompt not able to connect rr database due to below error
dblogin userid system, password tiger.
Error: unable to connect to database using user system. please check privil
Can you please help me to connect RR database also in GGSCI promt.
Thanks
RajaDid you try with RR database tns name or sid while connecting ?
If No then try this ,
GGSCI (ATP) 6> DBLOGIN USERID SYSTEM@<tns alias name>
Password:
Successfully logged into database.
HTP
Annamalai. -
Error: Unable to connect to database using connection_pool
Hi experts
I have created repository and reports on my windows machine using ODBC , Now i have tranfered this to on unix with OCI, But when i am connecting to my dtabase it is showng the error:
Error: Unable to connect to database using connection_pool
Please suggest how to resolve this..Have you install the Oracle client in your Unix server?
-
Error while connecting MYSQL Database
Hi,
I use a 30 days trial of Crystal Reports 2008. When i try to connect with the database i always get the next error: [http://www.visiscan.nl/error.jpg]
The database is 4.1GB large and there is 10GB free space on the database.
Anybody can tell me what to do?Hi Tom,
As I understand the error while connecting to database is
u201CFailed to retrieve data from databaseu201D
There could be some could be multiple reasons for this.
If you are using an ODBC connection then try to check the DSN. Recreate the same and then try.
If the database is oracle check if native client is installed and try to ping from the native client to check if it responds.
When connecting to Oracle, ensure that the Service name is identical to that used in the <ORA_HOME>/network/admin/tnsnames.ora file on the BusinessObjects XI Release 2 server.
For ODBC databases, ensure that the ODBC DSN is exactly the same in the ODBC Manager as on the BusinessObjects XI Release 2 server.
Please let us know if this helps
Regards,
Aditya Joshi -
Cant connect my database using net service_name
Good Morning to all;
I trying to connect my database using net service_name , but i am getting error.
I have tnsnames.ora entry and listener.ora entry.
Please help me to crack this error.
SQL> select name from v$database;
NAME
ORCLTEST
SQL> grant connect ,resource to u1 identified by u1;
Grant succeeded.
SQL> grant sysdba to u1;
Grant succeeded.
SQL> show parameter pass;
NAME TYPE VALUE
remote_login_passwordfile string EXCLUSIVE
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
From DBS Directory :
[oracle@linuxserver dbs]$ orapwd file=orapworcltest password=asdf1234 entries=3
export ORACLE_SID=orcltest
[oracle@linuxserver ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 9 19:24:22 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR when trying to connect
SQL> conn u1/u1@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> conn u1/asdf1234@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Thanks in advance ..Can i connect my database using username/password@netservice_name ?
Yes, you should. Please post the result of "lsnrctl stat LISTENER_ORCL".
*[oracle@linuxserver admin]$ lsnrctl stat LISTENER_ORCL*
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-MAR-2013 19:58:18
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linuxserver)(PORT=1521)))
STATUS of the LISTENER
Alias LISTener_ORcl
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 09-MAR-2013 11:10:14
Uptime 0 days 8 hr. 48 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_orcl.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxserver)(PORT=1521)))
Services Summary...
Service "MYDB.PROD.ORCLPROD.COM" has 1 instance(s).
Instance "orclprod", status UNKNOWN, has 1 handler(s) for this service...
Service "MYDB.TEST.ORCLTEST.COM" has 1 instance(s).
Instance "orcltest", status UNKNOWN, has 1 handler(s) for this service...
Service "asdf" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "asdfXDB" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "asdf_XPT" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "orclprod" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orclprodXDB" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orclprod_XPT" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orcltest" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
Service "orcltestXDB" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
Service "orcltest_XPT" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
The command completed successfully -
Am trying to connect to database using thin driver am getting an erro
Hi,
Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at JdbcEx.main(JdbcEx.java:15)
Thanks
sreekanthAm trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriverThe JAR file is not in your classpath. Depends on what JAR you are using (ojdbc14.jar, ojdbc5.jar, etc). Bottom line, it can't find the class for the driver due to the JAR not being in the classpath. -
How to connect to database using sqlplusW (windows based sqlPlus)
Hi
Thank you for reading my post
I did some search and i find that i should use some kind of SYSTEM/SYSTEM@ORCLE
to connect to database using windows based sqlplus.
in the above SYSTEM is username and password and ORCLE is SID.
but sqlplusw says that
could not resolve the connect identifier specified.
where i can find complete information about HOST string ?
thanksYou can look inside yours tnsnames.ora file it can be found in %ORACLE_HOME%\network\admin
MOB92 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = MOB92.world)
Here my network service name in MOB92 so in sqlplus I would use:
system
password
mob92
and it should work. If you have no such entry in tnsnames.ora file you can use for example Network Configuration Assistant to configure your network service name.
Best Regards
Krystian Zieja / mob -
How to connect oracle database using jsf
how to connect oracle database using javaserver faces with connection pooling
Here is one way...
http://jakarta.apache.org/commons/dbcp/ -
How to connect mysql database using xml
welcome to all,
here my doubt is how to connect mysql database using xml file, how to integrate xml file and jsp file and how to access data from dabase using jsp file. can any one help me
regardsShort answer: you wouldn't do any of those things. The first two are meaningless and the third is a bad practice. I have no idea what those ideas were supposed to achieve so I have no idea what tutorials I should suggest to you.
-
Can I connect with Database using Session Bean
Hi,
I am new to EJB. I have small doubt.
can I connect with Database using Session Bean.
Regards,
Murali.Double post of http://forum.java.sun.com/thread.jspa?threadID=687239&tstart=0
-
Connecting with database using setproperty over SOAP connection
The following method connects to a MySQL database.
public void setDBDriverName(String in)
dbDriverName = in;
public void setDBConnection(String in)
dbConnection = in;
public void connectToMySQLDatabase() throws SQLException
if(dbCon == null)
try
Class.forName(dbDriverName); // SQL driver
dbCon = DriverManager.getConnection(dbConnection); // JDBC url
s = dbCon.createStatement();
catch (Exception e)
System.out.println("Could not connect to database using " + dbConnection + " at " + dbDriverName + " : " + e.getMessage());
else
System.out.println("Could not connect to databse : Already connected");
}The method is part of a webservice, in which I use setproperties to set the database connection because the webservice must work with different types of databases like Oracle and MySQL.
<jsp:useBean id="ContactHistorieClassid" scope="request" class="proxy.soap.ContactHistorieClassProxy" />
<jsp:setProperty name="ContactHistorieClassid" property="DBConnection" value="org.gjt.mm.mysql.Driver" />
<jsp:setProperty name="ContactHistorieClassid" property="DBDriverName" value="jdbc:mysql://localhost/contacthistorie" />
<jsp:setProperty name="ContactHistorieClassid" property="clientID" value="1" />
<%
ContactHistorieClassid.connectToMySQLDatabase();
%>What am I doing wrong here?Forgot what happens, sorry. After trying to use the ContactHistorieClassid.connectToMySQLDatabase() method, my server console tells me that it cannot connect to the database, even though it returns the values as they were set in the setproperty.
When I manually enter the values like this...
Class.forName("org.gjt.mm.mysql.Driver"); // SQL driver
dbCon = DriverManager.getConnection("jdbc:mysql://localhost/contacthistorie"); .. it works properly. So the setproperties are executed as the should be. -
Error "no connect to database " after moving group to second node.
hi experts,
I set up ERP2005 SR1 and MSSQL2005 with two nodes MSCS.
I am facing error "no connect to database session terminated mscs" from SAP GUI
after moving group to second node.
Now SPS level and kernel patch level has been not updated yet.
I counld'nt find any sap notes, so any help and suggestion could be appreciated.
Best Regards
MASAKIsolved myself . i was missing set SQL Service Account have Local Admnistrators.
-
Not able to connect to database using toad
we have a 11.1.0.7 database on solaris machine.
when the development team tries to connect to it using toad, it gives them ORA-01017: invalid username/password error.
We are using TNS entries to connect. From the same client machine, we are able to connect using SQLPLUS and SQL Developer using the same TNS entry. However, its not working on TOAD.
Toad Version is 9.0.1. Any help is much appreciated.
Thanks.Hi Muneer,
My answer is arriving to this forum late, but I'll tell you what is happening to benefit others who have this issue. Older versions of Toad convert the case of the password to upper case when they attempt to authenticate to Oracle. Versions of Oracle prior to 11G had case insensitive passwords so it did not matter. But when 11G came out with it's case sensitive passwords, Toad could no longer authenticate. You can test this yourself by modifying the password for your Oracle account (usnig sqlplus) so that the password is completely upper case.....Toad will suddenly be able to authenticate.
You will find that sqlplus and SQL Developer don't have a problem. That is because they don't convert the password to upper case, they just leave it as it is. I don't know why older versions of Toad convert the password to upper case, but that is what they do. Newer versions of Toad fix the issue. I believe that Toad versions 9.5 and later should work. I've also read, however, that 9.5 had issues with Oracle 11G client libraries so you might just want to upgrade to the latest/greatest version of Toad. -
How to connect Oracle database using TOAD Database toll
Hello ALL,
I have installed oracle 9i and TOAD in my machine.
I want to connect oracle9i using TOAD database toll.
How can i able to connect Oracle9i using TOAD database toll?What is the code i will change in tnsnames.ora so that i am able to connect scott/tiger database using TOAD?
tnsnames.ora*
SUMANTA.IN002.SIEMENS.NET =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = BLRD025AL1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = sumanta)
Please suggest.
Thanks for your time.
Regards,
Sumantauser2367151 wrote:
Hello ALL,
I have installed oracle 9i and TOAD in my machine.
I want to connect oracle9i using TOAD database toll.
How can i able to connect Oracle9i using TOAD database toll?What is the code i will change in tnsnames.ora so that i am able to connect scott/tiger database using TOAD?
tnsnames.ora*
SUMANTA.IN002.SIEMENS.NET =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = BLRD025AL1)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = sumanta)
Please suggest.
Thanks for your time.
Regards,
SumantaIf you have a listener on host BLRD025AL1, and that listener knows about a service named 'sumanta', then you don't need to do anything to your tnsnames.ora to use it with Toad -- or any other client tool. You just have to provide the correct connect string.
What have you actually tried?
What result did you get?
Any oracle errors (ora-nnnnn or tns-nnnnn)?
Maybe you are looking for
-
Howto write SQL Developer Extensions in JDeveloper?
Hello, we want to develop an extension for SQL Developer. We want this extension to appear in the context menu at the table node. We did pretty well developing the necessary Java classes but now we have the problem to integrate our extension to the c
-
Unable to create a system partition
I'm attempting to install Win7 via Boot Camp under OS X 10.9. I've created a 40 Gb partition, and the windows install disk loads and successfully formats the partition for NTFS. However, it then returns the message "Windows was unable to create or
-
Performance problem on a table with zero rows
I queried the v$sqlarea table to find which SQL statement was doing the most disk reads and it turned out to be a query that read 278 Gigabytes from a table which usually has zero rows. This query runs every minute and reads any rows that are in the
-
Metadata Consistency warnings error.....need help
I'm getting this error when i run my reports. I checked in all my files and I'm not seeing any consistency warnings. Can someone tell me why and how i can fix this error? Odbc driver returned an error (SQLExecDirectW). Error Details Error Codes: OPR4
-
C'mon - My question can't be that hard
4 days ago I posted about Bridge Photo Downloader not renaming files even though I selected that option and put a name and sequence number. To date 7 people have read the post - but NONE has a single comment? Really? You mean NOONE on this list has