SlideShare a Scribd company logo
SQL on Linux
Hello!
www.datavail.com 3www.datavail.com 3
About Datavail
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.
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
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
www.datavail.com 7www.datavail.com 7
Downloading the software
required – all free!
VirtualBox
Ubuntu Server
PuTTY
SQL Server 2019 Community Technology
Preview (CTP)
www.datavail.com 8www.datavail.com 8
Installing the software
required
Install VirtualBox
Install Ubuntu Server
Install PuTTY Remote Terminal
Install SQL Server 2019 Community
Technology Preview (CTP)
www.datavail.com 9www.datavail.com 9
Installing the SQL Server
command-line tools
Install the mssql-tools – SQLCMD and BCP
Connect to SQL Server locally
DEMO: Connecting using sqlcmd
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
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
www.datavail.com 12
Connecting
from SQL
Server
Management
Studio
(SSMS)
www.datavail.com 13
Connecting
from Azure
Data Studio
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
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
www.datavail.com 16
Exploring
the System
Utilities for
SQL on
Linux
htop
glances
iostat
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
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
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
Thank You
Q&A

More Related Content

PPTX
SQL on Linux
PPT
PDF
Modernizing your database with SQL Server 2019
PPTX
Proxysql use case scenarios fosdem17
PPTX
Geek Sync | SQL Security Principals and Permissions 101
PDF
MySQL For Oracle Developers
PDF
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
PPTX
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
SQL on Linux
Modernizing your database with SQL Server 2019
Proxysql use case scenarios fosdem17
Geek Sync | SQL Security Principals and Permissions 101
MySQL For Oracle Developers
Middleware upgrade to Oracle Fusion Middleware(FMW) 12c.Real Case stories.
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA

What's hot (20)

PPT
Postgres Presentation
PDF
Building diagnostic queries using DMVs and DMFs
PDF
Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)
PDF
Play 2.0
PDF
Performance Tuning for Pirates!
PDF
PowerPivot for DBAs
PDF
Best Practices SQL 2005 SSIS
ODP
MySQL 5.7 - What's new and How to upgrade
PDF
Midwest PHP Presentation - New MSQL Features
PPS
Introduction to Mysql
PPTX
Sql server backup internals
PPT
Liquibase – a time machine for your data
PDF
MySQL For Oracle DBA's and Developers
PDF
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
PDF
Getting started with my sql
PDF
MySQL Performance Best Practices
PPTX
SQL Server knowledge-session (SQL Server vs Oracle, and performance)
PPTX
Sql Server 2014 In Memory
PPTX
SQL Server 2016 New Features and Enhancements
PDF
Database Configuration for Maximum SharePoint 2010 Performance
Postgres Presentation
Building diagnostic queries using DMVs and DMFs
Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)
Play 2.0
Performance Tuning for Pirates!
PowerPivot for DBAs
Best Practices SQL 2005 SSIS
MySQL 5.7 - What's new and How to upgrade
Midwest PHP Presentation - New MSQL Features
Introduction to Mysql
Sql server backup internals
Liquibase – a time machine for your data
MySQL For Oracle DBA's and Developers
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Getting started with my sql
MySQL Performance Best Practices
SQL Server knowledge-session (SQL Server vs Oracle, and performance)
Sql Server 2014 In Memory
SQL Server 2016 New Features and Enhancements
Database Configuration for Maximum SharePoint 2010 Performance
Ad

Similar to SQL on Linux (20)

PPTX
SQL Server vNext on Linux
PPTX
Experience sql server on l inux and docker
PPTX
DataDrivenMtl 20170906 - SQL Server 2017 on Linux
PPTX
Sql on linux - ITpro
PDF
Microsoft SQL server 2017 Level 300 technical deck
PPTX
SQL on linux
PPTX
Bootcamp 2017 - SQL Server on Linux
PPTX
Nordic infrastructure Conference 2017 - SQL Server on Linux Overview
PPTX
SQL Server 2017 on Linux Introduction
PPTX
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
PPTX
Brk2051 sql server on linux and docker
PDF
What's new in SQL Server 2017
PPTX
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
PPTX
Brk3288 sql server v.next with support on linux, windows and containers was...
PPTX
SQL Server on Linux - march 2017
PDF
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
PPTX
SQL Server 2017 on Linux Introduction
PPTX
SQL Server 2017 Overview and Partner Opportunities
PPTX
MS Sql Server: Getting Started With Sql Server 2008
PPTX
MS SQL SERVER: Getting Started With Sql Server 2008
SQL Server vNext on Linux
Experience sql server on l inux and docker
DataDrivenMtl 20170906 - SQL Server 2017 on Linux
Sql on linux - ITpro
Microsoft SQL server 2017 Level 300 technical deck
SQL on linux
Bootcamp 2017 - SQL Server on Linux
Nordic infrastructure Conference 2017 - SQL Server on Linux Overview
SQL Server 2017 on Linux Introduction
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
Brk2051 sql server on linux and docker
What's new in SQL Server 2017
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Brk3288 sql server v.next with support on linux, windows and containers was...
SQL Server on Linux - march 2017
Hi! Ho! Hi! Ho! SQL Server on Linux We Go!
SQL Server 2017 on Linux Introduction
SQL Server 2017 Overview and Partner Opportunities
MS Sql Server: Getting Started With Sql Server 2008
MS SQL SERVER: Getting Started With Sql Server 2008
Ad

More from Datavail (20)

PPTX
Journey to Cloud Analytics
PPTX
Accelerate SQL Server Migration to the AWS Cloud
PPTX
MOUS 2020 - Hyperion 11.2 vs. Cloud: Should I Stay or Should I Go?
PPTX
Oracle Enterprise Manager Seven Robust Features to Put in Action final
PPTX
Lessons from Migrating Oracle Databases to Amazon RDS or Amazon Aurora
PPTX
EPM 11.2: Lessons Learned and 2021 Preparedness
PDF
Optimizing Oracle Databases & Applications Gives Fast Food Giant Major Gains
PPTX
RMOUG 2020: Keeping Pace with Change
PPTX
Upcoming Extended Support Deadlines & What They Mean for You
PPTX
Reduce Cost by Tuning Queries on Azure DBaaS
PPTX
MOUS 2019 - Keeping Pace with Change: Prepare for Tomorrow & Advance Your Car...
PPTX
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
PPTX
Is "Free" Good Enough for Your MySQL Environment?
PPTX
Critical Preflight Checks for Your EPM Applications
PPTX
SQL to Azure Migrations
PPTX
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
PPTX
3 Ways to Lead an Accidental DBA
PPTX
Creating a Solid EPM Punch List
PPTX
Why NBC Universal Migrated to MongoDB Atlas
PPTX
KScope Webinar: Couples Therapy: Getting Finance & IT to Play Nice
Journey to Cloud Analytics
Accelerate SQL Server Migration to the AWS Cloud
MOUS 2020 - Hyperion 11.2 vs. Cloud: Should I Stay or Should I Go?
Oracle Enterprise Manager Seven Robust Features to Put in Action final
Lessons from Migrating Oracle Databases to Amazon RDS or Amazon Aurora
EPM 11.2: Lessons Learned and 2021 Preparedness
Optimizing Oracle Databases & Applications Gives Fast Food Giant Major Gains
RMOUG 2020: Keeping Pace with Change
Upcoming Extended Support Deadlines & What They Mean for You
Reduce Cost by Tuning Queries on Azure DBaaS
MOUS 2019 - Keeping Pace with Change: Prepare for Tomorrow & Advance Your Car...
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
Is "Free" Good Enough for Your MySQL Environment?
Critical Preflight Checks for Your EPM Applications
SQL to Azure Migrations
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
3 Ways to Lead an Accidental DBA
Creating a Solid EPM Punch List
Why NBC Universal Migrated to MongoDB Atlas
KScope Webinar: Couples Therapy: Getting Finance & IT to Play Nice

Recently uploaded (20)

PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
Mega Projects Data Mega Projects Data
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Mega Projects Data Mega Projects Data
Fluorescence-microscope_Botany_detailed content
Introduction-to-Cloud-ComputingFinal.pptx
Quality review (1)_presentation of this 21
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Miokarditis (Inflamasi pada Otot Jantung)
Introduction to Knowledge Engineering Part 1
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Reliability_Chapter_ presentation 1221.5784
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Qualitative Qantitative and Mixed Methods.pptx
STUDY DESIGN details- Lt Col Maksud (21).pptx
Supervised vs unsupervised machine learning algorithms
Business Acumen Training GuidePresentation.pptx
climate analysis of Dhaka ,Banglades.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...

SQL on Linux

Editor's Notes

  • #2: 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.
  • #3: Introduction
  • #5: 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.