CREATE USER backup_user?WITH ENCRYPTED PASSWORD ‘qux94874‘;
GRANT CONNECT ON DATABASE foo_db to backup_user;
GRANT CONNECT ON DATABASE bar_db to backup_user;
\c foo
GRANT USAGE ON SCHEMA public t...
分类:
其他好文 时间:
2015-09-28 19:32:46
阅读次数:
124
使用自带的powerShell工具,以管理员身份运行,比如镜像的目标位置为F盘,那么用下面的命令即可,wbAdmin start backup -backupTarget:F: -include:C: -allCritical -quiet 更详细的见:http://jingyan.baidu...
#mkdir -p /home/db_backup#cd /home/db_backup #vim mysql_backup.shDATE=$(date +%Y%m%d_%H%M%S)/alidata/server/mysql/bin/mysqldump --opt -uroot -ppasswor...
分类:
数据库 时间:
2015-09-26 14:39:44
阅读次数:
179
适用于SQL Server 2005的方法 --------------------------------------------- 复制代码 代码如下: USE DNName GO 1,清理日志 复制代码 代码如下: Backup Log DNName WITH no_log GO 2,截断.....
分类:
数据库 时间:
2015-09-25 20:23:39
阅读次数:
343
2015-09-23mysql导出1.导出数据库mysqldump -u用户名 -p密码 库名 > 库名_backup.sql2.只导出所有表结构,不导出表数据mysqldump -u用户名 -p密码 -d 库名 > 库名_d_backup.sql3.只导出所有表数据,不导出表结构mysqldump...
分类:
数据库 时间:
2015-09-23 19:30:56
阅读次数:
202
I.备份所有归档日志文件RMAN> BACKUP FORMAT '/u01/backup/arch_%U_%T' skip inaccessible filesperset 5 ARCHIVELOG ALL DELETE INPUT;II.使用RMAN方式清除RMAN清除方式会自动清除磁盘上的归档日...
分类:
其他好文 时间:
2015-09-23 17:02:50
阅读次数:
190
github使用SSH链接,需要设置SSH1.检查SSH key cd ~/.ssh2.备份已有的key,(如果有的话) mkdir key_backup cpgithub_rsa* key_backup rm github_rsa*3.生成SSH key$ ssh-keygen -t rsa .....
分类:
其他好文 时间:
2015-09-22 16:03:16
阅读次数:
120
RMAN用来存放数据库元数据的schema。the catalog includes the following types of metadata:-Data file and archived redo log backup sets and backup pieces-Data file co...
分类:
其他好文 时间:
2015-09-22 14:15:01
阅读次数:
316
View the Exhibit and examine the RMAN commands.
Which statement describes the effect of a backup retention policy on the backup of a backup set?
A.Either all the copies of a backup set are obsolete or...
分类:
其他好文 时间:
2015-09-21 17:59:29
阅读次数:
150
一.RMAN备份源库注意点:最好保留rman备份日志$rman target / log=backup.logRMAN>run {allocate channel t1 type disk;allocate channel t2 type disk;allocate channel t3 type ...
分类:
数据库 时间:
2015-09-21 15:28:28
阅读次数:
282