WWW Sqlpac Com en Documents Ms SQL 2019 Ubuntu
WWW Sqlpac Com en Documents Ms SQL 2019 Ubuntu
◼ Introduction
◼ Conclusion
Introduction
ALWAYS start SQL Server engine on Linux with the account mssql.
root@vps$ /opt/mssql/bin/sqlsrvr
Indeed, the engine can not then restart normally with the user mssql.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
-rw-r----- 1 mssql mssql 8192 May 31 18:44 licensing.hiv
-rw-rw---- 1 mssql mssql 49152 May 31 15:40 security.hiv
-rw-rw---- 1 mssql mssql 16384 May 31 15:40 lsa.hiv
When running inadvertently SQL Server as root, permissions are modified for these
files :
That’s why, at the next startup, SQL Server engine does not start, the user mssql is
not allowed to read/write these *.hiv files.
Reason: 0x00000007
Status: 0xc0000218
Message: Cannot open or read the persistent registry: \SystemRoot\s
defaultdumpdir : /opt/mssql/dba/srvmssql/crashdump
root@vps$ cd /var/opt/mssql/.system/system
Unfortunately, the service mssql-server still does not start. Same issue than the one
with the *.hiv files, ensure that the owner of the SQL Server and SQL Server agent
log files is not root (default directory /var/opt/mssql/log) :
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
-rw-r----- 1 root root 14357 May 31 19:50 errorlog
-rw-r----- 1 root root 6694 May 31 19:50 sqlagent.log
When attempting to recycle error log files, the error "Access is denied" is encountered
by the engine and the engine shutdowns. To check that’s the case, as mssql :
mssql@vps$ /opt/mssql/bin/sqlservr
As root, modify the owner of the impacted error log files to mssql :
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
■ Conclusion
Is there any need of a conclusion ? Obvious conclusion : use root connections only
when necessary and close these connections as soon as they are not needed anymore.
Other resources
SQLPAC - Microsoft SQL Server 2019 on Linux Ubuntu 18.04, installation and configuration »
Contact
Subject
Subject…
Message
Your message
Send
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF