Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default publication status is not preserved after backup/restore #7800

Closed
pavel-zotov opened this issue Oct 12, 2023 · 0 comments
Closed

Default publication status is not preserved after backup/restore #7800

pavel-zotov opened this issue Oct 12, 2023 · 0 comments

Comments

@pavel-zotov
Copy link

  1. create database;
  2. enable publication:
alter database enable publication;
alter database include all to publication;
commit;
  1. check rdb$publications:
C:\FB\50SS\examples\empbuild\qa_replication>echo set list on; select * from rdb$publications; | C:\FB\50SS\isql /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.FDB
Database: /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.FDB, User: SYSDBA
SQL>
RDB$PUBLICATION_NAME            RDB$DEFAULT
 
RDB$OWNER_NAME                  SYSDBA
 
RDB$SYSTEM_FLAG                 1
RDB$ACTIVE_FLAG                 1
RDB$AUTO_ENABLE                 1
  1. make b/r:
C:\FB\50SS\examples\empbuild\qa_replication>C:\FB\50SS\gbak -b /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.FDB stdout | C:\FB\50SS\gbak -rep stdin /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.tmp
  1. check rdb$publications in just restoredDB:
C:\FB\50SS\examples\empbuild\qa_replication>echo set list on; select * from rdb$publications; | C:\FB\50SS\isql /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.TMP
Database: /:C:\FB\50SS\examples\empbuild\qa_replication\DB_MAIN.TMP, User: SYSDBA
SQL>
RDB$PUBLICATION_NAME            RDB$DEFAULT
 
RDB$OWNER_NAME                  SYSDBA
 
RDB$SYSTEM_FLAG                 1
RDB$ACTIVE_FLAG                 0
RDB$AUTO_ENABLE                 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment