Data Source Username
I have set up an SQL database in the coldfusion MX
administrator and it enables ok. When I refresh the databases tab
in dreamweaver it recognises the database. I then select recordset
in the bindings tab and select teh database in the drop down menu.
Then I get a user name and password box. What user name and
password is it looking for? I have tried all I can think of!
Problem solved, there was a permissions problem with the
mysql file by going into terminal and running the chmod 777 command
on the file it now allows me to select the database without
entering a username or password. Not sure why it didn't work when
entering the root username and password I can only assume root
didn't have all priviledges either!
Thanks for help.
Similar Messages
-
Programatically change username and password if the data source
Hi all,
I searched but could not find the answer for how to programamtically change the username /password of the datasource created by the Servers tab under JSC2.
My database is Oracle and I use the logins to specify the security policy. So I would like to be able to use the username/password when the user logs in and use these info to make the connection to the database server instead of the ones I provide when creating the data source.
Thanks for your advice,
DTThe username/password can be set for the datasource via the CachedRowSet created for the datasource.
For example if you drop the sample Travel->person table on the visual designer a "personDataProvider" is created. Here's the code to set the username/password.
personDataProvider.getCachedRowset().setUsername("me");
personDataProvider.getCachedRowset().setPassword("mypassword");-David -
Creation of data sources by Ant
Hi all
Please help me..
when i create data source by ant(copying data-sources.xml already stored in my hard disk with all valid entries.)and then deploy my EAR file and get the following error:
10g-deploy:
[exec] ADMN-300075
[exec] Nested exception
[exec] Resolution:
[exec] Base Exception:
[exec] javax.naming.NamingException
[exec] Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
[exec] javax.naming.AuthenticationException: RMIConnection Disconnected
[exec] javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: RMIConnection Disconnected; nested exception is:
[exec] javax.naming.AuthenticationException: RMIConnection Disconnected [Root exception is javax.naming.AuthenticationException: RMIConnection Disconnected]
[exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
[exec] at oracle.ias.sysmgmt.utility.Oc4jUtil.getOC4JApplicationServerAdministrator(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.getOC4JApplicationServerAdministrator(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.deployOnSingleInstance(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.LocalDeploy.doExecute(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.runtime.RuntimeIf.execute(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.doEvaluateDeploy(Unknown Source)
[exec] at oracle.ias.sysmgmt.deployment.j2ee.adapter.DeploymentAdapter.evaluate(Unknown Source)
[exec] at oracle.ias.sysmgmt.task.TaskMaster.sync_evaluate(Unknown Source)
[exec] at oracle.ias.sysmgmt.task.TaskMaster.internal_evaluate(Unknown Source)
[exec] at oracle.ias.sysmgmt.task.RemoteEvaluate.execCommand(Unknown Source)
[exec] at oracle.ias.sysmgmt.task.DaemonWorker.run(Unknown Source)
[exec] Caused by: javax.naming.AuthenticationException: RMIConnection Disconnected
[exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
[exec] at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
[exec] at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
[exec] at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:721)
[exec] at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
[exec] ... 11 more
BUILD SUCCESSFUL
Total time: 4 minutes 58 seconds
But when i crete data source using Oracle enterprise manager,I m able to deploy my EAR file successfully.
Can nebody please tell me how can i create data source manually by ant script ant then deploy my appln. successfully
The entries done by me in data-sources.xml are:
<data-source class="com.evermind.sql.orionCMTDataSource" location="jdbc/los" connection-driver="oracle.jdbc.driver.OracleDriver" username="dbprod_test" password="dbprod_test" url="jdbc:oracle:thin:@//10.0.52.160:1521/orcl" name="jdbc/los"><description>LOSDB</description></data-source
Thanks in advance..user534925,
Do you want to create a global datasource or one for a specific J2EE application?
For a global datasource, you can use the "admin.jar" file.
Type the following command for more details:
java -jar admin.jar -helpOne of the options is "-installDataSource".
You should be able to launch "admin.jar" from an "ant" script (I think -- I don't use "ant").
Sorry, I don't remember how to set up a datasource for a specific application.
(And I'm too lazy to search for it for you, now :-)
Good Luck,
Avi. -
Unable to add external data source in BAM : Error ORA-12505
Hi,
In BAM,
Im trying to add an external data source for creating a data object.
But when i try to test the connection i get the following error:
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Source: "java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Source: "oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
As mentioned in another post ((Listener does not currently know of SID given in connection descriptor
i tried
lsnrctl stop.
delete listener.ora
lsnrctl start
lsnrctl reload
But still get the same error;
Im able to access the database with the specified username and password using sqlplus.
Your help will be appreciated.
Regards
Vignesh RamanathanFor #5, not Windows, ConfigMgr 2012 R2. Anything before ConfigMgr 2012 R2 is not supported for the 8.1 ADK.
For the permissions, what accounts are you setting this for. In general, if the share is on the same server, Everyone Full or Read on the Share and System Full or Read on the NTFS should work.
For the error message, it looks like you are trying to import an OS Image and not an OS Install Package. OS images use a WIM file and OS Install Packages use the entire set of source files from the media. For OS images, you must thus explicitly point it
to a specific WIM file.
Jason | http://blog.configmgrftw.com -
Changing the data source from DB2 to ORACLE in SBOP 4.0
Hi Gurus,
We have done SBOP 4.0 SP 2 installation successfully on Linux by choosing DB2 as default Database as suggested by SAP as there is some issue with RH LINUX 5.5 version. Now, we need to change the CMS data source back to ORACLE 11G. For that we have to execute cmsdbsetup.sh and go with the option of "copy" (Copy data from another Data Source). We need to provide the target/destination CMS database in my case ORACLE (TNS & CMS user) details. And also we need to provide the source CMS user (DB2) details. As we went with the bundled/default DB2 installation, we are not able to find the cms user name and password (no where during the installation it prompted to provide cms username and password).
What will be the default cms username /password in DB2?
Thanks,
SandeepHi,
The work around is to create/add an extra node (SIA Node) with default servers option for the existing CMS and provided my ORACLE CMS username/password along with the TNS Names using cmsdbsetup.sh. Make sure that this new node is visible in the Servers section of the CMC console (i.e. http://<webappserver>:8080/BOE/CMC-->servers) and also see that all the servers should be running. Then you can delete the old SIA which was connected to DB2 from the CMC->servers.
Thanks,
Sandeep -
Hello there,
I have an Excel report I created which works perfectly fine on my dev environment, but fails on my test environment when I try to do a data refresh.
The key difference between both dev and test environments is that in dev, everything is installed in one server:
SharePoint 2013
SQL 2012: Database Instance, SSAS Instance, SSRS for SharePoint, SSAS POWERPIVOT instance (Powerpivot for SharePoint).
In my test and production environments, the architecture is different:
SQL DB Servers in High Availability (irrelevant for this report since it is connecting to the tabular model, just FYI)
SQL SSAS Tabular server (contains a tabular model that processes data from the SQL DBs).
2x SharePoint Application Servers (we installed both SSRS and PowerPivot for SharePoint on these servers)
2x SharePoint FrontEnd Servers (contain the SSRS and PowerPivot add-ins).
Now in dev, test and production, I can run PowerPivot reports that have been created in SharePoint without any issues. Those reports can access the SSAS Tabular model without any issues, and perform data refresh and OLAP functions (slicing, dicing, etc).
The problem is with Excel reports (i.e. .xlsx files) uploaded to SharePoint. While I can open them, I am having a hard time performing a data refresh. The error I get is:
"An error occurred during an attempt to establish a connection to the external data source [...]"
I ran SQL Profiler on my SSAS Server where the Tabular instance is and I noticed that every time I try to perform a data refresh, I get the following entries:
Every time I try to perform a data refresh, two entries under the user name ANONYMOUS LOGON.
Since things work without any issues on my single-server dev environment, I tried running SQL Server Profiler there as well to see what I get.
As you can see from the above, in the dev environment the query runs without any issues and the user name logged is in fact my username from the dev environment domain. I also have a separated user for the test domain, and another for the production domain.
Now upon some preliminary investigation I believe this has something to do with the data connection settings in Excel and the usage (or no usage) of secure store. This is what I can vouch for so far:
Library containing reports is configured as trusted in SharePoint Central Admin.
Library containing data connections is configured as trusted in SharePoint Central Admin.
The Data Provider referenced in the Excel report (MSOLAP.5) is configured as trusted in SharePoint Central Admin.
In the Excel report, the Excel Services authentication settings is set as "use authenticated user's account". This wortks fine in the DEV environment.
Concerning SecureStore, PowerPivot Configurator has configured it the PowerPivotUnnattendedAccount application ID in all the environments. There is
NO configuration of an Application ID for Excel Services in any of the environments (Dev, test or production). Altough I reckon this is where the solution lies, I am not 100% sure as to why it fails in test and prod. But as I read what I am
writing, I reckon this is because of the authentication "hops" through servers. Am I right in my assumption?
Could someone please advise what am I doing wrong in this case? If it is the fact that I am missing an Secure Store entry for Excel Services, I am wondering if someone could advise me on how to set ip up? My confusion is around the "Target Application
Type" setting.
Thank you for your time.
Regards,
P.Hi Rameshwar,
PowerPivot workbooks contain embedded data connections. To support workbook interaction through slicers and filters, Excel Services must be configured to allow external data access through embedded connection information. External data access is required
for retrieving PowerPivot data that is loaded on PowerPivot servers in the farm. Please refer to the steps below to solve this issue:
In Central Administration, in Application Management, click Manage service applications.
Click Excel Services Application.
Click Trusted File Location.
Click http:// or the location you want to configure.
In External Data, in Allow External Data, click Trusted data connection libraries and embedded.
Click OK.
For more information, please see:
Create a trusted location for PowerPivot sites in Central Administration:
http://msdn.microsoft.com/en-us/library/ee637428.aspx
Another reason is Excel Services returns this error when you query PowerPivot data in an Excel workbook that is published to SharePoint, and the SharePoint environment does not have a PowerPivot for SharePoint server, or the SQL Server Analysis
Services (PowerPivot) service is stopped. Please check this document:
http://technet.microsoft.com/en-us/library/ff487858(v=sql.110).aspx
Finally, here is a good article regarding how to troubleshoot PowerPivot data refresh for your reference. Please see:
Troubleshooting PowerPivot Data Refresh:
http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
Hope this helps.
Elvis Long
TechNet Community Support -
Data source executive could not be found
Hello there, I have recentley did my first dynamic website
using coldfusion MX 7. After I uploaded all the files in the server
of godaddy.com on a window platform which supports cfm, I had
realised that all the DSN routes were still
C:cfusion7\wwwroot\database\executive.Users... so I changed all the
tags to D:\Hosting\executivemalta\database\executive.Users....
Unfortunatley I keep on receiving the error Data source executive
could not be found! I have also created an access database from the
godaddy control panel and located the database to a folder called
accesscf and changed the DSN route as instructed by godaddy.
Unfortunatley that didn't even work. Could somebody out there be
generous enough to help me solve this problem? The following is the
error:
Error Occurred While Processing Request
Data source executive could not be found.
The error occurred in D:\Hosting\executivemalta\index2.cfm:
line 4
2 : <cfset MM_redirectLoginSuccess="../homepage.cfm">
3 : <cfset MM_redirectLoginFailed="../failed.cfm">
4 : <cfquery name="MM_rsUser"
datasource="#Request.DSN#">
5 : SELECT Username,Password FROM
D:\Hosting\executivemalta\accesscf\executive.Users WHERE
Username='#FORM.username#' AND Password='#FORM.password#'
6 : </cfquery>
DATASOURCE executive
Please try the following:
Check the ColdFusion documentation to verify that you are
using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.1.4322)
Remote Address 212.56.128.21
Referrer
http://www.the-executive.biz/index2.cfm
Date/Time 08-Aug-06 11:17 PM
Stack Trace (click to expand)
at
cfindex22ecfm807111997.runPage(D:\Hosting\executivemalta\index2.cfm:4)
at
cfindex22ecfm807111997.runPage(D:\Hosting\executivemalta\index2.cfm:4)
java.sql.SQLException: Data source "executive" not found.
at coldfusion.sql.DataSrcImpl.validate(DataSrcImpl.java:90)
at coldfusion.sql.SqlImpl.validate(SqlImpl.java:203)
at
coldfusion.tagext.sql.QueryTag.doStartTag(QueryTag.java:443)
at
cfindex22ecfm807111997.runPage(D:\Hosting\executivemalta\index2.cfm:4)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)Hi,
I updated Sources\SXS with fresh files and now it looks like it works?????
/SaiTech -
Problem while adding a new data source for the demo for mapviewer...
hello,
i use oracle 10g enterprise edition. i imported the necessary dump files and get the necessary scripts worked. i want to see the demo results in mapviewer. for that, i have to add a datasource. the XML code in order to realize this purpose is:
<?xml version="1.0" standalone="yes"?>
<non_map_request>
<add_data_source
name="mvdemo"
jdbc_host="c-0y5wp0jvd2bf8"
jdbc_port="1521"
jdbc_sid="mvdemo"
jdbc_user="!mvdemo"
jdbc_password="tiger"
jdbc_mode="thin"
number_of_mappers="3" />
</non_map_request>
i press the submit button. then it wants me to enter a username and password. the default is admin/welcome. then i see this result on the browser:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<oms_error>
Message:[MapperConfig] eÅleme verileri kaynaÄı eklenemiyor.
Sat Feb 26 02:29:19 EET 2005
Severity: 0
Description:
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.java:583)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.java:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
</oms_error>
by the way, the error message on the application server screen:
05/02/26 02:29:16 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data sr
c [name=mvdemo]
05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istisn
as²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:120)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] connecting to database using jdbc
thin driver...
05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istis
nas²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:136)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istis
nas²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:136)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:19 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.lang.Illeg
alArgumentException: Error creating NativeOracleDataSource.
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:196)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
if someone could help about what to do, i would be grateful..when defining a data source through the admin web page, don't add '!' in front of the password.
! is needed only when configuring a data source in the mapViewerConfig.xml file. -
Using DAO using a JDBC data source with struts
Hello,
I have created a number of Data Access Objects and Transfer Objects to use in a non EJB, struts web application I am developing. I had tested these with a kind of a Service Locator custom class to provide access to a JDBC connection. My custom class is a bit clunky and not very configurable. I would like to use a data source using the struts config XML file e.g.
<data-sources>
<!-- configuration for commons BasicDataSource -->
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="description"
value="My MySQL Database Connection" />
<set-property
property="driverClassName"
value="com.mysql.jdbc.Driver" />
<set-property
property="url"
value="jdbc:mysql://localhost/databaseName" />
<set-property
property="username"
value="myUsername" />
<set-property
property="password"
value="xxxxxxxxx" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
</data-source>
</data-sources>This is great, and precisely the kind of thing I would like to use. However, this datasource is only available AFAIK through a HttpServletRequest instance like in the example I found below...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception
javax.sql.DataSource dataSource = null;
java.sql.Connection myConnection = null;
try {
dataSource = getDataSource(request);
myConnection = dataSource.getConnection();
// do what you wish with myConnection
} catch (SQLException sqle) {
getServlet().log("Connection.process", sqle);
} finally {
//enclose this in a finally block to make
//sure the connection is closed
try {
if(myConnection != null)
myConnection.close();
} catch (SQLException e) {
getServlet().log("Connection.close", e);
return (mapping.findForward("success"));
}That would be great if I wanted to use the database connection anywhere near a struts Action (wrong tier!). I want access like that to to a data source in my DAOs. Is it possible for me to use the data-sources aproach to access the DB from my DAOs or will I need to use something like JNDI to do this in a similar way but separate from struts. If so I have a big gap in my knowledge as far as JNDI goes which I need to fill and that will be my next question
I'm relatively new to using patterns inn Java and any help or pointers would be great.
Thanks :)Create a JAAS Authentication Entry in the Server configuration.
This should then appear in the drop-down when specifying your DataSource. -
Report based on custom Query - Question about Data Source
Hello,
I am trying to create Crystal reports (EBO R3.1, Oracle 11g Database, CR2008) based on custom queries. Tried using different kinds of Data Sources but getting stuck once I export them to Infoview.
1. Using Oracle Server: This method works fine on my local & Infoview. But since I have lot of reports, I do not want the DB username/password associated to the report. I neither want BO to prompt username/pwd to my user.
2. Using ODBC(RDO):
Again, works fine on my local. Once I export to Infoview, it fails with this error: "Failed to open the connection"
Which makes sense, because the DSN is created on my local machine and not on the server.
How and what do I create on the server, so that the reports run?
I do not know if using ODBC(RDO) is even the right way for creating custom SQL reports.
I have been reading about Business Views, but not clear on how good they work.
My goal is to create multiple reports, using custom SQL queries which use some kind of connection to the database that can be managed on the
server in one place, and used by multiple reports.
Can any of you please help me here
Thanks,
Sowmya.
Edited by: SBat22 on Apr 13, 2011 5:58 PMThanks for moving it to the right forum!!
But, if I setup in CMC, a default username/password that the report needs....what would happen if my password changes?
I would need to go to each and every report and update the password.
I am looking for using one common "connection" for multiple reports. So that, when passwords change, all I update is in one central location.
Can anyone please help!
Thanks,
Sowmya. -
Crystal ActiveX Runtime Lib: Change text data source path at run time.
We have some PCs running Crystal Reports 10 and some running CR 9 and 8.5. For each PC, we set up a System DSN ODBC data source (in Control Panel - Administrative Tools) for pulling data from text files to
generate reports.
Recently we wrote some routines (see the Visual Basic example at the
end of this message) to change the path of the data files at runtime.
According to the Crystal Reports Technical Reference Guide, we may use
the method LogOnServer() of an Application object or an DatabaseTable
object. However, we find that this does not work: the PrintOut()
method only pulls data from the default path as configured for the
System DSN, not from the path passed as the third parameter of
LogOnServer(). It does not return any error message.
We have also tried to use SetTableLocation() method, and it still does
not work.
Would any experts examine our code below and advise what we are missing? Thanks.
For the following VB example, we have:
System DSN Name: AP_WORKSHEET
Driver: Microsoft Text Driver
Database Directory: D:\0ood2 (i.e. the default path)
Crystal Report Document: D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt
(Which specifies that the data source text file name is BlockWS.txt)
Purpose : We would like to read the data source text file from
D:\0ood1 instead of the default path.
Following is the code of the VB macro:
Sub test()
Rem In this version of the subroutine, we call
Rem DatabaseTable.LogOnServer() and "Rem"ed out
Rem Application.LogOnServer() and SetTableLocation().
Rem We have un"Rem"ed each of them and "Rem"ed others and try to run.
Rem In all runs, data are pulled from the default file
Rem D:\0ood2\BlockWS.txt instead of D:\0ood1\BlockWE.txt.
Dim crxapp As CRAXDRT.Application
Dim crxRep As CRAXDRT.Report
Dim crxDB As CRAXDRT.Database
Dim crxTab As CRAXDRT.DatabaseTable
Dim crxConnPs As CRAXDRT.ConnectionProperties
Dim crxConnP As CRAXDRT.ConnectionProperty
Dim apropSubLoc As String
Dim apropConnBufStr As String
Set crxapp = CreateObject("CrystalRuntime.Application")
Rem
crxapp.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Set crxRep = crxapp.OpenReport
("D:\3g\run\Vision\apcyto\Reports\crBlockWS.rpt")
Set crxDB = crxRep.Database
Set crxTab = crxRep.Database.Tables(1)
apropConnBufStr = crxTab.ConnectBufferString
apropSubLoc = crxTab.SubLocation
crxDB.LogOnServer "p2sodbc.dll", "AP_WORKSHEET", "<CRWDC>DBQ=D:\0ood1",
Rem crxTab.SetTableLocation "D:\0ood1\BlockWS.txt", apropSubLoc, "DSN="
Rem Set crxConnPs = crxTab.ConnectionProperties
Rem Set crxConnP = crxConnPs.Item("DSN")
Rem crxConnP.Value = "AP_WORKSHEET"
Rem Set crxConnP = crxConnPs.Item("Database")
Rem crxConnP.Value = "D:\0ood1\BlockWS.txt"
Rem crxTab.Location = "BlockWS.txt"
crxRep.DiscardSavedData
crxRep.PrinterSetup (0)
crxRep.PrintOut
End Sub
For VB macros, the problem exists in all of CR 8.5, 9 and 10. However,
for another platform we are using, Unify Vision 4GL, it works for CR
8.5 while not working for CR 9 and 10.
Following is the source code in Unify Vision 4GL. This language may
not be popular, but I thin you are about to see how it calls the
Runtime Library methods LogOnServer(), OpenReport(), PrinterSetup() and
PrintOut().
%gfPrintCrystalReport
BOOL FUNCTION gfPrintCrystalReport($reportName)
BEGIN
if NOTMKNOWN(GF:$oSeagateId) then
create service of activex
class 'CrystalRuntime.Application'
object_ref into GF:$oSeagateId;
if MKNOWN(GF:$oSeagateId) then
begin
/* TD23013: Database directories are dynamic to
accommodate multiple user requirement of Citrix */
send message LogOnServer to GF:$oSeagateId
using
( 'PDSODBC.DLL', 'AP_WORKSHEET', '<CRWDC>DBQ='+GF:$WinTempDir,'','')
identified by $msgHandle;
if $msgHandle:MSG_STATE 'RESPONSE_PROCESSED'
then
begin
display 'Crystal Reports cannot connect
to the datasource ' for fyi_message wait;
return (FALSE)
end
send message OpenReport to GF:$oSeagateId using
($reportName, 1)
identified by $msgHandle returning
$oCrystalReport
if MKNOWN($oCrystalReport) then
begin
if (NOTMKNOWN(GF:$printerName)) then
set GF:$printerName to
$oCrystalReport->PrinterName;
if GF:$printerName $oCrystalReport-
PrinterName then
send message SelectPrinter to
$oCrystalReport
using
(GF:$driverName,GF:$printerName,GF:$portName)
identified by $msgHandle;
set $oCrystalReport-
DisplayProgressDialog to FALSE;
while TRUE
begin
DISPLAY NOTICE 'Print to : ' +
GF:$printerName
LABELS 'Ok'
DEFAULT, 'Cancel', 'Printer Setup'
RESULT INTO $userOption
switch ($userOption)
begin
case 0 :
send
message PrintOut to $oCrystalReport
using
(PROMPT_USER, NUMBER_OF_COPIES, COLLATED, START_PAGE, STOP_PAGE)
identified by $msgHandle;
set
$oCrystalReport to UNDEFINED
return
(TRUE);
case 1:
set
$oCrystalReport to UNDEFINED
return
(FALSE);
case 2:
send
message PrinterSetup to $oCrystalReport
using
(0)
identified by $msgHandle;
if
GF:$printerName $oCrystalReport->PrinterName then
begin
set GF:$printerName to $oCrystalReport->PrinterName;
set GF:$driverName to $oCrystalReport->DriverName;
set GF:$portName to $oCrystalReport->PortName;
end
break;
end
end
end
end
return
(FALSE);
ENDHi Sydney,
If you search the Developers help file you'll find info on using the method:
How to change the data source
This example demonstrates how to change the data source from native Access to an OLEDB (ADO) data source by using the ConnectionProperty Object, as well as how to change the table name by using the Location property of the DatabaseTable Object. CrystalReport1 is connected to the xtreme.mdb database found in the \Program Files\Crystal Decisions\Crystal Reports 10\Samples\En\Databases folder. The report is using the Customer table. A copy of the Customer table is added to the pubs database on Microsoft SQL Server.
' Create a new instance of the report.
Dim Report As New CrystalReport1
Private Sub Form_Load()
' Declare a ConnectionProperties collection.
Dim CPProperties As CRAXDRT.ConnectionProperties
' Declare a DatabaseTable object.
Dim DBTable As CRAXDRT.DatabaseTable
' Get the first table in the report.
Set DBTable = Report.Database.Tables(1)
' Get the collection of connection properties.
Set CPProperties = DBTable.ConnectionProperties
' Change the database DLL used by the report from
' native Access (crdb_dao.dll) to ADO/OLEDB (crdb_ado.dll).
DBTable.DllName = "crdb_ado.dll"
' The connection property bags contain the name and value
' pairs for the native Access DLL (crdb_dao.dll). So we need
' to clear them, and then add the name and value pairs that
' are required to connect to the OLEDB data source.
' Clear all the ConnectioProperty objects from the collection.
CPProperties.DeleteAll
' Add the name value pair for the provider.
CPProperties.Add "Provider", "SQLOLEDB"
' Add the name value pair for the data source (server).
CPProperties.Add "Data Source", "ServerA"
' Add the name value pair for the database.
CPProperties.Add "Initial Catalog", "pubs"
' Add the name value pair for the user name.
CPProperties.Add "User ID", "UserName"
' Add the name value pair for the password.
CPProperties.Add "Password", "password"
' Set the table name. ' for SQL types it would be "database.dbo.table"
DBTable.Location = "Customer"
Screen.MousePointer = vbHourglass
' Set the report source of the viewer and view the report.
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub -
Trying to programmatically set the data-source for a Crystal reports report.
I've got the following existing procedure that I need to add to in order to programmatically set the data-source (server, database, username, and password) for a Crystal reports report.
I added the connectionInfo parts, but can’t figure out how to attach this to the existing
this._report object.
This is currently getting the connection data from the report file, but I now need to populate this connection data from a 'config.xml' text file.
Am I trying to do this all wrong?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.CrystalReports.Engine;
using WGS.Reports.Reports;
using CrystalDecisions.Shared;
using WGS.Reports.Forms;
namespace WGS.Reports
public class ReportService
ReportClass _report;
ParameterFields paramFields;
ConnectionInfo connectionInfo; // <- I added this
public ReportService()
public void DisplayReport(string reportName, int allocationNo)
if (reportName.ToLower() == "allocationexceptions")
this._report = new AllocationExceptions();
PrepareConnection(); // <- I added this
PrepareAllocationExceptionReport(allocationNo);
this.DisplayReport();
private void PrepareConnection() // <- I added this
//test - these will come from the config.xml file
this.connectionInfo = new ConnectionInfo();
this.connectionInfo.ServerName = "testserv\\test";
this.connectionInfo.DatabaseName = "testdb";
this.connectionInfo.UserID = "testuser";
this.connectionInfo.Password = "test";
this.connectionInfo.Type = ConnectionInfoType.SQL;
private void PrepareAllocationExceptionReport(int allocationNo)
this.paramFields = new ParameterFields();
this.paramFields.Clear();
ParameterField paramField = new ParameterField { ParameterFieldName = "@AllocationNo" };
ParameterDiscreteValue discreteVal = new ParameterDiscreteValue { Value = allocationNo };
paramField.CurrentValues.Add(discreteVal);
paramFields.Add(paramField);
private void DisplayReport()
frmReportViewer showReport = new frmReportViewer();
showReport.ReportViewer.ReportSource = this._report;
showReport.ReportViewer.ParameterFieldInfo = paramFields;
showReport.ShowDialog();
showReport.Dispose();
Any help would be much appreciated.Hi Garry,
Please post SAP Crystal Reports questions in their own forums here:
SAP Crystal Reports, version for Visual Studio
We don't provide support for this control now. Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Using Excel & ODBC data source to get data
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.user11307988 wrote:
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.Adding to sb92075's brief but accurate statement, from one of my recent presentations (note - no need for an ODBC connection):
'Need to add a reference to Microsoft ActiveX Data Objects 2.8 Library before starting
'*** This section might be in the top portion of the user form, worksheet code, or module:
'Declare a connection object in the general section to hold the connection to the database
Dim dbVMFG As ADODB.Connection
'Declare a set of variables to hold the username and password for the database
Dim strUserName As String
Dim strPassword As String
Dim strDatabase As String
Dim i as Integer
Dim intResult As Integer
Dim strSQL as String
Dim lngRow as Long
On Error Resume Next
strDatabase = "MyDB"
strUserName = "MyUser"
strPassword = "MyPassword"
'Connect to the database
'Oracle connection string
Set dbVMFG = New ADODB.Connection
dbVMFG.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=" & strDatabase & ";User ID=" & strUserName & ";Password=" & strPassword & ";ChunkSize=1000;FetchSize=100;"
dbVMFG.ConnectionTimeout = 40
dbVMFG.CursorLocation = adUseClient
dbVMFG.Open
If (dbVMFG.State <> 1) Or (Err <> 0) Then
intResult = MsgBox("Could not connect to the database. Check your user name and password." & vbCrLf & Error(Err), 16, "Excel Demo")
Else
strSQL = "SELECT" & VBCrLf
strSQL = strSQL & " ID AS RESOURCE_ID," & VBCrLf
strSQL = strSQL & " DESCRIPTION" & VBCrLf
strSQL = strSQL & "FROM" & VBCrLf
strSQL = strSQL & " MY_TABLE" & VBCrLf
strSQL = strSQL & "WHERE" & VBCrLf
strSQL = strSQL & " DESCRIPTION LIKE '%10%'" & VBCrLf
strSQL = strSQL & "ORDER BY" & VBCrLf
strSQL = strSQL & " ID"
'Add a new worksheet to the new workbook, add after the last sheet
ActiveWorkbook.Sheets.Add
ActiveWorkbook.ActiveSheet.Name = "JustATest"
snpData.Open strSQL, dbVMFG
If snpData.State = 1 Then
'Slow Method------------------------------------
lngRow = 0
'Header Row
For i = 0 To snpData.Fields.Count – 1
lngRow = lngRow + 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i).Name
ActiveSheet.Cells(lngRow, i + 1).Font.Bold = True
Next i
'Detail Rows
Do While Not snpData.EOF
lngRow = lngRow + 1
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i)
Next i
snpData.MoveNext
Loop
'End Slow Method------------------------------------
'Fast Method----------------------------------------
'Do not use this and the slow method!
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(1, i + 1).Value = snpData.Fields(i).Name
Next i
ActiveSheet.Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(1, snpData.Fields.Count)).Font.Bold = True
ActiveSheet.Range("A2").CopyFromRecordset snpData
'Auto-fit up to 26 columns
ActiveSheet.Columns("A:" & Chr(64 + snpData.Fields.Count)).AutoFit
'End Fast Method----------------------------------------
snpData.Close
End If
End IfA couple of notes:
1. Do not repeatedly connect to the database, execute a SQL statement, and disconnect from the database - connect once and stay connected.
2. Use bind variables where possible in SQL statements for constants (literals) which might change from one execution to the next - let me know if you need s code example showing bind variable usage in Excel.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
ODBC data source administrator
Hi, I have installed Oracle ODBC driver 10.2.02. I'm trying to add a system data source in System DSN tab in Control panel/administrator tools/data source(ODBC).
In the Oracle ODBC Driver configuration dialog, I select the TNS service name from the drop-down list, ORCL_SALESBOX, which points to the SALESBOX machine where Oracle database rsides.
Specify SH as user ID, then click "Test Connection", then specify its password, then click OK, In a few seconds, the message appears withe following text,
Unable to connect
SQLState=08004
[Oracle][ODBC][Ora]ORA-12154:TNS:Could not resolve the connect identifier speicifed.
I checked the Net Manager, ORCL_SALESBOX is defined as the SALESBOX, with port as 1521, sid as ORCL.
I don't know why the connect identifier could not be resolved by ODBC. I suspect SQL*Net is needed, and am not sure if it's installed at the time my ODBC driver was installed.
Could you shed some light light on this? How do you add data source in ODBC administrator?
Thanks a lot,Did u first tried to login with this username/password@connct_string on sqlplus or anyother dev tools. If this things works fine then there should be some issues with ODBC driver .
-
903/902/BC4J can't get data-sources.xml conn pooling to work in production; help
I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
instance. I've had this problem since I started deploying in development on 902. So it's
some basic problem that I've not mastered.
I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
and my BC4J apps then throw exceptions, can't get conn.
I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
-Djbo.doconnectionpooling=true
symptom
Connections are created and closed. Instead of being put back into the pool managed by oc4j,
what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
closed.
I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
being opened for each conn. ;( grrrrrrr
Does anyone have a clue as to why this is happening?
Thanks, curt
my data-sources.xml
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
connection-driver="oracle.jdbc.driver.OracleDriver"
ejb-location="jdbc/DEVDS"
location="jdbc/DEVCoreDS"
name="DEVDS"
password="j2train"
pooled-location="jdbc/DEVPooledDS"
url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
username="jscribe"
xa-location="jdbc/xa/DEVXADS"
inactivity-timeout="300"
max-connections="50"
min-connections="40"
/>
</data-sources>I've run another test using local data-source.xml, that's packaged in the .ear. Still
pooling under BC4J doesn't work??
A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
I just tested so called local connection pooling, where I edited the data-sources.xml that
gets packaged in the ear, to include the min/max params and re-ran my test.
Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
new socket and not an old pooled conn socket.
???? What the heck??
Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
pool and not close the socket??
Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
Any thoughts on how to figure out what's not configed correctly or has a bug?
Thanks, curt
Maybe you are looking for
-
HOW TO MAKE AN ANIMATION SCENE GO BACK TO THE NAVIGATION?
I'm creating this animation for a class and I'm supposed to do the following: "Build a basic animation that runs for 10 secs and then returns to the navigation area in scene one." the highlighted text is what i need to do..can anyone tell me how to d
-
How do I get actual music files to my iPhone?
After buying a new iPhone 6 and doing a restore from the backup of my iPhone 5, I find all the music listed on the new phone shows as being in the Cloud. Attempting to play the music anywhere out of wi-fi range requires downloading the files as cel
-
How can I get the demension of the START MENU
I can get the screensize by Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); I want make a frame full screen but it was covered by windows Start Menu how to get the dimension of start menu? so I can this.setLocation(0, 0); this.set
-
Hi guys, My macbook pro late(dec) 2011, doesn't boot up anymore, it just turns off after the chime (whilst a gray bar is loading a bit and then the MB shuts off)... This all happened after I upgraded to mavericks, safari and chrome were spontaneously
-
How to find multiple occurences in Hashtable
I have a hashtable in which elements are stored with their values. Elements (keys) are labelled as Dept_1_2 Dept_1_3 Dept_2_3 etc Now if I want to access all occurrences that start with letters Dept, how can I do that?? Should I use some kind of Regu