- 论坛徽章:
- 0
|
什么版本的BCP能bcp超过2G的表?
在 Sybase12 版本以上就可以支持你说的这个特性,但还有操作系统的要求
1.BCP Files 超过2GB支持的平台的版本:
Digital Unix 4.0 Bcp 12.0
HP-Unix 11.x Bcp 11.1.1+EBF8960(以上) Open Client补丁
IBM AIX 4.3.x Bcp 12.0
Sun Solaris 2.6,2.7,2.8 Bcp 12.5
注意:
可以用Bcp -v 来确定Bcp版本
HP-Unix 11.x 必须设置支持大文件
/usr/sbin/fsadm -F vxfs -o largefiles /dev/...
转换设备到大文件系统
/usr/sbin/mount -F vxfs -o largefiles /dev/...
mount设备
2.另外,可以考虑Bcp使用管道
mkfifo bcppipe //create a pipe
bcp dbname..large_table out bcppipe -Usa -c&
cat bcppipe >; bcp.out //cat pipe to a file
或者通过限制行数来控制大小
bcp -F firstlow -L lastrow |
|