New installation
What is it?
This page walks you through a first-time SQL Agent install on a Windows machine. If the SQL Agent is already installed and you need to update it, see Upgrade instead.
A complete install has three phases:
- Install the SQL Agent software on the Windows machine.
- Configure how the service starts (startup type and account).
- Create the machine record in OpCon so the agent can communicate with the scheduler.
Prerequisites
Before you start the installer, make sure the machine has:
- Local Administrator sign-in rights for the Windows user running the installer.
- The OpCon installation media containing the SMA OpCon Agent for SQL Install.exe file.
- A management studio or command-line client for the database the agent will run jobs against.
- MS SQL Server: SQL Server Management Studio or
SQLCMD.exe. - Oracle: SQLcl.
Install the SQL Agent
The installer is a wizard with four configuration screens (instance name, output path, ports, setup type) followed by a final install step. Default values are safe for most environments — change them only if you have a reason to.
Start the installer
To start the installer, complete the following steps:
- Sign in to the Windows machine as a Local Administrator.
- Exit all running applications on the desktop, including any OpCon applications.
- Double-click the SMA OpCon Agent for SQL Install.exe file in the OpCon installation media. The language screen displays.
- Select the desired language for the installation screens and select OK. The Welcome screen displays.
Configure paths, instance name, and ports
To configure the installation paths and ports, complete the following steps:
- Select Next. The Destination Folder screen displays.
- Change the target location for the installation or retain the default location.
- Select Next. The Configure Instance Name screen displays.
- (Optional) Enter a unique instance name to identify the SQL Agent. Use this if you plan to run more than one agent instance on the same machine.
- Select Next. The Select Path for File Migration to ProgramData screen displays.
- Select Skip. The Select Path for Output Files screen displays.
- Change the directory for the output files or retain the default location.
- Select Next. The Configure Ports screen displays.
- Change the port values or retain the default values.
Note the port values you choose — you will need to enter the matching socket number in OpCon when you create the machine record later.
Run the installation
To run the installation, complete the following steps:
- Select Next. The Setup Type screen displays.
- Select the Setup Type: Complete or Custom.
- For a Custom install, the Custom Setup screen displays.
- Select Next. The Ready to Install the Program screen displays.
- Select Install.
- Select Finish on the InstallShield Wizard Completed screen.
The installer writes a log file named SMA_OpCon_SQL_Agent_Install.log to the Windows directory. Consult this file if you suspect any installation problems.
Service startup setup
By default, the SMA OpCon Agent for SQL service is set to Automatic (Delayed Start) and runs under the local system account. Most environments do not need to change these defaults.
SMA Technologies recommends leaving the SMA OpCon Agent for SQL service set to Automatic (Delayed Start) to avoid potential issues at startup time while other services and programs start up.
Use the procedure below if you need to change the startup type or the account the service runs as.
Set up service startup
To set up service startup, complete the following steps:
- On the Application server, use the menu path: Start > Control Panel > Administrative Tools.
- Select Administrative Tools. The Administrative Tools window displays.
- Double-click Services. The Services window displays.
- Double-click the newly installed SMA OpCon Agent for SQL service. The SMA OpCon Agent for SQL Properties dialog displays with the General tab in focus.
- Select the Service Startup type:
- Automatic (Delayed Start) (recommended)
- Automatic
- Manual
- Disabled
- Select the Log On tab.
- Select one of the following two Log on as options for the service:
- Local System account — Select this option if the service will run as the local system account. Selecting it deletes the default Domain User displayed in the field.
- This account — Select this option if the service needs access to network directories. Enter the Domain User in the field, enter the Password for the Domain User, and re-enter the Password to confirm.
- Select OK.
Machine creation
After the agent is installed, create a machine record in OpCon so the scheduler can communicate with the agent. You only need to do this once per machine — if the machine was previously defined in OpCon, you may skip this procedure.
Create the machine in OpCon
To create the machine in OpCon, complete the following sub-procedures in order.
Sign in to Enterprise Manager
To sign in, complete the following steps:
- Use the menu path: Start > Programs > OpConxps > Enterprise Manager. The OpCon Login screen displays.
- Enter a case-sensitive User Login ID (e.g.,
ocadm) in the Username field. - Enter the case-sensitive password for the user in the Password field.
- Select the profile in the Profile list.
- Select Login to sign in to Enterprise Manager.
Add the machine record
To add the machine record, complete the following steps:
-
Double-click Machines under the Administration topic in the Navigation Panel. The Machines screen displays.
-
Select Add on the Machines toolbar.
-
Enter the official host name or alias based on the agent machine in the Name field.
-
Enter any relevant documentation for this agent machine in the Documentation field.
-
Select SQL in the Machine Type list.
-
Set the value to a unique number (e.g.,
21100) in the Socket Number box.Match the agent configurationThe socket number entered here must match the socket entered in the agent configuration file. If the values do not match, OpCon cannot communicate with the agent.
-
(Optional) Enter the IPv4 or IPv6 address in the IP Address field.
-
(Optional) Enter the name in the Fully Qualified Domain Name field.
-
Select Save on the Machines toolbar.
Configure advanced settings and start communication
To configure optional advanced settings and start communication with the agent, complete the following steps:
- (Optional) Select Open Advanced Settings Panel and review and update as necessary:
- Select the Advanced Options save button to store all changes.
- (Optional) Start communication with the machine by:
- Right-clicking the graphic to enable the menu in the Communication Status frame.
- Selecting Start Communication from the menu.
- Select the x to the right of the Machines tab to close the Machines screen.
Related topics
- SQLAgent.ini file configuration — Where to find and edit the agent configuration file.
- Service configuration options — Detailed guidance on running the service as a Local System Account or Domain User.
- Manage the SQL Agent service — How to start and stop the agent after installation.
- Multiple instances — Install additional SQL Agent instances on the same machine.