由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Export Oracle db schema only
相关主题
请问:如何从windows single instance migrate to linux RACHow to transform HTML or PDF to datafile(text)?
coolbid, 问个问题SQL Servedr complete recovery question
question: how to drop a tablespacemetadata工具
是不是要用RMAN作备份,Oracle DB 必须在ARCHIVELOG mode状态有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?
抱怨一下 数据库 里头的一些不严谨。怎么设置多个用户 (Oracle 10g)?
question on oracle archive fileOracle 11g下,如何創建兩個schema,並且
请教如何在两个Oracle之间倒数据query 求助
What's the best way to export ms-access tables into Oracle serverOracle 8i export and import ?
相关话题的讨论汇总
话题: export话题: schema话题: production话题: system话题: tablespace
进入Database版参与讨论
1 (共1页)
s***m
发帖数: 28
1
I am trying to export a production oracle database schema of a tablespace to a
test system. However, I have limited space on test system. On production
system, many data files are created for different indexes and tables. These
datafile is created using large disk spaces. How can I export the production
tablespace schema but with smaller datafile size definition?
Thanks
n********a
发帖数: 68
2
Schema shouldn't take up much space.
Just make sure that all you need
is schema, no data.
You could use exp/imp utilities.
exp with rows=n and then imp.
If you use indexfile option of imp,
you could get the sql script that
will generate the same schema.

a

【在 s***m 的大作中提到】
: I am trying to export a production oracle database schema of a tablespace to a
: test system. However, I have limited space on test system. On production
: system, many data files are created for different indexes and tables. These
: datafile is created using large disk spaces. How can I export the production
: tablespace schema but with smaller datafile size definition?
: Thanks

s*******e
发帖数: 151
3
do you mean you want to import full database to your test system, but the test
system space does not allow you do that? if so, I did a similar project before
and keep all the documentation. Let me know.

a

【在 s***m 的大作中提到】
: I am trying to export a production oracle database schema of a tablespace to a
: test system. However, I have limited space on test system. On production
: system, many data files are created for different indexes and tables. These
: datafile is created using large disk spaces. How can I export the production
: tablespace schema but with smaller datafile size definition?
: Thanks

s*******e
发帖数: 151
4
Schema did take space sometimes. especially tablespace.

to
These
production

【在 n********a 的大作中提到】
: Schema shouldn't take up much space.
: Just make sure that all you need
: is schema, no data.
: You could use exp/imp utilities.
: exp with rows=n and then imp.
: If you use indexfile option of imp,
: you could get the sql script that
: will generate the same schema.
:
: a

n********a
发帖数: 68
5
How much as compared to data?
Add up the bytes taken by your SYSTEM tablespace.

【在 s*******e 的大作中提到】
: Schema did take space sometimes. especially tablespace.
:
: to
: These
: production

s***m
发帖数: 28
6
Yes, I want to import full database schema from production system to test
system. However, I don't want to import any of the data. I just need the
tablespace definition, trigger, storedproc, functions and constraints. Owing
to the production system's size, at which many datafiles has been created for
userspace and index space, my export captures the size of the those index
datafiles. If you have a documention on how to do this, it will be very
helpful.
Thanks

test
before
to
These
production

【在 s*******e 的大作中提到】
: do you mean you want to import full database to your test system, but the test
: system space does not allow you do that? if so, I did a similar project before
: and keep all the documentation. Let me know.
:
: a

h******i
发帖数: 133
7
EXPORT 的CONTROL FILE里不是有一个PARAMETER叫ROWS,假如你设为N的话,
那么你只EXPORT TABLE 的DEFINITION, 而不会包含DATA?
你是想问这个吗?
OracleSQLPLUS的资料里有一章就叫EXPORT,做你读一下就全懂了。。。

for
tablespace

【在 s***m 的大作中提到】
: Yes, I want to import full database schema from production system to test
: system. However, I don't want to import any of the data. I just need the
: tablespace definition, trigger, storedproc, functions and constraints. Owing
: to the production system's size, at which many datafiles has been created for
: userspace and index space, my export captures the size of the those index
: datafiles. If you have a documention on how to do this, it will be very
: helpful.
: Thanks
:
: test

s***m
发帖数: 28
8
I knew about rows parameter in exp command. The issue is different. I set to
export only table definition, however, all table definitions live on large
datafile. I don't want to export definition of large datafile. How can I do
that?

Owing
the
production

【在 h******i 的大作中提到】
: EXPORT 的CONTROL FILE里不是有一个PARAMETER叫ROWS,假如你设为N的话,
: 那么你只EXPORT TABLE 的DEFINITION, 而不会包含DATA?
: 你是想问这个吗?
: OracleSQLPLUS的资料里有一章就叫EXPORT,做你读一下就全懂了。。。
:
: for
: tablespace

h******i
发帖数: 133
9
这样的话,我能想到的就是每个TABLE 单独弄,然后设 WHERE ROWNUM<1
你最好去ORACLE 的网站问一下,那里都是专家。。。

test
created
index
project
tables.

【在 s***m 的大作中提到】
: I knew about rows parameter in exp command. The issue is different. I set to
: export only table definition, however, all table definitions live on large
: datafile. I don't want to export definition of large datafile. How can I do
: that?
:
: Owing
: the
: production

1 (共1页)
进入Database版参与讨论
相关主题
Oracle 8i export and import ?抱怨一下 数据库 里头的一些不严谨。
如何对ORACLE的结果既分页又排序?question on oracle archive file
数据库问题求解请教如何在两个Oracle之间倒数据
Help: 如何在oracle 9i 中添加1 个user?What's the best way to export ms-access tables into Oracle server
请问:如何从windows single instance migrate to linux RACHow to transform HTML or PDF to datafile(text)?
coolbid, 问个问题SQL Servedr complete recovery question
question: how to drop a tablespacemetadata工具
是不是要用RMAN作备份,Oracle DB 必须在ARCHIVELOG mode状态有人试过用 Oracle Standby Read Only database 的 Backup 来Restore?
相关话题的讨论汇总
话题: export话题: schema话题: production话题: system话题: tablespace