Urgent OmniPortlet JDBC SQL Server - Unable to establish the connection
Not sure if this is the correct forum but as there is another JDBC question regarding portlets in this forum I have to give this a try as it is URGENT I get this solved.
Please see my post in the Portal General Forum
OmniPortlet DataDirect JDBC SQL Server - Unable to establish the connection
Thanks!
Not sure if this is the correct forum but as there is another JDBC question regarding portlets in this forum I have to give this a try as it is URGENT I get this solved.
Please see my post in the Portal General Forum
OmniPortlet DataDirect JDBC SQL Server - Unable to establish the connection
Thanks!
Similar Messages
-
"Unable to establish a connection between WebEx and the mail server."
Hi,
I installed Cisco WebEx and integrated with our Microsoft exchange server. It showed server "UP". everything's came up and working fine after that and sudenlly i found this message "Unable to establish a connection with the mail server. Please recheck settings."
I went into the Mail Server setup to edit settings and now, it shows Server Down. Do I need to do something on the MS Exchange 2010 or from webex server ??
Any help is greatly appreciated. Thanks a lot!Every 180 seconds, CWMS verifies the connection to the SMTP server by establishing a connection on TCP port 25 (SMTP) and then sending the EHLO command followed by the QUIT command. This check is also performed once when logging into the admin web page or when browsing to System -> Servers (where the status of the mail server is displayed).
If this sequence does not complete successfully, the warning “Unable to establish a connection with the mail server. Please recheck settings.” will show in a banner at the top of the CWMS admin pages.
You can verify the connection to the SMTP server manually by using “telnet 25”.
If you have access to the CWMS unix shell be aware that CWMS does not come with the telnet command installed.
As an alternative, you can use this 3-lines script:
exec 3<>/dev/tcp/x.x.x.x/25
echo -e "EHLO\r\nQUIT\r\n " >&3
cat <&3
Replace x.x.x.x by the ip address or hostname of the SMTP server and save the script in a file, f.e.:
/* script saved in a file named ehlo */
[root@dchriste-cwms-adm1 ~]# cat ./ehlo
exec 3<>/dev/tcp/10.48.54.79/25
echo -e "EHLO\r\nQUIT\r\n " >&3
cat <&3
Then, execute it:
[root@dchriste-cwms-adm1 ~]# sh ./ehlo
The output should be similar to this:
220 *******************************************************************************************************************
250-confukdc.confuk.com Hello [10.48.52.110]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-XXXXXXXXXXXXXXXXXXXXXXXA
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK221 2.0.0 confukdc.confuk.com Service closing transmission channel
Also, you can use this tcpdump command to see the conversation (replace x.x.x.x by the SMTP server’s IP address or hostname):
tcpdump -vXs 0 host x.x.x.x and tcp port 25
If you have HA, it is not certain which admin VM talks to the smtp server, so best to check both.
If you don't have access to the CWMS unix shell, best to span the switch ports and run packet capture. -
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider,
error: 40 - Could not open a connection to SQL Server)An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Hello,
Make sure your SQL Server service is started.
Make sure TCP\IP and names pipes protocol is enabled
Make sure you have made an exception in firewall for SQL Server connection
Make sure SQL Server browser service is enabled
Make sure you connect with correct name hostname\instance name for named instance,MSSQLSERVER for default instance and Hotname\SQLEXPRESS for express edition.
Please make sure you use port no when connecting to SQL server listeing on different port (hostname\instance ,portno)
http://blogs.msdn.com/sql_protocols/archive/2006/09/30/SQL-Server-2005-Remote-Connectivity-Issue-TroubleShooting.aspx
Hope this helps
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
BEA-149505 -The administration server was unable to establish JMX Connect.
hello
Getting the following error, trying to access the weblogic admin server ( Linux x86-64 RHL50) after a fresh install.
BEA-149505 The administration server was unable to establish JMX Connectivity with the managedServer at the JMX Service URL of <none > URL in the AdminServer LogiI
1. what steps and configuration files do I need to access to add the url
I will like to add that the node manager and the cluster screen were NOT configured during the configuration, since this is NOT an OIM configuration
2. if you have any tips please let me know
r.faisal
thank for your feedback. I added this in my startup script, but I was NOT able to get the web access to work and when I shot it down, there was an error.
Here is the startup script, Please show me when to place the scripts
#!/bin/sh
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
# --- Start Functions ---
stopAll()
# We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
if [ "X${ALREADY_STOPPED}" != "X" ] ; then
exit
fi
# STOP DERBY (only if we started it)
if [ "${DERBY_FLAG}" = "true" ] ; then
echo "Stopping Derby server..."
${WL_HOME}/common/derby/bin/stopNetworkServer.sh >"${DOMAIN_HOME}/derbyShutdown.log" 2>&1
echo "Derby server stopped."
fi
ALREADY_STOPPED="true"
# --- End Functions ---
# This script is used to start WebLogic Server for this domain.
# To create your own start script for your domain, you can initialize the
# environment by calling @USERDOMAINHOME/setDomainEnv.
# setDomainEnv initializes or calls commEnv to initialize the following variables:
# BEA_HOME - The BEA home directory of your WebLogic installation.
# JAVA_HOME - Location of the version of Java used to start WebLogic
# Server.
# JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
# PATH - JDK and WebLogic directories are added to system path.
# WEBLOGIC_CLASSPATH
# - Classpath needed to start WebLogic Server.
# PATCH_CLASSPATH - Classpath used for patches
# PATCH_LIBPATH - Library path used for patches
# PATCH_PATH - Path used for patches
# WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
"/erasdevapp/weblogic/user_projects/domains/base_domain/bin/startWebLogic
umask 037
# Call setDomainEnv here.
DOMAIN_HOME="/erasdevapp/weblogic/user_projects/domains/base_domain"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $*
SAVE_JAVA_OPTIONS="${JAVA_OPTIONS}"
SAVE_CLASSPATH="${CLASSPATH}"
# Start Derby
DERBY_DEBUG_LEVEL="0"
if [ "${DERBY_FLAG}" = "true" ] ; then
${WL_HOME}/common/derby/bin/startNetworkServer.sh >"${DOMAIN_HOME}/derby.log" 2>&1
fi
JAVA_OPTIONS="${SAVE_JAVA_OPTIONS}"
SAVE_JAVA_OPTIONS=""
CLASSPATH="${SAVE_CLASSPATH}"
SAVE_CLASSPATH=""
trap 'stopAll' 1 2 3 15
if [ "${PRODUCTION_MODE}" = "true" ] ; then
WLS_DISPLAY_MODE="Production"
WLS_DISPLAY_MODE="Production"
else
WLS_DISPLAY_MODE="Development"
fi
if [ "${WLS_USER}" != "" ] ; then
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=${WLS_USER}"
fi
if [ "${WLS_PW}" != "" ] ; then
JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=${WLS_PW}"
fi
if [ "${MEDREC_WEBLOGIC_CLASSPATH}" != "" ] ; then
if [ "${CLASSPATH}" != "" ] ; then
CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH}"
else
CLASSPATH="${MEDREC_WEBLOGIC_CLASSPATH}"
fi
fi
echo "."
echo "."
echo "JAVA Memory arguments: ${MEM_ARGS}"
echo "."
echo "WLS Start Mode=${WLS_DISPLAY_MODE}"
echo "."
echo "CLASSPATH=${CLASSPATH}"
echo "."
echo "PATH=${PATH}"
echo "."
echo "***************************************************"
echo "* To start WebLogic Server, use a username and *"
echo "* password assigned to an admin-level user. For *"
echo "* server administration, use the WebLogic Server *"
echo "* console at http://hostname:port/console *"
echo "***************************************************"
# CLASS CACHING
if [ "${CLASS_CACHE}" = "true" ] ; then
echo "Class caching enabled..."
JAVA_OPTIONS="${JAVA_OPTIONS} -Dlaunch.main.class=${SERVER_CLASS} -Dlaunch.class.path="${CLASSPATH}" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp ${WL_HOME}/server/lib/pcl2.jar"
export JAVA_OPTIONS
SERVER_CLASS="com.oracle.classloader.launch.Launcher"
fi
# START WEBLOGIC
echo "starting weblogic with Java version:"
${JAVA_HOME}/bin/java ${JAVA_VM} -version
if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
echo "Starting WLS with line:"
echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}"
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS}
else
echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ${PROXY_SETTINGS} ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}" 2>&1
fi
stopAll
popd
# Exit this script only if we have been told to exit.
if [ "${doExitFlag}" = "true" ] ; then
exit
fi -
Microsoft JDBC SQL Server Drivers
I want to use the Microsoft JDBC SQL Server Drivers. I know they are not supported.
What do I need to do to my 9iAS install so that my reports can use this JDBC connection.
I have 5 simple reports I want to run from a very simnple menu. I want to hide the JDBC connection in the URL. But I want the report to use the URL to connect to a MS SQL Server 200 database and generate a report that was created using Reports Builder.
Obviosly I am new to all of this. And someone else is doing the 9iAS install.
What do I need to do to get this going?
Thanks for any help.
JeanneI am now using mth Merant SQL Server JDBC Driver.
But I still get the following error when running from the URL from my local OC4J.
I have added classpath of YM*.jar files to rwEng and rwUrlEng in rep_<myserver>.conf.
Why can't it find the drivers?
Thanks.
Reports Error Page
Wed May 28 10:08:52 PDT 2003
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. JDBCPDS-62008:com.oracle.ias.jdbc.sqlserver.SQLServerDriver
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
JDBCPDS-62008:com.oracle.ias.jdbc.sqlserver.SQLServerDriver
at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
at test.WLBNTemp._jspService(_WLBNTemp.java:85)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64) -
JDBC Error - The Network Adapter could not establish the connection
Hi all,
I appreciate if anyone could help me out with my issue. I wrote simple java code on win 2000 to test whether I will be able to access Oracle 8i DB resided at some xxx.xxx.xxx.xxx machine within the network.
The code is:
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@111.111.11.11:1526:DBinstance","user","password");
The fist line here is executing and the problem is with second line of code. After executing this application from my DOS window, I am getting error:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at DBConn.getConn(DBConn.java:15)
at DBConn.main(DBConn.java:40)
I have installed Oracle client, where I can access the same database using SQL * Plus, but why I am unable to access the database from a Java Application? Do I need any web/application server to access it?
Any suggestions please?
Thanks,
csI am sorry guys, I was using the port number as 1526, where I need to use 1521...
-
Jdbc. The Network Adapter could not establish the connection. Help Please!!
I've found several responses over this issue, but none works for me.
I'm trying to setup a simple jdbc connection from a simple program.
Platform:
Fedora Core 4 (FC4) on AMD 64 bits
Java 1.4.2_04 (64 bits)
ORacle 10g or Oracle 9.2.0.4 (none works);
Tips:
- I can't connect to a remote server, nor to a local server
- I can connect using SQLplus
- TNSPing works fine
- Listener it's up
- my connection string is jdbc:oracle:thin:user/name@host:port:sid
- Also try jdbc:oracle:thin:user/name@//host:port/sid
- I'v tryied with classes12.jar, odbj14.jar
- my hostname it's ok.
I've monitored ip traffic on remote computer. While using TNSPING I detect activity. While using jdbc, no.
Please, any idea??Thanks for your reply.
To your questions:
- I´v tried both IP, host, and even host.domain
- I can connect from remote workstation using toad, and from local using sqlplus.
- I can´t connect via jdbc.
Folowing:
A) my sample code
B) the stack trace
C) the listener status (from my 9i server. Also tryied another servr with 10g)
when I call this program, I´ve tried severl connection strings:
jdbc:oracle:thin:user/pass@sdd51:1521:ebf
jdbc:oracle:thin:user/pass@:sdd51.sdd.com.ar:1521:ebf
jdbc:oracle:thin:user/pass@:10.10.10.51:1521:ebf
also try the other sintax:
jdbc:oracle:thin:user/pass@//sdd51:1521/ebf
In the classpath, I´tryied:
clasess12.jar
ojdbc14.jar
nls_charset12.jar
thanks
A)=================================================
// Import the JDBC classes
import java.sql.*;
import oracle.jdbc.pool.OracleDataSource;
import java.io.*;
import java.util.*;
public class test
// The query we will execute
static final String query = "select 'Hello JDBC: ' || sysdate from dual";
// The connection to the database
static Connection conn;
// Create the User Interface
static public void main (String args[])
try {
String connect_string = args[0];
// See if we need to open the connection to the database
if (conn == null)
// Create a OracleDataSource instance and set URL
OracleDataSource ods = new OracleDataSource();
ods.setURL(connect_string);
// Connect to the databse
System.out.println ("Connecting to " + connect_string + "\n");
conn = ods.getConnection ();
System.out.println ("Connected\n");
// Create a statement
Statement stmt = conn.createStatement ();
// Execute the query
System.out.println ("Executing query " + query + "\n");
ResultSet rset = stmt.executeQuery (query);
// Dump the result
while (rset.next ())
System.out.println (rset.getString (1) + "\n");
// We're done
System.out.println ("done.\n");
catch (Exception e)
e.printStackTrace();
// Oops
System.out.println (e.getMessage () + "\n");
B)=================================================
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:212)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:102)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:85)
at test.main(test.java:66)
C)=================================================
LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 30-JAN-2006 17:39:59
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 9.2.0.1.0 - Production
Start Date 24-JAN-2006 11:16:18
Uptime 6 days 6 hr. 23 min. 40 sec
Trace Level off
Security OFF
SNMP OFF
Listener Log File /opt/oracle/product/9.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=sdd51.sdd.com.ar)(PORT=1521)))
Services Summary...
Service "ebf" has 1 instance(s).
Instance "ebf", status READY, has 1 handler(s) for this service...
The command completed successfully -
Jdbc thin error : The Network Adapter could not establish the connection
jdbc thin error : The Network Adapter could not establish the connection
I have been able to create a webservice as per the article Build a PL/SQL Web Service by jason price from otn website. while executing url to call the pl/sql procedure to get the data i am encountering this error
The Network Adapter could not establish the connection in the resultant xml output. Am I missing something here ?
Please see ouput below
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.sql.SQLException: Io exception: The Network Adapter could not establish the connection</faultstring>
<faultactor>/plsqlsample/dbfunc</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope
my oc4j/j2ee/home/config/data-sources.xml file has this entry for the connection
<data-source class="com.evermind.sql.DriverManagerDataSource" connection-driver="oracle.jdbc.driver.OracleDriver" ejb-location="jdbc/hr_connDS" inactivity-timeout="30" location="jdbc/hr_connCoreDS" name="jdev-connection:hr_conn" password="xxxx" pooled-location="jdbc/hr_connPooledDS" url="jdbc:oracle:thin:@o11idev.concentra.com:9200:DEV1" username="hr8" xa-location="jdbc/xa/hr_connXADS"/>
I am not able to debug this error and any information to debug this error would be appreciated. I have scanned the metalink short of logging a tar. I am using the oc4j install on the 9ias webserver and not the jdeveloper/oc4j combination. The apps server runs 9ias on hp/ux.
Thanks
ashokAshok,
Your database connection URL doesn't look right to me. The default database connection listener port is 1521 (not 9200). You can check this using the "lsnrctl" utility.
To find the "host" and SID parts (of the URL), use the following SQL query:
select HOST_NAME, INSTANCE_NAME from V$INSTANCEGood Luck,
Avi. -
Sql exeption: Io exception: The Network Adapter could not establish the connection
when i tried to connect to a oracle server using visual age for java i had this error message:
"java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
any ideas ...if u r using think jdbc driver then check the Host name/address (IP Address) of the server and the SID and the port number.. there is no other reason for this.
Sometimes.. when the database is behind the firewall and the ports/IP is not open then due to denial of access this error occurs.
HTH.
Rajeev -
Hello,
I have recently installed Weblogic6.1Sp1 server with Weblogic Intergration 2.1
on solaris 7 and im getting this error when connecting to the database (oracle816.3);
I have changed Oracle drivers and tried many different configurations, with no
luck, Could someone give me some guidance or has anyone encounted this error before.
Thanks
Bobby
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection]
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at com.bea.wlpi.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
at com.bea.wlpi.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:1177)
at weblogic.security.utils.Pool.getInstance(Pool.java:57)
at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:104)
at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getUser(RDBMSRealm.java:145)
at weblogic.security.acl.CachingRealm.getUserEntry(CachingRealm.java:806)
at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:670)
at weblogic.security.acl.internal.FileRealm.getPrincipalFromAnyRealm(FileRealm.java:1008)
at weblogic.security.acl.internal.FileRealm.ensureRequiredObjectsExist(FileRealm.java:957)
at weblogic.security.acl.internal.FileRealm.loadMembers(FileRealm.java:1202)
at weblogic.security.SecurityService.initializeRealm(SecurityService.java:274)
at weblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:390)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)Hi. This is definitely an oracle-only problem, so you should simplify the problem
down to a small standalone program using the oracle thin driver to make a connection.
Once you get this to work, weblogic will also be able to do it. Make sure that
when you try to have weblogic succeed after you can do it with oracle code only,
that the driver you used to succeed with, is ahead of any weblogic jars in
the server classpath. Note that we ship a classes12.zip in our packaging, but
Oracle has since released a newer one (with the same name!) that has some bugs
fixed. Make sure the later one is the one the JVM will pick up.
Joe
Bobby wrote:
>
Hello,
I have recently installed Weblogic6.1Sp1 server with Weblogic Intergration 2.1
on solaris 7 and im getting this error when connecting to the database (oracle816.3);
I have changed Oracle drivers and tried many different configurations, with no
luck, Could someone give me some guidance or has anyone encounted this error before.
Thanks
Bobby
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection]
java.sql.SQLException: Io exception: The Network Adapter could not establish the
connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at com.bea.wlpi.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
at com.bea.wlpi.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:1177)
at weblogic.security.utils.Pool.getInstance(Pool.java:57)
at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:104)
at com.bea.wlpi.rdbmsrealm.RDBMSRealm.getUser(RDBMSRealm.java:145)
at weblogic.security.acl.CachingRealm.getUserEntry(CachingRealm.java:806)
at weblogic.security.acl.CachingRealm.getUser(CachingRealm.java:670)
at weblogic.security.acl.internal.FileRealm.getPrincipalFromAnyRealm(FileRealm.java:1008)
at weblogic.security.acl.internal.FileRealm.ensureRequiredObjectsExist(FileRealm.java:957)
at weblogic.security.acl.internal.FileRealm.loadMembers(FileRealm.java:1202)
at weblogic.security.SecurityService.initializeRealm(SecurityService.java:274)
at weblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:390)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35) -
Accessing MS Sql Server with Java classes - problem connecting to socket
I found an example at this location which uses java classes to connected to MS Sql Server.
http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
--bummer - it is a login location - so I will include the article
Anyway, the example is using Websphere, but I am still on Jbuilder (will get wsad soon). So I planted the classes from the example in
C:\Borland\JBuilder\jkd1.4\jre\lib\ext\...the classes
Then I copied the code from the example to my jpx project and got an error that it could not connect to the socket. The only thing I changed in the code was the connection string:
--original string from example:
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
I was getting an error with the 2 argument version of DriverManager - and the second argument here was empty (properties argument). Here was my connection string:
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
I am only using the 1 argument version of DriverManager. Note that the password=" is blank because my RnD workstation is standalone - no one accesses the sql server except me - so no password. I also left out the last semicolon I noticed. Any suggestions appreciated how I could fix this.
Thanks
source of article:
http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
iSeries 400 Tips:
TIPS & NEWSLETTERS TOPICS SUBMIT A TIP HALL OF FAME
Search for: in All Tips All search400 Full TargetSearch with Google
PROGRAMMER
Sample code: Accessing MS SQL Server database from the iSeries
Eitan Rosenberg
09 Mar 2005
Rating: --- (out of 5)
Nowadays with the help of Java the iSeries can be integrated with other databases quite easy. This tip shows you how. The code included here uses the free Microsoft driver that can be downloaded from here. (SQL Server 2000 Driver for JDBC Service Pack 3)
If your SQL server does not include the Northwind Sample Database you can find it here.
http://www.microsoft.com/downloads/details.aspx?familyid=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
The download contains the following files:
msbase.jar
mssqlserver.jar
msutil.jar
Those files needs to be copied to the iSeries directories (/home/r_eitan/ExternalJARs).
Here's the directory structure (on the iSeries) for this sample:
/home/r_eitan/ExternalJARs - Microsoft files (msbase.jar,mssqlserver.jar,msutil.jar)
/home/r_eitan/JdbcTest02 - My code (Main.java,Main.class)
The Java code
import java.sql.*;
import java.io.*;
class Main {
* Connect to Microsoft SQL server and download file northWind.products as tab
* seperated file. (products.txt)
public static void main(String args[]) {
try {
PrintStream outPut = new PrintStream(new BufferedOutputStream(new FileOutputStream("products.txt")));
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
//Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
System.out.println("Connection Done");
connection.setCatalog("northWind");
String sqlCmdString = "select * from products";
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery(sqlCmdString);
ResultSetMetaData resultSetMetaData = resultSet.getMetaData();
int columnCount = resultSetMetaData.getColumnCount();
// Iterate throught the rows in resultSet and
// output the columns for each row.
while (resultSet.next()) {
for (int index = 1; index <=columnCount; ++index)
String value;
switch(resultSetMetaData.getColumnType(index))
case 2 :
case 3 :
value = resultSet.getString(index);
break;
default :
value = """ + resultSet.getString(index) + """;
break;
outPut.print(value + (index < columnCount ? "t" : ""));
outPut.println();
outPut.close();
resultSet.close();
connection.close();
System.out.println("Done");
catch (SQLException exception)
exception.printStackTrace();
catch (Exception exception)
exception.printStackTrace();
--------------------------------------------------------------------------------------------------My guess is that the server's host name isn't right. It necessarily (or even usually) the "windows name" of the computer. Try with the numeric IP address instead (type "ipconfig" to see it).
First aid check list for "connection refused":
- Check host name in connect string.
- Check port number in connect string.
- Try numeric IP address of server host in connect string, in case name server is hosed.
- Are there any firewalls between client and server blocking the port.
- Check that the db server is running.
- Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
- Try "telnet serverhost the-port-number" from the client, to see if firewalls are blocking it.
- If "telnet" fails: try it with the numeric ip address.
- If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
- Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"? -
Sql server 2012 express - tcp/ip connection to named instance using dynamic port not working
I have a named instance on a SQL 2012 Express server that won't connect via TCP/IP when wanting to connect off of the dynamic port. I can connect via shared memory locally on the server. I can connect to the namespace when specifying the
dynamic port listed in the configuration manager.
This is the only named instance on the server and it is not the default.
TCP/IP is enabled
Allow Remote connections is enabled
the server browser service is running
I can connect via the dynamic port number
I am testing the connection locally on the server, so I don't believe a firewall is the issue. I get the same results if I test it from a remote computer.
When using the sqlcmd (sqlcmd -S tcp:SQLSRVR\NAMEINST -E) I get the message that "the requested protocol isn't supported [xfffffffff]". The command (sqlcmd -S tcp:SQLSRVR\NAMEINST,59992 -E) works.
Through SSMS, I get the message "the connection was actively refused".
On other boxes, I can connect with the named instance without having to specify the port.
I have looked through the sql logs and nothing much shows up. The log does show that is listening on the port # for ipv4 and ipv6. There is also a line in there talking about the SPN not being registered and not to worry about it if
you are not using Kerberos. I logged in through shared memory and it said I was using NTLM.
Any help would be appreciated.
thanks.Hi clw,
I’m writing to follow up with you on this post. According to your description, I do a test, if you configure the database engine to listen on a specific TCP port (59992), and
the port is opened in the firewall. If you want to connect to the SQL Server instance, you 'd better to
use the port number.
In my opinion, by default, the default instance of the Database Engine uses port 1433, usually, if you have configured the server to listen on a non-default port number, when an instance of SQL Server uses dynamic port allocation, the connection string that
is built at the SQL Server client does not specify the destination TCP/IP port unless the user or the programmer explicitly specifies the port. Therefore, the SQL Server client library queries the server on UDP port 1434 to collect the information about the
destination instance of SQL Server.
If UDP port 1434 is disabled, the SQL Server client cannot dynamically determine the port of the named instance of SQL Server. Therefore, the SQL Server client may be unable to connect to the named instance of SQL Server. In this situation, the SQL Server
client must specify the dynamically allocated port where the named instance of SQL Server is listening.
For more information about configuring an instance of SQL Server to listen on a specific TCP port or dynamic port, you can review the following article.
https://support.transfrm.com/entries/503111-How-to-configure-an-instance-of-SQL-Server-to-listen-on-a-specific-TCP-port-or-dynamic-port
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Hi, I'm running the following setup:
Mac OS X 10.8.4
Virtual Box 4.2.16 r86992
Oracle Developer Days (don't know the version, just downloaded it)
SQL Developer 3.2.20.09
Networking is host-only, I tried bridged but that doesn't make a difference for the problem at hand. I can ping my virtual box just fine, telnet to port 1521 looks good too:
$ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101): 56 data bytes
64 bytes from 192.168.56.101: icmp_seq=0 ttl=64 time=0.449 ms
^C
--- 192.168.56.101 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.449/0.449/0.449/0.000 ms
$ telnet 192.168.56.101 1521
Trying 192.168.56.101...
Connected to 192.168.56.101.
Escape character is '^]'.
asdf
asdf
Connection closed by foreign host.
When I create a new connection with sql developer, with the same hostname / IP (192.168.56.101), Port 1521 (didn't change that) and SID orcl, basic connection type, it can't even connect, throwing the error mentioned in the subject:
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection
I have looked at various threads in the forums here but I'm still stymied why the connection seems to be ok, yet sql developer has problems with it. If I create an ssh tunnel so sql developer only has to connect to localhost it works:
ssh -L 1521:192.168.56.101:1521 -l oracle 192.168.56.101
Message was edited by: 2a2e67cd-b5b2-4229-9fa6-21f5dfe0760dHi Ali,
This may be of varoius reasons..
Is the database that you are connecting on the same PC?
You have specified Hostname: localhost.
If not please replace it with the IP of that server.
Else please check whether the database listener is started or not. if not please start the listener.
Check the SID by tnsping command.
Hope this will help you..
Thanks
Ashok -
SQL Developer 1.5 - The Network Adapter could not establish the connection
I was using SQL Developer 1.2 until this afternoon. I saw that 1.5 was available so I decided to try it out.
Unfortunately, I cannot connect. I've tried connecting the same way I've done with 1.2 and it gives me the error:
"Io exception: The Network Adapter could not establish the connection"
No firewall changes, tns changes have been done the whole 10 minutes I was transitioning over from 1.2 to 1.5.
Any ideas how I can get 1.5 to connect?Hi Echoi ,
1/Do you want us to look at the tnsnames.ora and see if we spot anything?
2/There are complications with existing ORACLE_HOME s:
Re: 1.5 not working at all for me
post from dooneill:
Hi Thomas,
SQL Developer does pick up the JDBC drivers from your local ORACLE_HOME.
To ensure your using the shipped JDBC drivers you could use the following small script.
I would appreciate if you could tell me if this works and what version of Oracle you have installed locally.
1) Close SQL Developer
2) Create a sqldeveloper.cmd file in the SQL Developer root directory
3) With the following contents
SET ORACLE_HOME=%CD%
start sqldeveloper.exe
4) Run sqldeveloper.cmd
Thanks
Dermot.
-Turloch -
TPINIT error Unable to establish WSH connection 0x000221150afea683
Dear All,
we have applications deployed using tuxedo. All the applications are in working condition, but one new application is deployed with same parameters of working applications but on new client application on Windows 2008 server.
This application cannot access the tuxedo server and giving following error.
152035.WEBAPP!?proc.4020.3152.0: 01-30-2013: Tuxedo Version 11.1.1.2.0 with VS2010, 64-bit
152035.WEBAPP!?proc.4020.3152.0: LIBWSC_CAT:1064: ERROR: Unable to establish WSH connection 0x000221150afea683
152035.WEBAPP!?proc.4020.3152.0: LIBWSC_CAT:1055: ERROR: Unable to establish WSL connection
152035.WEBAPP!?proc.4020.3152.0: LIBWSC_CAT:1027: ERROR: Unable to connect to WSH
152035.WEBAPP!?proc.4020.3152.0: LIBWSC_CAT:1020: ERROR: Unable to obtain authentication level
The same application is working on 32 bit 2003 server. and only changed this in 64 bit 2008 server.
My .bat file on the client is as follows. The tuxedo server is already serving all other clients except this one. Server version is tuxedo10gR3. Firewall on this client is also disabled
cls
set APPDIR=C:\bea\prs\
set WSNADDR=//202.25.16.11:7025
set TUXDIR=C:\\bea\\tuxedo11gR1_VS2010
set PATH=%TUXDIR%\\bin;%APPDIR%;%PATH%
set LD_LIBRARY_PATH=%TUXDIR%\\lib
@echo on
echo "Processing online recovery file: " %2
echo %TUXDIR%
echo %WSNADDR%
echo %LD_LIBRARY_PATH%
cd C:\bea\prs
c:
C:\bea\prs\prs.exe %1 %2 %3 %4
Edited by: user6951085 on Jan 30, 2013 2:42 AMDear All,
I found out why this is happening(with the Help of Oracle support), so updating it for future use.
Tuxedo uses random ports for clients that have connected to WSL listener. thats why my first error
152035.WEBAPP!?proc.4020.3152.0: LIBWSC_CAT:1064: ERROR: Unable to establish WSH connection 0x000221150afea683
was coming. this means (as per the documentations) that the WSL have accepted the connection but the next step of connecting to WSH is not done. which causes the above error.
The resolution can be 2 things.
1. Allow allow ports of Server or range of ports starting from port of WSL e.g. port WSNADDR port 7777 to 7777+2000 ports , so that clients can access the WSL port + 2000 ports
2. add a parameter on the tuxedo server ubb file to define a range of ports which can handle client requests. (most probably in the WSL CLOPT portion)
if your network has security and it only allows some ports to be accessed , u can get this error.
Thanks.
Edited by: user6951085 on Jan 31, 2013 1:18 AM
Maybe you are looking for
-
ICal for iPhone-Why is there no custom option for repeating events?
I really hate the application iCal on the iPhone, because it won't allow me to enter in an event that happens on the fourth thursday of the month. Palm has allowed users to make monthly reapeats by day and by date for ten years now. Why can't iCal do
-
File.preventBackup Not Working
I posted about this in the AIR Development forum originally thinking I'm probably not implementing it correctly, but after more and more testing I do not think this is working correctly. I have a Flex mobile app that I'm trying to store downloaded co
-
Adding Vertical Lines in Footer
How do I add vertical lines using Dreamweaver CS4 in my footer to divide up the various links..(as in the very bottom of this page where the various links are divided by small vertical lines)??
-
ZFS webconsole show (no devices)
ZFS from command line works perfectly. I can work with all my configured pools and file systems. But when I run the webconcole and go to zfs application it shows me System Summary/Tasks Storage Pools (0) File Systems (0) Volumes
-
Powershell–Schedule a SCCM Advertisement using powershell
I need to change advertisement schedule every day. Advertisement Start Time Advertisement Expires Mandatory Assignments Example of what I need : Today the Advertisement has the following settings Advertisement Start Time – 4/20/2012 23:00. Advertise