Automated Backup of Oracle databases

Source: Internet
Author: User
Tags dba manual execution log connect ole require oracle database
The importance of data in a database is obvious to a management information system, and administrators are always trying to do everything they can to ensure their safety. In systems that require a 24-hour uninterrupted operation 7 days a week, administrators use UPS, RIAD, backup sites, and so on, almost

All the means to ensure high availability of the system. Yet a solid system can also have a crash day, and when that day arrives, the only thing that can save them is the data that is backed up in time. Data backup is, of course, the most important part of the day-to-day work of a database administrator, and one of the most tedious jobs. For DBAs in Oracle RDBMS, Oracle offers a variety of backup methods, with the most frequently used exp logic export tool. Because our system is an uninterrupted system, the system stores the basic information and other business information of hundreds of thousands of people. To ensure the security of the system, we have developed a detailed backup plan: two times daily hard disk backup, hard disk for at least a week of backup data, monthly settlement of the backup data engraved into the CD for permanent preservation. So I was caught up in the persistent, boring data backup work, use the Exp tool every day to export the data to the hard disk until one day you start using data backup expert software.

The data backup expert is a software designed for Oracle DBA to automate the logical backup of Oracle database systems, and after setting the appropriate parameters, it can periodically start the Exp tool to back up the data to the appropriate location on the hard disk. So, as Oracle DBA, I don't have to worry about the serious consequences of forgetting to back up something else.

The

Data backup expert software is backed up by invoking the Oracle self-contained EXP tool software, and the Oracle OLE object is also used in the software, so you must install Oracle client software in the terminal to ensure its proper operation. Configuring the Sql*net connection to the database server and ensuring that the Oracle Object for OLE option and Oracle Exp/imp tool options are installed are not difficult for DBAs. When the software is installed, click on the "Data backup Expert" icon in the Start menu to run the If you are running the software for the first time, it will prompt you to automatically run the data backup expert when the system restarts, and when you confirm it will automatically enter the connection settings interface to require setting the connection parameters. Because not set up with the Oracle database connection information, of course, can not achieve data backup, is it more humane? In connection settings you need to enter the user name, user password, and network service name that connects to the Oracle database (as required by Oracle, this user must have Exp_full_database and Imp_full_database permissions, and it is recommended that you give it DBA authority). This is probably the most common three things that DBAs use, and press the Connect Test button when you enter it. If the above three things are correct, the system will show successful connection. Press the Save button to save the information above without worrying too much about their security, they are all encrypted and saved, and the common decryption means cannot get Oracle's connection information. In order to record the log information of the data backup in the database, you also need to press the Create Log Table button to create a table named Bck_log in the database. At this point, the connection information is set to complete. Now you can connect to the Oracle database on the server through the data backup expert software, and then the parameters related to the data backup for this setting.

Into the Backup Options menu, in order to ensure that the information you set up is not compromised, the software's author here added a level of authentication protection, you need to enter the connection settings set in the user's password to enter, consider the more comprehensive? The first item of the backup parameter is the path and name of the backup execution file, which is the path and name of the Exp tool, and in fact it has been found in the system, and the result has been shown, and if it is true, it will not be changed. Of course, if it is not found, you have to trouble yourself. The second item is the storage path of the backup data, and it is recommended that you divide a larger space to give it a dedicated storage backup data. Of course, a large space also useful after a day, the software's author here for us to provide a practical option, ' when the space is not enough to delete the earliest backup files ', no need to worry about the lack of space caused by the backup failed, more considerate? The third is more complex, is to set the time of backup, because its settings are limited by the latter one, we should skip to the following. The fourth item is the backup content, which has two options: the entire database and the user list. The entire database is to guide all the objects in the database, and the user list method only exports the objects owned by the specified user, at which point you need to enter the user's name in the text box, separated by a "," number between users. Exporting the entire database can also be subdivided into full, cumulative, and incremental exports, and the default is full export. Now back to the backup time option, if you select a list of users in the backup, you will find that only two backup times can be set in the backup time, that is, two data backups can be performed automatically every day, and other settings options are not available. Set these two times, it will be on time to export all the objects under the user, which is very useful for the small amount of data. When you select the entire database, from Monday to Sunday and the cumulative export options become available, you can set up your own data backup schedule seven days a week, in addition to the two backup times per day. If you do a full export backup in Sunday and Wednesday, the other time uses the cumulative export backup. Choosing a full export and cumulative export in a timely manner can reduce backup time and save storage space, which is very useful for large data backup. Finally-items are settings for advanced options where you can set advanced parameters such as export buffers, etc., and generally use the default values. Press the Save button, and if there is no error message setup work is done. If you are not comfortable, the bottom text box lists the backup execution statements that are generated based on the parameters you set up, which you can copy and try running in the Start menu "Run" to see if it executes correctly.

Now the data backup expert can enter standby mode to wait for the arrival of time, in addition to those mentioned above, it has several other practical functions. The log viewing feature records all backup log information in the last 30 days, and double click to view Oracle build backup log files. The manual backup feature is used for a temporary manual backup, and the backup data file has the extension "HD", which uses the same backup parameters as the current setting. Another important feature is the data recovery feature, which calls Oracle's IMP tool to restore the backed-up data to the database, and the operational hints are clear enough to stop here. Such a good backup assistant, you are not also want to have a, as soon as possible from the boring backup operation freed out, hurriedly download a trial!



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.