--todo 25801

ALTER TABLE DATABASESETTINGS ADD (NLS_TERRITORY VARCHAR2(160) NULL);

update databasesettings ds set ds.nls_territory = (select x.value from nls_session_parameters x where x.parameter = 'NLS_TERRITORY');
commit;