关于snapshot的一个问题
我的数据库里面有一个快照:SN_T_LOTATTRIBUTES,脚本如下:
CREATE TABLE SN_T_LOTATTRIBUTES
(
LOTID VARCHAR2(40) NOT NULL,
LOTOBJECT VARCHAR2(45),
BASEUSEDQTY NUMBER,
BENONCONFORMINGFLAG VARCHAR2(40),
BINSPLITDONE VARCHAR2(1),
BULKUSEDQTY NUMBER,
CLOSEDBULKQTY NUMBER,
COMMERCIALPRODUCT VARCHAR2(40),
CONSUMESTATUSLINK VARCHAR2(40),
CLOSEDDATE VARCHAR2(8),
CUMCOMBINEQTY NUMBER,
CUMCYCLETIME NUMBER,
CUMMBONUS NUMBER,
CUMNONWORKINGDAYS NUMBER,
CUMSCRAPQTY NUMBER,
CUMSPLITQTY NUMBER,
CUMUNSCRAPQTY NUMBER,
CUSTOMERSITEID VARCHAR2(40),
DIEPRIORITY VARCHAR2(40),
DIFFUSIONLOTNUMBER VARCHAR2(40),
DUEDATE VARCHAR2(40),
FELOTNUMBER VARCHAR2(40),
FELOTQTY NUMBER,
FENONCONFORMINGFLAG VARCHAR2(40),
FMVINEQPGROUPHISTKEY VARCHAR2(45),
IMMEDIATEPARENTLOTID VARCHAR2(40),
IMMEDIATEPARENTLOTOBJECT VARCHAR2(45),
LASTCUMCTUPDATE VARCHAR2(18),
LASTMERGEDATETIME VARCHAR2(18),
LASTMERGEQTY NUMBER,
LASTSPLITQTY NUMBER,
LOTMODE VARCHAR2(40),
LOTRECEIVEDDATE VARCHAR2(18),
LOTWAIVER VARCHAR2(40),
OPENBULKQTY NUMBER,
ORIGINALEXPECTEDBIN NUMBER,
ORIGINALEXPECTEDDATE VARCHAR2(18),
ORIGINALEXPECTEDQTY NUMBER,
ORIGINALPARENTLOTID VARCHAR2(40),
ORIGINALPARENTLOTOBJECT VARCHAR2(45),
ORIGINALSTARTQTY NUMBER,
ORIGINSWITCH VARCHAR2(10),
PLANTFROM VARCHAR2(40),
PREPAREDDATE VARCHAR2(40),
PREPAREDQTY VARCHAR2(40),
PROCESSGROUPFROM VARCHAR2(4),
PRODUCTFROM VARCHAR2(40),
PRODUCTFROMLOTID VARCHAR2(40),
PRODUCTTYPE VARCHAR2(40),
PRODUCTTYPEFROM VARCHAR2(40),
QANUMBER VARCHAR2(8),
QCACCEPTANCEMETHOD VARCHAR2(1),
QCSUBMISSIONCOUNTER NUMBER,
QTYPER VARCHAR2(10),
RECEIVINGDATEOFEWSLOT VARCHAR2(18),
REMARKS VARCHAR2(255),
LATLOTID VARCHAR2(40),
PROCESSPLANFROM VARCHAR2(40),
STEPHANDLERFROM VARCHAR2(40),
STEPNAMEFROM VARCHAR2(40),
SPECIALMARKING VARCHAR2(40),
STOCKROOM VARCHAR2(4),
SUBCONTRACTOR VARCHAR2(4),
TFPRODUCTCODE VARCHAR2(30),
UPDATESAP VARCHAR2(1),
VERIFYLABELSTATUS VARCHAR2(1),
COMBINEWAIVER VARCHAR2(40),
LATWAIVER VARCHAR2(40),
WAFERQTY NUMBER,
USERNAME VARCHAR2(40),
TXNTIMESTAMP VARCHAR2(18),
CREATIONUSERNAME VARCHAR2(40),
CREATIONTXNTIMESTAMP VARCHAR2(18),
LASTMOVEOUTQTY NUMBER,
PRINTEDINTERMEDIATELABEL VARCHAR2(1),
LASTSHIPPINGDATE VARCHAR2(6),
LATTYPE VARCHAR2(40),
ASSIGNEDLATTYPE VARCHAR2(40),
NORMALIZEDSTARTQTY NUMBER,
SOURCE VARCHAR2(40),
CUMOUTOFPLANTSCRAP NUMBER(38),
CUMWITHINPLANTSCRAP NUMBER(38),
CUMOUTOFPLANTUNSCRAP NUMBER(38),
CUMWITHINPLANTUNSCRAP NUMBER(38),
CUMOUTOFPLANTADJUSTQTY NUMBER(38),
CUMWITHINPLANTADJUSTQTY NUMBER(38),
CURRENTSTEP VARCHAR2(40),
PREVIOUSSTEP VARCHAR2(40),
CURRENTPLAN VARCHAR2(40),
PREVIOUSPLAN VARCHAR2(40),
LASTSTEPOUTQTY NUMBER(38),
LASTSTEPOUTTIME VARCHAR2(18),
SHELFLOCATION VARCHAR2(40),
PATH VARCHAR2(40),
MOVEINDATETIME VARCHAR2(18),
STEPSCRAPQTY NUMBER(38),
STEPSPLITQTY NUMBER(38),
STEPADJQTY NUMBER(38),
ASSIGNEDLATSAMPLETYPE VARCHAR2(40),
CAMPARTNUMBER VARCHAR2(40),
ORIGINALSTARTPLAN VARCHAR2(40),
MAINCURRENTSTEP VARCHAR2(40),
MAINPREVIOUSSTEP VARCHAR2(40),
MAINCURRENTPRODUCT VARCHAR2(40),
MAINCURRENTPLAN VARCHAR2(40),
PREVIOUSPRODUCT VARCHAR2(40),
CURRENTPRODUCT VARCHAR2(40),
STDRELEASEDATETIME VARCHAR2(18),
PHRELEASEDATETIME VARCHAR2(18),
CLOSEDATETIME VARCHAR2(18),
ALLOWINCOMPLETEBULK VARCHAR2(1),
TICKETNOOFWAFER NUMBER,
TICKETWAFERDATE VARCHAR2(18),
TICKETWAFERPARTNO VARCHAR2(40),
WAFERPERBULK NUMBER,
SICOMTRACECODE VARCHAR2(80),
ALLOWZEROQTYWAFER VARCHAR2(1),
BRLOGICSTRING VARCHAR2(80),
DIETHICKNESS NUMBER,
SECOND_LEVEL_INTERCONNECT VARCHAR2(40),
YIELDCONTROLSTARTQTY NUMBER,
PROCESSSPEED VARCHAR2(40),
MULTISTEPINYIELDQTY NUMBER
)
TABLESPACE MVIEWDAT
PCTUSED 40
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
)
LOGGING
NOCACHE
NOPARALLEL;
COMMENT ON TABLE SN_T_LOTATTRIBUTES IS 'snapshot table for snapshot HDBUSER.SN_T_LOTATTRIBUTES';
CREATE UNIQUE INDEX PK_LOTATTRIBUTES1 ON SN_T_LOTATTRIBUTES
(LOTID)
LOGGING
TABLESPACE MVIEWIDX
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
)
NOPARALLEL;
可以见到这个快照上面有一个index PK_LOTATTRIBUTES1,
请问两个问题,
1.我使用
DROP SNAPSHOT SN_T_LOTATTRIBUTES;
CREATE SNAPSHOT SN_T_LOTATTRIBUTES TABLESPACE MVIEWDAT USING INDEX TABLESPACE
MVIEWIDX REFRESH FAST AS SELECT * FROM CATUSER.T_LOTATTRIBUTES@Sum 重新建立快照后,这个索引PK_LOTATTRIBUTES1 为什么还会存在?(好像不用重建)
2。 我可以对这个快照建立一个新的index吗,比如(sn_t_lotattributes.txntimestamp)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论