TimesTen与Oracle字符集查询

在建立Cache Group时,要求TimesTen的字符集与Oracle保持一致,下面讲述如何查询TimesTen和Oracle数据库的字符集

TimesTen字符集

从DSN文件中查询

vi $TT_HOME/info/sys.odbc.ini
...
[plsqldb]
Driver=/home/oracle/app/oracle/product/TimesTen/tt1122/lib/libtten.so
DataStore=/home/oracle/app/oracle/product/TimesTen/tt1122/info/DemoDataStore/plsqldb/plsqldb
PermSize=256
TempSize=128
LogFileSize=32
LogBufMB=32
PLSQL=1
PLSQL_MEMORY_ADDRESS=0x16000000
PLSQL_MEMORY_SIZE=16
DatabaseCharacterSet=AL32UTF8
...

ttconfiguration 查询

Command> call ttconfiguration('DataBaseCharacterSet');
< DataBaseCharacterSet, AL32UTF8 >

Oracle数据库字符集

注意,TimesTen安装完成后自带sqlplus程序
$ sqlplus sys@ttorcl as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Wed Apr 6 05:20:46 2016

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Enter password: 

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT value FROM nls_database_parameters WHERE parameter='NLS_CHARACTERSET';

VALUE
--------------------------------------------------------------------------------
AL32UTF8

你可能感兴趣的:(字符集,缓存组)