ORACLE在HP-UX下的系列问题处理(16)

王朝oracle·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

NLS:法文字符显示不正确问题描述

我用下面的SQL(结构化查询语言)查询语句从Oracle数据库中检索数据:

macdev::/mac/HAHTsite [ 91 ] more t1.sql

select * from tmpbo where no_inf_ad = 172;

我运行查询语句,将输出发送到文件中:

sqlplus www/www t2

在该文件上执行more命令时,法文字符出现乱码;当我在同一个文件上执行cat时,字符显示正常。

如何解决这个问题?

配置信息

操作系统 - HP-UX

版本 - 10.20

硬件系统 - PA9000

系列 - D370

应用程序 - Oracle 7.3.2.3.0

解决方法

你可以用下面的脚本打开一个本地hpterm窗口,解决这个问题。本地hpterm窗口答应你显示Oracle数据库的输出。

#!/bin/ksh

# Open a hpterm to use iso-french:

LANG=fr_FR.iso88591

eXPort LANG

hpterm -xrm "*keyboardLanguage: French" -fn -bitstream-prestige-medium-r-normal-19-160-72-72-m-110-iso8859-1

由于Oracle输出中没有显示控制字符,因此你应当能够显示Oracle数据库的输出。

.........following with all English text ....

Problem Description

I am retrieving data from an Oracle database with this SQL (StrUCtured

Query Language) query:

macdev::/mac/HAHTsite [ 91 ] more t1.sql select * from tmpbo where no_inf_ad = 172;

I run the query to send the output to a file:

sqlplus www/www t2

When I do a more on that file, the French characters are garbled. When I do a cat on the same file, the characters display as they should.

How can I resolve this problem?

Configuration Info

Operating System - HP-UX

Version - 10.20

Hardware System - PA9000

Series - D370

Application - Oracle 7.3.2.3.0

Solution

You can resolve your problem by using the following script to open a localized hpterm window. The localized hpterm window allows you to display your output from the Oracle database.

#!/bin/ksh

# Open a hpterm to use iso-french:

LANG=fr_FR.iso88591

export LANG

hpterm -xrm "*keyboardLanguage: French" -fn -bitstream-prestige-medium-r-normal-19-160-72-72-m-110-iso8859-1

Since there are no display control characters in the Oracle output, you should be able to display your output from the Oracle database.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航