Oracle on Azure- Unix to Linux and Options

Published Sep 22 2021 04:43 PM 991 Views
Microsoft

Linux really does make the world go around.  I love all OS, having been one of those odd Oracle DBAs to have used Mac, Android, and Windows laptops and while at Oracle, had all the OS outside of Linux that I supported, deeming my work, “the island of misfit projects.” As I’ve been asked multiple times this week about Unix platforms and how they can migrate to Azure, I wanted to get a post out on how our customers are handling migrations from Unix to Linux. 

 

We will start with the fact no matter how high the percentage of servers which run Windows OS, Linux runs 100% of the top 1 million servers in the world.  Neither are going anywhere, and both are important. Unix, on the other hand, seems to be dwindling in its importance as Linux becomes more robust.  Even SQL Server now runs on Linux and my own Azure Portal subscription, I have all Linux machines outside of the single, Azure VM I use for my Power BI Gateway.

 

There are a lot of Oracle databases out there on Unix that may be holding customers back from going to the cloud.  It’s not uncommon to find many Oracle databases for our customers running on HP-UX, AIX, Solaris, or another Unix platform.  If you’re a Windows specialist, you may be wondering what’s the big deal, but it’s more about what’s the big-ENDIAN.  Unix is a big-endian system, which means it stores/transfers data in a different order than Linux, which is a little-endian system.  In big-endian (Unix), the byte with the most significance will be stored at the smallest memory address, where in a little-endian system (Linux) the least significant byte will be at the smallest memory address.

 

There is a migration that must happen for Oracle databases as they go from Unix, (Big Endian) to Linux (Little Endian).  If this isn’t addressed, there will be an inconsistency in the data and how the OS stores/transfers it. 

On the Cheap

Now this migration can be done manually, but if you have several databases, it can be time consuming and leave you open to human error.

Using RMAN

  1. Create an Azure Linux VM
  2. Set up storage
  3. Install Oracle and create a database
  4. Copy Oracle backup to Azure blob storage or files
  5. Restore using RMAN with convert each datafile in the database:
RMAN> convert datafile '<dbfile name>'
  TO PLATFORM="Linux 64-bit for AMD"
  FROM PLATFORM="AIX-Based Systems (64-bit)"
…listing every datafile in the system, outside of the system datafile, which is part of the initial database creation.

Use Export/Import

Using Oracle’s Datapump Export and Import consists of a lot more steps, depending on the Oracle version of database and the OS, but the biggest challenge is ensuring you get all of the schemas, tablespaces and data as you import over.  Datapump is much easier earlier versions of Oracle’s exp/imp, but if you are still using such an old version of Oracle that you don’t have Datapump?  You have other challenges going to the cloud- please just upgrade and get on a supported version already! :smiling_face_with_smiling_eyes:

 

If you’re interested and have an Oracle Support login, here’s the link to the detailed document on how to export your data from different Unix platforms and import to Linux:

Oracle Doc 277650.1

 

I can’t stress enough, both processes are considerably time-consuming and if a step is missed, there could be issues and errors.  Having a product that supports the conversion is simpler and can make for a better experience when adding in the complexity of a cloud migration.

Tools for Unix to Linux Migrations

There are two options available for most Unix to Linux migration scenarios:

  1. Create a new Linux VM and convert the database to little endian.
  2. Choose an emulator to create an image from the onprem OS and database to then run on a Linux distribution inside an Azure VM.

There are a lot of Oracle databases out there on Unix that may be holding customers back from going to the cloud.  It’s not uncommon to find many Oracle databases for our customers running on HP-UX, AIX, Solaris, or another Unix platform. 


For these two, there are numerous products to use to accomplish the migration to Linux.  As these products assume a migration will be part of the steps, they include a migration tool as part of the solution, removing this as a separate task that must be handled, making for a much simpler process:

 

Convert + Migrate --> New VM in Azure

 

Database Migration to Little-Endian

For some customers, there may already be a full DevOps or automation deployment process for cloud VMs and they just need to migrate the database over from the older Unix onprem host.  There are two tools that I've used to do this and here they are:

 

Commvault database restore:

Re-Platforming (Cross-Platform) Restore Operations for Oracle (commvault.com)

Delphix virtualize, migrate and clone:

Delphix Unix to Linux Oracle conversion | Delphix

 

I have no doubt there are more products than just these products to perform the database migration to a new Linux VM that you would deploy into Azure.  The challenge is locating them.  If you know of any, please feel free to respond in the comments and let me know, as my google searches have failed me.

Unix Emulation/Virtualization on Azure

For some customers, the refactoring or changes required, which may not just be at the database layer, is just too much and an emulator is the answer.  There are two that I’m aware of that may help let you continue running your chosen Unix OS in Azure-

 

Skytap on Azure:

Skytap on Azure - Give Your Traditional Systems New Life

Stromasys’ Charon:

Charon on the Azure Cloud | Stromasys

VMWare:

Unix to Virtual Linux | Unix Virtual Machine | VMware

 

I've used Skytap and VMWare, but have only heard about Stromasys' product.  I always am interested in how these perform and if there is any latency by having an emulator or virtualization on top of virtualization or even on top of bare metal, but I haven't had enough experience to tell you if any occurs, so please let me know if you have any experience with these!

 

The most important take-away from this post is that you aren’t stuck on legacy OS and your valuable Oracle workloads can come over to Azure no matter if you’re able to simply migrate them to an Azure Linux VM or if you want to emulate the Unix OS in Azure.

%3CLINGO-SUB%20id%3D%22lingo-sub-2776599%22%20slang%3D%22en-US%22%3EOracle%20on%20Azure-%20Unix%20to%20Linux%20and%20Options%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2776599%22%20slang%3D%22en-US%22%3E%3CP%3ELinux%20really%20does%20make%20the%20world%20go%20around.%26nbsp%3B%20I%20love%20all%20OS%2C%20having%20been%20one%20of%20those%20odd%20Oracle%20DBAs%20to%20have%20used%20Mac%2C%20Android%2C%20and%20Windows%20laptops%20and%20while%20at%20Oracle%2C%20had%20all%20the%20OS%20outside%20of%20Linux%20that%20I%20supported%2C%20deeming%20my%20work%2C%20%E2%80%9Cthe%20island%20of%20misfit%20projects.%E2%80%9D%20As%20I%E2%80%99ve%20been%20asked%20multiple%20times%20this%20week%20about%20Unix%20platforms%20and%20how%20they%20can%20migrate%20to%20Azure%2C%20I%20wanted%20to%20get%20a%20post%20out%20on%20how%20our%20customers%20are%20handling%20migrations%20from%20Unix%20to%20Linux.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20will%20start%20with%20the%20fact%20no%20matter%20how%20high%20the%20percentage%20of%20servers%20which%20run%20Windows%20OS%2C%20Linux%20runs%20100%25%20of%20the%20top%201%20million%20servers%20in%20the%20world.%20%26nbsp%3BNeither%20are%20going%20anywhere%2C%20and%20both%20are%20important.%20Unix%2C%20on%20the%20other%20hand%2C%20seems%20to%20be%20dwindling%20in%20its%20importance%20as%20Linux%20becomes%20more%20robust.%20%26nbsp%3BEven%20SQL%20Server%20now%20runs%20on%20Linux%20and%20my%20own%20Azure%20Portal%20subscription%2C%20I%20have%20all%20Linux%20machines%20outside%20of%20the%20single%2C%20Azure%20VM%20I%20use%20for%20my%20Power%20BI%20Gateway.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20a%20lot%20of%20Oracle%20databases%20out%20there%20on%20Unix%20that%20may%20be%20holding%20customers%20back%20from%20going%20to%20the%20cloud.%26nbsp%3B%20It%E2%80%99s%20not%20uncommon%20to%20find%20many%20Oracle%20databases%20for%20our%20customers%20running%20on%20HP-UX%2C%20AIX%2C%20Solaris%2C%20or%20another%20Unix%20platform.%26nbsp%3B%20If%20you%E2%80%99re%20a%20Windows%20specialist%2C%20you%20may%20be%20wondering%20what%E2%80%99s%20the%20big%20deal%2C%20but%20it%E2%80%99s%20more%20about%20what%E2%80%99s%20the%20big-ENDIAN.%26nbsp%3B%20Unix%20is%20a%20big-endian%20system%2C%20which%20means%20it%20stores%2Ftransfers%20data%20in%20a%20different%20order%20than%20Linux%2C%20which%20is%20a%20little-endian%20system.%26nbsp%3B%20In%20big-endian%20(Unix)%2C%20the%20byte%20with%20the%20most%20significance%20will%20be%20stored%20at%20the%20smallest%20memory%20address%2C%20where%20in%20a%20little-endian%20system%20(Linux)%20the%20least%20significant%20byte%20will%20be%20at%20the%20smallest%20memory%20address.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20a%20migration%20that%20must%20happen%20for%20Oracle%20databases%20as%20they%20go%20from%20Unix%2C%20(Big%20Endian)%20to%20Linux%20(Little%20Endian).%20%26nbsp%3BIf%20this%20isn%E2%80%99t%20addressed%2C%20there%20will%20be%20an%20inconsistency%20in%20the%20data%20and%20how%20the%20OS%20stores%2Ftransfers%20it.%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1446412048%22%20id%3D%22toc-hId-1446412755%22%3EOn%20the%20Cheap%3C%2FH1%3E%0A%3CP%3ENow%20this%20migration%20can%20be%20done%20manually%2C%20but%20if%20you%20have%20several%20databases%2C%20it%20can%20be%20time%20consuming%20and%20leave%20you%20open%20to%20human%20error.%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1456929196%22%20id%3D%22toc-hId--1456928489%22%3E%3CSPAN%3EUsing%20RMAN%3C%2FSPAN%3E%3C%2FH4%3E%0A%3COL%3E%0A%3CLI%3ECreate%20an%20Azure%20Linux%20VM%3C%2FLI%3E%0A%3CLI%3ESet%20up%20storage%3C%2FLI%3E%0A%3CLI%3EInstall%20Oracle%20and%20create%20a%20database%3C%2FLI%3E%0A%3CLI%3ECopy%20Oracle%20backup%20to%20Azure%20blob%20storage%20or%20files%3C%2FLI%3E%0A%3CLI%3ERestore%20using%20RMAN%20with%20convert%20each%20datafile%20in%20the%20database%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CPRE%3ERMAN%26gt%3B%26nbsp%3Bconvert%26nbsp%3Bdatafile%26nbsp%3B'%3CDBFILE%20name%3D%22%22%3E'%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3BTO%26nbsp%3BPLATFORM%3D%22Linux%2064-bit%20for%20AMD%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3BFROM%26nbsp%3BPLATFORM%3D%22AIX-Based%20Systems%20(64-bit)%22%3CBR%20%2F%3E%E2%80%A6listing%20every%20datafile%20in%20the%20system%2C%20outside%20of%20the%20system%20datafile%2C%20which%20is%20part%20of%20the%20initial%20database%20creation.%3C%2FDBFILE%3E%3C%2FPRE%3E%0A%3CH4%20id%3D%22toc-hId-1030583637%22%20id%3D%22toc-hId-1030584344%22%3EUse%20Export%2FImport%3C%2FH4%3E%0A%3CP%3EUsing%20Oracle%E2%80%99s%20Datapump%20Export%20and%20Import%20consists%20of%20a%20lot%20more%20steps%2C%20depending%20on%20the%20Oracle%20version%20of%20database%20and%20the%20OS%2C%20but%20the%20biggest%20challenge%20is%20ensuring%20you%20get%20all%20of%20the%20schemas%2C%20tablespaces%20and%20data%20as%20you%20import%20over.%26nbsp%3B%20Datapump%20is%20much%20easier%20earlier%20versions%20of%20Oracle%E2%80%99s%20exp%2Fimp%2C%20but%20if%20you%20are%20still%20using%20such%20an%20old%20version%20of%20Oracle%20that%20you%20don%E2%80%99t%20have%20Datapump%3F%26nbsp%3B%20You%20have%20other%20challenges%20going%20to%20the%20cloud-%20please%20just%20upgrade%20and%20get%20on%20a%20supported%20version%20already!%20%3Asmiling_face_with_smiling_eyes%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%E2%80%99re%20interested%20and%20have%20an%20Oracle%20Support%20login%2C%20here%E2%80%99s%20the%20link%20to%20the%20detailed%20document%20on%20how%20to%20export%20your%20data%20from%20different%20Unix%20platforms%20and%20import%20to%20Linux%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.oracle.com%2Fepmos%2Ffaces%2FDocumentDisplay%3Fparent%3DEXTERNAL_SEARCH%26amp%3BsourceId%3DHOWTO%26amp%3Bid%3D277650.1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOracle%20Doc%20277650.1%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20can%E2%80%99t%20stress%20enough%2C%20both%20processes%20are%20considerably%20time-consuming%20and%20if%20a%20step%20is%20missed%2C%20there%20could%20be%20issues%20and%20errors.%26nbsp%3B%20Having%20a%20product%20that%20supports%20the%20conversion%20is%20simpler%20and%20can%20make%20for%20a%20better%20experience%20when%20adding%20in%20the%20complexity%20of%20a%20cloud%20migration.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-319015955%22%20id%3D%22toc-hId-319016662%22%3ETools%20for%20Unix%20to%20Linux%20Migrations%3C%2FH1%3E%0A%3CP%3EThere%20are%20two%20options%20available%20for%20most%20Unix%20to%20Linux%20migration%20scenarios%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20a%20new%20Linux%20VM%20and%20convert%20the%20database%20to%20little%20endian.%3C%2FLI%3E%0A%3CLI%3EChoose%20an%20emulator%20to%20create%20an%20image%20from%20the%20onprem%20OS%20and%20database%20to%20then%20run%20on%20a%20Linux%20distribution%20inside%20an%20Azure%20VM.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThere%20are%20a%20lot%20of%20Oracle%20databases%20out%20there%20on%20Unix%20that%20may%20be%20holding%20customers%20back%20from%20going%20to%20the%20cloud.%26nbsp%3B%20It%E2%80%99s%20not%20uncommon%20to%20find%20many%20Oracle%20databases%20for%20our%20customers%20running%20on%20HP-UX%2C%20AIX%2C%20Solaris%2C%20or%20another%20Unix%20platform.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EFor%20these%20two%2C%20there%20are%20numerous%20products%20to%20use%20to%20accomplish%20the%20migration%20to%20Linux.%26nbsp%3B%20As%20these%20products%20assume%20a%20migration%20will%20be%20part%20of%20the%20steps%2C%20they%20include%20a%20migration%20tool%20as%20part%20of%20the%20solution%2C%20removing%20this%20as%20a%20separate%20task%20that%20must%20be%20handled%2C%20making%20for%20a%20much%20simpler%20process%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22lia-align-center%22%20id%3D%22toc-hId-1009577429%22%20id%3D%22toc-hId-1009578136%22%3E%3CSTRONG%3E%3CEM%3EConvert%20%2B%20Migrate%20--%26gt%3B%20New%20VM%20in%20Azure%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-999074325%22%20id%3D%22toc-hId-999075032%22%3EDatabase%20Migration%20to%20Little-Endian%3C%2FH1%3E%0A%3CP%3EFor%20some%20customers%2C%20there%20may%20already%20be%20a%20full%20DevOps%20or%20automation%20deployment%20process%20for%20cloud%20VMs%20and%20they%20just%20need%20to%20migrate%20the%20database%20over%20from%20the%20older%20Unix%20onprem%20host.%26nbsp%3B%20There%20are%20two%20tools%20that%20I've%20used%20to%20do%20this%20and%20here%20they%20are%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECommvault%20database%20restore%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocumentation.commvault.com%2Fcommvault%2Fv11%2Farticle%3Fp%3D103273.htm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ERe-Platforming%20(Cross-Platform)%20Restore%20Operations%20for%20Oracle%20(commvault.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDelphix%20virtualize%2C%20migrate%20and%20clone%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.delphix.com%2Fblog%2Fdelphix-engineering%2Fdelphix-unix-linux-oracle-conversion%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EDelphix%20Unix%20to%20Linux%20Oracle%20conversion%20%7C%20Delphix%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20no%20doubt%20there%20are%20more%20products%20than%20just%20these%20products%20to%20perform%20the%20database%20migration%20to%20a%20new%20Linux%20VM%20that%20you%20would%20deploy%20into%20Azure.%26nbsp%3B%20The%20challenge%20is%20%3CEM%3Elocating%20%3C%2FEM%3Ethem.%26nbsp%3B%20If%20you%20know%20of%20any%2C%20please%20feel%20free%20to%20respond%20in%20the%20comments%20and%20let%20me%20know%2C%20as%20my%20google%20searches%20have%20failed%20me.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--808380138%22%20id%3D%22toc-hId--808379431%22%3EUnix%20Emulation%2FVirtualization%20on%20Azure%3C%2FH1%3E%0A%3CP%3EFor%20some%20customers%2C%20the%20refactoring%20or%20changes%20required%2C%20which%20may%20not%20just%20be%20at%20the%20database%20layer%2C%20is%20just%20too%20much%20and%20an%20emulator%20is%20the%20answer.%26nbsp%3B%20There%20are%20two%20that%20I%E2%80%99m%20aware%20of%20that%20may%20help%20let%20you%20continue%20running%20your%20chosen%20Unix%20OS%20in%20Azure-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESkytap%20on%20Azure%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.skytap.com%2Fskytap-on-azure%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ESkytap%20on%20Azure%20-%20Give%20Your%20Traditional%20Systems%20New%20Life%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStromasys%E2%80%99%20Charon%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.stromasys.com%2Fsolutions%2Fcharon-on-the-azure-cloud%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECharon%20on%20the%20Azure%20Cloud%20%7C%20Stromasys%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EVMWare%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.vmware.com%2Fproducts%2Fvsphere%2Funix-to-virtual-linux.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EUnix%20to%20Virtual%20Linux%20%7C%20Unix%20Virtual%20Machine%20%7C%20VMware%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20used%20Skytap%20and%20VMWare%2C%20but%20have%20only%20heard%20about%20Stromasys'%20product.%26nbsp%3B%20I%20always%20am%20interested%20in%20how%20these%20perform%20and%20if%20there%20is%20any%20latency%20by%20having%20an%20emulator%20or%20virtualization%20on%20top%20of%20virtualization%20or%20even%20on%20top%20of%20bare%20metal%2C%20but%20I%20haven't%20had%20enough%20experience%20to%20tell%20you%20if%20any%20occurs%2C%20so%20please%20let%20me%20know%20if%20you%20have%20any%20experience%20with%20these!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20most%20important%20take-away%20from%20this%20post%20is%20that%20you%20aren%E2%80%99t%20stuck%20on%20legacy%20OS%20and%20your%20valuable%20Oracle%20workloads%20can%20come%20over%20to%20Azure%20no%20matter%20if%20you%E2%80%99re%20able%20to%20simply%20migrate%20them%20to%20an%20Azure%20Linux%20VM%20or%20if%20you%20want%20to%20emulate%20the%20Unix%20OS%20in%20Azure.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2776599%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20a%20lot%20of%20Oracle%20databases%20out%20there%20on%20Unix%20that%20may%20be%20holding%20customers%20back%20from%20going%20to%20the%20cloud.%26nbsp%3B%20It%E2%80%99s%20not%20uncommon%20to%20find%20many%20Oracle%20databases%20for%20our%20customers%20running%20on%20HP-UX%2C%20AIX%2C%20Solaris%2C%20or%20another%20Unix%20platform.%26nbsp%3B%20What%20options%20are%20there%20to%20bring%20these%20to%20Azure%3F%26nbsp%3B%20Read%20this%20blog%20post%20and%20find%20out!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2776599%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EData%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EData%20Architecture%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Sep 22 2021 04:43 PM
Updated by: