StarTeam 2005 R2: Unable to start the server as a service.

0 Likes

Problem:

StarTeam 2005 R2: Unable to start the server as a service.

Resolution:

  • Product Name: StarTeam
  • Product Version: 6.0, 2005, 2005 R2
  • Product Component: Server
  • Platform/OS Version: Windows 2000 server, SP4

Description:

After setting StarTeam as a service when using Oracle as the database, if the machine is rebooted, StarTeam fails to start as a service. The following message is seen in the server log file.

Exception thrown from Unknown: Class = CDBException, Code = 4294967295(0xffffffff)
Msg = Data source name not found and no default driver specified

[Function Name] = CStDatabase::OpenDatabase
[ODBC Error] = State:IM002,Native:0,Origin:[Microsoft][ODBC Driver Manager]

4 00000004 2005-11-03 07:44:12 Exception handled at CStServer::Preload: Class = CDBException, Code = 4294967295(0xffffffff)
Msg = Data source name not found and no default driver specified

[Function Name] = CStDatabase::OpenDatabase
[ODBC Error] = State:IM002,Native:0,Origin:[Microsoft][ODBC Driver Manager]


Answer/Solution:

If the StarTeam server does not start as a service when using Oracle as the database, the user setting it as a service (Run As user)should not be the System user, but instead should be the user who is the Oracle Administrator.

Then when re-starting the machine, if the servicce does not start up, the following needs to be done.

1. The service dependencies should be set such that StarTeam service does not start until Oracle has started.

The following proecedure needs to be followed to set the service dependency.

Open up your Windows NT registry editor (regedt32.exe), and browse your way to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\StarTeamService
Go up to Edit | Add value... from the menu, and type in for the Value Name:

DependOnService

and for the Data Type:

REG_MULTI_SZ

In the next box Multi-String Editor, put in OracleStartORCL (though this could be a little tricky). The string is actually OracleStart???? where ???? is the name of your database. ORCL would be default, but yours could be different. Either way, the service should start with the "OracleStart...".

2. When the StarTeam server is started as service, go to Control Panel --> Services, right click on Starteam Server, choose Properties. Go to the Recovery tab, on the First Failure and Second Failure, choose "Restart the Service". Also, change "Restart service after" to 5 minutes.
This needs to be done since Oracle takes a long time to start up and the StarTeam service should not start until after the Oracle service starts.


Author: Meghana Rao

Old KB# 28153
Comment List
Related
Recommended