on 2012 Apr 03 11:46 AM
-sn can be used to define an alternate server name for a single database. This approach cannot be used for multiple databases running in the same dbsrv process. Therefore I would like to suggest an option to give the whole database server multiple names. Especially in migration scenarios it could be very convenient, if the database server could have more than one name.
Request clarification before answering.
You can use the -n Option to name each Database you load into the server.
database-file -n string ...
http://dcx.sybase.com/index.html#1201/en/dbadmin/db-n-database-dbengine.html
Is that what you are looking for ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thomas: no I do not believe this is what Martin is looking for. The -n switch that comes after a database file name gives a name to the database, not the server. I believe that Martin would like to have multiple names given to a server so that it would respond to any one of those names. I am just not sure what the usage case would be to have a server responding to multiple names. Note the -sn database switch was implemented so that both partner servers hosting the copies of a single database in an HA system could respond to the same server name when the server is acting as the primary. Since the -sn switch only applies to a particular database running on the server all connection requests using the -sn alternate server name must be to its respective database.
User | Count |
---|---|
68 | |
16 | |
12 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.