Schema changes - IBM
文章推薦指數: 80 %
In order to maintain the integrity of the relationship between the system-period temporal table and its associated history table, only certain changes to ... Schemachanges Inordertomaintaintheintegrityoftherelationship betweenthesystem-periodtemporaltableanditsassociatedhistory table,onlycertainchangestotheschemaofasystem-periodtemporal tablearepermitted.Anychangesthatwouldresultinthelossof dataarerestricted. Youcanmakethefollowingchangestoyoursystem-periodtemporal tables.Thesechangesareimplicitlypropagatedtotheassociated historytableifyouhavetheappropriateprivileges.Thesechanges cannotbeexplicitlymadetothehistorytable. ADDCOLUMN(exceptgeneratedcolumns) RENAMECOLUMN ALTERCOLUMN(incaseswherenohistorydataislost).Forexample, alteringthedatatypeofacolumnfromVARCHAR(50)toVARCHAR(100), orfromINTEGERtoDECIMALispermitted.However,thereversechange fromVARCHAR(100)toVARCHAR(50),orfromDECIMALtoINTEGERisblocked becauseitwouldreducethelengthorprecisionofacolumnandlikely causealossofdata. Youcannotmakethefollowingchangestoyoursystem-periodtemporal tablesbecausedatawouldlikelybelost: DROPCOLUMN ADDCOLUMN(generated) ALTERCOLUMN(incaseswherehistorydatamightbelost).For example,alteringthedatatypeofacolumnfromVARCHAR(50)toVARCHAR(100), orfromINTEGERtoDECIMALispermitted.However,thereversechange fromVARCHAR(100)toVARCHAR(50),orfromDECIMALtoINTEGERisblocked becauseitwouldreducethelengthorprecisionofacolumn. Versioningestablishesalinkbetweenyoursystem-periodtemporal tableanditsassociatedhistorytable.Whenversioningisactive, certainALTERTABLEoperationsareblockedonsystem-periodtemporal tablesandhistorytables. ALTERTABLEDROPPERIOD ALTERTABLEADDMATERIALIZED ALTERTABLEACTIVATENOTLOGGEDINITIALLY ALTERTABLEADDSECURITYPOLICY ALTERTABLEDROPSECURITYPOLICY ALTERTABLESECUREDWITHALTER ALTER TABLEoperationsthatarenotshowninthepreviouslistaresupported, butarenotpropagatedfromasystem-periodtemporaltabletoits historytable. Additionally,RENAMEINDEXandRENAMETABLEaresupported,but arenotpropagatedfromasystem-periodtemporaltabletoitshistory table. Parenttopic:System-periodtemporaltables
延伸文章資訊
- 1Schema Object Names and Qualifiers - Oracle Help Center
Rules for naming schema objects and schema object location qualifiers ... Each period separator, ...
- 2XSD Date and Time Data Types - W3Schools
Date and time data types are used for values that contain date and time. ... The following is an ...
- 3Duration - Schema.org Type
The length of time it takes to perform instructions or a direction (not including time to prepare...
- 4Schema changes - IBM
In order to maintain the integrity of the relationship between the system-period temporal table a...
- 5Schema of period submission | Download Scientific Diagram
Download scientific diagram | Schema of period submission from publication: Thesauri of Historica...