Edit Rename Changes History Upload Download Back to Top

Unhandled exception: Column encoding not yet recognized with Oracle 8.1.7

Since Oracle changed the way it uses the Windows registry, VisualWorks runs into an UHE if no language is explicitely chosen when installing Oracle 8.x.

You can fix it by filing-in this patch (download patch):



From VisualWorks®, Release 5i.2 of June 26, 2000 on November 14, 2000 at 10:45:05 am

Database.OracleInterface accessing

getEncoding
	"In the case of Oracle installed with default language, subStr is empty for Oracle 7.x 	but 'NA' for Oracle 8.x"

	| str subStr |
	str := self getOracleParameterString: 'NLS_LANG'.
	subStr := str copyFrom: (str indexOf: $.)
					+ 1 to: str size.
	subStr isEmpty | (subStr = 'NA') ifTrue: [^#default].
	^OracleConnection mapEncodings at: subStr ifAbsent: [self error: #errColumnEncoding << #oracleDB >> 'Column encoding not yet recognized']




Edit Rename Changes History Upload Download Back to Top