dbTalk Databases Forums  

Replication: Nature of file for subscription-set?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Replication: Nature of file for subscription-set? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Troels Arvin
 
Posts: n/a

Default Replication: Nature of file for subscription-set? - 01-12-2011 , 05:19 AM






Hello,

I'm trying to grasp DB2 SQL-replication.

In the example at http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/
topic/com.ibm.swg.im.iis.db.repl.asnclp.sql.doc/topics/
iiyrsclpbldscriptsql.html there is a section called "ASNCLP script 5
(subscription-set member)".

The code in the example contains this statement:

SET PROFILE TBSPROFILE FOR OBJECT TARGET TABLESPACE OPTIONS UW
USING FILE "c:\TSTRG.TS" SIZE 700 PAGES;

What's the purpose of the TSTRG.TS file? What should the permissions of
such a file be? Should it be backed up? Or is it temporary while setting
up replication? If not: Is is a performance bottleneck (i.e.: should it be
put on potent storage?). And if it's not temporary: placing it in the
root of the filesystem seems odd; would a better placement be something
like ~db2inst1/sqllib?

--
Troels

Reply With Quote
  #2  
Old   
DavidT
 
Posts: n/a

Default Re: Replication: Nature of file for subscription-set? - 01-12-2011 , 01:14 PM






On Jan 12, 3:19*am, Troels Arvin <tro... (AT) arvin (DOT) dk> wrote:
Quote:
Hello,

I'm trying to grasp DB2 SQL-replication.

In the example athttp://publib.boulder.ibm.com/infocenter/db2luw/v9r7/
topic/com.ibm.swg.im.iis.db.repl.asnclp.sql.doc/topics/
iiyrsclpbldscriptsql.html there is a section called "ASNCLP script 5
(subscription-set member)".

The code in the example contains this statement:

* *SET PROFILE TBSPROFILE FOR OBJECT TARGET TABLESPACE OPTIONS UW
* *USING FILE "c:\TSTRG.TS" SIZE 700 PAGES;

What's the purpose of the TSTRG.TS file? What should the permissions of
such a file be? Should it be backed up? Or is it temporary while setting
up replication? If not: Is is a performance bottleneck (i.e.: should it be
put on potent storage?). And if it's not temporary: placing it in the
root of the filesystem seems odd; would a better placement be something
like ~db2inst1/sqllib?

--
Troels
If your target tables do not exist, asnclp will try to create them for
you. If you do not want the target tables to be created in the
default tablespace, then you need to give asnclp some information
about what the tablespaces you want it use. asnclp can also create
the target table spaces. You'll need to tell asnclp where to put it,
etc..

The Set Profile command tells asnclp about table spaces for those
situations where you're having asnclp create things for you. If your
target table already exists, the profile isn't necessary. If you're
good with all tables going into the default, no need for the profile
either.

The sample is just that and not a recommendation It's not likely
anyone would want to put table spaces in a root directory.

--
david

Reply With Quote
  #3  
Old   
Troels Arvin
 
Posts: n/a

Default Re: Replication: Nature of file for subscription-set? - 01-12-2011 , 04:03 PM



Hello Lennart,

In comp.databases.ibm-db2, you recently wrote:
Quote:
What's the purpose of the TSTRG.TS file?
[...]
Not sure (it was quite sime time since I played with sql replication),
but I think it is a tablespace that could be used for tables related to
subscription. I looked in my sample scripts that I created, and I notice
that I commented that section out, so I assume this means that tables
where created in USERSPACE1:
Ah, it's to be interpreted as a tablespace container file, it seems.

[...]
Quote:
I can mail you the scripts I played with, in case you would like to
compare with your own things.
I would very much appreciate that. Do you happen to also have init-scripts
for properly starting/stopping replication (capture and/or apply daemons)
on server boot/shutdown?

--
Troels

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.