In this presentation, we’ll explore the essential steps to get started and running SQL on Linux. Get up to speed quickly on identifying the software and hardware required plus the how-to on installation, configuration and administration for SQL on Linux.
4. www.datavail.com 4
JP Chen
Director and Practice Leader,
SQL Server Practice, Datavail
Enterprise SQL Support
Both as a DBA and DBA Team Manager and Director, JP
brings a wealth of technical certifications and hands-on
experience to every project.
SQL Performance Monitoring & Tuning
Design and develop comprehensive solutions on database
documentation, monitoring and alerting, stabilization, and
continuous improvements with performance monitoring and
tuning.
SQL Server Blogs & Whitepapers
Eager to share his knowledge with the larger SQL Server
community, JP is an avid blogger and author, posting regular
content on Datavail.com.
5. www.datavail.com 5
Agenda Creating the SQL on Linux Lab
Connecting to SQL on Linux
Configuring SQL on Linux with the mssql-
conf tool
Creating, Backing up, and Restoring a
Database
Optimizing Performance for SQL on Linux
Monitoring SQL on Linux
6. www.datavail.com 6www.datavail.com 6
Creating the SQL on
Linux Lab
Downloading the software required – all free!
Installing the software required
Installing the SQL Server command-line tools
10. www.datavail.com 10www.datavail.com 10
Change the VirtualBox Network
Adapter to “Host-only Adapter”
Before Continuing
Get the IP Address of the Ubuntu
Server
Update the hosts file in the Windows
PC
Connect from SQL Server
Management Studio (SSMS)
Connect from Azure Data Studio
Connecting to SQL on Linux
11. www.datavail.com 11www.datavail.com 11
Change the VirtualBox Network Adapter to
“Host-only Adapter” Before Continuing
Get the IP Address of the Ubuntu Server
Update the hosts file in the Windows PC
Getting the SQL on Linux Lab Ready
DEMO
Getting the SQL on
Linux lab ready
14. www.datavail.com 14www.datavail.com 14
mssql-conf tool: configuration script equivalent of SQL Server
Configuration Manager (SSCM) and sp_configure stored proc
Parameters configuration for: agent, collation, default data, log,
dump, error log, and backup directories, memory limit, TCP port,
traceflags, and many others
Configuring SQL on Linux with the
mssql-conf tool
DEMO
Configuring memory
limit and TCP port
15. www.datavail.com 15www.datavail.com 15
Create a database
Backup a database
Restore a database
Creating, Backing up, and Restoring a
Database
DEMO
Creating, backing up,
and restoring a database
17. www.datavail.com 17
Using htop Monitors all process running on the
system
Allows you to kill a process, configure
nice, sort columns, search for
processes, and a lot more
DEMO
Using htop
18. www.datavail.com 18
Using
glances
Monitors CPU, load, memory, network rate,
disk i/o, and file system
Shows 4 different types of color
• Green – ok
• Blue – attention
Adjust the thresholds by modifying the configure
file located in /etc/glances/glances.conf
• Violet – alert
• Red – critical
DEMO
Using glances
19. www.datavail.com 19
Using
iostat
Collects and shows operating system
storage input and output statistics
Identifies storage devices performance
issues
• Local disk
• Remote disk
DEMO
Using iostat
What is being great on the job as a DBA?
While it’s important to be technically sound on your subject matters, it is equally important to communicate effectively.
"You can have brilliant ideas, but if you can't get them across, your ideas won't get you anywhere."
Lee Iacocca
For those of us in the service industry as a DBA, we are customer-facing and also interact and collaborate with our fellow team members, it is critical to articulate our ideas clearly, provide status updates concisely, and be strategically proactive in terms of managing our skills and career.
I am not a teacher myself. But, I had always looked at myself as a tour guide. Today, I will take you on the journey and share with you my experience and what worked for me as a DBA and IT professional in communication and also in managing our career growth effectively.
Introduction
Hi. I am JP Chen from Datavail.
My team and I help support and manage 200+ customers SQL Server environments ranging from small to enterprise sizes. We can help you to plan, design, and setup high availability solutions, migrate your environment from on-premises to the cloud, and resolve complex performance issues.
Even if you have 0 or 25 SQL DBAs or if you have 1 or 1000+ SQL Server instances, my team and I can work with you in supporting your SQL Server environment 24x7 ensuring maximum uptime and minimum call-outs.