FAQ:ora-06550;pls-00553: 问题的解决

作者:网络 来源:佚名 更新时间:2008-02-09 10:18:51 点击:

因为有一次数据不小心关机,导致数据库crash之后,想尽各种方法最终recovery database 之后,可是发现原来的apache,php,oracle建立的web server 却无法运行,在页面上总是提示ora-06550;pls-00553: character set name is not recognized 。害的我费劲周折,浪费了3天多的时间才搞定这个问题。刚开始发现这个问题的时候就觉得是什么参数设置变动之后引发的错误。因为找不问题,一直非常郁闷,花了好久重新安装php和apache server。还是不行。最后在网络上看到set nls_lang american_america.us7ascii可以成功。

最后自己试了一下,果然奏效,我原来一直以为就是nls_lang american_america.we8iso8859p1。现在才明白。下面试我操作的过程

[[email protected] php-4.3.6]$ su root
password:
[[email protected] php-4.3.6]# set nls_lang american_america.us7ascii
[[email protected] php-4.3.6]# set
bash=/bin/bash
bash_env=/root/.bashrc
bash_versinfo=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
bash_version='2.05b.0(1)-release'
colors=/etc/dir_colors
columns=132
cvsroot=/opt/class/jackey/cvsroot
dirstack=()
euid=0
groups=()
g_broken_filenames=1
histfile=/root/.bash_history
histfilesize=1000
histsize=1000
home=/root
hostname=ccdevsvr
hosttype=i686
ifs=$' \t\n'
inputrc=/etc/inputrc
lang=en_us.utf-8
ld_library_path=:/u01/product/8.1.7/lib
lessopen='|/usr/bin/lesspipe.sh %s'
lines=49
logname=oracle
ls_colors='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
machtype=i686-pc-linux-gnu
mail=/var/spool/mail/root
mailcheck=60
nls_lang=american_america.we8iso8859p1
opterr=1
optind=1
oracle_base=/u01
oracle_home=/u01/product/8.1.7
oracle_sid=emcdb
ora_nls=/u01/product/8.1.7/ocommon/nls/admin/data
ora_nls33=/u01/product/8.1.7/ocommon/nls/admin/data
ostype=linux-gnu
path=/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/x11:/usr/x11r6/bin:/root/bin
pipestatus=([0]="0")
ppid=17922
ps1='[\[email protected]\h \w]\$ '
ps2='> '
ps4='+ '
pwd=/u01/php-4.3.6
qtdir=/usr/lib/qt3-gcc3.2
shell=/bin/bash
shellopts=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
shlvl=4
ssh_askpass=/usr/libexec/openssh/gnome-ssh-askpass
supported=en_us.utf-8:en_us:en
term=vt100
uid=0
user=oracle
username=root
_=american_america.us7ascii
i=/etc/profile.d/which-2.sh
langfile=/root/.i18n
[[email protected] php-4.3.6]# set nls_lang=american_america.us7ascii
[[email protected] php-4.3.6]# set
bash=/bin/bash
bash_env=/root/.bashrc
bash_versinfo=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
bash_version='2.05b.0(1)-release'
colors=/etc/dir_colors
columns=132
cvsroot=/opt/class/jackey/cvsroot
dirstack=()
euid=0
groups=()
g_broken_filenames=1
histfile=/root/.bash_history
histfilesize=1000
histsize=1000
home=/root
hostname=ccdevsvr
hosttype=i686
ifs=$' \t\n'
inputrc=/etc/inputrc
lang=en_us.utf-8
ld_library_path=:/u01/product/8.1.7/lib
lessopen='|/usr/bin/lesspipe.sh %s'
lines=49
logname=oracle
ls_colors='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:'
machtype=i686-pc-linux-gnu
mail=/var/spool/mail/root
mailcheck=60
nls_lang=american_america.we8iso8859p1
opterr=1
optind=1
oracle_base=/u01
oracle_home=/u01/product/8.1.7
oracle_sid=emcdb
ora_nls=/u01/product/8.1.7/ocommon/nls/admin/data
ora_nls33=/u01/product/8.1.7/ocommon/nls/admin/data
ostype=linux-gnu
path=/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/u01/product/8.1.7/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/x11:/usr/x11r6/bin:/root/bin
pipestatus=([0]="0")
ppid=17922
ps1='[\[email protected]\h \w]\$ '
ps2='> '
ps4='+ '
pwd=/u01/php-4.3.6
qtdir=/usr/lib/qt3-gcc3.2
shell=/bin/bash
shellopts=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
shlvl=4
ssh_askpass=/usr/libexec/openssh/gnome-ssh-askpass
supported=en_us.utf-8:en_us:en
term=vt100
uid=0
user=oracle
username=root
_=nls_lang=american_america.us7ascii
i=/etc/profile.d/which-2.sh
langfile=/root/.i18n
[[email protected] php-4.3.6]#