网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
本月文章推荐
.oracle8i学习笔记(1).
.超大型Oracle数据库应用系统的设.
.利用Hibernate Synchronizer插入.
.oracle data pump步骤.
.Oracle10g 闪回表地恢复被意外删.
.Oracle入门教程,新手必读.
.EMC存储技术上使用ASM的最佳实践.
.ORACLE技术问题专家问答五则.
.ORACLE之APACHE虚拟服务器设置.
.多系统共存的方法.
.ExactPapers Oracle 1Z0-031 200.
.让Linux远离病毒侵扰.
.中关键技术及难点.
.oracle 10g 成功安装在solaris 1.
.Oracle巧取指定记录以及巧用外关.
.用java从oracle取数.
.Oracle FAQ 之SQL&PL/SQL篇.
.开发基于Oracle7数据库的管理信息.
.把应用程序和Oracle客户端一起打.
.在Solaris 10 X86上安装Oracle 1.

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

发表日期:2008-2-9



  NLS:法文字符显示不正确问题描述
  
  我用下面的SQL(结构化查询语言)查询语句从Oracle数据库中检索数据:
  macdev::/mac/HAHTsite [ 91 ] >more t1.sql
  select * from tmpbo where no_inf_ad = 172;
  我运行查询语句,将输出发送到文件中:
  sqlplus www/www < t1.sql > 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 < t1.sql > 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.
上一篇:ORACLE在HP-UX下的系列问题处理(15) 人气:522
下一篇:ORACLE在HP-UX下的系列问题处理(13) 人气:616
浏览全部Oracle教程的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐