12
返回列表 发新帖
楼主: LZJKEVIN

如何指定开发环境语言

[复制链接]
论坛徽章:
7
生肖徽章2007版:鸡
日期:2012-03-23 07:45:28生肖徽章2007版:虎
日期:2009-11-13 10:53:432010新春纪念徽章
日期:2012-03-23 07:45:28ITPUB9周年纪念徽章
日期:2012-03-23 07:45:28蛋疼蛋
日期:2012-06-05 19:13:37紫水晶
日期:2012-06-05 19:04:29ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:20
11#
发表于 2005-10-17 12:21 | 只看该作者
刚刚装上plsql developer关注,并解决。。。。

使用道具 举报

回复
论坛徽章:
0
12#
发表于 2005-10-19 15:02 | 只看该作者
begin
DBMS_SESSION.SET_NLS('NLS_LANGUAGE','AMERICAN');     
end;

Parameter Value
NLS_CALENDAR GREGORIAN
NLS_COMP BINARY
NLS_CURRENCY $
NLS_DATE_FORMAT DD-MON-YY
NLS_DATE_LANGUAGE AMERICAN
NLS_DUAL_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_LANGUAGE AMERICAN
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NUMERIC_CHARACTERS .,
NLS_SORT BINARY
NLS_TERRITORY AMERICA
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR

上面的都可以这样修改。我在form里试过,pl/sql developer没试过

使用道具 举报

回复
论坛徽章:
3
授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34ITPUB 11周年纪念徽章
日期:2012-10-10 13:11:14
13#
 楼主| 发表于 2005-10-19 15:37 | 只看该作者
明白了,谢谢,我想将 'NLS_LANGUAGE' 设为中文的,请问下 value 该为什么呢?

使用道具 举报

回复
论坛徽章:
135
ITPUB8周年纪念徽章
日期:2009-09-27 10:21:22NBA季后赛纪念徽章
日期:2010-06-21 13:18:42ITPUB9周年纪念徽章
日期:2010-10-08 09:31:222011新春纪念徽章
日期:2011-01-04 10:38:212010广州亚运会纪念徽章:足球
日期:2011-05-18 16:45:05
14#
发表于 2005-10-26 18:45 | 只看该作者
SELECT *  FROM FND_LANGUAGES  ,
找到中文简体语言试验了一下,也是不行啊,不知道该是什么
不过怎么用 AMERICAN 就行呢

使用道具 举报

回复
论坛徽章:
135
ITPUB8周年纪念徽章
日期:2009-09-27 10:21:22NBA季后赛纪念徽章
日期:2010-06-21 13:18:42ITPUB9周年纪念徽章
日期:2010-10-08 09:31:222011新春纪念徽章
日期:2011-01-04 10:38:212010广州亚运会纪念徽章:足球
日期:2011-05-18 16:45:05
15#
发表于 2005-10-26 19:00 | 只看该作者
refercence :
------------------
Problem Description
-------------------

When calling the 'set_nls' in  a remote procedure this causes an
ORA-02074: cannot set_nls in a distributed transaction
This can be shown with the following commands:

SQL> create database link su22v816
     connect to system identified by manager
     using 'su22v816';

SQL> create or replace procedure doit
     as
     begin
        dbms_session.set_nls('NLS_LANGUAGE','dutch');
     end;
     /

SQL> exec doit@su22v816
     BEGIN doit@su22v816; END;

     *
     ERROR at line 1:
     ORA-02074: cannot SET NLS in a distributed transaction
     ORA-06512: at "SYS.DBMS_SESSION", line 101
     ORA-06512: at "SYSTEM.DOIT", line 4
     ORA-06512: at line 1

SQL> exec doit

     PL/SQL-procedure is geslaagd.


Solution Description
--------------------

The work around is not to set the NLS properties in the dependent session
but to use nls_dependent functions, such as nls_initcap, or apply the
relevant NLS parameters in the generic functions such as to_number.


Explanation
-----------

ORA-02074 indicates that it cannot COMMIT or ROLLBACK in a distributed
transaction.

Cause:  A COMMIT or ROLLBACK was attempted from a session other than the
        parent of a distributed transaction.

Action: Only the parent session can issue a COMMIT or ROLLBACK.

Most likely the set_nls procedure recursively issues a commit statement.
This is similair to the DDL statement 'alter session set'.  Since the commit
and rollback of the transaction is controlled by the parent session the
dependent session is not allowed to perform a recursive commit.

The only reference found that explains this behaviour is in the book:
"Oracle Built-in Packages", it mentions:                                 
"Restrictions on calling the procedure:SET_NLS is not allowed in remote
sessions(...)"

      
References
----------

SQL Reference Volume 2 A67795-01
"Oracle Built-in Packages" by S. Feuerstein  et all ISBN 1565923758
Bug 1129784 ORA-2074: CANNOT SET NLS IN A DISTRIBUTED TRANSACTION


Additional Search Words
-----------------------

DB; DATABASE LINK; ORA-2074; SET_NLS;

使用道具 举报

回复
论坛徽章:
4
ERP板块每日发贴之星
日期:2005-04-30 01:01:35授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34生肖徽章2007版:鸡
日期:2008-01-02 17:35:53
16#
发表于 2005-11-10 13:26 | 只看该作者
huitoushishi

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表