第一章
sql> alter system switch logfile;
sql> alter system checkpoint;
sql> alter database add logfile [group
sql> (
sql> alter database add logfile member
sql>
sql>
sql> alter database rename file
sql> to
sql> alter database drop logfile group
sql> alter database drop logfile member
sql> alter database clear [unarchived] logfile
a
b
c
sql> dbms_logmnr
d
sql> dbms_logmnr
e
f
v$logmnr_parameters sql> v$logmnr_logs);
g
第二章
sql> create tablespace tablespace_name datafile
size
sql>
sql> default storage (initial
sql> [online/offline] [permanent/temporary] [extent_management_clause]
sql> create tablespace user_data datafile
sql> size
sql> create temporary tablespace temp tempfile
sql> size
sql> alter tablespace app_data minimum extent
sql> alter tablespace app_data default storage
(initial
sql> alter tablespace app_data offline;
sql> alter tablespace app_data online;
sql> alter tablespace app_data read only|write;
sql> drop tablespace app_data including contents;
sql> alter tablespace app_data add datafile
c:\oracle\oradata\app_data
sql> autoextend on next
sql> alter database datafile
sql> alter tablespace app_data rename datafile
sql> to
sql> alter database rename file
sql> to
第三章
sql> create table table_name (column datatype
sql> tablespace tablespace_name [pctfree integer] [pctused integer]
sql> [initrans integer] [maxtrans integer]
sql> storage(initial
sql> [logging|nologging] [cache|nocache]
py an existing table
sql> create table table_name [logging|nologging] as subquery
sql> create global temporary table xay_temp as select * from xay;
on commit preserve rows/on commit delete rows
pctused =
sql> alter table table_name pctfree=
sql> minextents
sql> alter table table_name allocate extent(size
sql> alter table employee move tablespace users;
sql> alter table table_name deallocate unused [keep integer]
sql> truncate table table_name;
sql> drop table table_name [cascade constraints];
sql> alter table table_name drop column comments cascade
constraints checkpoint
alter table table_name drop columns continue;
sql> alter table table_name set unused column comments cascade constraints;
alter table table_name drop unused columns checkpoint
alter table orders drop columns continue checkpoint
data_dictionary : dba_unused_col_tabs
第四章
sql> create index em_quantity on em
(quantity
sql> create [unique] index index_name on table_name(column
sql> tablespace_name [pctfree integer] [initrans integer] [maxtrans integer]
sql> [logging | nologging] [nosort] storage(initial
sql> maxextents
sql> create unique index xay_id on xay(a) reverse pctfree
(initial
sql> create bitmap index xay_id on xay(a) pctfree
sql> pctincrease
sql> alter index xay_id storage (next
sql> alter index xay_id allocate extent
(size
第五章
sql> alter session set constraint[s] = immediate/deferred/default;
set constraint[s] constraint_name/all immediate/deferred;
sql> drop tablespace tablespace_name including contents cascade constraints
sql> create table xay(id number(
sql> using index storage(initial
primary key/unique/references table(column)/check
sql> alter table xay enable novalidate constraint xay_id;
sql> alter table xay ena
From:http://tw.wingwit.com/Article/program/Oracle/201311/17903.html