<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sanmina.com/20190330" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:nonnum="http://www.xbrl.org/dtr/type/non-numeric" xmlns:num="http://www.xbrl.org/dtr/type/numeric" xmlns:sanm="http://www.sanmina.com/20190330" xmlns:us-types="http://fasb.org/us-types/2018-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import namespace="http://fasb.org/srt/2018-01-31" schemaLocation="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-gaap/2018-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-roles/2018-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2018/elts/us-roles-2018-01-31.xsd" />
  <xsd:import namespace="http://fasb.org/us-types/2018-01-31" schemaLocation="http://xbrl.fasb.org/us-gaap/2018/elts/us-types-2018-01-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/arcrole/fact-explanatoryFact" schemaLocation="http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/role/negated" schemaLocation="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/2009/role/net" schemaLocation="http://www.xbrl.org/lrr/role/net-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/dtr/type/non-numeric" schemaLocation="http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd" />
  <xsd:import namespace="http://www.xbrl.org/dtr/type/numeric" schemaLocation="http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd" />
  <xsd:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/country/2017-01-31" schemaLocation="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/currency/2017-01-31" schemaLocation="http://xbrl.sec.gov/currency/2017/currency-2017-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/dei/2018-01-31" schemaLocation="https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/exch/2018-01-31" schemaLocation="https://xbrl.sec.gov/exch/2018/exch-2018-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/invest/2013-01-31" schemaLocation="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/naics/2017-01-31" schemaLocation="http://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/sic/2011-01-31" schemaLocation="http://xbrl.sec.gov/sic/2011/sic-2011-01-31.xsd" />
  <xsd:import namespace="http://xbrl.sec.gov/stpr/2018-01-31" schemaLocation="https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd" />
  <xsd:annotation>
    <xsd:appinfo>
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20190330_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20190330_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20190330_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple" />
      <link:linkbaseRef xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="sanm-20190330_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple" />
      <link:roleType id="AccountingPoliciesPolicies" roleURI="http://www.sanmina.com/role/AccountingPoliciesPolicies">
        <link:definition>2201201 - Disclosure - Accounting Policies (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheets" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheets">
        <link:definition>1001000 - Statement - Condensed Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedBalanceSheetsParentheticals" roleURI="http://www.sanmina.com/role/CondensedConsolidatedBalanceSheetsParentheticals">
        <link:definition>1001501 - Statement - Condensed Consolidated Balance Sheets (Parentheticals)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementOfComprehensiveIncomeLoss" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementOfComprehensiveIncomeLoss">
        <link:definition>1003000 - Statement - Condensed Consolidated Statement of Comprehensive Income (Loss)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfCashFlows" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfCashFlows">
        <link:definition>1005000 - Statement - Condensed Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfOperations" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfOperations">
        <link:definition>1002000 - Statement - Condensed Consolidated Statements of Operations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CondensedConsolidatedStatementsOfStockholdersEquityStatement" roleURI="http://www.sanmina.com/role/CondensedConsolidatedStatementsOfStockholdersEquityStatement">
        <link:definition>1004000 - Statement - Condensed Consolidated Statements of Stockholder's Equity Statement</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DeiDocument" roleURI="http://www.sanmina.com/role/DeiDocument">
        <link:definition>0001000 - Document - DEI Document</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10StockRepurchaseDetails" roleURI="http://www.sanmina.com/role/Note10StockRepurchaseDetails">
        <link:definition>2414403 - Disclosure - Note 10 Stock Repurchase (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10StockholdersEquity" roleURI="http://www.sanmina.com/role/Note10StockholdersEquity">
        <link:definition>2114100 - Disclosure - Note 10 Stockholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10StockholdersEquityDetails" roleURI="http://www.sanmina.com/role/Note10StockholdersEquityDetails">
        <link:definition>2414402 - Disclosure - Note 10 Stockholders' Equity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note10StockholdersEquityTables" roleURI="http://www.sanmina.com/role/Note10StockholdersEquityTables">
        <link:definition>2314301 - Disclosure - Note 10 Stockholders' Equity (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11BusinessSegmentGeographicAndCustomerInformation" roleURI="http://www.sanmina.com/role/Note11BusinessSegmentGeographicAndCustomerInformation">
        <link:definition>2115100 - Disclosure - Note 11 Business Segment, Geographic and Customer Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11BusinessSegmentGeographicAndCustomerInformationTables" roleURI="http://www.sanmina.com/role/Note11BusinessSegmentGeographicAndCustomerInformationTables">
        <link:definition>2315301 - Disclosure - Note 11 Business Segment, Geographic and Customer Information (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11RevenueAndGrossProfitBySegmentDetails" roleURI="http://www.sanmina.com/role/Note11RevenueAndGrossProfitBySegmentDetails">
        <link:definition>2415402 - Disclosure - Note 11 Revenue and Gross Profit by Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note11SegmentReportingByGeographicSegmentDetails" roleURI="http://www.sanmina.com/role/Note11SegmentReportingByGeographicSegmentDetails">
        <link:definition>2415403 - Disclosure - Note 11 Segment Reporting by Geographic Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12EarningsPerShare" roleURI="http://www.sanmina.com/role/Note12EarningsPerShare">
        <link:definition>2116100 - Disclosure - Note 12 Earnings Per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12EarningsPerShareDetails" roleURI="http://www.sanmina.com/role/Note12EarningsPerShareDetails">
        <link:definition>2416402 - Disclosure - Note 12 Earnings Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note12EarningsPerShareTables" roleURI="http://www.sanmina.com/role/Note12EarningsPerShareTables">
        <link:definition>2316301 - Disclosure - Note 12 Earnings Per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13RestrictedStockRollforwardDetails" roleURI="http://www.sanmina.com/role/Note13RestrictedStockRollforwardDetails">
        <link:definition>2417404 - Disclosure - Note 13 Restricted Stock Rollforward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13ShareBasedCompensationArrangementsDetails" roleURI="http://www.sanmina.com/role/Note13ShareBasedCompensationArrangementsDetails">
        <link:definition>2417402 - Disclosure - Note 13 Share-Based Compensation Arrangements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails" roleURI="http://www.sanmina.com/role/Note13SharesAuthorizedForFutureIssuanceAndAvailableForGrantDetails">
        <link:definition>2417403 - Disclosure - Note 13 Shares Authorized for Future Issuance and Available for Grant (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13StockBasedCompensation" roleURI="http://www.sanmina.com/role/Note13StockBasedCompensation">
        <link:definition>2117100 - Disclosure - Note 13 Stock-Based Compensation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13StockBasedCompensationTables" roleURI="http://www.sanmina.com/role/Note13StockBasedCompensationTables">
        <link:definition>2317301 - Disclosure - Note 13 Stock-Based Compensation (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note13UnrecognizedStockBasedCompensationExpenseDetails" roleURI="http://www.sanmina.com/role/Note13UnrecognizedStockBasedCompensationExpenseDetails">
        <link:definition>2417405 - Disclosure - Note 13 Unrecognized Stock Based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note1BasisOfPresentation" roleURI="http://www.sanmina.com/role/Note1BasisOfPresentation">
        <link:definition>2101100 - Disclosure - Note 1 Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note1RevenueBeginningBalanceAdjustmentsDetails" roleURI="http://www.sanmina.com/role/Note1RevenueBeginningBalanceAdjustmentsDetails">
        <link:definition>2401402 - Disclosure - Note 1 Revenue Beginning Balance Adjustments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2Inventories" roleURI="http://www.sanmina.com/role/Note2Inventories">
        <link:definition>2102100 - Disclosure - Note 2 Inventories</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2InventoriesDetails" roleURI="http://www.sanmina.com/role/Note2InventoriesDetails">
        <link:definition>2402402 - Disclosure - Note 2 Inventories (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note2InventoriesTables" roleURI="http://www.sanmina.com/role/Note2InventoriesTables">
        <link:definition>2302301 - Disclosure - Note 2 Inventories (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3DisagregationOfRevenueDetails" roleURI="http://www.sanmina.com/role/Note3DisagregationOfRevenueDetails">
        <link:definition>2404402 - Disclosure - Note 3 Disagregation of Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3RevenueRecognition" roleURI="http://www.sanmina.com/role/Note3RevenueRecognition">
        <link:definition>2104100 - Disclosure - Note 3 Revenue Recognition</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note3RevenueRecognitionTables" roleURI="http://www.sanmina.com/role/Note3RevenueRecognitionTables">
        <link:definition>2304301 - Disclosure - Note 3 Revenue Recognition (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4DerivativeFinancialInstrumentsTables" roleURI="http://www.sanmina.com/role/Note4DerivativeFinancialInstrumentsTables">
        <link:definition>2305301 - Disclosure - Note 4 Derivative Financial Instruments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4DerivativesDetails" roleURI="http://www.sanmina.com/role/Note4DerivativesDetails">
        <link:definition>2405403 - Disclosure - Note 4 Derivatives (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4FairValueDetails" roleURI="http://www.sanmina.com/role/Note4FairValueDetails">
        <link:definition>2405402 - Disclosure - Note 4 Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note4FinancialInstruments" roleURI="http://www.sanmina.com/role/Note4FinancialInstruments">
        <link:definition>2105100 - Disclosure - Note 4 Financial Instruments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5Debt" roleURI="http://www.sanmina.com/role/Note5Debt">
        <link:definition>2106100 - Disclosure - Note 5 Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5DebtScheduleDetails" roleURI="http://www.sanmina.com/role/Note5DebtScheduleDetails">
        <link:definition>2406402 - Disclosure - Note 5 Debt Schedule (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5DebtTables" roleURI="http://www.sanmina.com/role/Note5DebtTables">
        <link:definition>2306301 - Disclosure - Note 5 Debt (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note5LineOfCreditFacilityDetails" roleURI="http://www.sanmina.com/role/Note5LineOfCreditFacilityDetails">
        <link:definition>2406403 - Disclosure - Note 5 Line of Credit Facility (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6AccountsReceivableSaleProgram" roleURI="http://www.sanmina.com/role/Note6AccountsReceivableSaleProgram">
        <link:definition>2109100 - Disclosure - Note 6 Accounts Receivable Sale Program</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note6AccountsReceivableSaleProgramDetails" roleURI="http://www.sanmina.com/role/Note6AccountsReceivableSaleProgramDetails">
        <link:definition>2409401 - Disclosure - Note 6 Accounts Receivable Sale Program (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note7CommitmentsAndContingencies" roleURI="http://www.sanmina.com/role/Note7CommitmentsAndContingencies">
        <link:definition>2110100 - Disclosure - Note 7 Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note7ContingenciesDetails" roleURI="http://www.sanmina.com/role/Note7ContingenciesDetails">
        <link:definition>2410401 - Disclosure - Note 7 Contingencies (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note8Restructuring" roleURI="http://www.sanmina.com/role/Note8Restructuring">
        <link:definition>2112100 - Disclosure - Note 8 Restructuring</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note8RestructuringAndRelatedActivitiesTables" roleURI="http://www.sanmina.com/role/Note8RestructuringAndRelatedActivitiesTables">
        <link:definition>2312301 - Disclosure - Note 8 Restructuring and Related Activities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note8RestructuringDetails" roleURI="http://www.sanmina.com/role/Note8RestructuringDetails">
        <link:definition>2412402 - Disclosure - Note 8 Restructuring (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note9IncomeTax" roleURI="http://www.sanmina.com/role/Note9IncomeTax">
        <link:definition>2113100 - Disclosure - Note 9 Income Tax</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Note9IncomeTaxDetails" roleURI="http://www.sanmina.com/role/Note9IncomeTaxDetails">
        <link:definition>2413401 - Disclosure - Note 9 Income Tax (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xsd:appinfo>
  </xsd:annotation>
  <xsd:element abstract="true" id="sanm_A2019StockPlanMember" name="A2019StockPlanMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_A3rdPartyReimbursement" name="A3rdPartyReimbursement" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element id="sanm_AccountsReceivableSoldDuringThePeriod" name="AccountsReceivableSoldDuringThePeriod" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element id="sanm_AdditionalCreditLine" name="AdditionalCreditLine" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_AmendedCashFlowRevolverMember" name="AmendedCashFlowRevolverMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_Amendment1toAmendedCashFlowRevolverMember" name="Amendment1toAmendedCashFlowRevolverMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_AmountCollectedButNotRemittedtoFinancialInstitutions" name="AmountCollectedButNotRemittedtoFinancialInstitutions" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_CPSThirdPartyRevenueMember" name="CPSThirdPartyRevenueMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_CashEquivalents" name="CashEquivalents" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CashFlowRevolverAxis" name="CashFlowRevolverAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CashFlowRevolverDomain" name="CashFlowRevolverDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CloudSolutionsMember" name="CloudSolutionsMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_CommunicationsNetworksMember" name="CommunicationsNetworksMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_ContingenciesAbstract" name="ContingenciesAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_CumulativeEffectofNewAccountingPrinciple" name="CumulativeEffectofNewAccountingPrinciple" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element id="sanm_DelayedDrawTermLoan" name="DelayedDrawTermLoan" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_DelayedDrawTermLoanMember" name="DelayedDrawTermLoanMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_DocumentandentityinformationAbstract" name="DocumentandentityinformationAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_EndMarketAxis" name="EndMarketAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_EndMarketDomain" name="EndMarketDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_Expected3rdPartyReimbursement" name="Expected3rdPartyReimbursement" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="credit" xbrli:periodType="duration" />
  <xsd:element id="sanm_FaceValueofReceivableSoldPercentage" name="FaceValueofReceivableSoldPercentage" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_FinancialInstrumentsAbstract" name="FinancialInstrumentsAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IMSMember" name="IMSMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IMSThirdPartyRevenueMember" name="IMSThirdPartyRevenueMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IncomeTaxDisclosureAxis" name="IncomeTaxDisclosureAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IncomeTaxDisclosureDomain" name="IncomeTaxDisclosureDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IncomeTaxDisclosureTableLineItems" name="IncomeTaxDisclosureTableLineItems" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IncomeTaxDisclosureTableTable" name="IncomeTaxDisclosureTableTable" nillable="true" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_IndustrialMedicalAutomotiveandDefenseMember" name="IndustrialMedicalAutomotiveandDefenseMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_LongtermDebtInstrumentFairValue" name="LongtermDebtInstrumentFairValue" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_MaximumAccountsReceivableSaleCapacity" name="MaximumAccountsReceivableSaleCapacity" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_NumberofCommonSharesMember" name="NumberofCommonSharesMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_Numberofcustomersrepresenting10ormoreofnetsales" name="Numberofcustomersrepresenting10ormoreofnetsales" nillable="true" substitutionGroup="xbrli:item" type="xbrli:integerItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_OtherInternationalMember" name="OtherInternationalMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_OtherplansMember" name="OtherplansMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PercentageOfNetSalesRepresentedByTenLargestCustomers" name="PercentageOfNetSalesRepresentedByTenLargestCustomers" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_PercentageSoldandOutstandingAtAnyTime" name="PercentageSoldandOutstandingAtAnyTime" nillable="true" substitutionGroup="xbrli:item" type="num:percentItemType" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_Q1FY18PlanMember" name="Q1FY18PlanMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_RPAMember" name="RPAMember" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_RestructuringExpenseRecoverynet" name="RestructuringExpenseRecoverynet" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element id="sanm_RestructuringExpenseRecoverypriortoreimbursement" name="RestructuringExpenseRecoverypriortoreimbursement" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element id="sanm_Restructuringandotherexpenserecoverynet" name="Restructuringandotherexpenserecoverynet" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_SaleofAccountsReceivableAxis" name="SaleofAccountsReceivableAxis" nillable="true" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_SaleofAccountsReceivableDomain" name="SaleofAccountsReceivableDomain" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_SecuredNotesdue2019Member" name="SecuredNotesdue2019Member" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestNumber" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageGrantDateFairValue" nillable="true" substitutionGroup="xbrli:item" type="num:perShareItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedAndExpectedToVestWeightedAverageRemainingContractualTerm" nillable="true" substitutionGroup="xbrli:item" type="us-types:durationStringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelled" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonVestedAggregateIntrinsicValueAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockNonvestedAndExpectedToVestAggregateIntrinsicValue" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" name="ShareBasedCompensationArrangementsByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedAndCancelledWeightedAverageGrantDateFairValue" nillable="true" substitutionGroup="xbrli:item" type="num:perShareItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_ShareRepurchases" name="ShareRepurchases" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:balance="debit" xbrli:periodType="duration" />
  <xsd:element id="sanm_Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" name="Sharebasedcompensationarrangementsbysharebasedpaymentawardequityinstrumentsotherthanoptionsnonvestedintrinsicvalue" nillable="true" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType" xbrli:periodType="instant" />
  <xsd:element id="sanm_SharesRepurchased" name="SharesRepurchased" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="duration" />
  <xsd:element id="sanm_StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" name="StockOptionsAndUnvestedRestrictedStockUnitsOutstanding" nillable="true" substitutionGroup="xbrli:item" type="xbrli:sharesItemType" xbrli:periodType="instant" />
  <xsd:element abstract="true" id="sanm_USTaxCutsandJobsActH.R.1Member" name="USTaxCutsandJobsActH.R.1Member" nillable="true" substitutionGroup="xbrli:item" type="nonnum:domainItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" name="UnrecognizedCompensationCostAndWeightedAveragePeriodLineItems" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_UnrecognizedStockBasedCompensationExpenseTable" name="UnrecognizedStockBasedCompensationExpenseTable" nillable="true" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_WeightedAverageGrantDateFairValueRestrictedStockAbstract" name="WeightedAverageGrantDateFairValueRestrictedStockAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
  <xsd:element abstract="true" id="sanm_WeightedAverageRemainingContractualTermAbstract" name="WeightedAverageRemainingContractualTermAbstract" nillable="true" substitutionGroup="xbrli:item" type="xbrli:stringItemType" xbrli:periodType="duration" />
</xsd:schema>
