Download presentation
Presentation is loading. Please wait.
1
Linux: a new mate for SQL Server
Salvatore Pellitteri Linux: a new mate for SQL Server
2
Sponsor
3
Organizzatori GetLatestVersion.it
4
Salvatore Pellitteri | @pellittsa
Developer Team Manager in Microsys Srl. Microsoft MVP Azure – Application Integration Microsoft P-Seller competenza Data Platform SQL / BI / Integration Architect
5
agenda
6
Componenti DB Engine Agent Full-Text Search SSIS Client Edizioni
Express Developer Web Standard Enterprise a new mate for linux
7
System Architecture
8
SQL Server 2005 introduce SOS
System Architecture 30 anni di storia Milioni di righe di codice Com’è stato possibile ? SQL Server 2005 introduce SOS Drawbridge Project SQL Server PAL
9
SQL Server 2005 introduce SOS
System Architecture SQL Server 2005 introduce SOS Drawbridge Project SQL Server PAL
10
SQL Server 2005 introduce SOS
System Architecture SQL Server 2005 introduce SOS Drawbridge Project SQL Server PAL
11
SQL Server 2005 introduce SOS
System Architecture SQL Server 2005 introduce SOS Drawbridge Project SQL Server PAL
12
Process Model
13
Physical -> Virtual -> Docker
14
Installazione & Configurazione
15
Versioni Linux Supportate
RedHat Enterprise Linux (RHEL) 7.3 SUSE Enterprise Linux (SLES) v12 SP2 Ubuntu & 16.10 Possibly other Linux distributions Docker: Windows & Linux containers Windows Server / Windows 10 Package based installation Example: yum install mssql-server
16
System Requirements Memoria File System Spazio Disco CPU Tipo CPU
3.25 GB Memoria XSF EXT4 File System 6 GB Spazio Disco 2 GHz 2 core CPU X64 compatible Tipo CPU
17
Desktop Environment Unity sudo apt-get install ubuntu-desktop KDE
sudo apt-get install kubuntu-desktop GNOME sudo apt-get install ubuntu-gnome-desktop LXDE (lubuntu) sudo apt-get install lubuntu-desktop MATE sudo apt-get install mate-desktop XFCE (xubuntu) sudo apt-get install xubuntu-desktop … Server text mode Nessuna differenza per SQL Server: si fa tutto dalla console
18
Install SQL Server Ubuntu: # Import the public repository GPG keys: curl | sudo apt-key add – # Register the Microsoft SQL Server Ubuntu repository: sudo add-apt-repository "$(curl # Install SQL Server: sudo apt-get update sudo apt-get install -y mssql-server # Config sudo /opt/mssql/bin/mssql-conf setup # Check systemctl status mssql-server
19
Install SQL Server Agent
# Ubuntu sudo apt-get update sudo apt-get install mssql-server-agent sudo systemctl restart mssql-server
20
Install SQL Server Full-Text Search
# Ubuntu sudo apt-get update sudo apt-get install -y mssql-server-fts Il Semantic Search DB è all’interno di “/opt/mssql/misc/semanticsdb.bak”. E’ sufficiente un restore.
21
Install SQL Server Integration Server
# Ubuntu sudo apt-get update sudo apt-get install -y mssql-server-is # Config sudo /opt/ssis/bin/ssis-conf setup # Path export PATH=/opt/ssis/bin:$PATH dtexec /F <package name> /DE <protection password>
22
Upgrade Repository: Cumulative Updates (CU): CU + Bug Fix + Improvements GDR: Critical Fix + Security Updates Path: GDR -> CU CU -> GDR # Verifica l’impostazione corrente sudo cat /etc/apt/sources.list # Rimuove la configurazione corrente sudo add-apt-repository -r 'deb [arch=amd64] xenial main’ # Importa la chiave pubblica del repository sudo curl | sudo apt-key add – # Imposta il Nuovo repository (CU in questo caso) sudo add-apt-repository "$(curl && sudo apt-get update
23
Upgrade Verificare se necessita upgrade Nel caso
sudo apt-get --just-print upgrade sudo apt-get update sudo apt-get install mssql-server
24
Disponibili su Azure
25
Package disponibili su AZ Gallery VM
26
Best practice (file location)
Impostare Data & Log directory TempDB location Backup location sudo chown mssql [new path] sudo chgrp mssql [new path] sudo /opt/mssql/bin/mssql-conf set filelocation.defaultdatadir [new path] sudo /opt/mssql/bin/mssql-conf set filelocation.defaultlogdir [new path] sudo systemctl restart mssql-server sudo chown mssql [new path] sudo chgrp mssql [new path] sudo mv /var/opt/mssql/data/tempdb.mdf [new path] sudo mv /var/opt/mssql/data/templog.mdf [new path] sudo systemctl restart mssql-server sudo chown mssql [new path] sudo chgrp mssql [new path] sudo /opt/mssql/bin/mssql-conf set filelocation.defaultbackupdir [new path] sudo systemctl restart mssql-server
27
Best practice (other settings)
Memory Limit TempDB Config sudo /opt/mssql/bin/mssql-conf set memory.memorylimitmb [limit] sudo systemctl restart mssql-server USE [master] GO ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev_cpu2', FILENAME = N'/var/opt/mssql/data/tempdev_cpu2.ndf' , SIZE = 8192KB , FILEGROWTH = 65536KB ) ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev_cpu3', FILENAME = N'/var/opt/mssql/data/tempdev_cpu3.ndf' , SIZE = 8192KB , FILEGROWTH = 65536KB ) ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev_cpu4', FILENAME = N'/var/opt/mssql/data/tempdev_cpu4.ndf' , SIZE = 8192KB , FILEGROWTH = 65536KB )
28
Client Utilities
29
Client Utilities
30
Multi-OS command line tool
31
Setup Client Utilities (sqlcmd & bcp)
# Ubuntu # Public repository GPG keys curl | sudo apt-key add – # Microsoft repository curl | sudo tee /etc/apt/sources.list.d/msprod.list # Setup sudo apt-get update sudo apt-get install mssql-tools unixodbc-dev
32
Setup Client Utilities (mssql-scripter & DBFS)
Generazione Script & DMV line-tools-to-generate-t-sql-scripts-and-monitor-dynamic-management-views/ mssql-scripter DBFS (DMV Virtual File System)
33
Visual Studio Code
34
SQL Operations Studio (SSMS Multi-OS)
35
Security, High Availability & Disaster Recovery
36
Sicurezza Protect Data Control Access Monitor Access
Encryption at rest Transparent Data Encryption Backup Encryption Cell-Level Encryption Encryption in transit Transport Layer Security (SSL/TLS) Encryption in use (client) Control Access Always Encrypted Database access SQL Authentication Active Directory Authentication Application access Monitor Access Row-Level Security Dynamic Data Masking Tracking activities Fine-Grained Audit
37
High availability and disaster recovery
Simple HADR VM Failure Resilience against guest & OS level failures Planned & unplanned events Minimum downtime for patching and upgrades Minutes RTO Backup/Restore Protection against accidental or malicious data corruption DR protection Minutes to hours RTO Standard HADR Failover Cluster Instance level protection Automatic failure detection & failover Seconds to minutes RTO Resilience against OS and SQL Server failures Basic Availability Groups AG with 2 replicas Log Shipping Warm standbys for DR Mission-Critical HADR Availability Groups Database level protection Seconds RTO No data loss Recover from unplanned outage No downtime for planned maintenance Offload read/backup workload to active secondaries Failover to geographically distributed secondary site
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.