楼主: intotherain

exp出来的文件即将超过2G,怎么办?

[复制链接]
论坛徽章:
0
11#
发表于 2005-2-23 10:31 | 只看该作者
没问题的吧,

使用道具 举报

回复
论坛徽章:
46
2015年新春福章
日期:2015-03-06 11:57:31日产
日期:2013-10-23 10:14:30一汽
日期:2013-08-29 17:17:44兰博基尼
日期:2013-08-15 12:15:28复活蛋
日期:2013-06-09 11:23:46紫蛋头
日期:2013-05-17 11:25:05迷宫蛋
日期:2013-01-21 07:29:26灰彻蛋
日期:2012-12-12 09:29:39ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07奥运会纪念徽章:跆拳道
日期:2012-09-21 15:47:56
12#
发表于 2005-2-23 10:40 | 只看该作者
2000下还是做bat文件,让他自动执行更方便.大小也没限制.bat很方便的

使用道具 举报

回复
论坛徽章:
27
授权会员
日期:2005-10-30 17:05:33管理团队成员
日期:2011-05-07 01:45:082012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:36优秀写手
日期:2013-12-18 09:29:13马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
13#
发表于 2005-2-23 10:59 | 只看该作者
oracle8没有FILESIZE参数

9.0.2直接用filesize就好了

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2008-01-02 08:53:08生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
14#
 楼主| 发表于 2005-2-23 11:16 | 只看该作者
哪位能给个明确的解决方案啊?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
15#
发表于 2005-2-23 13:55 | 只看该作者
By default, the file size related fields are disabled. They are enabled when you enter more than one filename or file name pattern is specified (for 8i and later)

其实用批命令也蛮好的呀。
查看HELP请输入:
CMD>EXP HELP=Y
简单的例子:
EXP USER/PWD@DBNAME FILE=..... LOG=.... FULL=Y

如果想让它自动运行也可以呀,用傻一点的办法,将EXP命令存成.BAT文件,在OS端定制一个TASK,指明每天几点钟运行这个命令不用可以了么?

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
16#
发表于 2005-2-25 12:36 | 只看该作者
你可以在OEM的JOB中定义生成几个文件呀,满了2G后会自动生成另一个文件。
图片如下:

使用道具 举报

回复
招聘 : 系统架构师
论坛徽章:
372
双子座
日期:2015-08-18 12:18:21摩羯座
日期:2015-09-20 17:10:27秀才
日期:2015-09-21 09:46:16秀才
日期:2015-09-21 11:16:42秀才
日期:2015-10-08 17:57:58天枰座
日期:2015-10-28 18:28:29秀才
日期:2015-11-11 09:48:44秀才
日期:2015-11-11 10:07:14秀才
日期:2015-11-11 10:22:49秀才
日期:2015-09-11 10:43:06
17#
发表于 2005-2-25 13:01 | 只看该作者
NTFS没问题阿,FAT32有4G的限制
有些UNIX有2G的 限制

使用道具 举报

回复
论坛徽章:
27
授权会员
日期:2005-10-30 17:05:33管理团队成员
日期:2011-05-07 01:45:082012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:36优秀写手
日期:2013-12-18 09:29:13马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
18#
发表于 2005-2-25 15:25 | 只看该作者
给你个例子

C:\>exp system/manager@test file=c:\test.dmp full=y

Export: Release 8.1.7.0.0 - Production on Fri Feb 25 15:06:14 2005

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
Export done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set

About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
. exporting cluster definitions
. about to export SYSTEM's tables via Conventional Path ...
. . exporting table                    DEF$_AQCALL          0 rows exported
. . exporting table                   DEF$_AQERROR          0 rows exported
. . exporting table                  DEF$_CALLDEST          0 rows exported
. . exporting table               DEF$_DEFAULTDEST          0 rows exported
. . exporting table               DEF$_DESTINATION          0 rows exported
. . exporting table                     DEF$_ERROR          0 rows exported
. . exporting table                       DEF$_LOB          0 rows exported
. . exporting table                    DEF$_ORIGIN          0 rows exported
. . exporting table                DEF$_PROPAGATOR          0 rows exported
. . exporting table       DEF$_PUSHED_TRANSACTIONS          0 rows exported
. . exporting table                  DEF$_TEMP$LOB          0 rows exported
. . exporting table        SQLPLUS_PRODUCT_PROFILE          0 rows exported
. about to export OUTLN's tables via Conventional Path ...
. . exporting table                            OL$          0 rows exported
. . exporting table                       OL$HINTS          0 rows exported
. about to export DBSNMP's tables via Conventional Path ...
. about to export TEST's tables via Conventional Path ...
. . exporting table                            TAB          0 rows exported
. . exporting table                           TEST          0 rows exported
. exporting referential integrity constraints
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting triggers
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting user history table
. exporting default and system auditing options
. exporting statistics
Export terminated successfully without warnings.

C:\>dir
Volume in drive C has no label.
Volume Serial Number is 2C49-B933

Directory of C:\

01/20/2005  08:20 AM             2,817 6APDJu.HTM
01/11/2005  03:29 AM                 0 AUTOEXEC.BAT
01/11/2005  03:29 AM                 0 CONFIG.SYS
02/25/2005  08:30 AM               223 CWUtilInst.log
02/20/2005  09:53 PM    <DIR>          Documents and Settings
02/24/2005  03:04 PM    <DIR>          Downloads
02/22/2005  04:33 PM             1,262 kthard_agent.log
01/11/2005  09:28 AM    <DIR>          Notes
02/05/2005  01:19 PM    <DIR>          oracle
02/25/2005  01:29 PM    <DIR>          Program Files
01/31/2005  11:53 AM    <DIR>          Sermodify tool
02/25/2005  03:06 PM           108,544 test.dmp
01/12/2005  12:24 AM    <DIR>          uedit32
02/25/2005  01:00 PM    <DIR>          WINDOWS
01/24/2005  09:53 PM    <DIR>          清风围棋
               6 File(s)        112,846 bytes
               9 Dir(s)     227,688,448 bytes free

C:\>exp system/manager@test filesize=60000 file=c:\test01.dmp,c:\test02.dmp full
=y

Export: Release 8.1.7.0.0 - Production on Fri Feb 25 15:11:30 2005

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
EXP-00075: rounding FILESIZE down, new value is 59392
Export done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set

About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting object type definitions
. exporting system procedural objects and actions
. exporting pre-schema procedural objects and actions
. exporting cluster definitions
. about to export SYSTEM's tables via Conventional Path ...
. . exporting table                    DEF$_AQCALL          0 rows exported
. . exporting table                   DEF$_AQERROR          0 rows exported
. . exporting table                  DEF$_CALLDEST          0 rows exported
. . exporting table               DEF$_DEFAULTDEST          0 rows exported
. . exporting table               DEF$_DESTINATION          0 rows exported
. . exporting table                     DEF$_ERROR          0 rows exported
. . exporting table                       DEF$_LOB          0 rows exported
. . exporting table                    DEF$_ORIGIN          0 rows exported
. . exporting table                DEF$_PROPAGATOR          0 rows exported
. . exporting table       DEF$_PUSHED_TRANSACTIONS          0 rows exported
. . exporting table                  DEF$_TEMP$LOB          0 rows exported
. . exporting table        SQLPLUS_PRODUCT_PROFILE          0 rows exported
. about to export OUTLN's tables via Conventional Path ...
. . exporting table                            OL$          0 rows exported
. . exporting table                       OL$HINTS          0 rows exported
. about to export DBSNMP's tables via Conventional Path ...
. about to export TEST's tables via Conventional Path ...
. . exporting table                            TAB          0 rows exported
. . exporting table                           TEST          0 rows exported
. exporting referential integrity constraints
. exporting synonyms
continuing export into file c:\test02.dmp

. exporting views
. exporting stored procedures
. exporting operators
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting triggers
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting user history table
. exporting default and system auditing options
. exporting statistics
Export terminated successfully with warnings.

C:\>dir
Volume in drive C has no label.
Volume Serial Number is 2C49-B933

Directory of C:\

01/20/2005  08:20 AM             2,817 6APDJu.HTM
01/11/2005  03:29 AM                 0 AUTOEXEC.BAT
01/11/2005  03:29 AM                 0 CONFIG.SYS
02/25/2005  08:30 AM               223 CWUtilInst.log
02/20/2005  09:53 PM    <DIR>          Documents and Settings
02/24/2005  03:04 PM    <DIR>          Downloads
02/22/2005  04:33 PM             1,262 kthard_agent.log
01/11/2005  09:28 AM    <DIR>          Notes
02/05/2005  01:19 PM    <DIR>          oracle
02/25/2005  01:29 PM    <DIR>          Program Files
01/31/2005  11:53 AM    <DIR>          Sermodify tool
02/25/2005  03:06 PM           108,544 test.dmp
02/25/2005  03:11 PM            59,392 test01.dmp
02/25/2005  03:11 PM            51,200 test02.dmp
01/12/2005  12:24 AM    <DIR>          uedit32
02/25/2005  01:00 PM    <DIR>          WINDOWS
01/24/2005  09:53 PM    <DIR>          清风围棋
               8 File(s)        223,438 bytes
               9 Dir(s)     227,463,168 bytes free

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
87
生肖徽章2007版:虎
日期:2009-03-02 15:42:532011新春纪念徽章
日期:2011-01-25 15:41:502011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-02-18 11:43:32数据库板块每日发贴之星
日期:2011-04-05 01:01:01现任管理团队成员
日期:2011-05-07 01:45:08鲜花蛋
日期:2011-06-26 11:15:422011新春纪念徽章
日期:2011-01-25 15:41:01
19#
发表于 2005-2-25 15:36 | 只看该作者

贴个脚本:

echo %time% >j:\backdb\log\command_%date:~-10%.txt
d:\oracle\ora92\bin\exp.exe file=j:\backdb\xhcb_%date:~-10%.dmp log=j:\backdb\log\xhcb_%date:~-10%.txt userid=xhuser/xhpass@xh  direct=y buffer=40960
c:\PROGRA~1\WinRAR\WinRAR.exe a  j:\backdb\xhcb_%date:~-10%.rar j:\backdb\xhcb_%date:~-10%.dmp >>j:\backdb\log\command_%date:~-10%.txt
del j:\backdb\xhcb_%date:~-10%.dmp >>j:\backdb\log\command_%date:~-10%.txt
d:\oracle\ora92\bin\exp.exe file=j:\backdb\xhfx_%date:~-10%.dmp log=j:\backdb\log\xhfx_%date:~-10%.txt userid=xhfxuser/xhfx@247  direct=y buffer=32768
C:\PROGRA~1\WinRAR\WinRAR.exe a  j:\backdb\xhfx_%date:~-10%.rar j:\backdb\xhfx_%date:~-10%.dmp >>j:\backdb\log\command_%date:~-10%.txt
del j:\backdb\xhfx_%date:~-10%.dmp >>j:\backdb\log\command_%date:~-10%.txt
echo %time% >>j:\backdb\log\command_%date:~-10%.txt

复制为一个批处理文件,并加为Windows任务就Ok了。
我在Win2K+Oracle9.2客户端执行,也没有数据大小的限制,我们的导出数据为十多个G。

使用道具 举报

回复
论坛徽章:
27
授权会员
日期:2005-10-30 17:05:33管理团队成员
日期:2011-05-07 01:45:082012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:36优秀写手
日期:2013-12-18 09:29:13马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
20#
发表于 2005-2-25 16:04 | 只看该作者
记得
Fat文件限制是4GB
NTFS是TB级的(就是没有限制)

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表