cancel
Showing results for 
Search instead for 
Did you mean: 

Define an alias for the server name

MCMartin
Participant
2,085

-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.

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_duemesnil
Participant
0 Kudos

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 ?

MarkCulp
Participant

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.

thomas_duemesnil
Participant
0 Kudos

I was stuck with "multiple databases running in the same dbsrv process". This was for me the keyword for the -n switch. But we will see what Martin is really interested in.