Error during replication from Oracle to SQL Server 2014 - sql-server

I am implementing a replication from Oracle 12c server to SQL Server 2014 Enterprise Edition.
I have set up the Publisher successfully. .
I am bringing in 2 table elements into SQL Server. These contain date fields
Refer Date Field Mapping done on Publisher
The Subscription gets created fine and when the replication agent runs for the first time, I am facing following error:
Replication-Replication Distribution Subsystem: agent ServerName-TNSNAME-PublisherName-1 failed. The process could not bulk copy into table '"dbo"."Destinationtable"'.
The SQL Logs at C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log contain the minidump of the process when it failed. They mention that SQLSERVR.exe faced a fatal exception
Dump File: SQLDump0004.mdmp : C:\LOgs\SQLDump0004.mdmp
Last Write Time: 5/12/2016 11:02:15 PM
Process Name: sqlservr.exe : C:\Program Files\Microsoft SQL
Exception Code: 0xC0000005 Exception Information: The thread tried to
read from or write to a virtual address for which it does not have the
appropriate access. SqlDumpExceptionHandler: Process 66 generated
fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is
terminating this process.
Need help going past this error.

Related

Error in Restoring backup to secondary database using log shipping

I'm trying log shipping between two SQL VMs. The backup is getting generated properly but its not getting restore on secondary database. The error says that the restore job is not able to open the .bak file of the database.
Below are the error details:
TITLE: Microsoft SQL Server Management Studio
------------------------------
SQL Server Management Studio restore database 'TestDB1'
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (SqlManagerUI)
------------------------------
Cannot open backup device '\\vm-p\NetworksharepathTlogs\TestDB1.bak'. Operating system error 5(Access is denied.).
RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3201)
There were 3 sections when configuring log shipping so the first step that was primary backup setting was successful. And backup got generated in the folder. I have given full control to the users involves read, write ,etc. But still my log shipping is failing coz of this error.
In second step of log shipping two actions were performed one was restoring database to secondary server and other is saving secondary destination configuration . So I separately run the jobs and found that restoring database to secondary is causing an issue. This error is thrown on that step failure.
Please help me to solve this issue.
Thanks in advance.

SQL Server crash

I had SQL Server 2016 in one of our servers, then I decided to install SSIS AND SSAS for Bi purpose, and I tried to install these two services (SSAS AND SSRS) in another instance.
After installing the second Instance, I noticed that: I can't connect to the first instance SQL databases (It has been somehow replaced by the second instance).
I get this message when I connect to database:
I get this message while restarting the service:
In SQL Server configuration manager there no service for the first Instance:
That's the last records in my SQL log file:
2020-08-23 14:46:11.87 Backup RESTORE DATABASE successfully processed 96898 pages in 21.859 seconds (34.631 MB/sec).
2020-08-23 17:35:02.25 Server SQL Server is terminating because of a system shutdown. This is an informational message only. No user action is required.
2020-08-23 17:35:02.32 spid12s Always On: The availability replica manager is going offline because SQL Server is shutting down. This is an informational message only. No user action is required.
2020-08-23 17:35:02.53 spid40s Service Broker manager has shut down.
2020-08-23 17:35:02.53 spid40s Error: 17054, Severity: 16, State: 1.
2020-08-23 17:35:02.53 spid40s The current event was not reported to the operating system error log. Operating system error = (null). You may need to clear the operating system error log if it is full.
2020-08-23 17:35:02.53 spid12s .NET Framework runtime has been stopped.
2020-08-23 17:35:09.04 spid12s [INFO] Database ID: [18]. Cleaning up StorageArray. LastClosedCheckpointEndTs: '55'
Questions:
How can I get back to my previous state of SQL Server (the mdf and ldf files exist in their location but I can't find masterdb files)?
Is there a way to restore users and SQL jobs?

SQL Server 2019 service won't start

I just downloaded and installed SQL Server 2019 on my Windows 10 machine. But I was not able to connect to it via SSMS.
I went to the services and saw that "SQL Server (MSSQLSERVER)" service is not started. When I start the service it shows message
The SQL Server mssqlserver service on local computer started and stopped
I checked for event log and there is an error:
SQL Server is terminating a system or background task Logwriter Task due to errors in starting up the task (setup state 8).
In SQL ErrorLog I can see following lines that I think are relevant.
Error: 17312, Severity: 16, State: 1.
2019-11-04 01:12:49.11 spid2s SQL Server is terminating a system or background task AzureLeaseRenewalTask due to errors in starting up the task (setup state 8).
2019-11-04 01:12:49.11 spid1s CImageHelper::Init () Version-specific dbghelp.dll is not used
2019-11-04 01:12:49.11 spid2s Error: 28709, Severity: 16, State: 19.
2019-11-04 01:12:49.11 spid2s Dispatcher was unable to create new thread.
2019-11-04 01:12:49.13 spid1s ***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\LOG\SQLDump0007.txt
2019-11-04 01:12:49.13 spid1s SqlDumpExceptionHandler: Process 1 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

How do I create a new SQL database in Visual Studio 2015 for the first time?

I'm very confused, when I try to create a new database in Visual Studio 2015 when I right-click --> Add new item --> SQL Server Database, I get an error saying "A network-related or instance-specific error occurred while establishing a connection to SQL Server." I think this means I don't have the SQL Server running, which is correct.
But when I try to start the SQL Server, it gives me the error "Windows could not start the SQL Server (SQLEXPRESS) on Local Computer) (Error code 17113). The event viewer gives me this error "Error 3(The system cannot find the path specified.) occurred while opening file 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary." which I believe means that it won't start because there is no database.
So how am I supposed to create a database on a running SQL server when the SQL server won't run unless it has a database?
I don't know if this is relevant but I created it as an ASP.NET empty web site.

TransactionProxyException is thrown while creating a BizTalk Group

I'm trying to create a BizTalk Group on BizTalk Server 2013 using this documentation:
http://msdn.microsoft.com/en-us/library/jj248696%28v=bts.80%29.aspx
But it fails on creating group (It succeeds creating SSODB).
The error in the log file is:
[Group] Failed to configure with error message [Exception of type 'System.EnterpriseServices.TransactionProxyException' was thrown.]
For additional information: While it's doing the configuration I watched the Database Server and saw that It created the 3 databases successfully (BizTalkMgmtDb, BizTalkMsgBoxDb, BizTalkDTADb) but after it fails for some reason it rollbacks and deletes the created database.
Something to notice is that while rolling back the changes, all created databases are deleted expect BizTalkMgmtDb which fails to drop.
There's also this lines in the log before it starts to roll back:
2014-04-22 12:24:10:0729 [INFO] WMI Deploying 'C:\Program Files (x86)\Microsoft BizTalk Server 2013\Microsoft.BizTalk.GlobalPropertySchemas.dll'
2014-04-22 12:24:14:0563 [WARN] AdminLib GetBTSMessage: hrErr=80070002; Msg=The system cannot find the file specified.;
2014-04-22 12:24:14:0565 [WARN] AdminLib GetBTSMessage: hrErr=c0c02560; Msg=Failed to read "KeepDbDebugKey" from the registry.
The system cannot find the file specified.;
2014-04-22 12:24:14:0566 [INFO] WMI Error occurred during database creation; attempt to rollback and delete the partially created database'sql-srv\BizTalkMsgBoxDb'
Question: What this exception is about and how can I resolve it?
FYI: I'm using BizTalk Server 2013
Hopefully, you just need to correct you MSDTC settings.
This article at TechNet has all the details: http://social.technet.microsoft.com/wiki/contents/articles/6917.biztalk-server-2010-msdtc.aspx
BizTalk Server 2013 and 2010 are identical in this regard.
It looks like your BizTalk Server is not properly installed.
Please try the following steps:
Repair the BizTalk Server installation
Go to SQL Server Management Studio and delete remaining BizTalk databases including SSO database
Configure the BizTalk
Create BizTalk Group

Resources