Please help: problem configuring a SQL server datasource in Websphere.
I am using Rational Developer 6 and its integrated testing server (websphere v6). When configuring a data source for SQL server, I did the following steps in admin console of the test server:
1. Created a JDBC provider, using WebSphere embedded ConnectJDBC driver for MS SQL Server;
2. Created a datasource under the previously created JDBC provider, filled in the server name, DB name and port number (1433 for SQL server);
3. Created a J2C authentication alias that has the login info of SQL server;
4. Assigned the created J2C alias to both component and container managed authentication alias;
However, when I click "Test Connection", it always gets back to me with an error "java.lang.Exception: java.sql.SQLException: [IBM][SQLServer JDBC Driver]Error establishing socket. Connection refused: connectDSRA0010E: SQL State = 08001, Error Code = 0.".
My ultimate goal is to configure a SQL server datasource so that I can configure Kodo to use this datasource.
Can some one please help? Thanks in advance.
Try this:
http://www-1.ibm.com/support/docview.wss?uid=swg21210871
I am yet to test this. I am going to download latest SP for SQL Server 2000 and install it. I hope it will do the magic.
Similar Messages
-
Setting up Microsoft SQL Server datasource in Websphere 4.0
Does anyone know how to setup an SQL Server jdbc driver in Websphere 4.0? I am using jdbc driver from jTurbo. But I am having trouble specifying the proper URL and other datasource settings in Websphere 4.0 (or WTE) server configuration.
Hi,
Please find the extract from jTurbo site (http://www.newatlanta.com/support/jturbo/third-party.jsp#WebSphere)
which will explain the steps to follow for setting up Microsoft SQL Server datasource
in Websphere 4.0 using jTurbo jdbc driver.
1.Always make sure the JTurbo.jar is set in your classpath.
2.Started "WebSphere Admin Server"
3.Open "WebSphere Administrative Console"
4.Install the JTurbo Driver into WAS by modifying the following field of "Admin DB Driver"
Name: JTurbo
Class Name: com.ashna.jturbo.driver.Driver
URL prefix: jdbc:JTurbo://localhost/pubs
JTA Enabled: false
(apply changes which resulted in the installation of JTurbo Driver)
5.Selected "Create Data Source" in Console "Wizards" drop down
6.Selected "Use an already installed JDBC Driver" JDBC Option
7.Specified "my ds name" as the "Data Source Name"
Specified "pubs" as the "Database Name" pull down is showing "JTurbo"
This should sucessfully create a new data source by the name of "my ds name".
Also there is an excellent document on "Configuring the Merant ConnectJDBC data source for MS SQL Server for the WebSphere Application Server Advanced Single Server Edition" at http://www-4.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/was402/rn112253.4.html .
Hope this helps. Good luck.
Best Regards
Gayam_Slash -
Configuring WenSphere - SQL Server Datasource with IdM
Hi All -
I am trying to configure WebSphere (6.0) Datasource (for SQl Server2000) with IdM (7.0). and I am stuck at the step where we execute setRepo command to use the datasource. It was not able to find the WsnInitialContextfactory.class earlier. But then I explicitily added some of the jars (naming.jar, jcl.jar, bootstrap.jar etc) from %WAS_HOME%\lib to the CLASSPATH. It is executing now., but still looking for some more jars.
Has anyone done this before. if yes, can you please list the name of jars that need to be in classpath ?
ThanksHi,
In order to do this , all you need is a http server. Once you have installed the database, wether it is 10g or 9i, You can go to the configuration page and create a DAD( database access descriptor) which will point to the database. Next in order to access the pages created in oracle , your URL will be
http://yourhttpserver/dad/procedurename.
where dad is the name of the DAD you just created and procedure name is the pl/sql procedure which will have embedded html statements which uses the HTP package. -
Problem when connecting sql server 2005 using SQL developer
Hi,
I installed Sql developer and I am trying to connect sql server 2005 using windows authentication. I had previously the SSO folder problem saying the path is missing in java.library.path. I copied the SSO folder into Sqldeveloper directory. I changed the settings under computer management->services and applications->sql server configuration manager->sql server 2005 network configuration ->protocols for sqlexpress->I enabled TCP/IP.
Now I am getting an error saying "Failure-can not open user default database.Login Failed. Login failed for user ...".
I am able to connect thru ODBC driver using windows authentication.
Any help on this is highly appreciated.
Thanks in advance,
LakshmiHi Martin,
Your solution has solved my problem too. Thanks for posting these workaround fixes :-)
However, there seem to be a problem with datetime fields. The query:
select getdate()
returns something like: oracle.datetimestamp.@1aed4
Is there a way to get around with this? Otherwise, using SQL Developer as a client for SQL Server doesn't serve the right purpose when we cannot access simple date fields :-) -
Hello,
I'm trying to create a SQL server datasource in Visual Administrator, when I get this error while testing an sql statement.....
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_open (0) returns -3
My DTC service is started and I'm not sure what else could be the problem. Could anyone help me resolve this issue?Hello Sudhakar,
This is database specific error and it has nothing to do with the NetWeaver Server. Try to look for help in the MSSQL forums. I attach an article about this problem that I found:
http://knowledgebase.datadirect.com/kbase.nsf/ce24d9443437511f85256e57006bfe2a/f9b6b90e5d3a802285256f2000543b96?OpenDocument&Highlight=0,xa_open,(0),returns,-3
I hope it can help a bit.
Best Regards
Vyara -
How to install and configure the SQL Server
Hi All,
We have to install SQL server in the new server because the old server is crash and need to upgrade. Please advice How to install and configure the SQL Server to run SAP Business One 8.8 successfully and what part we do have to give attention.
Kind Rgds,
SteveHi,
Try this solution:
The step-by-step installation guide can be found in the documentation included in the installation media. (\Documentation\SystemSetup\AdministratorGuide_SQL.pdf).
Below are some important parts that you should pay attention to during the Installation process.
Resolution
Collation setting: It must be set as SQL_Latin1_General_CP1_CI_AS,even the company DB is non-english location. The company DB will be created as corresponding collation settings automatically.
Instance and TCP Port : It is recommended to run SBO on default instance and TCP port 1433. Otherwise,some optional components such as B1i may not work properly.
Native Client: SQL Server Native Client should be installed on every client machine to enable the ODBC connection to DB server.
Rgds, -
MS SQL Server Datasource with XA in weblogic server.
Hi,
I am configuring MS Sql Server data source in weblogic console. After I am getting this error in server log.
Driver Class name : com.microsoft.sqlserver.jdbc.SQLServerXADataSource
Error:
java.sql.SQLFeatureNotSupportedException: This operation is not supported.
at com.microsoft.sqlserver.jdbc.SQLServerConnection.isValid(SQLServerConnection.java:2906)
at com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolProxy.isValid(SQLServerConnectionPoolProxy.java:391)
at weblogic.jdbc.wrapper.XAConnection.isValid(XAConnection.java:1341)
at weblogic.jdbc.common.internal.ConnectionEnv.checkSupportIsValid(ConnectionEnv.java:1804)
at weblogic.jdbc.common.internal.ConnectionEnv.setConnection(ConnectionEnv.java:757)
at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:177)
I have included sqljdbc4.jar file in server location.
1.) oracle/Middleware/wlserver_10.3/server/lib
2.) oracle/Middleware/user_projects/domains/SOADEV_domain/lib
Please advice.
Thanks,
YatanTo get an XA connection from a SQL Server database, first the Database needs to be configured for allowing XA. This will need to be done by DBA and by default it is not enabled.
Check these links and ask the DBA if XA is configured on the SQL Server instance you are trying to connect to.
http://msdn.microsoft.com/en-us/library/aa342335%28v=sql.90%29.aspx
http://www.sqlservercentral.com/blogs/sql_server_dba/2011/12/05/enable-xa-transactions-for-sql-server-/ -
please help problem with importing a file error output "there was an error decompressing audio or video"
this is related to what adobe program/version?
-
I was trying to set Adobe Reader 11 as default PDF viewer on my client PCs, Please help me this. My server is windows 2012 R2 and client PCs are Windows 8.1
Hi Krisis,
I have found a forum where similar query was answered. Hope this helps.
http://www.loginvsi.com/forum/support-v4/857-adobe-reader-xi-not-set-as-default-pdf-viewer -in-server-2012-r2-rds
Regards,
Anoop -
Welcome.
At the outset, I'm sorry for my English
Please help with configuration Photoshop CS6 appearance.
How to disable the background of the program so you can see the desktop. (same menus and tools)
i wantto be the same effect as CS5.Please try turning off
Window > Application Frame -
Please help me convert the SQL to HQL
select
count(*) as col_0_0_
from
edu.hr_people_all hrpeopleal0_
left outer join
edu.conditions_journal conditions1_
on hrpeopleal0_.people_id=conditions1_.people_id
and conditions1_.personal_number like '%'
where
hrpeopleal0_.status=11Hibernate version: 3
HQL as I 've done
FROM PMSProjectsORO pjt LEFT JOIN PMSChecklistORO pcl
ON pjt.projectId = pcl.projectId order by
pjt.projectCode ascHQL is probably incorrect.
Try this:
FROM
PMSProjectsORO pjt
LEFT JOIN
PMSChecklistORO pcl
ORDER BY
pjt.projectCode asc>
Original SQL for MSQL5:
FROM PMSProject LEFT JOIN PMSCheckList ON
PMSProject.PROJECT_ID = PMSCheckList.PROJECT_ID order
by PMSProject.PROJECT_CODE desc
Name and version of the database you are using:
MYSQL 5
Please help me convert the sql to hql since what i
've done is throwing error like unexpected token...
Please reply ASAPLet me know if that's better.
% -
Problems on installation SQL Server Express
I have problems installation of SQL server express.
Here is the error message:
TITLE: SQL Server Setup failure.
SQL Server Setup has encountered the following error:
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 52351.
Error code 0x84B10001.Have a look at this link.
http://stackoverflow.com/questions/21643363/error-0x84b10001-when-installing-sql-server-2012-on-a-machine-with-vs2013
==
Well, turns out that this cryptic error is due to an older
instance of SQL Server Desktop Engine (MSDE) being present.
After uninstalling MSDE, the SQL Server 2012 setup worked without errors.
==
Satheesh
My Blog | How to ask questions in technical forum -
MX7 SQL SERVER Datasource problem
hello
I installed MX7 and I do not manage to create a datasource
which
point towards my dB MSSQL SERVER on local, it posts me this:
Connection verification failed for data source: blanko
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error
establishing socket. Unknown host: (local)
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer
JDBC Driver]Error establishing socket. Unknown host: (local)
under Coldfiusion server 5.5 there was the possibility of
checked “Trusted connnection” and it had no prob with
MSQLSERVER there Apparently it is necessary to work with the JDBc
drivers but I do not have any idea of how to install it I am sure
that it is a traditional error, if somebody has already encountered
the problem,
thank you to light me
thks Sam
Configuration: Windows 2003 Internet Explorer 7.0I found why it did not recognize localhost, because I placed
(localhost) between bracket because on CF 5.5 it was the case for
(local), therefore now it recognizes apparently the localhost as
server but it is another problem now: it did not recognize the
username and password,
however I configured SQL SERVER 2005 in mixed mode and thus
I test with login: Administrator and password empty (because I
don't have password on Windows authentication) and I also test with
username: sa and my password admin but without success, here what
it indicates as error:
Connection verification failed for data source: blanko
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket. Connection refused: connect
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket.
Connection refused: connect
in addition I do not know if there is a bond, (I work under
win 2003 standard edition) and according to what I read on the Net,
it may be that it is a problem of port, can be the port 1433 is not
open? If I make on DOS prompt: telnet localhost 1433 ==> failure
to connect whereas telnet localhost 80 works
I even tried to connect with
username: sa
pwd: mypwd
port: 80 (I know that 80 is the port for HTTP)
it posts the following message:
Connection verification failed for data source: blanko
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]No
more data available to read.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]No more data available to read
thanks for your help -
I am getting an error in "Step 2 - Setup or Remove Lync Server Components" of "Install or Update Lync Server System" step.
"An error occured while applying SQL script for the feature BackendStore. For details, see the log file...."
Additionally, all previous steps such as: Prepare Active Directory, Prepare first Standard Edition server, Install Administrative Tools, Create and publish topology are done without any errors. The user that I used to setup the Lync server is member of:
Administrators
CSAdministrator
Domain Admins
Domain Users
Enterprise Admins
Group Policy Creator Owners
RTCComponentUniversalServices
RTCHSUniversalServices
RTCUniversalConfigReplicator
RTCUniversalServerAdmins
Schema Admins
I have tried to re-install all the things and started to setup a new one many times but the same error still occurred. Please see the log below and give me any ideas/solutions to tackle this problem.
****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.BlobStore'****
Initializing DbSetupBase
Parsing parameters...
Found Parameter: SqlServer Value lync.lctbu.com\rtc.
Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
Found Parameter: Publisheracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Administrators;LCTBU\RTCUniversalServerAdmins.
Found Parameter: Replicatoracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
Found Parameter: Consumeracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group;RTC Local Read-only Administrators;LCTBU\RTCUniversalReadOnlyAdmins.
Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
Found Parameter: Role Value master.
Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
Sql version: Major: 11, Minor: 0, Build 2100.
Sql version is acceptable.
Validating parameters...
DbName rtcxds validated.
SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
DbFileBase rtcxds validated.
DbPath D:\CsData\BackendStore\rtc\DbPath validated.
Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
LogPath D:\CsData\BackendStore\rtc\LogPath validated.
Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
Checking state for database rtcxds.
Checking state for database rtcxds.
State of database rtcxds is detached.
Attaching database rtcxds from Data Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath, Log Path \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
The operation failed because of missing file '\\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath\rtcxds.mdf'
Attaching database failed because one of the files not found. The database will be created.
State of database rtcxds is DbState_DoesNotExist.
Creating database rtcxds from scratch. Data File Path = D:\CsData\BackendStore\rtc\DbPath, Log File Path= D:\CsData\BackendStore\rtc\LogPath.
Clean installing database rtcxds.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
****Creating DbSetupInstance for 'Microsoft.Rtc.Common.Data.RtcSharedDatabase'****
Initializing DbSetupBase
Parsing parameters...
Found Parameter: SqlServer Value lync.lctbu.com\rtc.
Found Parameter: SqlFilePath Value C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup.
Found Parameter: Serveracct Value LCTBU\RTCHSUniversalServices;RTC Server Local Group.
Found Parameter: DbPath Value D:\CsData\BackendStore\rtc\DbPath.
Found Parameter: LogPath Value D:\CsData\BackendStore\rtc\LogPath.
Trying to connect to Sql Server lync.lctbu.com\rtc. using windows authentication...
Sql version: Major: 11, Minor: 0, Build 2100.
Sql version is acceptable.
Validating parameters...
DbName rtcshared validated.
SqlFilePath C:\Program Files\Common Files\Microsoft Lync Server 2013\DbSetup validated.
DbFileBase rtcshared validated.
DbPath D:\CsData\BackendStore\rtc\DbPath validated.
Effective database Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\DbPath.
LogPath D:\CsData\BackendStore\rtc\LogPath validated.
Effective Log Path: \\lync.lctbu.com\D$\CsData\BackendStore\rtc\LogPath.
Checking state for database rtcshared.
Reading database version for database rtcshared.
Database version for database rtcshared - Schema Version5, Sproc Version 0, Update Version 1.
Thanks and Regards,
Thanh LeThanks Lạc
Phạm 2
I Had similar issue i end up uninstalling and reinstallting but same issue, then i change the drive but same issue. It was I/O issue. After adjusting my I/O it fix our issue and installation went on without any issue.
If any one using KVM here is detail article
We just give this option cache=‘writeback
using this article http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/ and http://itscblog.tamu.edu/improve-disk-io-performance-in-kvm/ this fix my issue thanks -
Help please : dbsequence refresh on MS sql server
This is a month that I work on this problem and no result
I want to set up a field as DBSequence with a database SQL Server, and then refreshes its value after an insert and can then edit the corresponding record on the same form ...
I tried to use a Impl class and method do_dml () but this one works only for MySQL and not for SQL Server , this is the code of the method do_DML ():
*protected void doDML(int i, TransactionEvent e) {*
super.doDML(i, e);
String currentViewName = getEntityDef().getName();
*if ( i == DML_INSERT) {*
PreparedStatement stmt = this.getDBTransaction().createPreparedStatement("SELECT last_insert_id()",1);
*try {*
stmt.execute();
ResultSet rs = stmt.getResultSet();
*if ( rs != null ){*
rs.first();
setAttribute("id",rs.getBigDecimal(1));
*} catch (SQLException ex) {*
ex.printStackTrace();
it also works on Oracle, simply activate the option "refrech after insert".
someone told me the following link, but I could not make it work:
http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
Now I would really like you to help me because my project is stuck because of this problem.
I would be very gratefulhello,
by searching in Help, I have found it possible to generate a field DBSequence and refreshes without using a database trigger, here's what I found:
*4.12.5 Assigning the Primary Key Value Using an Oracle Sequence*
As an alternative to using a trigger-assigned value (as described in Section 4.10.10, "How to Get Trigger-Assigned Primary Key Values from a Database Sequence"), you can assign the value to a primary key when creating a new row using an Oracle sequence. This metadata-driven approach allows you to centralize the code to retrieve the primary key into a single Java file that can be reused by multiple entity objects.
Example 4-17 shows a simple CustomEntityImpl framework extension class on which the entity objects are based. Its overridden create() method tests for the presence of a custom attribute-level metadata property named SequenceName and if detected, populates the attribute's default value from the next number in that sequence.
Example 4-17 CustomEntityImpl Framework Extension Class
package sample;
import oracle.jbo.AttributeDef;
import oracle.jbo.AttributeList;
import oracle.jbo.server.EntityImpl;
import oracle.jbo.server.SequenceImpl;
*public class CustomEntityImpl extends EntityImpl {*
*protected void create(AttributeList attributeList) {*
super.create(attributeList);
*for (AttributeDef def : getEntityDef().getAttributeDefs()) {*
String sequenceName = (String)def.getProperty("SequenceName");
*if (sequenceName != null) {*
SequenceImpl s = new SequenceImpl(sequenceName,getDBTransaction());
setAttribute(def.getIndex(),s.getSequenceNumber());
To assign the primary key value using an Oracle sequence:
Create the CustomEntityImpl.java file in your project, and insert the code shown in Example 4-17.
In the Application Navigator, double-click the entity you want to edit.
In the overview editor, click the Attributes navigation tab, and double-click the attribute you want to edit.
In the Edit Attribute dialog, set the attribute Type to Number, and then click the Custom Properties node.
Enter SequenceName for the name.
Enter the name of the database sequence for the value, click Add, and then click OK to create the custom property.
For example, a Dept entity could define the custom property SequenceName on its Deptno attribute with the value DEPT_TABLE_SEQ.
Now I do not know what I need to replace DEPT_TABLE_SEQ
Maybe you are looking for
-
IPad 1st gen not syncing with pc windows desktop
IPad 1st gen not syncing with pc windows desktop
-
How do I use the commands to start and restart the jmqbroker normally?
How do I use the commands to start and restart the jmqbroker normally? Because I have tried to use "jmqcmd shutdown bkr" and then tried to type "jmqbroker" to start up. My screen hangs up and seems that the process hangs up. The message is [28/Jun/20
-
How to attach PDF file to product catalog in e-Commerce ERP
Hello Experts, We are implementing SAP E-Commerce for ERP (ECC 6.0 version) On the product catalog, I need to attach a PDF file to the products. I have created a document as Document Type: DMO In this I have created 1 original as: Applic: PDF Origina
-
Problem in Business Logic Callable Object execution
Hi All, We are working on a workflow scenario where 2 approvals are present. Second approval is optional. Second approval is required or not is decided by a business logic callable object. This callable object is assigned (user role0 to initiator. Is
-
How to register a Mobile device Id in the netweaver Administer login?
Hello all, How to register a Mobile device Id in the netweaver Administer login? I logged in as J2ee_admin and I see SAP Mobile Infrastructure under the Administration adn underneath I see Mobile device releated configurations But there