当前位置:网站首页>Ogg-21.3 error reporting ogg-00768 failed to map database character to ulibcharaset

Ogg-21.3 error reporting ogg-00768 failed to map database character to ulibcharaset

2022-06-21 19:32:00 Big Hedgehog

Because I didn't find the answer directly on the official website and other places , So record it .

scene

Source end : MYSQL 8.0.29

Target end MYSQL 5.7.38

Tools : OGG 21.3

Error reporting

Start extraction process Extract I made a mistake when I went to work

2022-06-21 16:22:26  INFO    OGG-01680  Please ensure the environment variable TZ is set to match the database time zone as timestamp in MySQL depends upon correct setting of TZ.

Source Context :
  SourceModule            : [ggdb.mysql.util]
  SourceID                : [../gglib/ggdbmysql/mysqlutil.c]
  SourceMethod            : [MYSQLUTIL_check_err]
  SourceLine              : [560]
  ThreadBacktrace         : [15] elements
                          : [/root/ogg/libgglog.so(CMessageContext::AddThreadContext())]
                          : [/root/ogg/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...))]
                          : [/root/ogg/libgglog.so(_MSG_String_UInt32_String(CSourceContext*, int, char const*, unsigned int, char const*, CMessageFactory::MessageDisposition))]
                          : [/root/ogg/extract(MYSQLUTIL_check_err(short, char const*, ...))]
                          : [/root/ogg/extract(MYSQLUTIL_get_database_charset())]
                          : [/root/ogg/extract(DBUTIL_getDatabaseMetadata(ggs::gglib::ggunicode::UString const*, ggs::gglib::ggapp::CDatabaseMetadata const**, ggs::gglib::ggunicode::UString&))]
                          : [/root/ogg/extract(gl_odbc_param(char const*, char const*, char (&) [2048]))]
                          : [/root/ogg/extract(get_infile_params(ggs::gglib::ggapp::ReplicationContextParams&, ggs::gglib::ggdatasource::DataSourceParams&, ggs::gglib::ggdatatarget::DataTargetParams&, ggs::gglib::ggmetadata::MetadataContext&))]
                          : [/root/ogg/extract()]
                          : [/root/ogg/extract(ggs::gglib::MultiThreading::MainThread::ExecMain())]
                          : [/root/ogg/extract(ggs::gglib::MultiThreading::Thread::RunThread(ggs::gglib::MultiThreading::Thread::ThreadArgs*))]
                          : [/root/ogg/extract(ggs::gglib::MultiThreading::MainThread::Run(int, char**))]
                          : [/root/ogg/extract(main)]
                          : [/lib64/libc.so.6(__libc_start_main)]
                          : [/root/ogg/extract()]

2022-06-21 16:22:26  ERROR   OGG-00768  Failed to Map database character to ULibCharSet. SQL error (0).

2022-06-21 16:22:26  ERROR   OGG-01668  PROCESS ABENDING

analysis

At first glance, I thought it was a character set problem , So I inquired Official website error code

OGG-00768: {0}. SQL error ({1,number,0}). {2}

Cause: This is a generic error message and there can be multiple reasons for it. One reason could be that a query to set the session timeout failed. Ignoring this message results in the session being disconnected after a default time period if the connection has been idle. This error message also is used when an operation against the database fails, such as a query.

Action: To resolve this error, verify in the database why the query or other operation would fail. For example, verify that the user that executed the operation has the correct privileges to do so.

The official website means the problem when connecting , Such as timeout .

This environment has nothing to do with timeout , The timeout parameter settings are very large .

That is the problem of connection , Such as password plug-ins ( Unfortunately, the plug-in is changed to mysql_native_password Or the same error report )

solve the problem

Change the source database version to 5.7.38 Then it was normal .

Strictly speaking, it is not a solution to the problem , Because the database version has been changed . The specific reasons have to be solved by the leaders (^_^)

原网站

版权声明
本文为[Big Hedgehog]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211749332688.html