Key Takeaway:
- An on-premises Oracle database can be migrated to Azure Cosmos DB using the “Lift and Shift” method with Azure Cosmos DB for PostgreSQL. This involves connecting to Azure Cosmos DB, creating a new database, migrating data and re-pointing DNS to Azure Cosmos DB for successful migration outcome. This was discussed at the Azure Cosmos DB Conf 2023 by speakers Andre Racz and Yan Borowski Machado.
- To copy data to and from Oracle, Azure Data Factory or Azure Synapse Analytics can be used, with the Oracle Connector. However, there are some limitations to note, and it requires a Self-Hosted Integration Runtime or a Managed Virtual Network Integration Runtime to connect to on-premises networks. Connections from Azure Integration Runtime to approved IPs in the firewall can be added for data stores located in self-hosted networks or managed cloud data services. This information was mentioned in the documentation for Azure Data Factory and Oracle’s website.
- Remote Oracle databases can be connected to using ODBC data sources. Technology such as Oracle Database Gateway for ODBC and Heterogeneous Services, as well as tools like CData ODBC Driver for Cosmos DB can be used for this purpose. Connection strings can be obtained from Azure Portal, and connection properties can be specified using Microsoft ODBC Data Source Administrator for Windows or by modifying System Data Sources File for Linux. This information was mentioned in the documentation for CData.
Migrating On-Premises Oracle Database to Azure Cosmos DB
Migrating an on-premises Oracle Database to Azure Cosmos DB can be challenging, but it can also be incredibly beneficial in the long run. In this section, we’ll explore the popular “Lift and Shift” migration method and the steps involved in connecting to Azure Cosmos DB, creating a new database, migrating data, and re-pointing DNS. We’ll also touch on the importance of a successful migration outcome and how it can streamline and optimize your database navigation with Azure Cosmos DB.
“Lift and Shift” Migration Method
Migrating an Oracle Database to Azure Cosmos DB can be easy with “Lift and Shift”. This method uses the existing database without any changes and deploys it in the cloud.
To start, connect to Azure Cosmos DB and create a new database.
No complex code rewriting or changes to the database schema are needed with “Lift and Shift”. This makes the migration faster. But, following best practices is essential for successful deployment.
Azure Data Factory or Azure Synapse Analytics are recommended for moving the data, depending on the requirements. Working with a knowledgeable network partner can further improve the timeline.
Creating a new database on Azure Cosmos DB makes the migration from Oracle simpler and more cost-effective.
Connecting to Azure Cosmos DB and Creating a New Database
- To link to Azure Cosmos DB and build a new database, take these steps.
- Log in to the Azure portal using your credentials.
- Create a Resource Group for Azure Cosmos DB customers.
- Select ‘For Data Storage’ and locate ‘Azure Cosmos DB‘ in the category.
- Fill out the info, choose the location, API type, consistency level, pricing tier, and apply tags.
- Tap ‘OK‘ to create the resource.
- It’ll take some time before it appears in the resource groups.
Be sure to choose the correct pricing tier for data size and usage limits. Think about projections like number of collections, throughput consumption values for optimal performance.
Remember this when making new resources through Azure Cosmos DB: On free subscription tiers or pay-as-you-go models, you can provision up to four databases. After you reach that sum, if you try to make more, you’ll have to pay for more databases.
Developers: CData Software provides ODBC Drivers/Connectors for over 180+ SaaS/cloud services including Cosmos DB. These drivers speed up SQL access to NoSQL platforms like Cassandra, HBase, MongoDB, Elasticsearch, and more. They can reduce integration costs during software development projects.
Migrating Data and Re-Pointing DNS to Azure Cosmos DB
Migrating data and re-pointing DNS to Azure Cosmos DB is complex. The 1st step is to prepare the source Oracle database with RMAN or other backup tools. Make an instance of Azure Cosmos DB with an appropriate API for Oracle data. Through either the Azure portal or the Azure CLI.
Security checks come next. Configure firewall rules to allow traffic from the source Oracle database to the new Azure Cosmos DB one. This helps the migration process to be successful and secure.
Migrate the data from on-premises Oracle to Azure Cosmos DB with a tool that supports both databases, like Azure Database Migration Service. This ensures all data is transferred accurately.
Configure apps so they point to the new location of the database on Azure Cosmos DB instead of the old one. Apps may need configuration changes so they can connect.
Update DNS records to point users and clients to the newly migrated Azure Cosmos DB database instance. This helps them access the data.
Throughout the migration process, make sure you have easy access to information about your Cosmos DB or Oracle database. Export files or manuals, they can be used in each task.
Successful Migration Outcome
Migrating an on-premises Oracle Database to Azure Cosmos DB? It can be successful if you take the right steps. Follow this article for a successful outcome.
First, use the “Lift and Shift” Migration Method. Then, create a new database and connect to Azure Cosmos DB. You can use the Azure Portal or PowerShell.
Next, migrate the data and re-point DNS to Azure Cosmos DB. It’s important to use the Schema Conversion Tool (SCT) if needed. Remember to adhere to security measures and manage firewall configurations.
For a smooth migration, also manage the transfer speed of large databases. With the right approach and these tips & tools, your Oracle Database migration to Azure Cosmos DB will be successful – and you’ll still have your sense of humor!
Copying Data to and from Oracle Using Azure Data Factory or Azure Synapse Analytics
Copy data between Oracle and Azure with ease using Azure Data Factory or Azure Synapse Analytics. The Oracle Connector supports capabilities in both tools. When using the Oracle Connector, note that a proxy server may be required if the Oracle database is behind a firewall. This can be configured in the Integration Runtime settings, whether using the Self-Hosted Integration Runtime or the Managed Virtual Network Integration Runtime.
Supported Capabilities of Oracle Connector
The Oracle Connector offers some awesome capabilities for data migration! Such as:
- Full Load, Incremental Load, and Merge Strategies
- Source and Target Platforms: Oracle DB or Big Data Systems
- Table Mode or SQL Query Mode Support
- Pushdown Optimization of Transformations
- Distributed Processing in Hadoop Clusters
The first capability means you can migrate from Oracle to Azure Cosmos DB. It also has high platform flexibility, so it supports Oracle DB and Big Data Systems. You can choose table mode or custom SQL queries.
Pushdown optimization is great! It does computational tasks on source databases and reduces network traffic – making your migration faster. With distributed processing, you get advanced scalability and real-time performance.
However, keep in mind factors like network bandwidth, source platform limits, infra constraints, etc. can affect these features. The Oracle Connector still provides great capabilities for data migration.
Note on Oracle Proxy Server
Migrating to Azure Cosmos DB requires the Oracle Proxy Server. It ensures secure communication with on-premises clients and the cloud database. To do this, users need SSL certificates from the Azure Portal. Additionally, they need a Direct Internet connection to access the cloud database or other AWS public services.
The Oracle Proxy Server requires Oracle Integration Runtime (IR) V2 or above, which needs to be set up before migration. There are multiple versions of the software, including some with minor bugs and undocumented server parameters. These could affect HTTPS connections.
Note on Self-Hosted Integration Runtime
Want to connect to Oracle and transfer data through Azure Data Factory or Synapse? Consider the Self-Hosted Integration Runtime. It’s complex, but this section will help you understand how it works.
Windows, Linux, and Docker containers are supported. You’ll need JDK 8+, Python 2.7/3.6/3.7/3.8, and .NET Core Runtime 2.1+. You’ll also need to configure settings like port number, runtime proxy, etc.
Most importantly, it provides secure communication between on-premises and cloud-based services like Cosmos DB. So, you can migrate data safely.
In summary, this section gives a comprehensive guide to using the Self-Hosted Integration Runtime for Oracle-related tasks in Azure. Don’t forget to explore the Managed Virtual Network Integration Runtime for more networking fun!
Using Managed Virtual Network Integration Runtime
MVNIR: Managed Virtual Network Integration Runtime provides a secure and reliable way to copy data from Oracle to Azure Cosmos DB. With MVNIR, traffic is encapsulated into a VNet tunnel for extra security. Setting it up requires creating an integration runtime and associating it with a VNet. Then, install it on a VM in the target VNet which meets the required standards.
Once configured, MVNIR can copy data from Oracle databases to both single and multi-master Cosmos DB accounts. It uses the Oracle database connector via ODBC to read from tables and write data to collections.
Prior to setting up MVNIR, ensure you have the right permissions and credentials for accessing the source and target resources. Microsoft documentation has detailed instructions for configuring MVNIR integration runtime.
In conclusion, MVNIR offers a secure and efficient way to connect to remote Oracle databases using ODBC for Azure-based services.
Connecting to ODBC Data Sources as Remote Oracle Databases
Connecting to data sources outside of Oracle HCM can be beneficial for organizations. In this section, we will discuss the ways to connect with ODBC data sources as remote non-Oracle databases. We will explore the technology involved in it, such as the Oracle Database Gateway for ODBC and Heterogeneous Services. We will also examine the tools available, such as the Microsoft ODBC Driver for SQL Server. Last but not least, we will discuss the required steps to obtain a connection string from the Azure Portal and how to specify connection properties using Microsoft ODBC Data Source Administrator or modifying the System Data Sources File for Linux, as per the guidelines available.
Technology: Oracle Database Gateway for ODBC and Heterogeneous Services
The Oracle Database Gateway for ODBC and Heterogeneous Services is a tech that gives users access to data sources outside of the Oracle database environment. It provides connection management, data access, metadata info, and security. It also offers user authentication/authorization and access to nested tables, LOBs, etc. However, it hasn’t been tested or certified with all third-party databases. It must also be installed and configured properly with possible licensing needs depending on Oracle version used.
Despite limitations, the Oracle Database Gateway enables access across heterogeneous databases. An example of successful implementation was for a company needing to integrate an Oracle Human Capital Management (HCM) system with Azure Cosmos DB. Using the Oracle Database Gateway, they connected their on-premises HCM system with Azure Cosmos DB without code changes. This allowed them to take advantage of Azure Cosmos DB’s powerful indexing while still using their HCM system infrastructure.
Tool: CData ODBC Driver for Cosmos DB
The CData ODBC Driver for Cosmos DB is an impressive tool. It allows users to connect to Azure Cosmos DB from an Oracle database. They can access data stored in Cosmos DB and use it like a NoSQL database, without having to write new code or modify existing apps.
Users can get the connection string from the Azure Portal. They can also specify connection properties with Microsoft ODBC Data Source Administrator or JDBC connection properties. This driver enables users to connect to Azure Cosmos DB through many interfaces including ODBC, JDBC, and ADO.NET.
Users can query data from documents in Cosmos DB collections. They can manipulate data using standard NoSQL statements. They can even navigate databases with Oracle HCM Cosmos DB. This tool helps developers with any skill level to take advantage of documents in Azure Cosmos DB while using their existing NoSQL skills and tools.
In conclusion, the CData ODBC Driver for Cosmos DB is invaluable for Oracle users who want to access and update data stored in Azure Cosmos DB. It gives a smooth integration which allows users to use their existing NoSQL skills and tools. This makes it easy to navigate databases and manipulate data to their particular requirements.
Obtaining Connection String from Azure Portal
Connecting to Azure Cosmos DB is easy! Here are three steps to get your connection string from Azure Portal:
- Log in to Azure and go to your Cosmos DB account.
- Select “Keys” from the menu and choose the appropriate API.
- Copy and save the primary or secondary connection string.
Be aware, different APIs might require different authentication like key-based or resource token authentication. Plus, they could need different connection properties or headers. So, check the docs for the API you’re using.
Tip: Test your connection first. Try Azure Portal or Visual Studio Code with the right extensions.
To make ODBC connections easy, use Microsoft ODBC Data Source Administrator. Obtaining a connection string from Azure Portal is a piece of cake!
Specifying Connection Properties Using Microsoft ODBC Data Source Administrator
To connect to Cosmos DB using ODBC, it is essential to configure the connection properties in Microsoft ODBC Data Source Administrator. To do this, open the Start menu, launch the application, select System DSN, and click “Add”. Then, pick “CData ODBC Driver for Cosmos DB” from the list and set up the connection details, such as server URL, authentication method, and database credentials.
Microsoft ODBC Data Source Administrator allows users to define all connection parameters for linking Cosmos DB and an ODBC data source. By creating a System DSN entry, with the right settings, users can connect to Cosmos DB and an on-premises third-party database.
It is noteworthy that configuring connection properties with Microsoft ODBC Data Source Administrator is simple, however, particular details may need more attention depending on the database configurations. For example, Linux environment users may need to modify system data sources files when navigating databases with Cosmos DB.
To guarantee a successful connection, it is advisable to keep records of all configuration settings, use troubleshooting resources provided by vendors like CData Software, and take advantage of cloud-hosted versions of Cosmos DB. Also, thoroughly testing connectivity and monitoring log files can help identify any potential issues quickly.
Modifying System Data Sources File for Linux
To alter the system data sources file on Linux, use these five steps:
- Open Terminal and go to the system data sources file using ‘cd /etc/‘.
- Edit the odbc.ini file with a text editor like vi or nano. Enter ‘vi odbc.ini‘.
- Add a new data source entry. Copy and paste an existing one as a template. Replace source name, driver path, database name and connection string.
- Save changes for vi by typing ‘:wq’. For nano press ctrl+x then ‘y’ and ‘enter’.
- Test connection with ‘isql -v CONNECTION_NAME username password‘.
It is important to note that changing the system data sources file needs the right permissions and knowledge of text editors. Take care when making modifications.
Backup the original data sources file before making any changes. This avoids losing important configurations. When working with sensitive info in Cosmos DB, use secure authentication methods like Azure AD integration. This makes sure only the right people can access and modify data sources.
Five Facts About Migrating On-Premises Oracle Databases to Azure Cosmos DB:
- ✅ “Lift and shift” method with Azure Cosmos DB for PostgreSQL can be used to successfully migrate on-premises Oracle databases to Azure Cosmos DB for improved infrastructure efficiency and increased migration speed. (Source: https://learn.microsoft.com/en-us/events/azure-cosmos-db-conf-2023/migrating-from-oracle-to-azure-cosmos-db-on-azure-optimizing-infrastructure-and-increasing-migration-speed)
- ✅ Azure Data Factory and Azure Synapse Analytics support Oracle connector for IR, Copy activity (source/sink), Lookup activity, and Script activity to copy data from and to Oracle databases. (Source: https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle)
- ✅ The Oracle Database Gateway for ODBC and Heterogeneous Services technology can be used with CData ODBC Driver for Cosmos DB to create a database link from Cosmos DB to Oracle and query Cosmos DB data through SQL tools. (Source: https://www.cdata.com/kb/tech/cosmosdb-odbc-oracle-hs.rst)
- ✅ Azure provides tools and resources for application development and modernization, including low-code app development, microservice applications, mobile apps, DevOps, DevSecOps, and serverless computing. (Source: https://azure.microsoft.com/en-us/solutions/oracle/)
- ✅ Navigating databases with Oracle HCM Cosmos DB requires strategic planning and execution, including selecting the right tools, following best practices for data migration and integration, and prioritizing security and accessibility. (Sources: https://learn.microsoft.com/en-us/events/azure-cosmos-db-conf-2023/migrating-from-oracle-to-azure-cosmos-db-on-azure-optimizing-infrastructure-and-increasing-migration-speed, https://docs.oracle.com/en/cloud/paas/goldengate-service/aohig/, https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle)
FAQs about Navigating Databases With Oracle Hcm Cosmos Db
‘
What is the Oracle commitment to accessibility?
n
Oracle has a commitment to accessibility and provides support for hearing-impaired individuals. For more information, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc. Customers who have purchased support from Oracle can access electronic support through My Oracle Support at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info.
nn
Can I migrate on-premises Oracle databases to Azure Cosmos DB using the “lift and shift” method?
n
Yes, you can migrate on-premises Oracle databases to Azure Cosmos DB using the “lift and shift” method with Azure Cosmos DB for PostgreSQL. The objective is to teach how to migrate on-premises Oracle database to Azure Cosmos DB using “lift and shift” method with Azure Cosmos DB for PostgreSQL. Improved infrastructure efficiency and increased migration speed can be achieved by re-pointing DNS to Azure Cosmos DB. Attend the session with Andre Racz and Yan Borowski Machado to learn more.
nn
What is Azure Application and Data modernization?
n
Azure Application and Data modernization allows for faster response to changes, cost optimization, and confident shipping. It accelerates time to market, delivers innovative experiences, and improves security. For more information, visit https://azure.microsoft.com/en-us/solutions/oracle/.
nn
What is the partition option for copying data from Oracle using Azure Data Factory or Azure Synapse Analytics?
n
The partition option enables parallel copying from an Oracle source for faster migration speed. Supported capabilities include Azure integration runtime, self-hosted integration runtime, and Oracle 19c R1 (19.1) and higher, Oracle 18c R1 (18.1) and higher, Oracle 12c R1 (12.1) and higher, Oracle 11g R1 (11.1) and higher, Oracle 10g R1 (10.1) and higher, Oracle 9i R2 (9.2) and higher, Oracle 8i R3 (8.1.7) and higher, and Oracle Database Cloud Exadata Service. However, Oracle proxy server is not supported, and a self-hosted integration runtime is required to connect to data stores located inside an on-premises network, an Azure virtual network, or Amazon Virtual Private Cloud. For more information, visit https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle.
nn
How can I create a database link from Cosmos DB to Oracle?
n
The CData ODBC Driver for Cosmos DB can be used to create a database link from Cosmos DB to Oracle and query Cosmos DB data through SQL*Plus tool or SQL Developer. To connect to Cosmos DB, obtain the connection string by logging in to the Azure Portal, selecting Azure Cosmos DB, and selecting the account. In the Settings section, click Connection String and set the values for AccountEndpoint and AccountKey. For Windows, specify connection properties in an ODBC DSN using the Microsoft ODBC Data Source Administrator. Use a system DSN and match the bitness of the DSN with the Oracle system. For Linux, the driver installation predefines a system DSN that can be modified by editing the system data sources file (/etc/odbc.ini). For more information, visit https://www.cdata.com/kb/tech/cosmosdb-odbc-oracle-hs.rst.
nn
What is DevSecOps?
n
DevSecOps is a process that builds secure apps on a trusted platform by embedding security in the developer workflow and fostering collaboration between developers, security practitioners, and IT operators. It ensures that security is part of the entire application development lifecycle from design to deployment and ongoing maintenance.
nn