---
title: "近期用到的一些命令和配置"
author: "dr2tr"
date: "2007-06-28T20:27:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2007-06-28T20:27:00Z"
id: 233426
url: "https://dr2tr.iteye.com/blog/233426"
---

--import data to DB from file (Sybase)  
$SYBASE/bin/bcp tempdb..tmpTbl in $DIR/data.txt -b 1000  -c -S GFISVCS\_NY\_PROD -U munisa -P$PASSWD -I $INTERFACE

--export data to file from DB (Sybase)  
$SYBASE/bin/bcp tempdb..tmpTbl out $RPT\_DIR/data.txt -b 1000 -c -t'|' -S$PROD\_SERVER -U$USER -P$PASSWD -I$INTERFACE

-- WebLogic 8.1 VS Hiberante3  
Need parameter for &lt;property name="hibernateProperties"&gt;  
&lt;prop key="hibernate.query.factory\_class"&gt;  
 org.hibernate.hql.classic.ClassicQueryTranslatorFactory  
&lt;/prop&gt;  
or there wil be exception: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

--Sybase  
view sp: sp\_helptext sp\_name  
view table property: sp\_help tbl\_name  
execute sp: execute sp\_name \[parameters list]