I'm trying to use impdp on RHEL without GUI. I'm not sure if my direction is correct. Since RHEL has no GUI, so what I do is install SQLcl from https://www.oracle.com/tools/downloads/sqlcl-downloads.html
Basically my objective is to migrate on-premise oracle database to RDS and this RDS can only be accessed by particular EC2 instance. In other words, I would need to find a way to perform Data Migration by SSH into this EC2. Wondering if anyone can shed some light on whether my direction is correct? Or is there any simpler way to do it?
Importing Data into Oracle on Amazon RDS
You do not have direct access to the RDS instance file system.
There are several data migration solutions.
The first solution using S3 Bucket.
Export data from the premise database using expdp.
Upload the dump file to the S3 cloud.
Copy Dump File from Amazon S3 Bucket to the RDS instance.
Use DBMS_DATAPUMP to Import the DUMP File on the RDS Instance.
The second solution using Database Link.
Export data from the premise database using expdp.
Create a Database Link to the RDS Instance.
Use DBMS_FILE_TRANSFER to Copy the Dump File to the RDS Instance.
Use DBMS_DATAPUMP to Import the DUMP to the RDS Instance.
The third solution using Oracle XE, if you cannot make a db link between your DB and RDS instance.
Export data from the premise database using expdp.
Create a free instance of EC2(1 CPU core, 1G RAM, 30GD HDD ) or a
paid instance with a large disk and CPU.
Install a free database version of the Oracle XE version on EC2 instance.
Copy files to the DUMP directory to Oracle XE on EC2 instance via the sftp protocol.
Create a Database Link to the RDS Instance Use DBMS_FILE_TRANSFER to
Copy the Dump File to the RDS Instance.
Use DBMS_DATAPUMP to Import the DUMP to the RDS Instance.
And other solutions without using DATA PUMP:
Importing Using Oracle SQL Developer.
Oracle Original Export/Original Import Utilities
Oracle SQL*Loader Oracle Materialized Views using db link
Related
The objective is to migrate the tables and other artifacts in a 32-bit MS Access DB to Azure Cloud? Is there any service available in Azure which can integrate with 32-bit Access?
If you connect to your Azure SQL database using SSMS on your local machine, you should be able to use the Import / Export Wizard in SSMS to load the Access data into Azure.
That tool is the SQL Server Migration Assistant for Access (AccessToSQL)
Is there a way to convert other artifacts in Access like reports and
procedures to Azure SQL?
Nope. It is about data only. All other objects live in Access. Reports may be recreated using Reporting Services, but no conversion exists.
We have 2 SQL Server databases. One of them is to be moved to AWS cloud.
Is Amazon RDS the ONLY approach to move the SQL Server to AWS?
What is the best way to automate data transfer of table data from the SQL Server that IS in the cloud to the SQL Server that is NOT in the cloud?
The volume and complexity of data is not high in our case. We need to migrate only ONE table and we'd like to automate it to run every night.
Would AWS Glue be useful for this? Would it help in loading data from INSIDE the cloud to OUTSIDE?
I also just found DMS - https://aws.amazon.com/dms/
But the homepage says "Migrate your databases **to** AWS with minimal downtime"
Can I do the opposite with DMS? Can I migrate data **FROM** AWS to outside AWS?
Amazon RDS is not the only approach to host SQLServer in the cloud. You can use an EC2 instance and install SQLServer manually. This could make sense in case you want to have sys_admin privileges. But be careful, as you would have to do patching all by yourself. I would not recommend doing that.
DMS is a good way to migrate your data every night. The service you are looking for is continuous data replication from DMS. Glue can also be used for this task. Glue's purpose was never to do database replication. Hence, it could be a pain monitoring the replication & debug in case of errors. That is why I would recommend DMS.
AWS DMS has schema conversion tool and other advanced features in database migration.So is it possible to do SQL server database inside a vm to some other cloud's mysql(due to business reasons) migration by using AWS DMS?or the target database should be inside AWS RDS?The source data size is close to 60GB and tables are close to 300.Please advice
the target database should be inside AWS RDS.
I'm signed up to Amazon Web Service (AWS) free tier, which allows you to run some very limited instances of EC2 and RDS for free.
I've created an RDS instance running SQL Server 2012 Express - this does not allow remote desktop access, so I also have an EC2 instance running Windows Server 2012 base, and I have installed SQL Server Management Studio and I'm able to connect.
I would like to import some kind of sample database - for example, Northwind, AdventureWorks, or anything that has at least a handful of tables and relationships. The reason is I want to just experiment and practice on a few things (for example, I want to try out the EXPLAIN feature to get to learn how the relational algebra works and how SQL plans out various test queries).
My problem is that Amazon's RDS does not allow me to restore a .BAK file, as local disk access is not allowed, and neither is FILESTREAM, so I can't just download a sample database backup and restore it.
Amazon document their workaround here, which involves creating a local instance of SQL Server on the EC2 instance (my machine with SQL Server Management Studio installed, which I have RDP access to), and use the Generate and Publish Scripts Wizard to import data from the EC2 to the RDS. My problem here is that I don't have enough disk space to install a local database instance - as I'm on the free tier I'm limited to 30GB total disk space for the server, so the OS + SQL Server Management Studio leaves just a couple of gigs. So I'm totally stuck.
Does anyone have any genius ideas here? Maybe some pre-made bulk insert scripts I can use (I can't find any) or some other solution? The database doesn't have to be big, just something to work with. Of course I could always pay to increase my disk space, and go through the whole tedious process outlined by Amazon, but I'd rather not!
Thanks
I got a perfect answer over on dba.stackexchange.com - there's a mini version of Northwind (2.6MB) here which has a script for creating the schema / importing the data. Thanks Tripp for suggesting I ask the question over there!
Ok, I know this may sound stupid but, is there any way to deploy a database from a .bak file exported from SQL Server into any kind of Mac software? If there, which one?
If that is not possible, is there a way that I could deploy that database if I first deploy it into SQL Server and export it, maybe in a different way?
Thanks in advance.
The bak file created by SQL Server is a database backup file, and you will only be able to restore it to a Microsoft SQL Server instance.
If you want to port a MSSQL database to some other RDBMS, your best bet is to use a tool for migrating the data directly from the running MSSQL datbbase to another running RDBMS. Perhaps a third party tool, or you could build an SSIS package to do the migration.
You can create a MySQL database and try the MySQL migration tool.
But just given a .bak file, you will not be able simply to read the file; you will need to extract data from a running database instance.