In my previous post, I have shown you some of the trace flags which are enabled by default on SQL vNext CTP 1.3 Instance on Linux.
In this post we will see how to add trace flags to SQL Startup parameter on Linux.
In windows world, to add trace flag to start-up parameter all we had to do is open SQL configuration manager-> Right click on SQL Service and open its properties -> Navigate to startup parameters tab and add your trace flags.
In Linux world, everything is at file level. All configuration items are stored in a file. To make configurational changes to SQL Instance we will be using mssql-conf under /opt/mssql/bin/.
Now let’s see how to add trace flag to SQL Startup Parameters
If you are already in /opt/mssql/bin/ directory just run
./mssql-conf traceflag 1117 1118 1222 3226 on
Say if you are in /opt directory. Your command will be something like
./mssql/bin/mssql-conf traceflag 1117 1118 1222 3226 on
Now we have successfully added trace flag 1117, 1118, 1222 and 3226. We have to restart SQL service to apply these changes.
To check the status of SQL Service
Systemctl status mssql-server.service
To restart SQL Service
Systemctl restart mssql-server.service
Now let’s connect to the SQL instance and check if the trace flags are enabled
In the next blog post, I will show you how to change your SQL Instance collation on Linux.
Cheers,
Naveen
In this post we will see how to add trace flags to SQL Startup parameter on Linux.
In windows world, to add trace flag to start-up parameter all we had to do is open SQL configuration manager-> Right click on SQL Service and open its properties -> Navigate to startup parameters tab and add your trace flags.
In Linux world, everything is at file level. All configuration items are stored in a file. To make configurational changes to SQL Instance we will be using mssql-conf under /opt/mssql/bin/.
Now let’s see how to add trace flag to SQL Startup Parameters
If you are already in /opt/mssql/bin/ directory just run
./mssql-conf traceflag 1117 1118 1222 3226 on
Say if you are in /opt directory. Your command will be something like
./mssql/bin/mssql-conf traceflag 1117 1118 1222 3226 on
Now we have successfully added trace flag 1117, 1118, 1222 and 3226. We have to restart SQL service to apply these changes.
To check the status of SQL Service
Systemctl status mssql-server.service
To restart SQL Service
Systemctl restart mssql-server.service
Now let’s connect to the SQL instance and check if the trace flags are enabled
In the next blog post, I will show you how to change your SQL Instance collation on Linux.
Cheers,
Naveen