Do you use erssd ? or rssd in an ASE server ?
Before starting RS you need to have (e)rssd to be up and available first.
HTH
Avinash
Do you use erssd ? or rssd in an ASE server ?
Before starting RS you need to have (e)rssd to be up and available first.
HTH
Avinash
Hi Avinash
Thanks for your reply. I use the Embedded RSSD.
When I run repserv.exe ERSSD is also started and becomes available at the same time.
Br, Mads
We had a problem where a repserver crashed with a segmentation fault and an insert was silently lost to a subscription DSI connection database. We have several subscription replicate databases, but only one was missing a single row. It's not bad considering how much data we're moving, but the customer is still complaining.
I'm going to research the cause of the seg fault with tech support, but my is there any possibility of setting the save_interval for the non-warm standby DSI connection so that the repserver automatically reapplies transactions that it thinks were recently delivered, when the repserver is booting?
Just for background for others reading this, save_interval!=strict isn't typically used with logical/warm-standby connections because it can result in data loss.
Thanks in advance
Ben
Hi Benjamin
What you are suggesting using a save_interval will work fine for the non-warm standby DSI connection.
I do hope you opened an incident to investigate the supposedly silent loss of an insert when the SRS crashed? That should not have happened and from a support standpoint should be investigated.
Regards
Terry
SAP/Sybase replication is robust to handle start/stops of various components. So what you observed looks like an exception.
I can understand the concern/complain from a customer because single insert missing can be a big issue if it was for a huge dollar amount e.g. a big stock trade transaction.
At the same time setting up user expectation will also help. E.g. in replication system you should emphasize that primary data is "the" standard set of rows. So you can always materialize table or missing rows etc. In case of crashes you could have some sanity checks like row counts etc. built to point out exceptions. You could also use rs_subcmp utility to monitor the health of critical data between primary and replicate(s) databases.
If users/developers are ready to go extra mile you could creatively use identity column to find any gaps in case of crash. Home grown check-sums for rows in a table could be another way of maintaining accuracy.
save_interval may help. It will also increase your disk space requirements depending on what number you choose.
HTH
Avinash
Re: Save interval will work for a non-standby DSI connection.
After reading things some more, for repserver to ASE connections, the repserver documentation only talks about explicitly replaying save_interval transactions using the "sysadmin restore_dsi_saved_segments" command after a ASE dataserver crash (w/loss of recently applied data in the ASE server). At least, as far as I can find.
Note that in the documentation for the "sysadmin restore_dsi_saved_segments" it says:
"The DSI must be explicitly suspended before you can use this command to restore saved segments."
So for my scenario (after a hard repserver crash), maybe I have to boot the repserver in standalone mode (boots with all DSIs down by default), run the restore_dsi_saved_segments command on all DSIs, then reboot the repserver in normal mode.
I'll run a test and see what happens. Stay tuned for updates
Hi Terry
Thanks for your reply. Very odd, I have only expirienced ra_init creating a service for the sample_rs replication server.
But making a service myself should also work I guess. But the problem seems to be that the start of the server 'hangs'. As shown in my initial post, also when starting the server from command line, the prompt hangs, and if closing the window: the server stops. So when I start it as a service, windows doesn't get proper reply, since the program hangs.
Is this normal behavior?
Br, Mads
No, I am talking about Sybase stream replication - not Oracle.
Sybase replication server move forward to include a lot of advanced options - many of these are licensed. Stream replication too is something relatively new. Unfortunately there is still no publicly available documentation released on it - even though it is already an active part of some of the out-of-the-box solutions wrapped into SAP ASE...
The server doesn't 'hang' when starting from a command line. You are seeing normal behaviour. This is seen on Linux/Unix as well. All output once it starts goes to the .log file, not the console.
When starting on Linux, I usually have to start as follows:
nohup RUN_<>_RS &
and let it run in background.
You can try to run the command and redirect output, but the window will still show and 'wait' for shutdown. e.g.
<server>_RS.bat > nohup.out 2>&1
Chris
Hi Mads,
try to right click on rs_init.exe and run it as administrator.
In this way the service will be created.
If you want to start the repserver using the RUN_FILE and let it run in background you can use
start /b <RS_SERVERNAME>.bat
Regards,
Marco.
Hi,
Moreover:
The stable device becomes inaccessible
recovery process overview
- Drop the corrupted partition
- add a new partition
- rebuild stable queues (signals all upstream connections to resend everything)
- Look in errorlog for recovery messages - If loss detected, you definitively lost transactions (use ignore loss to restart replication then resync replicate database)
-If necessary, recover lost
All documented here:Recovery from Partition Loss or Failure
Rgs
Antoine BALMOKOUN
Support Engineer, SAP Product Support
SAP Labs France, 35, rue d’Alsace 92300 Levallois Perret
This stream replication is part of the HADR for Adaptive Server Enterprise. Please look through the following documentation to see if this is the administration documentation you are looking for:
HADR Users Guide - SAP Library
Regards
Terry
Thanks Terry. I have this guide - there are two guides on HADR that has been released. Both of them do not have enough information to set things up - this one just has a little bit on recommended settings for some of the stream replication components. I ope SAP will release full guide at some point ....
Responding to my own question, here's what I've figured out:
I was incorrect about the "insert was silently lost" problem. It was actually a partially processed set of deletes (in separate transactions). Apologies.
The save_internal is mainly for the situation where the destination ASE server crashes and loses a little bit of recent data. In that scenario, you can boot the repserver with the problem DSI suspended, run "sysadmin restore_dsi_saved_segments" and old transactions will be reapplied, with transactions that are older than the rs_lastcommit date being ignored
Hello, a customer is asking for more information about RAO 15.7 integration with Oracle RMAN. According to the documentation, RMAN utility truncate the archive log files if configuration parameter rman_enabled is set to true. Is it possible to let RAO truncate the archive log files via RMAN utilities only if they have been already backed up by Oracle? Or RAO can only perform a truncation of log files with RMAN? Generally speaking, is it possible to drive Oracle backup from RAO using RMAN utility? Is it possible to coordinate Oracle backups with RAO log files management? Another question: in a 2-node Oracle RAC configuration, is there a automatic disaster failover configuration of RAO? Does RAO have to be configured as a generic data service in a cluster system? Can it be simply restarted on node B on case of fault of node A? Thank you in advance. Regards, Marco.
Hi.
I am running a RepServer (ASE-to-ASE Warm Standby) with parallel threads (DSI parallel_dsi param is set to 'on', num_threads and serialization_method set to default). In RS errorlog I can see many #5185 errors. I tried to resync. databases (using DUMP_MARKER) but after some time errors occured again. It appears that some UPDATE operations are executed before INSERT on the same table/row and the data are inconsistent.
Using warm-standby without Parallel DSI works fine without errors.
Do you think that setting dsi_isolation_level to 3 should eliminate #5185 errors?
Any other suggesions?
Mabye I should adjust some other parameters like:
- number of DSI Threads
- partitioning rules
or leave them to defaults and modify only isolation_level...?
Regards
--
Marcin
Hi Manoj,
I want to take ddl of all my existing replication defination in rssd.But i do not have sybase central RSM functionality enabled to get the DDL of all repdef and subs.
Do you know any other way of getting ddl of all the exisiting repdef and subscription?
Your reply to this will be much appriciated.
Thanks.
Swapnil
Hi Everybody,
I would like be ahead of my users when it comes to breakdown of replication.
I'am looking for some way to monitor our Replication Server in a Dashboard of som sort.
For that I need to find out which process are up and down.
Basically the admin who feature but as SQL.
Maybe in more detail on which subscribtions are runing/suspended/initial loading.
How do you guys monitor your SRS when you are not using the isql tool.
Best Regards
Rasmus
Hi
What version of SRS do you have?
thanks,
Vincent
We are on the newest version on Windows OS
Replication Server 15.7.1 SP301
Rep Agent for Oracle 15.7.1 SP209