Which statement should be used?

A simple master-to-slave replication is currently being used. The following information is extracted
from the SHOW SLAVE STATUS output:
Last_SQL_Error: Error ‘Duplicate entry ‘8’ for key ‘PRIMARY’ ‘ on query. Default database: ‘mydb’.
Query: ‘insert into mytable VALUES (‘8’ , ‘George’) ‘
Skip_Counter: 0
Retrieved _Gtid_Set: 38f32e23480a7-32a1-c323f78067fd37821: 1-8
Auto _Position: 1
You execute a “SHOW CREATE TABLE mytable” on the slave:
CREATE TABLE ‘mytable’ (
‘ID’ int(11) NOT NULL DEFAULT ‘0’,
‘name’ char(10) DEFAULT NULL,
PRIMARY KEY (‘ID’)
)
The table mytable on the slave contains the following:

You have issued a STOP SLAVE command. One or more statements are required before you can
issue a START SLAVE command to resolve the duplicate key error.
Which statement should be used?

A simple master-to-slave replication is currently being used. The following information is extracted
from the SHOW SLAVE STATUS output:
Last_SQL_Error: Error ‘Duplicate entry ‘8’ for key ‘PRIMARY’ ‘ on query. Default database: ‘mydb’.
Query: ‘insert into mytable VALUES (‘8’ , ‘George’) ‘
Skip_Counter: 0
Retrieved _Gtid_Set: 38f32e23480a7-32a1-c323f78067fd37821: 1-8
Auto _Position: 1
You execute a “SHOW CREATE TABLE mytable” on the slave:
CREATE TABLE ‘mytable’ (
‘ID’ int(11) NOT NULL DEFAULT ‘0’,
‘name’ char(10) DEFAULT NULL,
PRIMARY KEY (‘ID’)
)
The table mytable on the slave contains the following:

You have issued a STOP SLAVE command. One or more statements are required before you can
issue a START SLAVE command to resolve the duplicate key error.
Which statement should be used?

A.
SET GLOBAL SQL_SKIP_SLAVE_COUNTER=1

B.
SET GTID_NEXT=”CONSISTENCY”;
BEGIN; COMMIT;
SET GTID_NEXT=” AUTOMATIC’;

C.
SET GLOBAL enforce_gtid_consistency=ON

D.
SET GTID_EXECUTED=”38f32e23480a7-32a1-c323f78067fd37821 : 9”;

E.
SET GTID_NEXT=”38f32e23480a7-32a1-c323f78067fd37821 : 9”;
BEGIN; COMMIT;
SET GTID_NEXT=”AUTOMATIC”;

Explanation:



Leave a Reply 42

Your email address will not be published. Required fields are marked *


wolfsrudel

wolfsrudel

GTID enabled -> E.

Eduardo

Eduardo

Do you have the answer in Reference Manual? I dont find nothing.

Eduardo

Eduardo

I understood that before to START SLAVE you need to run SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1 and after to START SLAVE.

wolfsrudel

wolfsrudel

Yes, but not with GTIDs enabled. The SQL_SLAVE_SKIP_COUNTER is for the “normal” replication without GTIDs.
With GTIDs enabled, you’ll get the following error:
SQL> set global sql_slave_skip_counter=1;
ERROR 1858 (HY000): sql_slave_skip_counter can not be set when the server is running with @@GLOBAL.GTID_MODE = ON. Instead, for each transaction that you want to skip, generate an empty transaction with the same GTID as the transaction

Eduardo

Eduardo

Ok. Thanks for clarifying.

nidu

nidu

just for info…
Today I passed this exam.
# of question is 100 and you need at least 65 correct answers
my score is 70 and I marked that only 53 questions are same and the rest are new.

njang

njang

Hi Nidu,

Can you give specification what topic or question thats new in your exam?

Thanks,

AR

AR

Hi Everyone,

I passed the exam today with 82%. I must admit that this was one of the toughest certification exams i have ever attended. Thank you all for your valuable contribution to the question and answer discussions.

The new pass criteria is 60%.

Out of 100 Questions 55 was new and 45 from these questions.

You must read through the documentation very thoroughly along with MySQL/Oracle Student Guide.

Wish you all the very best to everyone.

LH

LH

Dear AR,

Could you share with us more information about your test? and the new questions ? best

AR

AR

Hi,

The test consists of 100 questions with required pass percentage of 60. You have 150 minutes to answer the questions. All are multiple choice questions.
There are some unmarked questions included in those 100, but we don’t know which one they are.

Hope this helps.

AJ

AJ

Hi AR / Others

Is it feasible to clear examination with studying these 100 questions along with Oracle Student guide? I would be giving exam after 15 days and need some quick guidance from all persons. Thanks in advance.

AJ

AJ

Hi All
Just now I passed the exam with 71%. Only 40 questions are from listed here rest all are from the Oracle Documentations.

lappesjl

lappesjl

You said the “MySQL/Oracle Student Guide”. Is this the official course documentation? Or is it something I can download or purchase at Amazon?

AR

AR

Hi,

Yes, I meant the official course documentation(MySQL for Database Administrator 5.6 Student Guide – D61762GC30)

AR

AR

AR, could you please share course documentation?
THX

Google

Google

Here are some links to internet sites that we link to simply because we feel they may be really worth visiting.

Turen

Turen

one of our visitors lately proposed the following website

app builder

app builder

the time to study or pay a visit to the subject material or web sites we have linked to beneath the

how to make a app

how to make a app

check below, are some totally unrelated internet sites to ours, however, they’re most trustworthy sources that we use

Cheap spider feet displays

Cheap spider feet displays

always a huge fan of linking to bloggers that I like but really don’t get a good deal of link like from

home improvement ideas

home improvement ideas

Here is a great Blog You may Come across Fascinating that we Encourage You

satta matka

satta matka

usually posts some very intriguing stuff like this. If you are new to this site

a fantastic read

a fantastic read

just beneath, are numerous entirely not connected websites to ours, however, they are surely really worth going over

Free online games

Free online games

although internet websites we backlink to beneath are considerably not connected to ours, we really feel they are essentially worth a go via, so possess a look

Google

Google

The time to study or take a look at the material or web pages we’ve linked to below.

Youtube to mp3

Youtube to mp3

here are some links to sites that we link to since we feel they’re worth visiting

online now

online now

very couple of web sites that occur to be detailed below, from our point of view are undoubtedly nicely really worth checking out

make your own app

make your own app

please pay a visit to the sites we stick to, such as this one, as it represents our picks through the web

PC Games to Download

PC Games to Download

just beneath, are many entirely not connected web-sites to ours, nonetheless, they may be surely worth going over

how to make an app

how to make an app

Here are several of the sites we suggest for our visitors

create your own app

create your own app

The info mentioned within the write-up are several of the ideal readily available

Cash for cars melbourne

Cash for cars melbourne

The data mentioned in the article are a few of the best offered

create app

create app

Here is a great Blog You may Obtain Exciting that we Encourage You

live in care

live in care

that could be the end of this write-up. Here you will come across some web-sites that we feel youll appreciate, just click the links over

car

car

Here is a superb Weblog You may Uncover Exciting that we Encourage You

online istikhara

online istikhara

although sites we backlink to beneath are considerably not associated to ours, we feel they are basically really worth a go as a result of, so have a look