Redian新闻
>
Export Oracle db schema only
avatar
Export Oracle db schema only# Database - 数据库
s*m
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
avatar
n*a
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

avatar
s*e
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

avatar
s*e
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

avatar
n*a
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

avatar
s*m
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

avatar
h*i
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

avatar
s*m
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

avatar
h*i
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。