---
title: "Pro*C连接中断测试(Oracle 9i)"
author: "ah_fu"
date: "2008-11-11T17:43:00Z"
tags: ["C", "C#", "C++", "Oracle"]
slug: "pro-c-oracle-9i"
draft: false
lastmod: "2008-11-11T17:43:00Z"
id: 281682
url: "https://ah-fu.iteye.com/blog/281682"
---

??? 为了测试应用程序的健壮性，故意对正常连接的Pro\*C应该程序进行了中断，从而观察它们的表现。

测试的方法为：

1、在编译Pro\*C应用的时候加上cpool=no或cpool=yes，测试有连接池和没连接池的不同表现；

2、启动应用程序后等待输入，将流程挂起；

3、在数据库中查询此测试程序的SESSION：

[阅读全文](http://hi.baidu.com/ah%5F%5Ffu/blog/item/ab693062299bf9dae6113a06.html)  
**类别：**[Oracle](http://hi.baidu.com/ah%5F%5Ffu/blog/category/Oracle)?[查看评论](http://hi.baidu.com/ah%5F%5Ffu/blog/item/ab693062299bf9dae6113a06.html#comment)