资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

BCPutilityinSybase(UnixEnv

We can use below command for bcp out a table to *.dat file,

创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的谯城网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

$SYB_BIN/bcp hnwreport.dbo.TblHNWCustomer out ${SYB_DATA}/${TABLE}.prod.dat -I/opt/muni/HNWEnv/HNW_interfaces.txt -U hnwuser -P Lip0v123 -S STEP_PROD_NY_DS –t’|’ -b 10000 -e${ERRFILE} -T –c

Please be vigilant that if you want to use self-defined interface file rather than default system interface, you have to use –I option and define interface file in place.

If you want to use bcp utility, you can export Sybase,

export SYBASE=/optware/aseclient1503x/ase155b/

$SYBASE/OCS-15_0/bin/bcp hnwreport.dbo.TblHNWCustomer out /opt/HNW/HNWFileAnalysis/HNWOutput/TEST.dat -I/opt/muni/HNWEnv/HNW_interfaces.txt -U hnwuser -P Lip0v123 -S STEP_PROD_NY_DS -t'|' -b 10000 -e${ERRFILE} -T –c

$SYBASE/OCS-15_0/bin/isql -I/opt/muni/HNWEnv/HNW_interfaces.txt -U hnwuser -P Lip0v123 -S STEP_PROD_NY_DS < /tmp/test.sql


分享题目:BCPutilityinSybase(UnixEnv
文章路径:http://cdkjz.cn/article/gssgoe.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220