data-migration

generate database & tables schema (ddl) on Oracle pl-sql

折月煮酒 提交于 2019-12-08 06:01:59
问题 Anyone have a PL-SQL statement that i can use to generate database & tables schema for specific database on Oracle 10g? I need the schema in .sql file and if possible compatible with ANSI-92/99 sql implementation, so i can use the generated .sql directly on sql server 2005. Already heard about exp/imp, but it seems generated dump file, what i need just a simple ddl on .sql file. Thanks 回答1: I wrote oraddlscript which calls dbms_metadata.get_ddl (Pop's answer) for each database object owned by

Data Migration from Oracle to Mongo DB

空扰寡人 提交于 2019-12-08 05:39:52
问题 I am currently doing a POC for my project to see if I can migrate to MongoDB from Oracle . My Oracle structure is currently flat ( Single table with no relational tables with a few columns and a CLOB ) . I have about 10 lac records and want to migrate this to Mongo to analyse the performance of my retrievals/ other queries that exist currently . I could write some custom script to move this from Oracle to Mongo but i was wondering if there are any free tools out there which could help me move

Magento 2 - Migration tool - Destination fields are not mapped

孤者浪人 提交于 2019-12-08 02:48:14
问题 I'm trying to use the Data Migration Tool to migrate a site from 1.9.2.2 to 2.0.5. I was able to solve numerous 'Source fields not mapped' errors editing the map.xml file, but can't shift the error; Destination fields are not mapped. Document: sales_creditmemo. Fields: base_shipping_hidden_tax_amnt Error screenshot I've tried adding; <ignore> <document>sales_creditmemo.base_shipping_hidden_tax_amnt</document> </ignore> Within destination> document_rules> and <ignore> <field>sales_creditmemo

Programmatically check whether there are django south migrations that need to be deployed

大兔子大兔子 提交于 2019-12-07 01:58:45
问题 My deployment strategy looks like this (using Fabric): create a new virtualenv deploy new code in new virtualenv show a maintenance page copy the current db to new db migrate new db point new code to new db symlink current virtualenv to new venv restart services remove maintenance page I want to iterate fast. Now, most of the code changes do not contain migrations. Also, the db is growing, so there is much overhead created by copying the database everytime I deploy a (mostly small) change. To

Magento 2 - Migration tool - Destination fields are not mapped

偶尔善良 提交于 2019-12-06 11:14:23
I'm trying to use the Data Migration Tool to migrate a site from 1.9.2.2 to 2.0.5. I was able to solve numerous 'Source fields not mapped' errors editing the map.xml file, but can't shift the error; Destination fields are not mapped. Document: sales_creditmemo. Fields: base_shipping_hidden_tax_amnt Error screenshot I've tried adding; <ignore> <document>sales_creditmemo.base_shipping_hidden_tax_amnt</document> </ignore> Within destination> document_rules> and <ignore> <field>sales_creditmemo.base_shipping_hidden_tax_amnt</field> </ignore> Within field_rules > source>. But it won't go away. I'm

Iphone data migration on application update

纵然是瞬间 提交于 2019-12-06 05:16:41
问题 I am working on an iphone application that uses sqlite to store application and user data. This is the first version of the application and I wonder what I need to do to prepare for the future versions of the app. Is this enough? 1. Make sure app version is correct in the XCode Project settings 2. Add a version number in sqlite file so that it can be read later Lets simulate the next update! 1. New version of the app is downloaded to the device 2. The app reads the version number stored

How to migrate MySQL data directory in docker container?

落花浮王杯 提交于 2019-12-05 16:48:59
问题 I have a docker container running MySQL-5.5 with host data volume. I am upgrading my container to MySQL-5.6. I am starting a new container with the same host volume. MySQL was crashing in the container due to the crash of mysql.user table. [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect key file for table 'user'; try to repair it 160523 12:04:13 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended I tried the following to fix that: root@container# mysqld -

Copy tables with different column name MySQL

梦想与她 提交于 2019-12-05 15:47:38
I need to copy all rows from table1 matching specific columns into table2 with different columns name. For example: table1 name = oldAddressBook , table1's columns name = Name,Surname,Number table2 name = newAddressBook , table2's columns name = newName,newSurname,Phone Data in columns "Name,Surname,Number" in "oldAddressBook" must fill respectively "newName,newSurname,Phone" in "newAddressBook". "oldAddressBook" and "newAddressBook" contain also other columns. INSERT INTO newAddressBook (newName, newSurname, Phone) SELECT name, surname, number FROM oldAddressBook You can use an insert-select

Programmatically check whether there are django south migrations that need to be deployed

一笑奈何 提交于 2019-12-05 08:20:44
My deployment strategy looks like this (using Fabric): create a new virtualenv deploy new code in new virtualenv show a maintenance page copy the current db to new db migrate new db point new code to new db symlink current virtualenv to new venv restart services remove maintenance page I want to iterate fast. Now, most of the code changes do not contain migrations. Also, the db is growing, so there is much overhead created by copying the database everytime I deploy a (mostly small) change. To avoid copying the database I want to check whether there are migrations that need to be deployed

How to migrate single-token cluster to a new vnodes cluster without downtime?

早过忘川 提交于 2019-12-05 07:48:46
We have Cassandra cluster with single token per node, total 22 nodes, average load per node is 500Gb. It has SimpleStrategy for the main keyspace and SimpleSnitch. We need to migrate all data to the new datacenter and shutdown the old one without a downtime. New cluster has 28 nodes. I want to have vnodes on it. I'm thinking of the following process: Migrate the old cluster to vnodes Setup the new cluster with vnodes Add nodes from the new cluster to the old one and wait until it balances everything Switch clients to the new cluster Decommission nodes from the old cluster one by one But there