查询当前oracle字符集,查询修改oracle当前字符集-转
查詢oracle當前字符集
select ? name,value$ ? from ? props$ ? where ? name='NLS_CHARACTERSET';
NAME ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? VALUE$
------------------------------ ? ----------------------------------------
NLS_CHARACTERSET ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? US7ASCII
NLS_CHARACTERSET 為數(shù)據(jù)庫字符集
//修改字符集為? UTF8
update ? ? props$ ? set ? value$='UTF8' ? where ? name='NLS_CHARACTERSET';
另:
在oracle ? 8i或以上版本中,可以修改字符集以及國家字符集:
改字符集
alter ? database ? db1 ? character ? set ? WE8ISO8859P1;
改國家字符集
alter ? database ? db1 ? national ? character ? set ? WE8ISO8859P1;
alter ? database ? character ? set命令是不可逆的,
也就是說一旦修改了,就不一定能改回來,所以請先對數(shù)據(jù)庫進行冷備份,以防萬一。
總結
以上是生活随笔為你收集整理的查询当前oracle字符集,查询修改oracle当前字符集-转的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: magento2 所需要php 扩展,M
- 下一篇: oracle用dba登陆怎么登,以SQL