Oracle学习笔记摘录10
<1>逻辑备份
不用去拷贝数据库的物理文件
备份逻辑上的结构
外部的工具:导出和导入的工具
DOS下的命令 cmd下执行
导出exp export缩写形式
查看帮助 exp help=y
使用参数文件导出
exp parfile=c:\abc.par
>>>abc.par的内容
a)scott用户连接导出自己的所有对象
userid=scott/tiger --连接的用户scott
file=c:\a1.dmp --导出的文件的名字a1.dmp
--导出了scott用户的所有对象
b)用system连接来导出scott下的所有对象
exp parfile=c:\sys.par
>>>>sys.par的内容
userid=system/manager
file=c:\b1.dmp
owner=(scott) --导出scott用户的所有对象
导出多个用户的数据
建立一个测试用户 test
grant connect,resource
to test identified by t123;
alter user test
default tablespace users
temporary tablespace temp;
create table student(
stu_id number(4) primary key,
stu_name varchar2(20),
stu_score number(2)
);
insert into student values (1000,
'Mike',95);
insert into student values (1001,
'John',90);
导出scott和test下的所有对象????
>>>userid=system/manager
file=c:\st.dmp
owner=(scott,test)
导出scott下的emp,dept表????
>>>userid=system/manager
相关文档:
为了确定表空间中包含那些内容,运行:
select owner,segment_name,segment_type
from dba_segments
where tablespace_name='<name of tablespace>'
查询表空间包含多少数据文件。
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of t ......
Oracle数据库有三种标准的备份方法,它们分别是导出/导入(EXP/IMP)、热备份和冷备份。导出备件是一种逻辑备份,冷备份和热备份是物理备份。
一、 导出/导入(Export/Import)
利用Export可将数据从数据库中提取出来,利用Import则可将提取出来的数据送回到Oracle数据库中去。
1、 简单导出数据(Export)和导 ......
Oracle数据库进程概述:
Database buffer cache主要用于存储数据文件中的数据块
数据库高速缓存的数据块是高速缓存与数据文件进行信息交换的基本单位。在Oracle数据库8i以前,数据块大小只有一种,而Oracle数据库9i以后支持2K,4K,8KB,16KB及32KB五种。
用命令SQL>SHOW PARAMETER DB可以显示当前数据库的BUFF ......
例:
create user his identified by his default tablespace users temporary tablespace temp;
grant connect,resource,dba to his;
create tablespace his
logging
datafile 'd:\oracle\product\10.2.0\oradata\zjxsh\his.ora' size 100M extent
management local segment space management auto;
exp his/ny@ny ......
1、配置hibernate:
1.1、配置hibernate的持久类文件中对应的字段为byte[]类型
2.2、配置hibernate的类映射文件中对应的字段type为
org.springframework.orm.hibernate3.support.BlobByteArray ......