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 answers
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
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in DB2
- IBM DB2 console doesn't work after SSL certificate update
- SQL - Recursive Calculation Solution Required
- Concurrently open statements
- SQL Error: -302, SQLState: 22001 while using String function with a dynamic parameter in db2/hibernate
- Ibm Db2 Jdbc Connection
- DB2 and JSON, inconsistent quotation of integers
- SqlException in DBeaver24.0.1 when doing datasets connection
- How to inject the DBContext of Entity Framework Core to AutoFac
- TSM DB2 SQL query for display backup vm
- Azure Function Crash w/ Relation to IBM.EntityFrameworkCore
- RPG file using dynamic SQL fails to display data to display file
- GRAPHQL in Mainframe DB2
- Problem updating table A using data from table B
- Dynamic SQL with Hibernate
- open fetch and close cursor DB2
Related Questions in DATABASE-MIGRATION
- Django migrations not creating tables on PostgreSQL despite successful execution
- How to specify a float/decimal value for a column inside an insert in liquibase changelog?
- Run the migration script in the container
- Is it possible to downgrade an Entity Framework Core code-first migration without the migration present in the code base?
- ASP.NET Core SQL Server connection - migrations
- Couldn't find driver exception when running php artisan migrate
- SQL Database in production migration - Best approach
- How to setup Flyway migrations for multiple schemas
- mysql to postgres query convertion - COLUMNS.COLUMN_TYPE and information_schema.SEQ_IN_INDEX
- golang-migrate command "freezes" during migrations, takes too much time to migrate (10 minutes for 10 rows)
- Performance Issues After Migrating from MariaDB 10.3.39 to 10.6.16 Due to Changes in Query Execution Plan
- How to generate migration scripts in EF6 with custom SQL?
- Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Comm
- node-pg-migrate not able to run migrations from config defined with .env variables
- django.db.utils.ProgrammingError: column app_table.field does not exist
Related Questions in AIX
- How to define AIX(alternate index) in CICS FCT entry?
- print lines with blank spaces or white spaces
- I want to zgrep from .debug.gz and get lines before and after the string
- Error on AIX 7.3: Relocation entry 0 (at address 0x4BD43) has an invalid l_rsecnm field
- IAM Roles Anywhere - rolesanywhere-credential-helper on IBM AIX
- Problems installing NGINX 1.24 on AIX 7.1
- Single complex command to find, tar, and zip files on AIX
- SSL handshake failure while connecting to Database
- How to resolve a JDBC Connection authorization failure. Reason: User ID revoked
- SQLSTATE=42829 while compiling a pro*c code with DB2 database
- Find files younger than a file and print them without their paths
- Exe file compiled by pyinstaller can't execute on AIX 7.1
- Generate Java heap dump programmatically on AIX
- Real-time Data Replication between Geographically Separated IBM MQ Queue Managers on AIX Power Platform
- Why does the xlc switch -qhaltonmsg not work?
Related Questions in DB2-LUW
- DB2 a reference to column is ambigous
- Can I dynamically select into an array in DB2?
- How to check active IDs from six months ago
- DB2 - stored procedure - very slow cursor when using IN parameter in fetch first clause
- Automatically unlock tables upon control C
- How to calculate churn Rate (Retention) in db2?
- the relation between agent pool size(num_poolagents) and worker agents and coordinating agents in IBM DB2 (LUW)
- Repeat the Max count of LEAST(DENSE_RANK() OVER (PARTITION BY))
- Difference between TOTAL_CONNECTIONS in MON_GET_INSTANCE and REM_CONS_IN and LOCAL_CONS in SYSIBMADM.SNAPDBM in IBM DB2
- Preserve restrictive flag when restoring Db2 database
- DB2 Distinct Count
- db2 luw - create db hitting error SQL1036C
- AppDynamics - Disable SqlIntegrity Constraint Violation Exception events for a specific DB2 table
- To find out the user has which privileges in db2 database
- DB2 LUW 11.5.9 dbprereqcheck: 'The db2prereqcheck utility failed to find the following package or file: ""'
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?
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)
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/