To automatically create a Replication Server, and the primary and replicate data servers and databases, execute the buildenv script.
buildenv -f config_file
Use -f config_file to specify the name and location of the build configuration file that contains the parameters you can specify in the file.
Sybase provides configuration file templates for Adaptive Server to Adaptive Server and Oracle to Oracle replication on supported UNIX and Microsoft Windows platforms, that you can use to create a configuration file for your environment. The files are in $SYBASE/REP-15_5/REFIMP-01_0:
ase_unix_refimp.cfg – ASE-to-ASE on UNIX
ase_win_refimp.cfg – ASE-to-ASE on Windows
ora_unix_refimp.cfg – Oracle-to-Oracle on UNIX
ora_win_refimp.cfg – Oracle-to-Oracle on Windows
For example, the ase_unix_refimp.cfg file:
########################################################################## # --- Part 1. release directory of repserver/ase/oracle/refimp ----# ########################################################################## # # --- PLATFORM('unix': UNIX/Linux platform, 'win': Windows) ---# # os_platform=unix # --- DATABASE ('ase': Adaptive Server Enterprise, 'ora': ORACLE) ---# # db_type=ase # # --- RS RELEASE DIRECTORY --- # # rs release directory=/remote/repeng4/users/xiel/repserver # # --- RS RELEASE SUBDIRECTORY --- # # rs_sub_directory=REP-15_2 # # --- ASE RELEASE DIRECTORY --- # # ase_release=/remote/repeng4/users/xiel/ase # # --- ASE/ORACLE RELEASE SUBDIRECTORY --- # # ase_subdir=ASE-15_0 # # --- REFERENCE IMPLEMENTATION RELEASE DIRECTORY --- # # refimp_release_dir=/calm/repl/svr/refimp # # # # --- REFERENCE IMPLEMENTATION WORK DIRECTORY --- # refimp_work_dir=/remote/repeng4/users/xiel/test # # --- OCS RELEASE DIRECTORY --- # # ocs_release_directory=OCS-15_0 # # --- PDS DEVICE NAME WITH FULL PATH --- # # pds_device_file=/remote/repeng4/users/xiel/pds # # --- RDS DEVICE NAME WITH FULL PATH --- # # rds_device_file=/remote/repeng4/users/xiel/rds # # --- rs_init RELEASE DIRECTORY --- # # rsinit_release=/remote/repeng4/users/xiel/repserver # # # --- interface FILE NAME --- # ini_filename=interfaces # # --- HOST NAME --- # host_name=newgarlic ########################################################################## # --- Part 2. login information of replication server and data server ---# ########################################################################## # # --- RS NAME --- # # rs_name=SAMPLE_RS # # --- RS USER NAME --- # # rs_username=sa # # --- RS PASSWORD --- # # rs_password= # # # # --- ERSSD NAME --- # # rssd_name=SAMPLE_RS_ERSSD # # --- ERSSD USER NAME --- # # rssd_username=rssd # # --- ERSSD PASSWORD --- # # rssd_password=rssd_pwd # # --- PDS NAME --- # # primary_ds=PDS # # --- PDB NAME --- #primary_db=pdb # # --- PDB USER NAME --- # pdb_username=sa # # --- PDB PASSWORD --- # pdb_password= # # --- RDS NAME --- # replicate_ds=RDS # # --- RDB NAME --- # replicate_db=rdb # # --- RDB USER NAME --- # rdb_username=sa # # --- RDB PASSWORD --- # rdb_password= # # --- PORT FOR RS --- # rs_port=11754 # # --- PORT FOR RSSD --- # rssd_port=11755 # # --- PORT FOR PDS --- # pds_port=20000 # # --- PORT FOR RDS --- # rds_port=20001 # ########################################################################## # --- Part 3. transaction profile configuration parameters --- # ########################################################################## # # --- number of transactions to be executed --- # # tran_number=100 # # --- what kind of transction will be executed --- # # 1."Tran_Profile_1(insert--48% delete--4% update 48%)" # 2."Tran_Profile_2(insert--30% delete--5% update 65%)" # 3."Tran_Profile_3(insert--61% delete--2% update 37%)" # 4."Tran_Profile_LargeTran" # tran_option=1 # ########################################################################## # --- Part 4. system settings --- # ########################################################################## # # --- WAIT TIME FOR CONNECTING SERVERS, SPECIFIED BY SECOND(S) --- # wait_time=10
If buildenv executes successfully, you see:
Environment setup successfully completed.