How to load or import backup file into new teradata database? - database-schema

I'm working in Teradata Database Express 14.04
I took the particular database build( backup the database) in Teradata Database.
The Archived file is stored in /roor/Documents/TD_BUILD. The file extension of TD_BUILD is (.File).
Now, how to import that file into new Database in Teradata?

To restore to a different system and/or database or to restore a dropped table you need a COPY instead of a RESTORE:
copy data tables(xyz),release lock,file=test;
Caution, restoring on database level drops all objects within first, i.e. ARCMAIN submits a DELETE DATABASE.
If you restore to a different database:
copy data tables(newdb) (from (xyz)),release lock,file=test;

Related

import incremental backup to a restored full backup

I am going to make a continuos backup for a PostgreSQL database, incremantal backup, indeed. In this regard, I have a main postgres database (database A) that data are continuously injecting and another database (database B) that it expects to receive the backup data from the main database.
I have already made a "basebackup" for the main database A and the incremental wal files are creating correctly. How can I import these basebackup and wal files in the database B?

How to migrate a db2 database

I have a db2 database on a device which does not have internect connectivity and would like to move this database to another place. I have taken a backup from my database, can I use the 'restore' command to create a clone of this database?
To move a Db2 database from on-premise to Db2 Warehouse on Cloud, one option is to use IBM Lift CLI. https://www.lift-cli.cloud.ibm.com/
You will need to have internet connectivity from the place your data resides on-premise - either a Db2 database, or failing that CSV files.
If all you have is a Db2 backup image, you would need to restore that into a local database, or use the (chargeable) utility High Performance Unload to extract table data as CSV files from the backup image. IBM Lift CLI does not support Db2 backup images as a source for migration to the cloud.
Note that if you use CSV files, you will need to extract the DDL from the source database and create the empty tables on the target.

How to archive old data in PostgreSQL without using Partition or cloning table

I have table it has more than 2GB data so I wanted to archive previous year old and kept in DB because it is effecting my application and DB performance.
I would suggest you to create a backup table with a different tablespace to archive your old data.
If you don't want to create a backup clone table, then you can take an export dump of your table using pg_dump utility. Note that to access the data you will have to import that dump into the database.

How to restore database in PostgreSQL with pgadmin3?

I'm using pgAdmin to restore PostgreSQL database. To restore the database I need to delete, drop and remake it. How to restore the database without deleting and remaking it?
This cannot be done in pgAdmin or with any database tools. Regular backup files cannot be restored without deleting the data first because they consist of normal COPY statements which will fail if you have rows in the database (primary keys collide etc).
For a simple way to get back to an earlier snapshot in a testing environment take a look at PostgreSQL documentation - 24.2. File System Level Backup:
For backup:
Shut down your database
copy all the files from your data directory
For restore:
Shut down your database
replace your data directory with the backup directory
Note:
the size of the data might be significantly larger than with a regular backup especially if you have a lot of indexes
this is a server wide backup so you can't do this on individual databases
don't attempt to use it on a different version of PostgreSQL
this really deletes the data too - by replacing it with the backup
Also with regular backups you don't have to do a DROP TABLE if you do a data-only restore with pg_restore --data-only for example. You still have to delete the data though.

deleting database in oracle 10g query

i want to drop a database in oracle 10g..
i saw the command
DROP database.
How to run this query and drop database.
If i tried this query, it is showing error as invalid query.
Oracle documentation states:
Dropping a database involves removing
its datafiles, redo log files, control
files, and initialization parameter
files. The DROP DATABASE statement
deletes all control files and all
other database files listed in the
control file. To use the DROP DATABASE
statement successfully, all of the
following conditions must apply:
The database must be mounted and closed.
The database must be mounted exclusively--not in shared mode.
The database must be mounted as RESTRICTED.
An example of this statement is:
DROP DATABASE;
The DROP DATABASE statement has no
effect on archived log files, nor does
it have any effect on copies or
backups of the database. It is best to
use RMAN to delete such files. If the
database is on raw disks, the actual
raw disk special files are not
deleted.
If you used the Database Configuration
Assistant to create your database, you
can use that tool to delete (drop)
your database and remove the files.