I'm trying to setup a S2S VPN connection between Oracle Cloud and Azure. I am able to get the connection up and it is connected on both ends. After around an hour the Oracle Cloud side dies and the IP-sec status is down on the Oracle side. The Azure side is still in connected state.
I suspected some issue with the IPsec policy so i have played around with different policies but all with the same result.
The connection comes up, and dies on Oracle side after around an hour.
I have cross references the settings with both IPsec config support matrixes.
https://docs.cloud.oracle.com/en-us/iaas/Content/Network/Reference/supportedIPsecparams.htm
https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-compliance-crypto
I reached out to OCI support and they got this PFS2 Group changed from Group5 on the OCI side within 2hrs. Granted it takes almost 20mins to open up a ticket with all of the OCID info but the Sev1 Team got it done quick.
We are able to fix the issue by updating the PFS group to 2 Oracle side.
I reached out to Oracle and they managed to change the setting for Perfect Forward Secrecy
(PFS) to support the preferred Azure PFS setting (PFS 2). This stabilized the connection.
Related
Currently using version 7.13.2 with MySQL database.
When the usage in production server is high (with alot of concurrent user), Umbraco tend to create alot of database connection to handle those job. Those connection is not close after used but sleep.
Umbraco would continue to create more database connection when necessary until it reach the database max pool size.
Is this the intention behaviour by Umbraco? Else, how could we configure this issue?
After hundred hours of debugging, I finally found out the cause and the solution is easy.
This bug has nothing to do with Umbraco, it handles the connection perfectly. Umbraco using MySql Connector when connecting to MySql database. When the connection close, it is actually not close but instead, added to connection pool. Please refer to link below for more information.
MySql Connection not closing using .net MySql Connector
The solution as suggested from the link, just adding "Pooling=false" as a string parameter into connection string. The connection string locate inside the web config.
enter image description here
We have to connect to 2 schemas on the same instance.
When I set up the server connection the first time using this server syntax.
PARIEL=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SESKOVLGDBP23.mycompany.net)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PARIEL)))
I am asked for the credentials.
When I come to create a different connection to the same instance, but using different credentials...it sees that the server is the same, and just automatically logs me in with the old credentials.
Surely you can have 2 connections to the same instance using 2 different credentials? We do this in Spotfire all the time, so assume it is possible.
Thanks
After rebooting my Windows Server 2016 Standard (SQL Server 2016) my SSIS process that runs this query:
select * from openquery(HRMPROD, 'SELECT QUERY HERE' )
started failing with this error:
I get the same error if I try to run the query in SSMS. I have the same linked server set up on my test instance and the query is successful when I run it there. I have compared the linked server create script on both instances and it is the same.
Any idea where I should look for what is causing the connection issue on the one server but not the other?
Thank you.
Saying the answer is on the Oracle side is just like pointing fingers across the way. Let's just fix the issue here.
There is a connection string that is used from SSIS, (which you also used in SSMS) The connection string contains three main components to connect and would result in the 12154 error if any of them were incorrect:
Host
Instance name (different than Instance on Sql Server, think database name)
port
The port most likely hasn't change, neither has the database name, but the host...No, hasn't changed, but the DNS server used to connect most likely has! I would ping the host and see what returns from the SSIS and your SSMS host that you're using. I would expect it to fail. Find out what IP address the host is using and ping that - see if it returns. I'm guessing that's the change that needs to be updated or your Network folks need to fix a DNS configuration/server issue.
Hope this helps!
Kellyn
Since you are getting a response from the TNS Listener, the problem lies on the Oracle side. See Architecture of Oracle Network Services for an overview of how the Oracle networking handles things. Keep in mind that based on the error message you've reached the TNS Listener, so you only need to check things between TNS and the Oracle database... In other words, your networking and SQL Server settings are fine or you wouldn't be able to get this error message.
I would agree with above that the issue might have to do with the network. I have come across that a few times, where we can set everything up, but a firewall is blocking communication between the two servers.
Open up powershell on the new server and run a tracert to the target to see the hops and identify if is connecting across the network.
If it is, then run a test-netconnect on the specific port, to see if the port is open from the firewalls.
Cheers!
Actually i have following step by step from http://www.windowsazure.com/en-us/manage/services/sql-databases/getting-started-w-sql-databases/ to create database and etc.
But when i try to login using username and password which i have configured,message error appear " Failed to retrieve connection information. Try to login again. "
I have configure firewall before to allowed my public ip to access the database.
How to solve my problem ?
Thanks
Clear your cookies and browsing history and contact Microsoft support if this persists after some time (like an hour)
That is very interesting problem.
What about checking connection with Microsoft SQL Server (can be Express edition).
If you configured firewalls then you should be able to access Azure database via Microsoft SQL Server Management Studio from your system with no problems.
Alternatively you could check Visual Studio. But I am not sure if Visual Studio Express edition can connect to Azure databases (you might need some paid version).
If you still have some connectivity issue using SQL Management Studio then that would indicate some networking problems between your place and Azure data centre. In that case I would recommend spinning up another Azure database (for very short time) in different data centre, set up firewalls and see if that will work.
EDIT
Any way to configure Firewall for Azure ?
Firewall to database cannot be configured at a level of individual databases; it needs to be configured at a level of server.
In Windows Azure Management portal, go to Database tab and then select database server:
Once you in server dashboard, select configuration top tab. You can change DB Server firewall allowed IP addresses under Allowed IP Addresses
In the same section there is Current Client IP Address which tell you the current IP. That very handy when you work with VPN or change your network quite often.
Allow popups. Chrome was blocking this from me.
For testing purposes. One option is to disable network connection but this seems to disable IIS for some reason.
I would like to prevent a web service to have a connection to a db on different machine. Changing anything on server side is not an option.
EDIT: I have to do this on specific point during the Web Service's (and it's consumer's) execution. I'm trying to simulate a situation where the connection to db is suddenly lost while serving a request.
If you are using TNS based naming for the database, remove the name temporarily from the tnanames.ora file.
To do it at the OS level, configure your Windows 7 Firewall (advanced seting). Add an outbound block rule for the IP/port of the DB server.