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:
GTID enabled -> E.
Do you have the answer in Reference Manual? I dont find nothing.
Needed in production already. 😉
http://www.fromdual.com/de/node/933
I understood that before to START SLAVE you need to run SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1 and after to START SLAVE.
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
Ok. Thanks for clarifying.
So.. what the correct answer…?
Letter E.
http://www.percona.com/blog/2015/02/19/more-on-mysql-5-6-multi-threaded-replication-and-gtids-and-feb-25-webinar/
The correct answer is E.
http://www.percona.com/blog/2015/02/19/more-on-mysql-5-6-multi-threaded-replication-and-gtids-and-feb-25-webinar/
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.
Hi Nidu,
Can you give specification what topic or question thats new in your exam?
Thanks,
E
E
slave>SET GTID_NEXT=”5b37def1-6189-11e3-bee0-e89a8f22a444:80437840“; (last_executed_slave_gtid_on_master + 1)
slave> BEGIN; COMMIT;
slave> SET GTID_NEXT=”AUTOMATIC”;
slave> START SLAVE;
slave> show slave status;
https://lalitvc.wordpress.com/2014/06/27/mysql-5-6-gtid-replication-errors-and-fixes/
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.
Dear AR,
Could you share with us more information about your test? and the new questions ? best
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.
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.
Hi All
Just now I passed the exam with 71%. Only 40 questions are from listed here rest all are from the Oracle Documentations.
You said the “MySQL/Oracle Student Guide”. Is this the official course documentation? Or is it something I can download or purchase at Amazon?
Hi,
Yes, I meant the official course documentation(MySQL for Database Administrator 5.6 Student Guide – D61762GC30)
AR, could you please share course documentation?
THX
Here are some links to internet sites that we link to simply because we feel they may be really worth visiting.
one of our visitors lately proposed the following website
the time to study or pay a visit to the subject material or web sites we have linked to beneath the
check below, are some totally unrelated internet sites to ours, however, they’re most trustworthy sources that we use
always a huge fan of linking to bloggers that I like but really don’t get a good deal of link like from
Here is a great Blog You may Come across Fascinating that we Encourage You
usually posts some very intriguing stuff like this. If you are new to this site
just beneath, are numerous entirely not connected websites to ours, however, they are surely really worth going over
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
The time to study or take a look at the material or web pages we’ve linked to below.
here are some links to sites that we link to since we feel they’re worth visiting
very couple of web sites that occur to be detailed below, from our point of view are undoubtedly nicely really worth checking out
please pay a visit to the sites we stick to, such as this one, as it represents our picks through the web
just beneath, are many entirely not connected web-sites to ours, nonetheless, they may be surely worth going over
Here are several of the sites we suggest for our visitors
The info mentioned within the write-up are several of the ideal readily available
The data mentioned in the article are a few of the best offered
Here is a great Blog You may Obtain Exciting that we Encourage You
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
Here is a superb Weblog You may Uncover Exciting that we Encourage You
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