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
相关文档:
oracle表空间操作详解
1
2
3作者: 来源: 更新日期:2006-01-04
5
6
7建立表空间
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
很多朋友只用了Oracle的删除,但很多情况下,他会发现重新安装时,点了下一步安装界面就消失了,往往无奈下只好重装系统,其实只是你数据库没删干净,删干净就不会出现这种情况了。
实现方法:
1、开始->设置->控制面板->管理工具->服务停止所有Oracle服务。
2、开始->程序->Oracl ......
例:
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 ......
a)数据库本身的优化
初始化文件 init.ora
open_cursors = 150 打开的游标的个数
很多的存储过程的时候 可以把它调大些
......