Cannot connect to Oracle database during Visual Studio debugging - oracle

I am having an issue connecting to an Oracle database when running an SSIS package in debugging mode in Visual Studio. I am using Visual Studio 2012 with Data Tools installed and an Oracle 10g client.
I am using the Oracle Provider for OLE DB that came with the 10g client. I can create a Connection Manager connection to the server and test connectivity fine. I can also preview the data from my query in the OLE DB Source editor. It only fails to connect during debugging.
The actual error message is:
Error: 0xC0202009 at TW_Billing, Connection manager "server.schema": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-12154: TNS:could not resolve the connect identifier specified".
Error: 0xC020801C at Data Flow Task, ERDB Billing45 Source [2]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "server.schema" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Data Flow Task, SSIS.Pipeline: ERDB Billing45 Source failed validation and returned error code 0xC020801C.
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
Most of the research I have done on this issue points to a 32bit error. I tried setting the ForcedExecutionMode to Int32 and ForceExecutionMode to True. I also changed the project properties to Run64bitRuntime to False. Neither of these made a difference.
If it makes a difference, we are using LDAP for Oracle connections. That said, I usually dont have an issue connecting to the TNS Names server (I.E. I can connect to the Oracle server any which way other than in Visual Studio debugging mode).

So I apparently failed to install Oracle Developer Tools for Visual Studio:
http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
Installing this in a new Oracle Home location and re-starting Visual Studio solved my issue. Packages now run during debugging correctly.

Related

How to connect an oracle database in visual studio

I already downloaded the oracle developer tools for VS, then I tried connecting HR to Visual studio with this configuration:
my configuration
but gives me this error:
ORA-12514, TNS:listener does not currently know of service requested in
connect descriptor
how do i resolve it?
Your configuration specifies to request a connection to service 'orcl'. But the error message says the database listener (the process responsible for handling the connection request) does not know of any database services 'orcl'. To fully debug, we'd need to see the output of the command 'lsnrctl status', as executed on the database server machine. Most like cause is that the database itself is not started, and thus is not registered to the listener.

Local Db failure on initialization of template

I'm trying to setup a startup template to play around with boilerplate and see what it could potentially offer and I'm running into issues setting up my local database.
I've tried the core startup template download as well as MVC 5 and they've both given me the same issue so far. I'll open up the solution in VS 2017, clean the solution, rebuild, enter Package Manager Console and execute Update-Database on the EntityFramework project and I get this error on both projects,
ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20
A network-related or instance-specific error occurred while establishing
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: Named Pipes Provider, error: 40 -
Could not open a connection to SQL Server)
I'm having a hard time understanding what this might be indicating. I'm pretty sure I've been able to use my local db in other projects recently.
You need to set up an empty database and provide a valid connection string in appsettings.json.
You can use Microsoft's SQL Server.

Oracle Connection in SSIS error

I have searched the message boards and found some suggestions but have not had any luck in resolving issue.
I have an existing SSIS package that connects to an Oracle database instance called 'read_79'. That connection works fine.
I have added a new connection to the existing package called 'read_91' and I am getting errors when trying to debug the package.
Error = Error: 0xC0202009 at SMS_Stats, Connection manager
"read_91": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has
occurred. Error code: 0x80004005. An OLE DB record is available.
Source: "OraOLEDB" Hresult: 0x80004005 Description: "ORA-12154:
TNS:could not resolve the connect identifier specified". Error:
0xC020801C at Import Bulletin Stats, 91 Bulletin Stats [487]: SSIS
Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager "read_91"
failed with error code 0xC0202009. There may be error messages posted
before this with more information on why the AcquireConnection method
call failed.
Here is the connection string that I am using - Data Source=cm9.FQDN;User ID=read;Provider=OraOLEDB.Oracle.1;Persist Security Info=True;
This string is the same as what is being used for 'read_79' but updated with the 'read_91' data. And when I perform a test connect from within the connection manager, it comes back as successful.
Any suggestions would be greatly appreciated!

Error connecting to SQL Server 2012 database

I saw all threads regarding this query in stack overflow. But I Can't find any solution
In the morning when I was trying one project on Visual studio 2010 it was working perfectly fine and now after restart while running Visual studio project I get this error and even my SQL Server 2012 is not connecting what must be the problem ?
Error:
A network-related or instance-specific error occurred while establishing 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 Locating Server/Instance Specified)
I found Solution to this problem . i'm Instance was proper but TCP/IP was disabled
Go to SQL server configuration tool and open sql server configuration manager . Click on the instance you want to change . Click on protocols and then enable TCP/IP . IT works fine now :)

Issue with SQLLOCALDB

When in try to start azure storage emulator i get the following error.
Probing Failed. Retrying probe for localDB
Probing SQL Instance: '(localdb)\v11.0'.
Caught exception while probing for SQL endpoint. A network-related or instance-specific error occurred while establishing 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: 50 - LocalDB error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
)
Number of SqlErrors Reported: 1
SqlError: System.Data.SqlClient.SqlError: A network-related or instance-specific error occurred while establishing 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: 50 - LocalDB error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
)
LocalDB is installed but is not functioning properly. You may be missing prerequisites. Make sure you have .NET 4.0.2 or higher installed.
No SQL Instance found.
One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again. Please refer to go.microsoft.com/fwlink/?LinkID=248088 for more details.
I installed .net 4.0.2 also. I tried uninstalling and installing sqllocaldb as well.
Any help is highly appreciated.
I had the same problem.
After installing .NET framework 4.5, the problem is gone for me.
I was also facing same kind of problem when reinitializing Storage Emulator. I used "Autodetect" parameter at command prompt and it worked for me.
DSInit /sqlinstance:(localdb)\v11.0 /Autodetect /ForceCreate
Hope this help to you too.
Amit
It would be better if you can check again if local DB is correctly installed and started. Please refer to SQL Server 2012 Express LocalDB for more information.

Resources