How to close all the active connections between web logic (12c) and the database without restart the server.
I tried to reset using the reset option under the servers - > Monitoring - > JDBC - > Control - > reset .
But the connections are still active , Please advise.
thanks in advance.
Related
I have an windows desktop application which uses Mssql2005 express database.
But sometimes, my application cannot connect with the database.
When I run "exec sp_helpdb", my database name is not included in the result list. And when I try to attach my database, server says "database name already exist".
What happened with my database, please help me on this issue!
My application built on .NetFrameWork3.5
Kind Regards
Are you open a connection to the database in your application and you are not closing it?
Try to check the number of your connection with this script, before you are running your app, in the middle and after it got stuck-
SELECT
DB_NAME(dbid) as DBName,
COUNT(dbid) as NumberOfConnections,
loginame as LoginName
FROM
sys.sysprocesses
WHERE
dbid > 0
GROUP BY
dbid, loginame
source
I'm using Umbraco CMS v7.4 with SQL Server 2014, the project was working fine until a few hours ago, when an error started showing up:
Umbraco cannot start. A connection string is configured but the Umbraco cannot connect to the database
The error occurs when I tried to open the website, see the image below:
I tried the following:
Checked to see if SQL Server is running
Checked the connection string credentials in web.config
Any help is appreciated.
After a few tries, even I loaded the backed up DB, I found that it caused by the DB login, the user in the connection string was having a password expiration enabled (the password had expired).
So, this is what I did:
Open the SQL server
Logged in as the user used in the connection string
Created a new password
Updated the web.config connection string "Password"
Hope this will help
So, in my case I tried to get started with the existing project. I got all the files, restored DB backup locally, made sure all permissions are set for IIS AppPool user etc. But I kept getting the error in question. It turns out that I cannot use server=localhost;database=... in connection string. After I replaced it with server=.\;database=..., it started to work right away.
Also note that if you're running it in Azure with an Azure SQL database you'll have to go to the Azure SQL Server settings and under "Firewalls and virtual networks" you'll need to tick "Yes" for "Allow Azure services and resources to access this server".
I was getting this error when running an Umbraco project locally, with the DB pointing to an instance on Azure. In that case, this problem happens if you haven't allowed the IP access within the Server Firewall of the DB in Azure.
You can fix this by finding out your IP and then adding it to the DB:
Click All Resources within your Azure portal, then click on the SQL Database your project points to.
Click Set Server Firewall on the right-side window.
Add in your IP as the start and end points, and call it something memorable.
Click Save and once you get the confirmation message that It has been applied, refresh your site locally.
I experienced the same problem and here is how I fixed it.
Right-click on your localhost in SSMS and select Properties
Got to the Security page and select "Select authentication" as "SQL Server and Windows Authentication mode"
Hit OK.
Go to Services and find your SQL Server service and restart it.
Check your local umbraco website now, you should be able to see it without any issues. If you still have problems, then you might need to check your local setup and permissions.
Further details are below and on this blog post.
Just installed Neo4j community v1.9.4 - thanks for Windows Desktop Launcher. A couple of configuration questions:
1) How can I set the webserver to listen to any connection? In the previous versions I could set the webserver to listen on 0.0.0.0; With the new version, the properties file (neo4j-server.properties) doesn't appear any longer.
2) From the desktop launcher, is it possible to change the default database starting location? I am working with a previously created database and have to point the launcher at it every time I start.
Thanks.
When you start neo4j-community.exe, a window pops up (neo-4-j Version 2.2.2).
In the lower left corner, you find a button named Options...
Press this button, and you will find the configuration files.
C:\Users\YOUR_NAME_HERE\AppData\Roaming\Neo4j Community\neo4j-server.properties
When you push "Edit..." you can edit the files you want - in your case the file in the "Server Configuration" section.
Just add
# Disable authorization
dbms.security.auth_enabled=false
But be aware of the security problems mentioned here http://neo4j.com/docs/stable/security-server.html#security-server-auth
Hope that helps
You should see the installation folder from the Neo4j web console (last tab), in there you can change the neo4j-server.properies to your existing database. Same thing goes for the listening.
I am developing VAADIN using Db4O for storage. Normally, I love the fact that I can change the source code, save it, and voi-lá: the server gets automatically restarted and I can see the changes in the browser.
But always when I restart the tomcat server I get a DatabaseFileLockedException. My workaround is to stop the server, and start it again. But doing this manually every 1 minute is annoying.
INFO:
I am using the client server configuration, but the VAADIN application itself is the DB4O server (other applications get connected to it):
ServerConfiguration serverConfig = Db4oClientServer.newServerConfiguration();
//Configure server...
ObjectServer server = Db4oClientServer.openServer(serverConfig, DBFILE, PORT);
server.grantAccess(...); //GRANT ACCESS TO OTHER APPLICATIONS
//LOCAL USE ONLY:
private ObjectContainer client = server.openClient();
//PS.: I never close the client locally. Can that be a problem?
Does someone know how to get rid of this?
Thanks in advance.
Hmm, do you even close the server. Otherwise the db4o server will keep running and produce this exception.
Is there some 'shutdown'-callback in VAADIN? Thats usually the place to close the db4o server. When you close the server all local and remote client connections will be shut down aswell or will throw an exception when accessing them the next time.
Im using a C#-Service in a Delphi application, the problem is that VS stops the debugger if i dont click anything for some time.
It looks like a debugging-timeout issue but i can not find any related configuration in VS for this. Does anybody know if there is such a Configuration and where is it?
Thanks for your Help.
Well guess i found the answer:
One have to stop the process status check by disabling the pinging property by following command:
appcmd set apppool /apppool.name: string /processModel.pingingEnabled: false
Or using the UI by:
Open IIS Manager
On the Connections pane, expand the server node and click Application Pools.
On the Application Pools page, select the application pool and then click Advanced Settings in the Actions pane.
For the Pinging Enabled property, select False to disable pinging, and then click OK.