Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The problem of incomplete log generation of data pump import and export data

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

For expdp alone, its efficiency is indeed much higher than that of exp; the amount of data exported by expdp for 20G is similar to that for 2G derived by exp.

But there is a problem:

The log generation is not perfect, as shown below

This will certainly become one of the biggest obstacles to promotion within the company, we must solve this problem!

It was only after the arduous query of the network that I realized that it was the problem of the character set.

The client character set setting is inconsistent with the database character set setting.

The character set of the query client is as follows

The character set view statement for the database is

Select * from nls_database_parameters

The result is the utf-8 character set

Then you need to modify the client character set to utf8 character set (utf8 character set is the most extensive and can be suitable for any language)

Because the windows system is used, it needs to be modified in the registry.

Modify the path as follows

Start-run-regedit--- determines:

HKEY_LOCAL_MACHINE\ SOFTWARE\ ORACLE\ HOMExx\ NLS_LANG

The original setting is SIMPLIFIED CHINESE_CHINA.ZHS16GBK

Change to american_america.AL32UTF8

Just save it after modification.

When you log in to sqlplus, it has an English interface, and you may not be used to it.

Enter sqlplus to view the parameters of nls_lang

Show parameter nls_lang

The result is american

But when looking at the tables in the database, the Chinese characters appear garbled, which occurs only on the sqlplus on the database server, but not on other clients. Next, we need to solve this problem!

Solution:

Change the nls_lang in the registry to american_america .ZHS16GBK

Client character set .jpg

Database character set .jpg

Log. Jpg

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report