Need some ideas on the copy of the data from one schema to another.
Dear all,I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
Example:
I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
Maybe this copy of data may occur once a month, or on request.
I want to have this done by a procedure.
I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
Suggest me so if you can give me the best logic or solution.
Thanks in advance...
Concerning
Suresh
GSKumar wrote:
Dear all,I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
Example:
I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
Maybe this copy of data may occur once a month, or on request.I want to have this done by a procedure.
I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
Suggest me so if you can give me the best logic or solution.
I don't know why you don't want to opt for EXP/IMP.
As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
b. MERGE STATEMENT
c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.
However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.
If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.
Let us know your thoughts or concerns, so that help can be provided.
I suggest that you read and follow {message identifier: = 9360002}.
If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution.
Tags: Database
Similar Questions
-
Copy data from one schema to another. Reopen the Question
Hello
I had asked this question earlier to copy data from tables of one schema to another in the same database using the database link. In my previous post have mentioned below.
Now I am faced with the question for the remote copy of database
I have created a DB connection between my local system and the remote database. with the chain of connection as shown below
CREATE THE DATABASE PUBLIC LINK "MERU_DEV_LOCAL_DEV".
In the above script
CONNECT TO MERUDEV IDENTIFIED BY MERUDEV WITH THE HELP OF "MERUPROD";
I try to copy remote database to my local database tables using the script below.LOCAL DEVELOPMENT scheme IS
REMOTE schema is MERUDEV
network_link DEVELOPMENT impdp = schema MERU_DEV_LOCAL_DEV = MERUDEV remap_schema = MERUDEV:DEVELOPMENT TABLE_EXISTS_ACTION = REPLACE
But the copy of the table does not occur. What could be the problem? Please suggest me or do I need to modify the script
Thank you
SudhirYou can:
-monitor the BONE with ps - ef
-monitor data pump: jobs are dba_datapump_jobs and dba_datapump_sessions
-monitor with logops: v$ session_longops -
LKM to move data from one schema to another in the same DB
Hello
I am new to ODI. My question is simple:
I created a mapping to move data from a table in Figure 1 to another table in Figure 2 (the two schemas in the same Oracle DB.
What is the best LKM Oracle for performance to use in this case? Most of the LKMs using DB link... but is it really necessary that the two schemas are in the same DB?
Ive used SQL knowledge SQL module, but I guess it's probably slower strategy.
Thank you!
Vitor Moreira
Hello
If two phyiscal patterns are on the same database, you want a Phyiscal server with two patterns of phyiscal under this server in your topology, this way ODI will recognize that you don't need a LKM (at all) and mapping will have to IKM / CKM only.
If ODI is to ask a LKM, looks like the two schemas to belong to their own physical server in the topology browser? In this case, it is not optimal.
Just make sure that your user has access to two objects in diagrams and you'll be fine.
If you really want to go Oracle DB Oracle DB then DB link or Datapump for large volumes of data, JDBC/Agent (SQL for SQL) for smaller volumes.
-
Copy data from one schema to another.
Hello
I have two patterns in my database named as DEV AND PROD, I need to copy the PROD schema to the schema DEV, please suggest me a better way to do it I'll be often clean the DEV and copy the PROD DEV schema schema.
If please suggest me how to clean and copy also is an option to replace it please let me know this option as well.
Thank you
SudhirSudhir_Meru wrote:
Thank you very much. I really appreciate your help for me. This works even if I get the message saying impdb.exe does not work as a popup.I checked the date of its working for me fine.
Windows bug.
This script will copy only the tables that are not out? If the output table it does not copy the data?
For example > EMP table is DEVELOPMENT exist BUT without data, in this case it does not copy the data.IF EMP table does not exist, it will create the table and copy the data.
If the table exists, then DP he falls and created again with the structure and data.
If not - only creates -
For example, I would like to take our entry scenario Plan for FY16 and copy this data into our Long Range Planning scenario in the years 2016,2017,2018,2019,2020.
So I know I can do this script calc to copy a year but what can do to copy several years if possible
ESS_LOCALE English_UnitedStates.Latin1@Binary
UPDATECALC OFF SET;
SET CLEARUPDATESTATUS AFTER;
Fix (& PlanYr)ClearData "LRP Input;
DATACOPY "Entry Plan" to THE "LRP Input;
"Entry plan";
ENDFIXYes--but with several instructions DATACOPY (one for each year of the 'target').
You can always make your CLEARDATA in a FIX on every year, but then put the DATACOPYs after the ENDFIX.
-
How can I reinstall the Photoshop from one computer to another? I didn't need a second license...
You are allowed to install Photoshop on two computers. Recent versions allow to choose if they are versions Mac or Windows, or one of each!
-
I need to transfer a license for Acrobat Pro XI from one PC to another, but I lost my original disks. I register the product with Adobe but it doe not appear on my identification code Adobe how can I find my product to install it on another PC?
Hello
If you have the serial number of Adobe Acrobat pro 11.
Download the program and activate it using the serial number.
Download link:- download Acrobat products | Standard, Pro | DC, XI, X
-
How to use the copy utility for app from one server to another
Hello
I use hyperion 9.3.1 and I want to synchronize two applications on different server, I know how to use the utility to copy of app, but on the same server, I think that we can also use this utility to copy the application from one server to another using the properties file but I dnt know how to do it because the example is SQL and I am using and database oracle
can you guys please help.
Published by: sharad sapra on March 31, 2011 11:33Hello
1. create a property file (this example is relevant if you have a repository of ORACLE, you can find more information in http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/frameset.htm?ch09s01s01.html]):
SOURCE_APP_JDBC_CATALOG = SOURCE_APP
SOURCE_APP_JDBC_DRIVER = Hyperion.JDBC.Oracle.OracleDriver
SOURCE_APP_JDBC_URL = jdbc:hyperion:oracle://RepositoryDatabaseServer; SID = DatabaseSID
SOURCE_APP_JDBC_USERNAME = schemaName
SOURCE_APP_JDBC_PASSWORD = schemaPassword
SOURCE_APP_JDBC_DATABASE_TYPE = ORA
SOURCE_APP_OLAP_SERVER = olapServerName:port
SOURCE_APP_OLAP_USERNAME = olapUserName
SOURCE_APP_OLAP_PASSWORD = olapUserPassword
SOURCE_APP_OLAP_APPNAME = SOURCE_APPTARGET_APP_JDBC_CATALOG = TARGET_APP
TARGET_APP_JDBC_DRIVER = Hyperion.JDBC.Oracle.OracleDriver
TARGET_APP_JDBC_URL = jdbc:hyperion:oracle://RepositoryDatabaseServer; SID = DatabaseSID
TARGET_APP_JDBC_USERNAME = DatabaseSchemaName
TARGET_APP_JDBC_PASSWORD = DatabaseSchemaPassword
TARGET_APP_JDBC_DATABASE_TYPE = ORA
TARGET_APP_OLAP_SERVER = olapServerName:port
TARGET_APP_OLAP_USERNAME = olapUserName
TARGET_APP_OLAP_PASSWORD = olapUserPassword
TARGET_APP_OLAP_APPNAME = TARGET_APP2. open CMD and type copyapp /S:yourSourceAppName T:yourTargetAppName P:yourPropertiesFileName.properties /L:yourLogFileName.log
Once the migration has been successful, you must update your users using the UpdateUsers.cmd (UpdateUsers.cmd and PlanningUserName PlanningUserPassword TARGET_APP).
I hope this helps...
Kind regards
André -
Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.
Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/. If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.
If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/. Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.
If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders). Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
transfer of all, except the os from one computer to another
want to transfer everything except the os from one computer to another
Marce,
I would like to get an external hard drive - the best of Seagate and Western Digital for about $100. I have a 320 GB Seagate and it's much more that I need. Can I save more than one computer at a time. It's basically a huge flash drive, and you can buy them both at the Wal-Mart or Target or Office Max, Office Depot, etc...
This option is also better in the long run too - for data transfer in addition to save your documents in one place safe.
If you feel this isn't for you, then you can move gradually using a flash drive (available at Wal-Mart, Target,...) or burn your data on CD and move it over that way.
I hope this helps.
-GT
-
How can I move all my files from the user from one user to another on my pc?
original title: moving files
How can I move all my files from the user from one user to another on my pc?
Log an administrator account. Open your folder 'user '. Select all the files, copy them, and paste them into the other folder 'user '.
-
I use Origami as my screensaver and changing images quickly, is there a way to slow the progression from one slide to another?
Check in system preferences > Desk Top & screensaver:
Ciao.
-
Is it possible to transfer the license from one computer to another by e-mail
Is it possible to transfer the license from one computer to another by e-mail
OS: Windows 7 Home Premium
No, you transfer the license by ensuring its removed from the current computer. Continue to install on the new machine and reactivate by phone:
Activate Windows 7 manually:
1. click on start and in the search for box type: slui.exe 42. press enter on your keyboard
3. Select your country.
4. Select the telephone activation option and brace yourself for a real person.Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP
-
Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?
Hello.
Please try following steps to recreate a link to the PDF files.
1. move and place the PDF file all missing in the any folder to the new computer.
2 open the Control Panel file Muse and hit open assets of Windows > assets
3. right click on a missing PDF file and choose repeat the link.
4. Select the correct file to recreate a link and it will connect all the missing files in the folder.
Let me know if you were talking about something else.
Concerning
Vivek
-
move the CS6 from one computer to another
I'm trying to move the CS6 from one computer to another, but I can't get the serial number to activate. Help
Hello
Please visit the below mentioned link doc KB and try the solutions:
Error: "this serial number is not for a product calling it" | Adobe Creative Suite
Hope this will help.
Kind regards
Ana Maria
Maybe you are looking for
-
A hard drive of the friends is dying so I replaced it. Before replacing the drive, I used a program called Produkey to display the product key and wrote down (the product code sticker is worn and unreadable). When I put the product key in it gave me
-
Biometric fingerprint logon is not available after Windows update
Hello I have a HP ProBook 4540 S with Windows 8 (not Pro) preinstalled. I activated the fingerprint reader to log in to the biometric applet when I got it, and it worked very well. Recently, after a scheduled Windows Update, he stopped to offer the o
-
I followed the steps to connect the success / failure of access to the object to the point where you have to right-click and select Security no tab on a folder... There is no security tab? What should I do now? TECHSS
-
How to RESTORE my recovery partition?
Hey, I have a hp pavilion dv 6 notbook and by mistake I delelted the volume of D: drive which it has the orginal recovery 'factory settings', and I don't have any what previous piont to restore! So I want the partition with the original settings, I c
-
HP-G053NL: HP-G053NL Ram and hard drive replacement
Hello There's a guide for hard drive replacement/upgrade and RAM laptop HP-G053NL? Thank you.