database-connection

Expired Database Password and Still-Alive Connections

一个人想着一个人 提交于 2019-12-24 15:12:07
问题 I open a few oracle connections with oracle jdbc. And I need to test a certain case where the db's password gets expired and the connections should be not working. However, when I manually expire the db password, the connections still stay open and working. What should I do for connections to get closed or to get closed when I expire the db password? 回答1: If a user password expiration occurs in the middle of an already established connection(session), it will not end a user session - the

SQL Server: database on network share

。_饼干妹妹 提交于 2019-12-24 15:03:29
问题 I have a SQL Server installed on my PC (a terminal). I want to create a new database which its files (mdf & ldf) will be located on a network share. From the files explorer I can easily see the share, but from the user interface of the SSMS - I don't. Is it possible technically to do it? Is it possible to configure the instance to "see" remote drives? 回答1: The reason for not being able to see network shares in SSMS is probably becuase of performance and reliability issues when placing

'Too many connections' created in postgres when creating a dashboard in Pentaho

不问归期 提交于 2019-12-24 13:24:47
问题 I was creating a Dashboard in Pentaho PUC which uses a postgres connection as the data source. Most of the time this causes the postgres to say Too many clients already in Postgres' SHOW max_connections; Query shows maximum connections of 200 I used this query select * from pg_stat_activity; . From that 90% of connections are from the Pentaho server to the database I use as the datasource in my new dashboard. waiting is f and state is idle in most of the connections. This looks like Pentaho

Refresh BackgroundQuery:=False | help needed?

淺唱寂寞╮ 提交于 2019-12-24 12:41:06
问题 I've looked at some others with the same error but their solution doesn't help me. Refresh BackgroundQuery:=False Error 1004 Here is my code ' ' LoadData Macro ' ' With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;Macintosh HD:Users:Karrar:Desktop:Excel.txt", Destination:=Range("A1")) .Name = "Excel" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .RefreshOnFileOpen = False .BackgroundQuery = False .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData =

Ads Server settings not used in .net application using Advantage.Data.Provider

若如初见. 提交于 2019-12-24 12:02:57
问题 We're connecting to an Ads server with a .net application using the Advantage .NET Data Provider. The ServerType = REMOTE. The max. connections on the server is set to 150. When we connect from a client we get a "6303 Maximum Advantage Database Server connections exceeded" error. Turns out it uses the default 50 max. connections for an application. When we place an ads.ini file with MAX_CONNECTIONS set to 150 in the folder of the .net application (where also the Advantage.Data.Provider.dll

Spring - Hibernate - JBOSS - No ManagedConnections available within configured blocking timeout ( 30000 [ms] )

纵然是瞬间 提交于 2019-12-24 11:36:49
问题 I am using Spring 3.0.1 and Hibernate 3.2 with JBOSS 4.2.2 and we are using Spring transaction management to manage the transactions. My code implementation runs a huge job that runs for nearly 10 minutes.The spring service bean RunJobBean.java is the entry point for my job and this instantiates a number of independent threads (each performing different DB updates and other logic etc) and these threads invokes the hibernate DAO beans (These are injected into RunJobBean which passes on to

Web.config entry to connect to SQL Server

泪湿孤枕 提交于 2019-12-24 11:27:51
问题 Well I'm trying to change the connection of my application from Oracle to SQL Server. I have this in web.config. <compilation debug="true"> <assemblies> ... <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> ... </assemblies> </compilation> and <appSettings> <add key="DatabaseProvider" value="Test.App.Oracle8i"/> <add key="SmtpUser" value="mail@example.com"/> <add key="SmtpPassword" value="testpassword"/> <add key="SmtpDefaultSender"

Connect to GoDaddy server database from localhost computer

坚强是说给别人听的谎言 提交于 2019-12-24 11:24:44
问题 I programmed a website in PHP that uses a MySQL Server through GoDaddy. I have the same code saved on my local computer and sync it with the directory on GoDaddy through an app. I also use XAMPP on my computer to test any changes I make to the website before I make the changes public. However, the localhost server is different and in no way connected with the cPanel GoDaddy server. Therefore, if something new is added to the database on the public server, I would have to Download the sql file

Error creating bean with name 'mongobee' defined in class path resource

帅比萌擦擦* 提交于 2019-12-24 10:36:58
问题 I have no Idea why this error occurs, I did not do anything, created a new vagrant machine with latest version of jhipster created new microservice and started the application, i get the below mentioned error, any help? 2017-07-20 07:36:58,144 ERROR restartedMain o.s.b.SpringApplication:771 - Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongobee' defined in class path resource [com/nearbuy/ngservice/config

Centralised database connection string provider

99封情书 提交于 2019-12-24 10:28:14
问题 I'm building an application that accesses various databases. Currently the connection strings are stored in the App.Config file. However I'd like to be able to configure the connection strings for the database more easily. I'm considering having a single "master" database that contains the connection strings for all the other databases. This would mean that each application that requires a database connection would lookup the connection from the master database. The App.config file could