如何在solaris上建立2个sybase server?
1、sybase version12.5.2
安装命令:./srvbuildres -r srvbuild.adaptive_server.rs
2、第一个server:pe,路径在/opt/pe/sybase125
srvbuild.adaptive_server.rs文件:
- sybinit.release_directory: /opt/pe/sybase125
- sybinit.product: sqlsrv
- sqlsrv.server_name: pe
- sqlsrv.new_config: yes
- sqlsrv.do_add_server: yes
- sqlsrv.network_protocol_list: tcp
- sqlsrv.network_hostname_list: tcaldap01
- sqlsrv.network_port_list: 4123
- sqlsrv.server_page_size: USE_DEFAULT
- sqlsrv.force_buildmaster: no
- sqlsrv.master_device_physical_name: /opt/pe/device/master.dat
- sqlsrv.master_device_size: 40
- sqlsrv.master_database_size: 30
- sqlsrv.errorlog: USE_DEFAULT
- sqlsrv.do_upgrade: no
- sqlsrv.sybsystemprocs_device_physical_name: /opt/pe/device/systemprocs.dat
- sqlsrv.sybsystemprocs_device_size: USE_DEFAULT
- sqlsrv.sybsystemprocs_database_size: USE_DEFAULT
- sqlsrv.sybsystemdb_device_physical_name: /opt/pe/device/sybsystemdb.dat
- sqlsrv.sybsystemdb_device_size: USE_DEFAULT
- sqlsrv.sybsystemdb_database_size: USE_DEFAULT
- sqlsrv.default_backup_server: pe_back
复制代码
interfaces文件:
- pe
- master tcp ether tcaldap01 4123
- query tcp ether tcaldap01 4123
- pe_back
- master tcp ether tcaldap01 4200
- query tcp ether tcaldap01 4200
复制代码
启动和操作正常。
3、shutdown第一个server,安装第二个server:pe2,路径在/opt/pe/sybase125_2
srvbuild.adaptive_server.rs文件:
- sybinit.release_directory: /opt/pe/sybase125_2
- sybinit.product: sqlsrv
- sqlsrv.server_name: pe2
- sqlsrv.new_config: yes
- sqlsrv.do_add_server: yes
- sqlsrv.network_protocol_list: tcp
- sqlsrv.network_hostname_list: tcaldap01
- sqlsrv.network_port_list: 5123
- sqlsrv.server_page_size: USE_DEFAULT
- sqlsrv.force_buildmaster: no
- sqlsrv.master_device_physical_name: /opt/pe/device2/master.dat
- sqlsrv.master_device_size: 40
- sqlsrv.master_database_size: 30
- sqlsrv.errorlog: USE_DEFAULT
- sqlsrv.do_upgrade: no
- sqlsrv.sybsystemprocs_device_physical_name: /opt/pe/device2/systemprocs.dat
- sqlsrv.sybsystemprocs_device_size: USE_DEFAULT
- sqlsrv.sybsystemprocs_database_size: USE_DEFAULT
- sqlsrv.sybsystemdb_device_physical_name: /opt/pe/device2/sybsystemdb.dat
- sqlsrv.sybsystemdb_device_size: USE_DEFAULT
- sqlsrv.sybsystemdb_database_size: USE_DEFAULT
- sqlsrv.default_backup_server: pe_back2
复制代码
interfaces文件:
- pe2
- master tcp ether tcaldap01 5123
- query tcp ether tcaldap01 5123
- pe_back2
- master tcp ether tcaldap01 5200
- query tcp ether tcaldap01 5200
复制代码
第二个server启动和操作正常。
4、关掉第二个server,启动第一个server,启动失败,好像第二个server覆盖了第一个的一些配置,log如下:
- server Completed filling free space info for database 'sybsystemprocs'.
- server Started cleaning up the default data cache for database 'sybsystemprocs'.
- server Completed cleaning up the default data cache for database 'sybsystemprocs'.
- server Checking external objects.
- server The transaction log in the database 'sybsystemprocs' will use I/O size of 2 Kb.
- server Database 'sybsystemprocs' is now online.
- [color=red] kernel Connectivity Library (Directory Control Layer) Error: Error returned by service provider.
- kernel Connectivity Library (Directory Control Layer) Error: (InterfacesDriver): Requested server name not found.
- kernel Server pe not registered in the interfaces file or directory services.
- kernel Cannot start any network listeners.
- kernel ueshutdown: exiting[/color]
复制代码
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论