How to reload file_snapshot in SymmetricDS - symmetricds

I have a filesync configured in a one way direction and suddenly all the records of the 'sym_file_snapshot' table have been deleted. Well, what i'd like to know is if there is a way to reload this table without to send all the files to clients again.
Thanks in advance.

Without a deep knowledge in symmetricDs I wouldn't recommend manual update of this and other sym_* tables. touch all files that are under file synchronization, let them have synced to targets, wait a bit and everything should be fine.

Related

SymmetricDS sync to same node

I am trying track changes to a table via SymmetricDS (v3.7.32), use two specific columns and route them to another table on the same node.
I've added the trigger, router and trigger_router records, and my trigger seems to be working as I can see the record appearing in sym_data, however even with a table of exactly the same format, the table is not being loaded.
I cannot see relevant batches in sym_incoming_batch on the same server, which I assume I should from the same channel.
I have other tables being replicated, so the config is all correct, I am not seeing any errors on the batch, but nothing seems to be happening on the router side, though in sym_data_event, I can see that the record has the correct router_id ... it just doesn't seem to be doing anything.
Can anyone shed any light on this issue for me?
I think that two engines will have to be declared declared on the same SymmetricDS instance to sync the data between two tables within the same DB

Need advice with multiple people working on an Access Database

This may seem like an ignorant issue, but I am inexperienced with Access. This is for a school project. I am in a group of 5 people who are all working on a database. We were wondering: what is the most efficient way for multiple people to work on a database without sending the database file to and fro or just putting a copy on a file sharing service? Is there a way we can all log in and modify the same database?
There is a way to do this. If you put the database file in a shared location where everyone can access it. You need to change the database locking options so that multiple users can make changes to it.
In Access 2013 go to File->Client Settings->Advanced and change the Open Mode to shared, also change Record locking to Edited Records - this will enable uses to make changes but not to the same record.
If you want users to make changes to the same record select No Locks but it is not a good idea as if two users change at the same time the last one will be saved.
As for file sharing service, well, this expert and this one too say it doesn't work.

SymmetricDS synch from view

I'm looking at the features of SymmetricDS (last version symmetric-server-3.7.24) and in their forum I read it is actually possibile to synch from a view.
So I tried to synch from a view but when I run the program I got an error because symmetricDs cannot create a trigger on the view.
I also read that if a use a materialized view, then the trigger should be created.
The view is on a sqlserver 2008. I dropped the view and create a new one with schemabinding and add a cluster index on it. I also check that all the options are set as required in the MSDN guide to create indexed table.
I run symmetricDS again but still fail to create the trigger on the view.
Can anyone help me?
If what I ask is actually not possibile, then it is possibile to craete an extension that does not use trigger to synchronized the tables? I don't care that the two db are synched realtime, I can use a scheduled job, it will be just fine.
Thank you for you help and suggestion.
BTW: I can also change tool you you know a better one :)
I don't think that's a supported use case. However, you can try setting the sync_on_insert/update/delete fields to 0 on the sym_trigger. Then you would be able to sync the view with an initial load or by scheduling reloads (see "symadmin reload-table" command).

Tidy up DotNetNuke database tables

I've inherited the maintenance of a DotNetNuke (v6.2.0.1610) site, and one of the things I'd like to do is to tidy up the database tables being used.
It looks like there might have been two installations of DNN into the same database (I'm guessing, I don't know its history and cannot find out), I'm making this assumption because there are two sets of DotNetNuke tables.
For example, we have:
dbo.Portals, dbo.PortalSettings, dbo.Profile, dbo.Roles, etc.
However, then we also have the same set, prefixed with dnn_ -
dbo.dnn_Portals, dbo.dnn_PortalSettings, dbo.dnn_Profile, dbo.dnn_Roles, etc.
I spent a good while tearing my hair out when I could not get our portal to load, when I discovered it is because I was editing the dbo.PortalAlias table and I needed to be editing the dbo.dnn_PortalAlias table instead.
I wanted to avoid this future maintenance headache, so I backed up the database, and set about deleting all the tables without the dnn_ prefix (web.config specifies objectQualifier="dnn_"). I diligently ensured there was a matching dnn_ table before deleting any.
At first it seemed fine - the portal loaded and all the content was there, I thought I was on to a winner. However when I logged in and accessed the site admin section, that's when I started to get lots of error messages. So I figured I'd deleted too much, I restored the backup, and all is well - portal working again.
However, I really would like to get rid of the unnecessary tables, because no doubt at some point in the future I'll start doing some work on the database, forget about the dnn_ prefix and waste a bunch of time wondering why something isn't working.
So, as a bit of a DotNetNuke newbie, I'm after some help - how can I know what tables are in use, what aren't, and how can I set about tidying up the SQL Server tables? Thanks.
I suggest you to delete only the tables which have an equivalent with the "dnn_" prefix.
The DNN database should contain at least the "aspnet_" prefixed tables which are used for the authentication on the portals.
Then, you could have some extensions which could use tables without the "dnn_" prefix. It depends on the sql scripts that those extensions have used during their installation. I hope that those extensions don't run queries on the dnn tables without the "dnn_" prefix. Otherwise it could explain the errors you've encountered.
You could use the SQL Server Profiler to check it.
It turns out there was a view, dnn_Lists which was still referencing dbo.Lists without the dnn_ prefix.
I fixed this view and it's fine now.
(PS: Turns out that it's useful to set IsSuperUser = 1 in the users table for who you're logged in as, because then you get the full exception details and can fix it.)
Thanks
It would make sense to delete all tables WITHOUT "dnn_", but you said you got a problem.
If you have time and patience and is adamant about tiding things up, I would delete 1 table at a time and test the admin feature it broke last time until you find the culprit. That is a long shot, but that is how I would approach.
What might be happening here is that you may have a 3rd module installed that ignores the objectQualifier and when you deleted those tables, you then broke that module.

How important is the jos_ja_website_activity table in Joomla?

I was wondering how important the information in the jos_ja_website_activity table in Joomla is? The reason I ask is that it has 3 million records and when my external backup system is backing up the DB, it takes ages to backup. While it's taking it's time to back up, Joomla cannot access the table and seeing as it accesses the table for every page load, my site then goes down while the backup is doing it's work.
So my question really is if i empty the table is this going to affect my system at all? Also is there a way to stop it from logging information to that table or is it essential that it does?
Thanks for your help!
jos_ja_website_activity is not a core table, it must have been added by a third-party extension. My guess is that you could empty it without serious consequences. However, you might want to find out which extension is generating this log. The 'JA' in the table name may stand for JoomlArt, which is a popular commercial extension club. I'd start by looking for a plugin, template, or component in the system done by JoomlArt and seeing if there's a control panel where you can turn off logging.

Resources