Sybase ASE 查询结果保存到文件 output a SQL query results to a file
来源:互联网 发布:万得股票for mac 编辑:程序博客网 时间:2024/06/11 16:19
一、问题
为了查看Sybase ASE的错误信息,想把它查询出来 保存到一个文件。 环境是Linux SUSE下的 .
二、解决办法
1. 创建文件 my.sql 并把下面红色的SQL语句Copy保存.
/sybase/WEN/ASE-16_0/install # vi my.sql
select severity,error,description from sysmessages where severity >= 19 group by severity,error,description order by severity desc
go
注释: 表 sysmessages是在master数据库下面,如果报错找不到对象,use master ..go..
错误级别在 Severity Levels 19 – 26 Fatal problems generate error messages with severity levels 19 and higher. They break the user’s connection to SAP ASE (some of the higher severity levels shut down SAP ASE). To continue working, the user must restart the client program.
2. 运行下列 sql script
isql64 -Usa -Pxxx -SWEN -w999 -i my.sql -X -o /sybase/WEN/ASE-16_0/install/err.log
3、 查询结果被保存到/sybase/WEN/ASE-16_0/install/err.log, 如结果:
26 1284
Used Lock Sleeptask Entry not in Chain.
26 1255
Unlinking a duplicate lock caused a task to be awakened.
- Sybase ASE 查询结果保存到文件 output a SQL query results to a file
- Save MySQL query results into a text or CSV file
- Save MySQL query results into a text or CSV file
- Output message to a file or stdout
- SYBASE备份报错:Can't open a connection to site 'SYB_BACKUP',see the error log file in the ASE directory
- compiler error output to a file named err
- program output redirect to a file named t
- mysql将查询结果保存到文件
- mysql 查询结果保存到文件
- Output format of a 10046 sql trace file
- Sql Server 2008用ODBC连接到SYBASE ASE
- Define and output a file
- How to Output a List of Files to a File and Sort Them in Linux
- 如何将MySQL数据库sql查询结果保存到excel文件中
- Linux command: save the output of a command to a file
- Save output to a dataset
- 把sql查询结果输出到文件
- a标签保存数据到csv文件
- HOG:用于人体检测的梯度方向直方图 Histograms of Oriented Gradients for Human Detection
- 获取imageview里的Bitmap
- bugzilla用户无法登录
- Java JDK1.5 Condition方法
- SlidingMenu (一)在Eclipse中如何引入SlidingMenu和其Demo
- Sybase ASE 查询结果保存到文件 output a SQL query results to a file
- LeetCode 题解(146): Product of Array Except Self
- GRE写作必备句型
- 15. Magento路由分发过程解析(四):请求重写
- 关于数组溢出------warning C4789: 内存复制的目标太小
- 使用perl的正则表达式对文件中的特定类型超链接里面的换行去掉,使其在一行
- 虚拟移动核心网:该面对现实了
- Spring MVC的单元测试
- 从Eclipse到Android Studio:Android项目如何进行迁移