Error updating data source from SQL Server ODBC into SQL Native Client 10.0
I am converting Crystal 8.5 reports into Crystal XI release 2. The data source was ODBC using SQL Server 2000 and pointing to a stored procedure. In the new server the data source has to be ODBC again, but it uses the SQL Native Client 10.0 Driver, because the new server is SQL Server 2008. I have copied the same old stored procedure on the new server and it works fine as a data source to a brand new Crystal XI report. But when I am opening an existing 8.5 version crystal report and updating the data source to the new location I get the error message "Some tables could not be replaced, as no match was found in the new data source".
I thought I could tackle this error by creating a temporary data source using the standard ODBC SQL Driver linked to the SQL 2008 Server instead of the SQL Native Client 10 ODBC. So I first updated the crystal data source to link to this temp ODBC using SQL Driver and it worked fine. But after that, when I try to update the data source to link to the SQL Native Client 10 ODBC, I get the same error again.
So I guess that the problem is not the new server itself, but the switch between SQL Server ODBC and SQL Native Client 10 ODBC.
Does anyone know what's going on with this SQL Native Client 10 in updating crystal report data sources?
CR XI does not support that driver. Try selecting the Native driver or upgrade to CR XI R2 for free and use SP4, 5 and 6 and then FP 6.4 or upgrade to CR 2008 and SP 3 and Fix Pack 3.3
Thank you
Don
Similar Messages
-
Error in data load from application server
Well, this problem again!
In datasource for dataload by flatfile, tab Extraction i selected Load Text-Type File From Application Server.
In tab Proposal:
Converter: Separated with Separator (for Example, CSV).
No. of Data Records: 9198
Data load sucefull.
I add 1 record:
Converter: Separated with Separator (for Example, CSV).
No. of Data Records: 9199
So appear a message error "Cannot convert character sets for one or more characters".
I look in line 9199 in file and not have any special character. I use AL11 and debug to see this line.
When i load file from local workstation, this error not occur.
What's happen?Hi Rodrigo,
What type of logical file path have yopu created in the application server for loading this file.
Is it a UNIX file path or an ASCII file path.
Did you check how the file looks in the application server AL11?
Prathish -
JDBC runtime error using data source (Oracle 9i server & Oracle 8i client)
Hi,
Wud someone help me with this? Why am I getting this run-time error?
D:\shilpa\javaprogs>java -classpath %classpath%;.; CreateMovieTables
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
ile: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at CreateMovieTables.initialize(CreateMovieTables.java:18)
at CreateMovieTables.main(CreateMovieTables.java:101)
This is how I have created the data source:
public void initialize() throws SQLException, NamingException
Context initialContext = new InitialContext();
DataSource dataSource = null;
dataSource = (DataSource) initialContext.lookup("jdbc/Oracle");
connection = dataSource.getConnection();
I have set the classpath to: C:\j2sdk1.4.2_08\jre\lib where the jndi.properties file exists.
Here's the jndi file:
datasource.name=jdbc_1
datasource.url=jdbc:oracle:thin:@10.119.5.98:1521:sea77db0
datasource.classname=oracle.jdbc.driver.OracleDriver
datasource.username=tr1
datasource.password=tr1
What am I doing wrong? Cud someone help me with this? It's working fine when I don't use the data source. Maybe I am doing something wrong.
Regards,
Shipf1After reading your posts, I noticed that my eyes were bleeding...
Wud someone help me with this?
Cud someone help me with this?
Thanks. It worked. BUt, IF i wanna ...
I don't[b] wanna...
what shud i do then?
Thought I should return the favor encapsulating the essence of this writing style:
So, IF i cud, I wud, but If i don't wanna shud i anyway?
Just funnin around... Good luck on your problem though.
Darn it, my eyes are bleeding again! -
SQL Server Management Studio and Native Client different behaviour on delete
I have a problem with transaction containing insert and delete to same table and some select/insert/update to some other tables. Problematic table has primary key defined as combination of column1 and column2.
When two different instances using Native Client execute simultaneously this code and make inserts to table then delete part of code causes deadlock. However this doesn't happen when trying this situation in MS SQL Server Management Studio query.
Is there some option that is missing from Native Client connection string which can cause this different behaviour?Hello,
I don't think there is a difference in the behavior. SSMS uses ADO.NET and that Provider base on the Native Client.
The difference will be more that way, when the transaction is commited and so the locks released. I guess your application keeps the transaction (much) longer open; you should commit a transaction as soon as possible to avoid long time locks and so
deadlocks.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hi All,
We Have implemented AD RMS in our organisation recently.But the Problem we are facing here many users those are Ms office 2013 we will get the error"The Data Received from the server running AD RMS didn't match the expected format.contact
your system administrator for further investigation." and those who are in Ms office 2010 Professional it says
"The service is Temporally unavailable.Ensure the you have connectivity to this server.This error could be caused if you are working offline.Proxy setting are preventing your connection or intermittent network issue."
Below are the workaround did,
1.Able to reach to Our pipeline ADRMS cluster.
2.We have a valid Certificate.
3.if we type https://adrms.ourdomain.com its working fine.
4.Manually put the registry setting for effected computers.
5. Applied the Hotfixes:MicrosoftFixit50903,KB2627273.
Kindly help or suggest us to resolve the above issue as many computers in domain are not working with IRM.
Thanks and reqard,
Mohammed Siddiq.Hi Mohammed,
Were you able to fix the issue with CRL disablement?
Did my post help you or make you laugh? Don't forget to click the Helpful vote :) If I answered your question please mark my post as an Answer. -
ODBC Error when migrating from SQL Server 2008 to SQL Anywhere 12
Hello community,
i have the following requirement:
I need to migrate a Database with some Demo data into a SQL Anywhere 12 Database. The SQL Anywhere 12 Database is part of the SAP BusinessObjects Enterprise XI 3.1 SP7 installation and came with the same as OEM Product.
The Environment looks like the following:
DB1 is a MS SQL Server 2008 R2 64 Bit running on Windows Server 2008 R2 64 Bit.
DB2 is the SAP BusinessObjects Enterprise XI 3.1 SP7 installation with the shipped SQL Anywhere 12 (12.0.1.3873) Database running on SLES 11.3 64 Bit
CL1 is my Windows 7 64 Bit Client where Sybase Central is installed in 64 Bit. On CL1 i have a 64 Bit System ODBC Connection connecting to DB1 successfully.
Basically i followed the following (pretty straight forward) tutorial:
Migrating a SQL Server Database to SQL Anywhere White Paper-Technical: Mobile Enterprise, Database Management iAnywhere …
When i want to test the connection from inside Sybase Central (During the migration process) i receive the following error:
From inside Sybase Central my connection looks as follows:
And from the ODBC Manager the connection looks as follows:
Personally i found is strange that the Sybase ODBC Driver Manager drops the error. I would expect that the MS SQL ODBC Driver Manager pops the error it its related to the ODBC DSN to DB1.
Any ideas?
Thanks and Regards
-Seb.Hi Sebastian,
The data from the SQL Server database must be migrated to an existing SQL Anywhere database. Could you please tell me where this SQL Anywhere database resides and how are you connecting to it?
The error message is saying that the connection to the SQL Anywhere remote database server is failing, as opposed to the connection to the SQL Server database. -
Access odbc data sources from PL/SQL
Dear All,
I would like to know is there any way where i could access odbc data sources from pl/sql (i.e i would like to insert, update records into MSAccess table from pl/sql procedures, triggers). Would appreciate any help regarding this.The only way I know of how is to write and external function library and use that to access ODBC datasource ...if someone else knows something else I would be interesting in hearing about that also.
-
How to use Sql data source from Essbase 9.3.1
Hi All,
How to use Sql data source from Essbase 9.3.1 for ASO cube.Are there any rules and limitations for that.
Do we need to create any data source connection for this purpose. If there please let me know the dteps to create that connection.
RegardsYes you need to create one DSN connection and you have to use DSN name and login details at the time of building/loading of the outline.
Create DSN
Goto Administrative tools -> DataSources (ODBC) and add the DSN name and specify the Server name of SQL and login details and database.
goto data prep editor and click on File Menu and Click on Open SQL option Next window opens.
There you have to enter the details of the DSN connection and SQL query to build/load.
Thanks,
Prathap -
Help,
setup a new sql server 2012 on a windows 2012r2 server to replace old sql server 2005 on an old windows server 2003 machine. When i test the ODBC connection locally on the server it works fine, however when i try to connect via windows 7 client machine
i get the following error:
Connection failed:
SQLState:'01000'
SQL Server Error:67
[Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
(Connect()).
Connection failed:
SQLState:'08001'
SQL Server Error:17
[Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied
I think it must be a permissions thing, I've turned off the firewall for now and still no difference, 've also made sure remote connection is enabled. I can connect to the other sql server in studio manager on the new machine however, i can't go do
the same in the old server, says:
cannot connect to hbfsqlpro1\hbfsqlpro1
Additonal information a network related or instance specifc error occured while establising a connection to SQL server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL server is configured to
allow remote connections. (provider:SQL Network Interfaces, error 26 - error locationg server/instance specified) (Microsoft SQL server)
the instance is def correct, as that is what i use to connect locally on the new machine and what it comes up on the studio manager on the new machine. STarting to pull my hair out somewhat, i'm sure it's something really simple!Hello,
You are trying to connect to a named instance. Make sure the SQL Server Browser service is started on the SQL Server computer.
Make sure TCP/IP is enabled.
http://msdn.microsoft.com/en-us/library/ms191294(v=sql.110).aspx
Try to disable Windows Firewall or security software on both, SQL Server instance and client computer.
Test basic connectivity too. Try to ping from the client computer to the SQL Server computer.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Error in generating data source from planning area
Hi experts! I have an error while making data source from planning area:
after the screen when i fill in the data source name (Window name: Generate export data source) i have the SYNTAX_ERROR Message:
Syntax error in program /sapapo/cl_im_extract_ex======cp
the main reason: the type /BI0/9A0IVWKNDGD is unknown
what you can suggest to solve this problem?
Thanks.Dear Andrey Kudriavzev,
The reason is the program is trying to use the datatype '/BI0/9A0IVWKNDGD' which does not exist in the system.
Go SE11 to cross check if it exists. Check dataelement radiobutton -> enter /BI0/9A0IVWKNDGD -> Choose display option. You would need to create this datatype in the system. I feel there must some OSS Note related to this.
Search for an OSS Note. Raise one if you cannot find the relevant notes.
Regards,
Naveen. -
Microsoft SQL Server ODBC Driver 1.0 for Linux problem
Hello! I've RedHat Linux 6 Update 1 x64 on VMware Player and MS SQL Server on real machine. My application "servernew" on RedHat. All right, but when i try connect my SQL Server:
retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof(buf),&StringLength2,SQL_DRIVER_NOPROMPT);
i get retocde = -1;
Using SQLGetDiagRec:
MessageText = Data source name not found, and no default driver specified
To make my connection i use next attempts for connection string:
//char constring[200]="Driver={Microsoft Server ODBC Driver 1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
//char constring[200]="Driver={SQL Server Native Client 11.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
//char constring[200]="Driver={Microsoft SQL Server ODBC Driver V1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
//char constring[200]="Driver={/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
char constring[200]="DSN={SQL Server Native Client 11.0};Uid=sa;Pwd=2ef5Fese";
but...Data source name not found, and no default driver specified .. help meOk. New attempts with sqlcmd:
[root@localhost ~]# sqlcmd -S 192.168.0.3 -U sa -P 2ef5Fese -d first
SqlState HYT00, Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online.
TCP Provider: Error code 0x6F
New error 0x6F (i turned off firewall in windows).
[root@localhost ~]# sqlcmd -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
SqlState HYT00, Login timeout expired
A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
see SQL Server Books Online.
SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
It's bad way, but...
[root@localhost ~]# sqlcmd -D -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
SqlState IM002, Data source name not found, and no default driver specified
It's like in my program!!
retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof (buf),&StringLength2,SQL_DRIVER_NOPROMPT);
i get retocde = -1;
Using SQLGetDiagRec:
MessageText = Data source name not found, and no default driver specified
Why "SQLDriverConnect" is looking for DNS?! -
Hi, I've seen questions about this error posted elsewhere but I'm not sure if the same issues applied.
I'm trying to connect to SQL Server from a VBA macro in excel. I've managed to do this with the code below where my query is return to cells in my active worksheet but for another query I want to run the data to be return is too large for Excel to handle
and so I'd like to save it as a .csv file but using the second example of my code I get the message "[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied". Since I have access to this database from the first example
of the code, I assume my conn.ConnectionString line of code is letting me down.
Can anyone help me please?
'Code to return data to worksheet'
Sub macro2()
With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array(Array( _
"ODBC;DSN=SQLRA - OPENBET;UID=user1;Trusted_Connection=Yes;APP=Microsoft Office 2013;WSID=pdfdf3001;DATABASE=open;Network=DBMSS" _
), Array("OCN;Address=SQLRA_DB,55455;ApplicationIntent=READONLY;")), _
Destination:=Range("$BG$1")).QueryTable
.CommandText = Array( _
"select A.ev_oc_id, B.ev_mkt_id, A.ev_id, D.start_Time, Upper(Replace(A.[desc],'|','')) , A.result, COALESCE(A.sp_num, A.lp_num) , ", _
"COALESCE(A.sp_Den, A.lp_Den) from open.reporting.tevoc A, open.reporting.tevmkt B, open.reporting.tevocgrp C, open.reporting.tev D ", _
"where A.ev_mkt_id = B.ev_mkt_id and B.ev_oc_grp_id = C.ev_oc_grp_id and D.ev_id = A.ev_id and Upper(Replace(D.[desc],'|','')) = 'home' and upper(B.name) = '|today|' and D.ev_type_id in (264, 289) and D.ev_class_id = 49
and D.start>= '" & Year & "-" & Month & "-" & Day & "'" _
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = True
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.PreserveColumnInfo = True
.ListObject.DisplayName = "Table_Query_from_SQLRA___OPEN_1"
.Refresh BackgroundQuery:=False
End With
End Sub
'Code that produces error'
Sub macro1()
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
Dim testSQL As String
Dim qd As DAO.QueryDef
Dim openbetdb As Database
conn.ConnectionString = "driver={SQL Server}; server= sqlra_db;uid=user1;APP=Microsoft Office 2013;WSID=pdfdf3001;database=openbet"
conn.Open
testSQL = "SELECT * FROM open.reporting.TevType where ev_class_id = 49 and ev_type_id in(289,330,518,13492);"
Set qd = Db.CreateQueryDef("tmpExport", testSQL)
DoCmd.TransferText acExportDelim, , "tmpExport", "C:\\export.csv"
End SubHello,
Are you connect to remote SQL Server? If so,
please make sure the target SQL Server is running and is listening on appropriate protocols. Please take a look at the following article about general steps to troubleshoot
SQL connectivity issues:
http://blogs.msdn.com/b/sql_protocols/archive/2008/04/30/steps-to-troubleshoot-connectivity-issues.aspx
Regards,
Elvis Long
TechNet Community Support -
Connecting Oracle to MS SqlServer using Microsoft SQL Server ODBC Driver
Hello,
I have just downloaded the newly released Microsoft® SQL Server® ODBC Driver for Linux and trying to configure it to connect to SqlServer Database from Oracle using DG4ODBC
Below are my config files:
# odbcinst -j
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /usr/oracle/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
cat /etc/odbcinst.ini
[SQL Server Native Client 11.0]
Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
#UsageCount = 1
Fileusage = 1
Dontdlclose = 1
[ODBC]
Trace = ON
Tracefile = /tmp/mstestodbc.log
cat /usr/oracle/.odbc.ini
[DEFAULT]
Driver = SQL Server Native Client 11.0
[MSTEST]
Driver = SQL Server Native Client 11.0
Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
Servername = ret2axxx
Database = testdb
Port = xxxx
And when I am trying to do an ODBC test using isql I am getting the below error.
# iusql -v MSTEST username password
[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
[ISQL]ERROR: Could not SQLDriverConnect
Any help is much appreciated!!
Thanks,
Steve.Thanks Kgronau for your response.
I have made changes to the ODBC.ini file still getting the same error
[MSTEST]
Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
#Driver = SQL Server Native Client 11.0
Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
#Address = ret2axxx
Server = ret2axxx, <port>
Database = testdb
and when I am trying to export odbcinst.ini export ODBCINSTINI=/etc/odbcinst.ini
in odbcinst -j output it shows the wrong information.
:~ $ odbcinst -j
unixODBC 2.3.1
DRIVERS............: /etc//etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /usr/oracle/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
And when export odbcinst.ini as export ODBCINSTINI=odbcinst.ini it shows the correct path.
:~ $ odbcinst -j
unixODBC 2.3.1
DRIVERS............: /etc/odbcinst.ini
isql -v mstest username password
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
[ISQL]ERROR: Could not SQLConnect
Thanks,
Steve. -
MS SQL Server ODBC Connection On Linux
Hi All,
I am badly stuck with configuration of MS SQL Server ODBC connection on SUSE Linux 10. I am almost tried everything I got from SAP notes but still getting ODBC Lib Data Direct drivers could not be loaded IES 10901.
ENV: SAP BO 4.0 SP7, MS SQL SRV 2008
Here is what I have tried so far:
1) Modified env.sh under /install_dir/sap_bobj/setup and added the line in bold.
":${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib"
The line should look like this
LIBRARYPATH="$LIBDIR:$LIBDIR32:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:${CRPEPATH64}:${CRPEPATH}:${MWHOME}:$PLUGINDIST/desktop/CrystalEnterprise.Report:
${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/ras:${BOBJEDIR}mysql/lib:${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib”
2) We have .odbc.ini file in the home directory of our BO user on linux. Added following DSN entry (Same DSN is created on client and odbc connection has been created on the universe using this DSN:
boeadm01:~> vi .odbc.ini
[DSN_NAME]
Driver=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib/CRsqls24.so
Description=DataDirect 6.0 SQL Server Native Wire Protocol
HostName=SQL Server Hostname
Database=SQL DB Name
QuotedId=Yes
AnsiNPW=No
3) We then added the environment variables and LIBPATH in BO user .profile file.
boeadm01:~> vi .profile
#Sql Server Environment
ODBCINI=$HOME/.odbc.ini
export ODBCINI
LD_LIBRARY_PATH=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
export LD_LIBRARY_PATH
4) Did echo to check the LIBPATH
boeadm01:~> echo $LD_LIBRARY_PATH
/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
5) Modified sqlsrv.sbo under /install_dir/sap_bobj/enterprise_xi40/dataAccess/connectionServer/odbc
<Parameter Name="Use DataDirect OEM Driver" Platform="Unix">Yes</Parameter>
6) Restarted BO node.
Tried creating a new webi report and got the error mentioned above.
Please help!!!
Thanks,
AnshulHi Anshul,
Please refer the below KBA & SCN thread regarding your issue.
Data Direct ODBC Drivers for SAP BusinessObjects Data Services
Link:
http://scn.sap.com/docs/DOC-8898
Business Objects XIR2 Link:
Link:
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50eca18b-d13e-2b10-a8ab-9738927177d6?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20e11153-5c3f-2b10-f9be-974dc4749fd8?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/70eabcba-5c64-2b10-6db2-ae28ae4d1295?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/4039c80b-6b3f-2b10-64a4-e8e591292e89?quicklink=index&overridelayout=true
KBA:
1291142 - Web Intelligence reporting using DataDirect drivers in Unix
1292899 - Data Direct Drivers for Crystal Report in Unix environment
SQL Server ODBC Driver for Linux/Unix Getting Started Tutorial
Link:
http://www.easysoft.com/products/data_access/odbc-sql-server-driver/getting-started.html
Step by Step: Setting up Linux ODBC driver for SQL Server
Link:
http://blogs.technet.com/b/sqlman/archive/2012/08/03/step-by-step-setting-up-linux-odbc-driver-for-sql-server.aspx
Microsoft SQL Server ODBC driver for Linux
Link:
http://www.codesynthesis.com/~boris/blog/2011/12/02/microsoft-sql-server-odbc-driver-linux/
Thanks,
Daya -
Error with data source creation
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
I have already created oraclePool with the following properties:
Name : oraclePool
URL : jdbc:weblogic:oracle
Driver: weblogic.jdbc.oci.Driver
Properties:
user=system
server=myserver
In weblogic-ejb-jar.xml file:
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
In ejb-jar.xml file:
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Do I need to make changes in my Entity Bean files? I have made a datasource called
GangsterDB. I do not know the reason for this error. Please do let me know.
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
Thank you
Ronak ParekhI am still getting the same error:
Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
that the DataSource has been deployed
successfully and that the JNDI name in your EJB Deployment descriptor is correct.
In my console, I have created a connection pool 'oraclePool' and 3 datasource
'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
'jdbc.JobDB'. I have also specified the target server and there seems to be no
error. I have checked 'Monitor All Connection
Pools' and oraclePool is running. I still do not understand the problem that I
am getting and have no clue how to solve it.
Thank you
Ronak Parekh
My weblogic-ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>GangsterEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.GangsterDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>OrganizationEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.OrganizationDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>JobEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.JobDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.JobDB</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Gangster Entity Bean</display-name>
<ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>description</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>JobEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
<cmp-field><field-name>setupCost</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>memberGangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>jobs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JobEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>gangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>theBoss</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>GangsterEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>OrganizationEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>JobEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>GangsterEJB</ejb-name>
<data-source-name>GangsterDB</data-source-name>
<table-name>GANGSTER</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>nickname</cmp-field>
<dbms-column>NICKNAME</dbms-column>
</field-map>
<field-map>
<cmp-field>badness</cmp-field>
<dbms-column>BADNESS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>OrganizationEJB</ejb-name>
<data-source-name>OrganizationDB</data-source-name>
<table-name>ORGANIZATION</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>DESCRIPTION</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>JobEJB</ejb-name>
<data-source-name>JobDB</data-source-name>
<table-name>JOB</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>score</cmp-field>
<dbms-column>SCORE</dbms-column>
</field-map>
<field-map>
<cmp-field>setupCost</cmp-field>
<dbms-column>SETUPCOST</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-relation>
<relation-name>organization-memberGangsters</relation-name>
<weblogic-relationship-role>
<relationship-role-name>memberGangsters---organization</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>gangsters-jobs</relation-name>
<table-name>JOBS</table-name>
<weblogic-relationship-role>
<relationship-role-name>gangsters---jobs</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
<weblogic-relationship-role>
<relationship-role-name>jobs---gangsters</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>organization-theBoss</relation-name>
<weblogic-relationship-role>
<relationship-role-name>organization---theBoss</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
</weblogic-rdbms-jar>
Maybe you are looking for
-
Dear All, One of user not able to remove the rejected report from Approval status report. Regards Aarati Kollur
-
My mom has an iPod 2nd gen. I have been using it this whole time until Christmas. I got an iPod 5th gen. We listen to the same type of music and hers is on iTunes on the computer. I want to have my own iPod (set up as new) not set up with her account
-
I like to add borders to my pictures and I am trying to automate the applying and saving process with actions. I figured out the applying process but saving and renaming is a problem. The borders I use are pre made from a blank file and saved as a ps
-
I need a fax and my HP all in one is great, but I installed leopard and now only see modem driver for fax. I need the HP fax. I can print. Does the HP 2840 fax work with leopard? If not how can I go back to tiger? I regret the leopard, I see little o
-
Integrating Oracle EBS R12 with Oracle Access Manager 11g
Hi Everyone , Oracle Access Manager version 11.1.1.5 Oracle Identity Management 11.1.1.6.0 Oracle Access Manager WebGate 11.1.1.5 Oracle E-Business Suite AccessGate patch p12796012 Apps Version : 12.1.1 DB Version 11.2.0.3 PLatform : OEL 5.8 We are t