1:进行plsql后选怎Tools---------》Exports User Ojbects-------------》选中需要导出的table,squence,view,type,function,procedure,trigger。---------------------》
选择User------------》勾选Include storege或者去掉勾选(include storege表示表空间的意思)-----------》选择导出文件存放目录---------》Export按钮导出
2:下面具体解释一下Include Storage勾选和不勾选的区别
1)不勾选导出的sql如下:
create table TRAVELSKY_XREZAGENT.AUDIT_TRAIL
(
product VARCHAR2(32 CHAR) not null,
environment VARCHAR2(32 CHAR) not null,
server VARCHAR2(32 CHAR) not null,
resource_path VARCHAR2(256 CHAR) not null,
action VARCHAR2(4 CHAR) not null,
username VARCHAR2(32 CHAR) not null,
usergroup VARCHAR2(32 CHAR) not null,
address VARCHAR2(32 CHAR) not null,
timestamp DATE default TO_DATE('00-01-01 00:00:00','YY-MM-DD HH24:MI:SS') not null,
status VARCHAR2(16 CHAR),
data NCLOB
)
;
2)勾选后导出的sql如下,加上了table所属的表空间,以及可用的表空间限制
create table TRAVELSKY_XREZAGENT.AUDIT_TRAIL
(
product VARCHAR2(32 CHAR) not null,
environment VARCHAR2(32 CHAR) not null,
server VARCHAR2(32 CHAR) not null,
resource_path VARCHAR2(256 CHAR) not null,
action VARCHAR2(4 CHAR) not null,
username VARCHAR2(32 CHAR) not null,
usergroup VARCHAR2(32 CHAR) not null,
address VARCHAR2(32 CHAR) not null,
timestamp DATE default TO_DATE('00-01-01 00:00:00','YY-MM-DD HH24:MI:SS') not null,
status VARCHAR2(16 CHAR),
data NCLOB
)
tablespace OPENJAW_DATA
pctfree 10
initrans 1
maxtrans 255;
3:下面解释一下Include User勾选和不勾选的区别。
1)不勾选Include User
create table AUDIT_TRAIL
(
product VARCHAR2(32 CHAR) not null,
environment VARCHAR2(32 CHAR) not null,
server VARCHAR2(32 CHAR) not null,
resource_path VARCHAR2(256 CHAR) not null,
action VARCHAR2(4 CHAR) not null,
username VARCHAR2(32 CHAR) not null,
usergroup VARCHAR2(32 CHAR) not null,
address VARCHAR2(32 CHAR) not null,
timestamp DATE default TO_DATE('00-01-01 00:00:00','YY-MM-DD HH24:MI:SS') not null,
status VARCHAR2(16 CHAR),
data NCLOB
)
;
2)勾选上Include User,会在create table tablename的tablename前面加上User的名字,如下多了一个TRAVELSKY_XREZAGENT
create table TRAVELSKY_XREZAGENT.AUDIT_TRAIL
(
product VARCHAR2(32 CHAR) not null,
environment VARCHAR2(32 CHAR) not null,
server VARCHAR2(32 CHAR) not null,
resource_path VARCHAR2(256 CHAR) not null,
action VARCHAR2(4 CHAR) not null,
username VARCHAR2(32 CHAR) not null,
usergroup VARCHAR2(32 CHAR) not null,
address VARCHAR2(32 CHAR) not null,
timestamp DATE default TO_DATE('00-01-01 00:00:00','YY-MM-DD HH24:MI:SS') not null,
status VARCHAR2(16 CHAR),
data NCLOB
)
;