如何查詢和修改Oracle的字符集

2021-05-05 01:47:08 字數 1564 閱讀 3317

查詢oracle的字符集 修改字符集 這個不是很常用,特此記一下。

查詢oracle的字符集

方法一

sql> select userenv(』language』) from dual;

userenv(』language』)

—————————————————-

american_america.we8iso8859p1

方法二

sql> select * from v$nls_parameters;

parameter value

—————————————————————- —————————————————————-

nls_language american

nls_territory america

nls_currency $

nls_iso_currency america

nls_numeric_characters .,

nls_calendar gregorian

nls_date_format dd-mon-rr

nls_date_language american

nls_characterset we8iso8859p1

nls_sort binary

nls_time_format hh.mi.ssxff am

nls_timestamp_format dd-mon-rr hh.mi.ssxff am

nls_time_tz_format hh.mi.ssxff am tzr

nls_timestamp_tz_format dd-mon-rr hh.mi.ssxff am tzr

nls_dual_currency $

nls_nchar_characterset al16utf16

nls_comp binary

nls_length_semantics byte

nls_nchar_conv_excp false

修改字符集

connect system/oracle10g as sysdba;

update props$ set value$=』utf8′ where name=』nls_characterset』;

shutdown immediate;

startup mount;

alter system enable restricted session ;

alter system set job_queue_processes=0;

alter system set aq_tm_processes=0;

alter database open;

alter database character set internal_use utf8;

alter database national character set internal_use utf8;

shutdown immediate;

startup;

這個不是很常用,特此記一下。

oracle如何通過sql查詢表的所有欄位名?

oracle如何通過sql查詢表的所有欄位名?獲取表字段 select from user tab columns where table name 使用者表 order by column name 獲取表注釋 select from user tab comments where table n...

oracle鏈結數查詢修改

select value from v parameter where name processes 或 show parameter processesselect count from v process show parameter sessionselect count from v ses...

Oracle查詢後直接修改資料,查詢修改

oracle如何通過兩個表關聯,修改其中一表中某列的資料 update a set a.e b.h where a.g in select b.g from b for update 可查詢更改 統計重複的記錄 to char to date f rzsj,yyyymmdd 90,yyyymmdd ...