data-migration

Help to improve a migration program

走远了吗. 提交于 2019-12-25 03:12:52
问题 We have 200+ views in Oracle that should be transfomed to 200+ flat files with fixed length fields. Hoping to get ideas to do a better design of the following migration routine. The prototype of migration program looks like this for the view named VIEWNAME1 (and are the same for other views in the prototype): StronglyTypedDataSet views = new StronglyTypedDataSet(); ViewName1TableAdapter tableAdapter = new ViewName1TableAdapter(); tableAdapter.Fill(views.VIEWNAME1 ); mapFromViewToFlatFile

How to split a column which has data in XML form to different rows of new Database as KEY VALUE in TALEND

纵饮孤独 提交于 2019-12-24 20:17:35
问题 In old DB i have a data in one column as <ADDRESS> <CITY>ABC</CITY> <STATE>PQR</SERVICE> </ADDRESS> In my new DB i want this data to be stored in KEY VALUE fashion like: USER_ID KEY VALUE 1 CITY ABC 1 STATE PQR Someone please help me how to migrate this kind of data using TALEND tool. 回答1: Design job like below. tOracleInput---tExtractXMLFiled---output. tOracleInput component you can select XML column and make datatype as String. tExtractXmlFiled component pass this XML column as " XML Filed"

Continuous data migration from mysql to Hbase

好久不见. 提交于 2019-12-24 18:05:12
问题 I have installed hadoop and hbase for real time analytics purpose. The proble I face is to migrate data on line from mysql to Hbase. The sqoop tool is useful to do bulk data migrations, is there any way that the data from mysql can be transfered to HBase on line (then and there when an insert/update/delete happens). So that real time analytics can be achieved. Not near-real-time. Please help me on this regards. 回答1: I think you faced task of setting up replication between different DBMS. It

copy data from one server to another using query in import/export wizard?

我怕爱的太早我们不能终老 提交于 2019-12-24 11:18:11
问题 I have one table a in one db server..and table b in another server. I would like to update the table b using values in table a. How do I specify the server name in query ? UPDATE SELECT * from [db1].[dbo].StgMGBPData SET ASO_Ind = [db2].[dbo].Customer_Names.ASO_Ind, Company = [db2].[dbo].Customer_Names.Company, Rpt_Cust_ID = [db2].[dbo].Customer_Names.Rpt_Cust_ID FROM [db2].[dbo].Customer_Names JOIN [db1].[dbo].StgMGBPData ON [db2].[dbo].Customer_Names.Src_Cust_ID = [db1].[dbo].StgMGBPData

FoxPro Database and asp.net

情到浓时终转凉″ 提交于 2019-12-24 10:45:52
问题 I have a website that uses asp.net 3.5 and Sql server 2008 as backend data store . now we want to add a new page to our website . but the data that we want to share in this page is already being created and saved by a FoxPro software in one of our local systems. I've no experience in FoxPro . is there any way to use this data in our site ? specially without being have to create a new database in server and importing or writing all records all over again ? what is the best way in such a

Is it possible to transform data during a migration with AWS's DMS

本秂侑毒 提交于 2019-12-24 05:33:31
问题 Is it possible to transform actual data while performing a migration with the AWS Data Migration Service? I'm trying to migrate data from PostgreSQL to DynamoDB and to append a prefix to the data that is brought over with DMS. From what I can tell, it looks like all of the transformation rules that are available in the migration task only apply to components of the table themselves (column names, table names, schema names). Basically I would like something like this in Postgres ID:123 to

Django South: How can I access models in sub-packages in migrations

浪尽此生 提交于 2019-12-24 03:19:37
问题 Since our app has many models, we place them in sub-packages of the models packages, i.e. the Cheddar model would not be in models.Cheddar , but instead in models.cheese.Cheddar . It seems I cannot access these models in a South datamigration, even though I created an models/__init__.py as per this answer containing the line from cheese import * . In my data migration file, the line for cheddar in orm.Cheddar.objects.all(): still causes the following error: AttributeError: The model 'Cheddar'

Why GenericRelation fields does not work in Data Migrations(Django)

寵の児 提交于 2019-12-24 02:25:19
问题 I want to make data migration in order to add user read post in database. There is such code: def user_read_posts(apps, schema_editor): User = apps.get_model("main", "User") Post = apps.get_model("main", "Post") Comment = apps.get_model("comments", "Comment") comments = Comment.objects.all() for comment in comments: print (comment.content_object.__class__.__name__) if isinstance(comment.content_object, Post): comment.user.read_posts.add(comment.content_object) class Migration(migrations

EF Data Migrations does not work after close project

天涯浪子 提交于 2019-12-23 12:40:25
问题 i'm using entity framework data migrations. if i change something about entites or something else, i try to use " add-migration MyFirstMigration " on Package Manager Console. But it returns an exception : The term 'add-migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was inclu ded, verify that the path is correct and try again. At line:1 char:14 + add-migration <<<< + CategoryInfo : ObjectNotFound:

Manually editing database in code first entity framework

谁说胖子不能爱 提交于 2019-12-21 04:00:18
问题 I have been trying out EF 4.1 ( code first ) with MVC 3. I am thinking ahead to when the application will need changes. I tested a couple of scenarios. I like the idea of manually editing the database when the model (my POCOs) would changed. ASP.NET error when I change the model : "The model backing the 'CTCMContext' context has changed since the database was created. Either manually delete/update the database..." Now, it says that I can " manually update the database ", but I did and still