Oracle 5.0 Reference Manual page 1490

Table of Contents

Advertisement

Replication and Binary Logging Options and Variables
Another case which may not be self-evident occurs when a given database is replicated even though
it was not specified when setting the option. If the server is started with --binlog-do-db=sales,
the following
UPDATE
binlog-do-db:
USE sales;
UPDATE prices.discounts SET percentage = percentage + 10;
Because
is the default database when the
sales
logged.
Important
To log multiple databases, use this option multiple times, specifying the
option once for each database to be logged. Because database names can
contain commas, the list will be treated as the name of a single database if
you supply a comma-separated list.
--binlog-ignore-db=db_name
Command-Line Format
Option-File Format
This option affects binary logging in a manner similar to the way that
[1457]
affects replication.
db
Tell the server to suppress binary logging of updates for which the default database is
is, the database selected by USE). If you use this option, you should ensure that you do updates only
in the default database.
As with the
--binlog-do-db
DATABASE, and
ALTER
statement (not the default database) to decide whether it should log the statement.
An example of what does not work as you might expect: If the server is started with
ignore-db=sales, and you run
1000;, this statement is written into the binary log.
amount +
Important
To ignore multiple databases, use this option multiple times, specifying the
option once for each database to be ignored. Because database names can
contain commas, the list will be treated as the name of a single database if
you supply a comma-separated list.
Testing and debugging options.
and debugging. They are not intended for use in normal operations.
--max-binlog-dump-events=N
Command-Line Format
Option-File Format
statement is logged even though
[1470]
--binlog-ignore-db=name
binlog-ignore-db
Permitted Values
Type
string
[1469]
option, there is an exception for the
statements. The server uses the database named in the
DROP DATABASE
USE prices; UPDATE sales.january SET amount =
The following binary log options are used in replication testing
[1470]
--max-binlog-dump-events=#
max-binlog-dump-events
Permitted Values
Type
numeric
1470
was not included when setting
prices
statement is issued, the
UPDATE
--replicate-ignore-
--
is
UPDATE
(that
db_name
CREATE
DATABASE,
binlog-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents