紧急求助!!!PL/SQL Developer中的NVarchar显示不正确?

xulin1110 2009-12-18 01:29:34
Oracle 服务器版本为10.0G,客户端工具为PL/SQL Developer 7.1.5.如今遇到一个非常奇怪的问题,还请大侠帮忙解决。

我自己写了一个非常简单的procedure,需要一个参数,类型为NVARCHAR2,如下例:
create or replace procedure TESTMMM(P_NAME in NVARCHAR2)。。。。。
在我debug的时候传递参数赋值以后(比如123,abc等等),进入到这个存储过程内后,P_NAME的值始终显示为NULL,但是程序
执行的结果是对的,也就是说表面上看PL/SQL Developer并不能正确显示NVARCHAR2类型的值。
(当我传递一个全角的参数以后(比如汉字),P_NAME的值始终显示为乱码)。
虽然不影响程序的执行效果,但是我没办法进行debug,在线等待解决方案。
...全文
468 27 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
27 条回复
切换为时间正序
请发表友善的回复…
发表回复
UnBoy 2011-05-05
  • 打赏
  • 举报
回复
用的是 oracle 11g ,数据库编码是ZHS16GBK
UnBoy 2011-05-05
  • 打赏
  • 举报
回复
帮顶下,今天也在用PL/SQL Developer 8 ,没搞懂啥原因,nnd
h2c 2010-07-20
  • 打赏
  • 举报
回复
帮顶一下;这个问题还在PL/SQL Developer 8版本也没有解决
xulin1110 2009-12-21
  • 打赏
  • 举报
回复
等了两天也没人知道这个问题,真是够呛
xulin1110 2009-12-21
  • 打赏
  • 举报
回复
继续顶,顶到有人知道
xulin1110 2009-12-21
  • 打赏
  • 举报
回复
我顶个肺
QKForex 2009-12-20
  • 打赏
  • 举报
回复
可以将这个参数定义nvarchar2类型的,
不过在使用的时候可以使用cast(variable as type)转换使用
浪子不再独行 2009-12-19
  • 打赏
  • 举报
回复
这个问题不常见,使用Nvarchar2的人少,我以前的数据库设计从来都是使用Varchar2的。
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
csdn上不是牛人很多吗,怎么连这个非常常见的问题都没人知道?
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
我也怀疑工具的问题,但是developer的版本应该不低了,难道连NVarChar2都不支持?
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
谁可以给我发个版本高点的toad吗?
crazylaa 2009-12-18
  • 打赏
  • 举报
回复
换个工具吧,用toad试试看。
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
我也怀疑工具的问题,但是developer的版本应该不低了,难道连NVarChar2都不支持?
iqlife 2009-12-18
  • 打赏
  • 举报
回复
你用其他TOAD调试看看,可以看到正确结果?
可以的话就是你工具有问题了
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
没人能解决这个问题吗?
xulin1110 2009-12-18
  • 打赏
  • 举报
回复
debug一切正常,只是debug状态下nvarchar2变量的值显示不正确,varchar2可以正常显示,但是我不能用varchar2,因为数据库中的字段就是nvarchar2。
wzzzjl 2009-12-18
  • 打赏
  • 举报
回复
是你本身debug 无法操作, 还是你传了一个全角的字符导致debug无法操作的?
iqlife 2009-12-18
  • 打赏
  • 举报
回复
或者是数据库不支持NVACHAR2
iqlife 2009-12-18
  • 打赏
  • 举报
回复
重新装PL SQL 试试
wzzzjl 2009-12-18
  • 打赏
  • 举报
回复
用 varchar2这个类型,不能解决问题吗
加载更多回复(7)
Oracle SQL Developer, v1.5.0.54.40 Release Notes 完整版下载:http://www.oracle.com/technology/global/cn/software/products/sql/index.html 1. Known Issues 1.1 General - Print prints only one page that is a truncation of the current tab. - Can't invoke SQL*Plus on Windows 2003. - The menu item, and right-click off a Connection node, for invoking SQL*Plus does not work with connections whose passwords are not persisted. 1.2 Connections - Cannot connect to remote database as OPS$ account. 1.3 Browse - If connected as sys with sysdba role, Types node displays built in data-types (e.g. BLOB, DATE, DECIMAL, etc.) If clicked on, will only see "create or replace". 1.4 Creating and Modifying Objects - Editing Triggers - If you have comments before the 'BEGIN' they will be lost if you edit. You will see when you click edit that they will not be there. To preserve them, they need to be below the BEGIN or you will need to edit via the SQL Worksheet. 1.5 Table > Data - Tables > Your_Table > Data - PageUp and PageDown buttons not working correctly if cursor is in the rownum column. 1.6 Export - Cannot export if result set contains duplicate column names. 2. Workarounds 2.1 To disable Code Insight Run SQL Developer from a command line using the following statement: Windows : sqldeveloper -J-Dsdev.insight=false Linux or Mac: Run sh sqldeveloper -J-Dsdev.insight=false or edit sqldeveloper.conf and add "AddVMOption -J-Dsdev.insight=false" 2.2 If DDL tab is null for all objects in a Connection Your dbms_metadata might be loaded incorrectly. If this statement fails when executed in a SQL Worksheet against the Connection select dbms_metadata.get_ddl('TABLE',table_name , user ) from user_tables; You need to reload $ORACLE_HOME/rdbms/admin/catmeta.sql 2.3 If Snippets are not accessible You may have not done a clean install. SQL Developer needs to be installed into a clean directory, not over a previous release. 3. Accessibility Issues The following is a li

17,140

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧