<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://theoracle.magentaretail.com.au/index.php?action=history&amp;feed=atom&amp;title=EEPOS%3ADatabase_Suspect</id>
	<title>EEPOS:Database Suspect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://theoracle.magentaretail.com.au/index.php?action=history&amp;feed=atom&amp;title=EEPOS%3ADatabase_Suspect"/>
	<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;action=history"/>
	<updated>2026-10-22T01:59:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1503&amp;oldid=prev</id>
		<title>Jake: /* Repairing Suspect Database */</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1503&amp;oldid=prev"/>
		<updated>2017-03-27T00:52:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Repairing Suspect Database&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:52, 27 March 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l89&quot;&gt;Line 89:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 89:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: It may take some time to complete this command as the EEPOS database is replicating all data from EEE over the network again.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: It may take some time to complete this command as the EEPOS database is replicating all data from EEE over the network again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;6. Remove the previous command and copy the below command.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;USE EEPOS&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EXEC usp_ReplicateUpstreamData&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If the above command fails, this indicates that the EEPOS database was unable to send its data up to the store server or EEE Server.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Please contact Magenta Support if this occurs.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Once replication is complete the EEPOS Database should now be repaired and ready for use again.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Once replication is complete the EEPOS Database should now be repaired and ready for use again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
	<entry>
		<id>https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1496&amp;oldid=prev</id>
		<title>Jake: Created page with &quot;== Suspect EEPOS Database Recovery ==  It is possible for a database to become ‘Suspect’ for many reasons, such as:  * There was an unexpected SQL Server Shutdown, power fail...&quot;</title>
		<link rel="alternate" type="text/html" href="https://theoracle.magentaretail.com.au/index.php?title=EEPOS:Database_Suspect&amp;diff=1496&amp;oldid=prev"/>
		<updated>2017-03-17T02:32:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Suspect EEPOS Database Recovery ==  It is possible for a database to become ‘Suspect’ for many reasons, such as:  * There was an unexpected SQL Server Shutdown, power fail...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Suspect EEPOS Database Recovery ==&lt;br /&gt;
&lt;br /&gt;
It is possible for a database to become ‘Suspect’ for many reasons, such as: &lt;br /&gt;
* There was an unexpected SQL Server Shutdown, power failure or a hardware failure.&lt;br /&gt;
&lt;br /&gt;
* The database could have become corrupted. &lt;br /&gt;
&lt;br /&gt;
* The database cannot be opened due to inaccessible files or insufficient memory or disk space.&lt;br /&gt;
&lt;br /&gt;
* The database files are being held by operating system, third party backup software etc.&lt;br /&gt;
&lt;br /&gt;
The below instructions show how to recover a Suspect database.&lt;br /&gt;
&lt;br /&gt;
=== Stop EEPOS Service ===&lt;br /&gt;
&lt;br /&gt;
EEPOS and the POS Service need to be closed before performing the steps to resolve the suspect database.&lt;br /&gt;
&lt;br /&gt;
1. Close EEPOS.&lt;br /&gt;
&lt;br /&gt;
2. Open the Windows Services screen &amp;#039;&amp;#039;&amp;#039;(Control Panel →  Administrative Tools → Services)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
3. Stop the &amp;#039;&amp;#039;&amp;#039;EEPOS Service – MAGENTAPOS&amp;#039;&amp;#039;&amp;#039; service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Backup EEPOS Database Files ===&lt;br /&gt;
&lt;br /&gt;
Perform a backup of the EEPOS Database files.&lt;br /&gt;
&lt;br /&gt;
1. Browse to &amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\DATA&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
2. Make a copy of the &amp;#039;&amp;#039;&amp;#039;EEPOSdat.mdf&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;EEPOSlog.ldf&amp;#039;&amp;#039;&amp;#039; files.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; If a prompt appears saying that the files are currently in use you will need to temporarily stop the SQL Service.&lt;br /&gt;
&lt;br /&gt;
3. Open the Windows Services screen &amp;#039;&amp;#039;&amp;#039;(Control Panel →  Administrative Tools → Services)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
4.	Stop the &amp;#039;&amp;#039;&amp;#039;SQL Server (Magentapos)&amp;#039;&amp;#039;&amp;#039; service.&lt;br /&gt;
&lt;br /&gt;
5.	Attempt to copy the &amp;#039;&amp;#039;&amp;#039;EEPOSdat.mdf&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;EEPOSlog.ldf&amp;#039;&amp;#039;&amp;#039; files again.&lt;br /&gt;
&lt;br /&gt;
6.	Start the &amp;#039;&amp;#039;&amp;#039;SQL Server (Magentapos)&amp;#039;&amp;#039;&amp;#039; service again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Connect to Magentapos SQL Instance ===&lt;br /&gt;
&lt;br /&gt;
Open SQL Management Studio on your EEE Server. Then connect to the tills local SQL Database over the network using the below details.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Server Name&amp;#039;&amp;#039;&amp;#039; – Hostname\magentapos&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039; If hostname of machine is Server40, then Server name should be Server40\magentapos&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Authentication&amp;#039;&amp;#039;&amp;#039; – SQL Server Authentication&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Login&amp;#039;&amp;#039;&amp;#039; – Magentasupport&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Password&amp;#039;&amp;#039;&amp;#039; – Please contact Magenta Support for the SQL Database Password.&lt;br /&gt;
&lt;br /&gt;
[[File:SSMSLogin.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Repairing Suspect Database ===&lt;br /&gt;
&lt;br /&gt;
Once connected to the Tills SQL Database, follow the below steps to check and repair and corrupt data on the EEPOS Database.&lt;br /&gt;
&lt;br /&gt;
1. Begin a new query by selecting &amp;#039;&amp;#039;&amp;#039;New Query (CTRL+N)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
2. Copy the below SQL command into the new query window.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EXEC sp_resetstatus EEPOS;&lt;br /&gt;
ALTER DATABASE EEPOS SET EMERGENCY&lt;br /&gt;
DBCC checkdb(EEPOS)&lt;br /&gt;
ALTER DATABASE EEPOS SET SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;br /&gt;
DBCC CheckDB (EEPOS, REPAIR_ALLOW_DATA_LOSS)&lt;br /&gt;
ALTER DATABASE EEPOS SET MULTI_USER&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Select &amp;#039;&amp;#039;&amp;#039;Execute (F5)&amp;#039;&amp;#039;&amp;#039; to run the command.&lt;br /&gt;
&lt;br /&gt;
This command should bring the database out of suspect mode and repair any corrupt data if possible.&lt;br /&gt;
&lt;br /&gt;
4. Once completed, the EEPOS database should no longer be marked as suspect and should be accessible.&lt;br /&gt;
&lt;br /&gt;
5. Remove the previous command and copy in the below command.&lt;br /&gt;
&lt;br /&gt;
This command will replicate all data from EEE down to the till again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;EXEC usp_ReplicateMasterTablesLoop 1,10000&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: It may take some time to complete this command as the EEPOS database is replicating all data from EEE over the network again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once replication is complete the EEPOS Database should now be repaired and ready for use again.&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
&lt;br /&gt;
Perform the below steps to ensure EEPOS is working correctly.&lt;br /&gt;
&lt;br /&gt;
1. Open the Windows Services screen &amp;#039;&amp;#039;&amp;#039;(Control Panel →  Administrative Tools → Services)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
2. Start the &amp;#039;&amp;#039;&amp;#039;EEPOS Service – MAGENTAPOS&amp;#039;&amp;#039;&amp;#039; service.&lt;br /&gt;
&lt;br /&gt;
3. Open EEPOS and check that you can search for products (F4.&lt;br /&gt;
&lt;br /&gt;
4. Search for a customer (F12).&lt;br /&gt;
&lt;br /&gt;
Once EEPOS is running again, we recommend reviewing the SQL Server logs to check for what caused the database to become suspect, to ensure the problem does not re-occur.&lt;br /&gt;
&lt;br /&gt;
The SQL Server logs can be found under - &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;C:\Program Files\Microsoft SQL Server\MSSQL11.MAGENTAPOS\MSSQL\Log&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Jake</name></author>
	</entry>
</feed>