前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

PowerBuilder连接oracle - 天的日志 - 网易博客 网易 新闻 微博 邮箱 相册 阅读 有道 摄影 爱拍 优惠券 云笔记 闪电邮 手机邮 印像派 网易识字 更多 博客 手机博客 博客搬家 博客VIP服务 LiveWriter写博 word写博 邮件写博 短信写博 群博客 博客油菜地 博客话题 博客热点 博客圈子 找朋友 发现 小组 风格 网易真人搭配社区iStyle 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 创建博客 登录 加关注 显示下一条 | 关闭 温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》 | 关闭 绿色空间8的博客 为了梦想而不安于现状 导航 首页 日志 相册 音乐 收藏 博友 关于我 日志 PowerBuilder连接oracle 2012-05-08 11:41:06| 分类: PowerBuilder | 标签: |举报 |字号大中小 订阅 Pb连接oracle数据库的方法。 一是:通过ODBC,在database-ODBC-utilities-双击ODBCAdministrator,添加数据源, 上图:添加新的数据源 上图:为数据源选择驱动程序 上图:这里data Source name栏中输入数据库名,TNS ServiceName栏输入(选择)服务器名:。然后完成,单击ok 上图:在新建proflie与数据库相连 添上profile name,还有data source ,userID ,password,这样就加上了数据库,在connect就可以用了。 二是:用oracle9.0.1连接在oracle 9.0.1上右键,new profile添加数据库,就可以了~~~ 这样就连接上了,在pb中连接的语句: ODBC的语句: // 数据库连接参数 // Profile Student //SQLCA.DBMS = "ODBC" //SQLCA.AutoCommit = False //SQLCA.DBParm = "Connectstring='DSN=数据库的名字'" 连接oracle9.0.1 以下的代码写在PowerBuilder的 open()方法中 SQLCA.DBMS = "O90 Oracle9i (9.0.1)" SQLCA.LogPass = "密码" SQLCA.ServerName = "数据库名字" SQLCA.LogId = "用户名" SQLCA.AutoCommit = False 评论这张 转发至微博 转发至微博 阅读(683)| 评论(0) | 分享到: 喜欢 推荐 0人 | 转载 历史上的今天 最近读者 热度 评论 this.p={ m:2, b:2, id:'fks_087066086085083075083086082070072081088074083085081069093', blogTitle:'PowerBuilder连接oracle', blogAbstract:'Pb连接oracle数据库的方法。 一是:通过ODBC,在database-ODBC-utilities-双击ODBCAdministrator,添加数据源, ', blogTag:'PowerBuilder,oracle', blogUrl:'blog/static/79973769201248113747221', isPublished:1, istop:false, type:0, modifyTime:1336448466035, publishTime:1336448466009, permalink:'blog/static/79973769201248113747221', commentCount:0, mainCommentCount:0, recommendCount:0, bsrk:-100, publisherId:0, recomBlogHome:false, currentRecomBlog:false, attachmentsFileIds:[], vote:{}, groupInfo:{}, friendstatus:'none', followstatus:'unFollow', pubSucc:'', visitorProvince:'', visitorCity:'', visitorNewUser:false, postAddInfo:{}, mset:'000', mcon:'', srk:-100, remindgoodnightblog:false, isBlackVisitor:false, isShowYodaoAd:false, hostIntro:'', hmcon:'1', selfRecomBlogCount:'0', lofter_single:'' } {list a as x} {if !!x} {if x.visitorName==visitor.userName} {else} {/if} {if x.moveFrom=='wap'} {elseif x.moveFrom=='iphone'} {elseif x.moveFrom=='android'} {elseif x.moveFrom=='mobile'} {/if} ${fn(x.visitorNickname,8)|escape} {/if} {/list} {if !!a} ${fn(a.nickname,8)|escape} ${a.selfIntro|escape}{if great260}${suplement}{/if} {/if} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} 推荐过这篇日志的人: {list a as x} {if !!x} ${fn(x.recommenderNickname,6)|escape} {/if} {/list} {if !!b&&b.length>0} 他们还推荐了: {list b as y} {if !!y} ·${y.recommendBlogTitle|escape} {/if} {/list} {/if} 转载记录: {list d as x} · ${x.referBlogTitle|escape} ${x.referUserName|escape} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.blogTile|default:""|escape} {/if} {/list} {list a as x} {if x_index>4}{break}{/if} {if !!x} ${fn1(x.title,60)|escape}${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')} {/if} {/list} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} {if !!(blogDetail.preBlogPermalink)} ${blogDetail.preBlogTitle|escape} {/if} {if !!(blogDetail.nextBlogPermalink)} ${blogDetail.nextBlogTitle|escape} {/if} {list a as x} {if !!x} {if x.publisherUsername==visitor.userName} {else} {/if} ${fn(x.publisherNickname,8)|escape} {/if} {/list} 被推荐日志 最新日志 该作者的其他文章 博主推荐 随机阅读 首页推荐 更多>> {list a as x} {if !!x} ${x.nickName|escape} 投票给 {var first_option = true;} {list x.voteDetailList as voteToOption} {if voteToOption==1} {if first_option==false},{/if} “${b[voteToOption_index]}” {/if} {/list} {if (x.role!="-1") },“我是${c[x.role]}” {/if} ${fn1(x.voteTime)} {if x.userName==''}{/if} {/if} {/list} 页脚 公司简介 - 联系方法 - 招聘信息 - 客户服务 - 隐私政策 - 博客风格 - 手机博客 - VIP博客 - 订阅此博客 网易公司版权所有 ©1997-2014 帮助 ${u} {list wl as x} ${x.g} {list x.l as y} ${y.n} {/list} {/list} {if defined('wl')} {list wl as x}${x.n}{/list} {/if}