We have a few DB2 V9.5 databases (largest around 100GB) on AIX and need to migrate them to an existing V10.1 instance that's on Linux. Due to endianness diff between aix and linux a simple backup and restore isn't working. I had to use db2look and db2move utilities to extract/export, FTP and LOAD which is time consuming and needs a longer downtime. Is there a simpler way of doing this? Namely bypassing the endianness issue or scripting to export and load multiple tables at once? Thanks
DB2 migrating database from V9.5 aix to V10.1 linux
2.3k Views Asked by Roy R At
2
There are 2 best solutions below
0
Derek.Fabb
On
I've had to complete this type of operation and I did it by creating the database schema with db2look then moving the data with the load from cursor operation. Now you don't need to bother with federation, you can use the database option on the declare cursor statement.
This example is from the DB2 Information Centre:
DECLARE mycurs CURSOR DATABASE dbsource USER dsciaraf USING mypasswd FOR SELECT TWO,ONE,THREE FROM abc.table1 LOAD FROM mycurs OF cursor INSERT INTO abc.table2
The link to the page is: http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dm.doc/doc/c0005437.html
Related Questions in LINUX
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in DB2
- How to grant privileges to current user
- Drop DB2 database if exist
- DB2, Hibernate, JPA: Schema does not exist
- Can you check for a DB2 license in C#?
- DB2 Join Query that Maximizes Column
- How to access a Row Type within an Array Type in DB2 SQL PL
- IBM DB2 native encryption applied on live database
- Using an ODBC connection in Access get retrieve data from DB2
- join 2 tables and get some columns from 1st table and max timestamp value from second table
- How to connect to DB2 SQL database with node JS?
- TRANSLATE not working inside XMLAGG
- Cannot initialise HikariCP pooled connection, Failure in loading native library db2jcct2
- published reports don't work - Database logon failed Error
- 1 Working Day Back In SQL DB2
- In java with DB2 parallel process: I got Deadlock Exception :DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=2, DRIVER=3.59.81
Related Questions in DATABASE-MIGRATION
- Database Migration Approach
- PostgreSQL migration and restore
- Oracle to SQL Server Migration issue - On delete cascade
- Entitiy Framework migration with EF in multiple projects
- Alembic SQLite ALTER TABLE with self-referencing foreign key
- Migrate multiple databases with Propel
- Django migration having no effect, on postgres table
- Running migrations with Rails in a Docker container with multiple container instances
- How to take data from one model field to another in Django using fixture?
- Stale content type prompt deleting all model instances after renaming django model with permissions
- Django migrations missing way to declare "needed_by"?
- Entity Framework: Automatic migration failed on huge DB
- what is database baseline version in flywaydb. Can I use it for migrating from a specific version and up?
- Sybase to Teradata inquiry LIKE '[0-9]'
- Copying (Cloning) DB to another Vertica Cluster with Different no. of Nodes and Different IP Addresses
Related Questions in AIX
- Alternatives for strrspn and strfind functions(libgen functions in Solaris) in AIX?
- How to make a robust mutex on AIx [7.1]
- List files and timestamp of creation on AIX system (Perl)
- Transfer File to Unix Server from Windows Shared Path using PuTTY
- Unable to copy using cp command in AIX
- How to find the default Java 1.4.2 heap size in AIX
- X11 Xterm Keyboard layout is off by one or worse.
- Warnings in Informix database log
- Defunct process in AIX
- "No runtime available" in MobileFirst console in AIX
- which loop in bash script
- removing user interaction from java jsch
- Awk one-liner to replace text of first matching regex occurence only
- How to do file transfer inside ssh command line?
- AIX numeric time zone offset
Related Questions in DB2-LUW
- Error running SQL queries with Liquibase
- Not able to establish database connection in eclipse
- REORG command in db2
- Need to update same table on update using trigger in DB2
- What is "Select -1", and how is it different from "Select 1"?
- Is there a way to auto increment a column with respect to the foreign key in DB2?
- DB2 migrating database from V9.5 aix to V10.1 linux
- Does a table like user_tables (used in oracle) in db2 exist?
- db2 full text search in HADR mode
- db2set codepage in not working in DB2 windows
- DB2: restore database returns error SQL2036N on Linux
- No authorized routine named "GETVARIABLE" of type "FUNCTION" having compatible arguments was found
- zabbix server won't start
- How do I find out what version of DB2 LUW introduced support for NVARCHAR?
- Connecting ibm_db2 functions (php) on Ubuntu 14.04 to DB2 for z/OS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no way to finesse the endianness issue.
db2look + db2move is probably the most straightforward way to do it. You could perhaps set up your old database as a federated source for the new database and LOAD FROM CURSOR directly from your old tables. This lets you skip the ftp step (and having to manage staging space on both systems). See here: https://www.ibm.com/developerworks/data/library/techarticle/dm-0901fechner/