oracle 数据库的备份及恢复.ppt
文本预览下载声明
数据库的备份与恢复;Question; 假设各用户初始时都不具有权限,经过下列语句的执行
问myuser1, myuser2,user1, user2和user3各具有什么权限?
SQLgrant create table to myrole1 with admin option;
SQLgrant create session to myrole1;
SQLgrant myrole1 to myrole2 with admin option;
SQLgrant myrole1 to myuser1;
SQLgrant myrole2 to myuser2 with admin option;
SQLconn myuser1/abc
SQLgrant myrole1 to user1;
SQLconn user1/123
SQLgrant create session to user2;
SQLconn myuser2 /abc
SQLgrant create table to user3;
;目标;本章内容;本章内容导航;数据库备份和恢复概述——备份和恢复的概念;数据库备份和恢复概述——数据库系统故障类型; Oracle数据库的备份包括以下两种类型:;导出/导入(EXPORT/IMPORT)
将ORACLE中数据移出/移入数据库。
导出实用程序将数据库中的对象定义和数据备份到一个操作系统二进制文件中。
导入实用程序读取二进制导出文件并将对象和数据载入数据库中。;数据库备份和恢复概述——物理备份类型;本章内容导航;逻辑备份和恢复(导出/导入)——三种工作方式;逻辑备份和恢复(导出/导入)——三种模式;逻辑备份和恢复(导出/导入)——增量导出/导入; 导出工具exp交互式命令行方式使用的例子
$exp test/test@hdu
Enter array fetch buffer size: 4096 回车
Export file: expdat.dmp c:\mybak.dmp 生成导出的文件名
(1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U 3
Export table data (yes/no): yes 回车
Compress extents (yes/no): yes 回车
Export done in ZHS16GBK character set and ZHS16GBK NCHAR character set
About to export specified tables via Conventional Path ...
Table(T) or Partition(T) to be exported: (RETURN to quit) stu 要导出的表名
. . exporting table CMAMENU 4336 rows exported
Table(T) or Partition(T) to be exported: (RETURN to quit) 要导出的表名n
Table(T) or Partition(T) to be exported: (RETURN to quit) 回车
Export terminated successfully without warnings. ;导入工具imp交互式命令行方式使用的例子
$ imp
Import: Release 8.1.6.0.0 - Production on 星期五 12月 7 17:01:08 2001
(c) Copyright 1999 Oracle Corporation. All rights reserved.
用户名:test
口令:****
连接到: Oracle8i Enterprise Edition Release 8.1.6.0.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
导入文件: expdat.dmp c:\mybak.dmp
输入插入缓冲区大小(最小为 8192 ) 30720
经由常规路径导出由EXPORT:V08.01.06创建的文件
已经完成ZHS16GBK字符集和ZHS16GBK NCHAR 字符集中的导入;导入工具imp交互式命令行方式使用的例子(续)
只列出导入文件的内容(yes/no):no
由于对
显示全部