oracle刪除表字段語句 oracle快速刪除一個字段,但是表里有千萬條數(shù)據(jù)?
oracle快速刪除一個字段,但是表里有千萬條數(shù)據(jù)?您可以使用CTS,例如:create table aa new as select*from a Old,在創(chuàng)建新表時,是否可以刪除該字段。如果它不
oracle快速刪除一個字段,但是表里有千萬條數(shù)據(jù)?
您可以使用CTS,例如:create table aa new as select*from a Old,在創(chuàng)建新表時,是否可以刪除該字段。
如果它不是一個非常重要的表,可以使用nologing和parallelism。示例:創(chuàng)建表aauunew nologging作為select/*parallel(t,4)*/*from auuold t這將更快。然后將彼此重命名為所需的表名。別忘了索引。
在oracle中怎么刪除表的字段?
首先,使數(shù)據(jù)文件脫機。如果有備份,請還原它。使用rmanselect file#,name,status from V$datafile來查找alter database datafile 42 offline的數(shù)據(jù)狀態(tài)。使數(shù)據(jù)文件脫機列表備份datafile 42 summaryrestore datafile 42 recover datafile 42使數(shù)據(jù)文件alter database datafile 42聯(lián)機