database-replication

How to replicate VSAM files (Mainframe) to Database?

懵懂的女人 提交于 2019-12-13 10:23:07
问题 What is an efficient solution/technology (other than ETL) to do a near real-time replication of data from a VSAM file (Mainframe) to an RDBMS (outside Mainframe) ? Note : This VSAM file has COM3 data, so the replication technology should be able to understand and transform this during the replication. 回答1: there is a product at IBM - VSAM transparancy that routes vsam calls to DB2; this can help in a migration process.. there is also federation server of IBM that gives transparancy to

Eloquent pre-loading relationships against DB write connection

。_饼干妹妹 提交于 2019-12-12 17:13:01
问题 I have a Laravel 5.2 project with a DB master-slave setup. When running something like Model::onWriteConnection()->with('relationship')->find($id) , only the find() query is run against the write connection; the with() query is still run against a slave. This particular query must be run against the master connection, since the relevant data may not have been replicated to the slaves yet. Is there a way to force all parts of the eloquent query to run against the write connection? 回答1: try

How do I configure our MySQL ReplicationDriver for our JBoss 7 data source?

落花浮王杯 提交于 2019-12-12 16:13:23
问题 We’re using MySql 5.5.37 and JBoss 7.1.3, and mysql-connector-java-5.1.22-bin.jar. How do I configure my JBoss’ standalone.xml datasource to connect to our master-slave configuration for MySQL? I tried the below <datasource jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS" enabled="true" use-java-context="true"> <connection-url>jdbc:mysql:replication//master.amazonaws.com:3306,slave.amazonaws.com:3306/dbsid?failOverReadOnly=true;roundRobinLoadBalance=true</connection-url> <driver

How to check replication snapshot agent status?

最后都变了- 提交于 2019-12-12 15:15:19
问题 I'd like to check the status of the agent after I start it using this statement EXEC sp_startpublication_snapshot @publication As I want to do a next step that needs the job to be already started. 回答1: I do not believe there is a built-in replication stored procedure to check the snapshot agent status, I could be wrong. However, you could query MSsnapshot_history. Something like this should do the trick: SELECT agent_id, runstatus, start_time, time, duration, comments, delivered_transactions,

Consolidate data from many different databases into one with minimum latency

烈酒焚心 提交于 2019-12-12 09:53:38
问题 I have 12 databases totaling roughly 1.0TB, each on a different physical server running SQL 2005 Enterprise - all with the same exact schema. I need to offload this data into a separate single database so that we can use for other purposes (reporting, web services, ect) with a maximum of 1 hour latency. It should also be noted that these servers are all in the same rack, connected by gigabit connections and that the inserts to the databases are minimal (Avg. 2500 records/hour). The current

How to prevent local replication of a company database

戏子无情 提交于 2019-12-12 05:20:02
问题 I have a big Lotus Notes company database containing sensitive data and I want to prevent normal users to replicate this database locally. Explanation of the main problems : sensitive data on laptop server deleted documents reappear if the purge interval is more frequent than local replications server deleted documents reappear if users modify them locally These solutions are NOT working in my context : uncheck the "replicate or copy documents" in the ACL for users. If done, users cannot copy

Spring+Hibernate: read/write different datasource and thousands mysql databases

让人想犯罪 __ 提交于 2019-12-12 03:39:39
问题 I need to use separate reader/writer MySQL servers. One writer and one (or more) read replica. What is the best way to do this? I found a lot of examples: http://www.dragishak.com/?p=307 Use special JDBC driver: com.mysql.jdbc.ReplicationDriver And usage is: @Transactional(readOnly=true) @ReadOnlyConnection public Result serviceMethod(…) { … } https://stackoverflow.com/a/33169879/1974494 Using Spring AbstractRoutingDatasource : Usage: @Transactional(readOnly = true) public Page<BookDTO>

Couchdb illegal database name issue during replication (unwanted , added after db name)

大城市里の小女人 提交于 2019-12-12 03:25:29
问题 I am trying to replicate a couchdb database using filters. This is my code that I am running using Command Prompt: curl -H 'Content-Type: application/json' -X POST http://localhost:5984/_replicate -d '{"source": "http://localhost:5984/source_database", "target": "http://localhost:5984/testdb", "create_target": true, "continuous": true, "doc_ids": ["000803f8-7f61-4afd-b532-8e6c1028d965"]}' I get the following error: Illegal database name, Reason, name:'testdb, '. For some reason, an unwanted

Error accessing Xpage using $$OpenDominoDocument.xsp method on database replica

戏子无情 提交于 2019-12-11 19:05:46
问题 I have a Form called 'Contact Level\Customer Contact | Customer Contact', which is a response document, and in the properties I have associated the customerContact XPage to the form. In all view panel controls I have use the 'XPage associated with the document's form' property. On server A the XPage is opened correctly using the $$OpenDominoDocument.xsp method from any view control. On server B, which has a replica of the server A database, the XPage does not open from any of the views using

Couchbase Lite pull with filtered replication from CouchDB

本秂侑毒 提交于 2019-12-11 16:58:00
问题 I did not manage to pull replication data from CouchDB. I am using CouchDB for my document storage. CouchDB Version: Apache CouchDB 1.6.1 Couchbase Lite: Couchbase Lite 1.4.0 Below are my sample data: { "_id": "ab33deeb074523e3c63c216b8c2952a8", "_rev": "6-e196bfb6aca85492e4f96f3af6fd1ee2", "type": "employee", "employee": { "employeeId": "1", "employeeName": "Test" } } In CouchDB , I have created my own design filter: { "_id": "_design/employee", "_rev": "35-00f59706402452291d30c3fb6e9a5356",