IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database IMP-00016 Nepieciešams Character Set Conversion Not Supported Kļūda Imports Oracle Database
When trying to import an Oracle database export, backup or dump, you may encounter the error IMP-00016 where the import terminate prematurely and not allow you to continue the import to the destination Oracle database. Ja mēģina ievest Oracle datu bāzes eksports, backup vai izgāztuves, var rasties kļūda IMP-00016, kur importa pārtraukt priekšlaicīgi un tas nedrīkst ļaut jums turpināt ievest galamērķa Oracle datu bāzē. The error has the following message: Kļūda ir šāds ziņojums:
IMP-00016: required character set conversion (type 1 to 871) not supported IMP-00016: nepieciešams rakstzīmju kopas pārveidošana (tips 1-871) nav atbalstīta
IMP-00000: Import terminated unsuccessfully IMP-00000: Import izbeigta bez panākumiem
Note that depending on your export file and database character set, the “type 178 to 871″ may change from each environment. Ņemiet vērā, ka atkarībā no jūsu eksporta failu un datubāzes character set "tipa 178-871", var mainīties katrā vidē. Other typical character set conversion not supported error include from type 178 to 871 or from type 31 to 871. Citas tipiskas rakstzīmju kopa maiņas neatbalsta kļūda ietvert no 178 tipa 871 vai 31 tipa 871.
The cause for the Oracle error is because import utility could not convert the character format of the export file into the native character format which is the setting of the operating system client. Par Oracle kļūdu cēlonis ir tāpēc, ka ievešanas lietderību nevar konvertēt raksturs formātu eksporta failu dzimtā raksturs formātu, kas ir noteikt operētājsistēmas klientu. In other world, the issue is due to the fact that there is conversion problem between the export dump file and the destination databases which have different character set value when Oracle import utility try to import the exported database by using the Unix's NLS_LANG local environment variable value. Citās pasaules, jautājums ir saistīts ar faktu, ka pastāv maiņas problēma starp eksporta dempingu failu un galamērķi, datu bāzēm, kuras ir atšķirīgas rakstzīmju kopa vērtību, kad Oracle importa lietderība mēģināt importēt eksportē datu bāzi, izmantojot Unix's NLS_LANG vietējās vides mainīgo vērtības . If the operating system environment doesn't show the value of NLS_LANG, the import (and also export) will be done in US7ASCII as the default value for NLS_LANG on UNIX platforms is AMERICAN_AMERICA.US7ASCII, regardless of the database characterset. Vai operētājsistēmas vidē neparāda vērtību NLS_LANG, imports (arī eksporta) notiks US7ASCII kā noklusēto vērtību NLS_LANG uz UNIX platformām AMERICAN_AMERICA.US7ASCII, neatkarīgi no datu bāzes characterset.
The resolution to resolve the IMP-00016 is to set the the NLS_LANG parameter in local OS env variable value to match the character set of the destination database and import the dump file. Rezolūciju atrisināt IMP-00016 ir noteikt NLS_LANG parametrs vietējā OS env mainīgā vērtība atbilst rakstzīmju kopa mērķa datu bāzi un importa dump failu. NLS_LANG can be change by using set or export command. NLS_LANG var mainīt, izmantojot kopa vai eksporta komandu. For example: For example:
$ export NLS_LANG=.WE8ISO8859P1 $ Eksporta NLS_LANG =. WE8ISO8859P1
NLS_LANG is set in the registry on Windows platforms. NLS_LANG ir noteikta reģistra uz Windows platformas. For example, on an English Windows client, the code page is WE8MSWIN1252. Piemēram, angļu Windows klienta kodu lapa ir WE8MSWIN1252. An appropriate setting for NLS_LANG is AMERICAN_AMERICA.WE8MSWIN1252. Pareizu uzstādīšanu, lai NLS_LANG ir AMERICAN_AMERICA.WE8MSWIN1252.
You can check the character sets of the Oracle database in SQL*Plus by using following commands to list all NLS information: Jūs varat pārbaudīt rakstzīmju kopas un Oracle datubāzes SQL * Plus, izmantojot šādas komandas, lai uzskaitītu visas NLS informāciju:
SQL> col value format a25 SQL> col vērtību formātu A25
SQL> col parameter format a25 SQL> col parametra formāts A25
SQL> select * from v$nls_parameters; SQL> SELECT * FROM v $ nls_parameters;
In the rows returned, NLS_CHARACTERSET will list the character set of the database. In rindās atgriezās, NLS_CHARACTERSET tiks uzskaitīti rakstzīmju kopu un datu bāzes. In ideal situation to avoid and minimize the potential errors, the recommended practise will be like the following: Ideālā situācijā, lai novērstu un samazinātu iespējamo kļūdu, ieteicamā prakse būs kā šādi:
At the system where database export is taken: Set NLS_LANG=. Pie sistēmas, ja datubāzes eksports ir jāveic: Set NLS_LANG =. Set the operating system NLS_LANG value to match the source or destination database character set will let Oracle assumes that the data being sent or received is encoded in the same character set as the database character set, so no validation or conversion is performed. Uzstādīt operētājsistēmas NLS_LANG vērtība atbilst avotu vai adresātu datubāzes character set ļaus Oracle pieņem, ka dati ir nosūtīti vai saņemti ir kodēta ar tāda paša rakstura, kas kā datu bāzi rakstzīmju kopa, tātad neviens validāciju vai konversiju veic. This can lead to corrupt data if the client code page and the database character set are different and conversions are necessary. Tas var novest korumpētiem datiem, ja klienta kods un datubāzes character set ir atšķirīgi un konversiju ir nepieciešami. It's more of an issue if source and destination databases have different character set, and source database contains special characters (for example chinese, japanese, spanish, german, special letters or other characters, which are not contained in US7ASCII), the target database will lose the original characters and show replacement characters instead. Tas ir vairāk jautājums, ja izcelsmi un galamērķi datubāzes ir dažādas character set un avota datu bāzē ir speciālās rakstzīmes (piemēram, ķīniešu, japāņu, spāņu, vācu, īpašu burtu vai citas rakstzīmes, kas nav ietverti US7ASCII), mērķa datu bāzes zaudēt sākotnējo zīmes un parādīt rezerves rakstzīmju vietā. So, it's best if the source and destination database has the same or similar character set. Tātad, tas ir vislabāk, ja avota un mērķa datu bāzē ir tāds pats vai līdzīgs rakstzīmju kopu. To check the character set that a dump export and its database is using, check the export log, the characterset information should exists at the beginning of the log: Lai pārbaudītu rakstzīmju kopu, dump eksporta un savā datubāzē izmanto, pārbaudiet eksporta žurnālu, characterset informāciju pastāv sākumā žurnāls: Export done in US7ASCII character set and AL16UTF16 NCHAR character set Eksports veikts US7ASCII rakstzīmju kopa un AL16UTF16 NCHAR kopa Similary, the import log will contain the information about what character set the import process is using and also for the target database, plus possible warning message, even if the import failed with IMP-00016 error, at the beginning of the import log: Similary, importa log saturēs informāciju par to, rakstzīmju kopu importa process tiek izmantots, kā arī mērķa datu bāzē, kā arī iespējams brīdinājuma ziņojumu, pat ja ievedmuitas nesekmīgs IMP-00016 kļūdas pēc sākumā importa žurnāls: import done in US7ASCII character set and AL16UTF16 NCHAR character set imports veikts US7ASCII rakstzīmju kopa un AL16UTF16 NCHAR kopa IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
server uses WE8MSWIN1252 character set (possible charset conversion) serverim WE8MSWIN1252 rakstzīmju kopu (iespējams charset conversion)
import server uses UTF8 character set (possible charset conversion) Importa serveris izmanto UTF8 rakstzīmju kopu (iespējams charset conversion)
export server uses UTF8 NCHAR character set (possible ncharset conversion) Eksporta serveris izmanto UTF8 NCHAR rakstzīmju kopu (iespējams ncharset konversijas) Related Articles Saistītie raksti









































