oracle帮助文档——SQL Language Reference





3/ Basic Elements of Oracle SQL

3.6 Comments
RESULT_CACHE 每当其创建中使用的数据库对象成功修改时,缓存的结果将自动失效。此提示优先于初始化参数的设置RESULT_CACHE_MODE




alter table:





merge_table_partitions1、对hash分区无效;2、合并范围分区必须相邻,列表分区不用

                                                                                              For语句指定分区即可不需要指定name


/5 Functions



NLSSORT:
For monolingual collations, for example FRENCH,
For multilingual collations, for example GENERIC_M


/12 SQL语句:ALTER CLUSTER到ALTER JAVA





12.7 ALTER DISKGROUP



undrop_disk_clause:   cancel the drop of disks from the disk group.c ancel the pending drop of all the disks in one or more disk groups

RESTRICTED | NORMAL:其他instance不能mount,更不能access


/13 SQL语句:ALTER LIBRARY到ALTER SYSTEM

13.2 ALTER MATERIALIZED VIEW:


刷新:快速刷新incremental refresh method   完整刷新 defining query


/14 SQL Statements: ALTER TABLE to ALTER TABLESPACE

14.1 alter table 

shrink_clause 
(1)shrink子句允许您手动收缩表,索引组织表或其溢出段,索引,分区,子分区,LOB段,物化视图或物化视图日志中的空间。
(2)默认情况下,Oracle数据库压缩段,调整高水位标记,并立即释放恢复的空间。如果您的应用程序具有任何基于rowid的触发器,则应在发出此子句之前禁用它们。
(2)指定shrink_clause之前,不要对 index-organized  进行row movement ,因为rowid是主键
(4)compact仅进行segment碎片整理,并压缩,以供ALTER TABLE... SHRINK SPACE发布,不会重新调整高水位,并且不会立即释放空间,必须发出另一个 ALTER TABLE... SHRINK SPACE才能完成


/16  SQL语句:CREATE CLUSTER to CREATE JAVA


创建DISKGROUP

create_diskgroup.gif的描述如下

NORMAL REDUNDANCY要求存在至少两个故障组

HIGH REDUNDANCY要求存在至少三个故障组

EXTERNAL REDUNDANCY表示Oracle ASM不为磁盘组提供任何冗余;当用hardware mirroring or RAID时



CREATE FLASHBACK ARCHIVE: CREATE FLASHBACK ARCHIVE  test_archive1 RETENTION 1 DAY;  这两个是必须的

create_flashback_archive.gif的说明如下





/17 SQL Statements: CREATE LIBRARY to CREATE SPFILE



CREATE ROLE
Description of create_role.gif follows
(1)create a role是(1)NOT IDENTIFIED ——no password
                                  (2)IDENTIFIED  BY password, 则可以grants you the role with ADMIN OPTION. 
                                                                  using package:如果不指定schema, then the database assumes the package is in your own schema.
                                                                  EXTERNALLY:must be authorized by an external service
                                                                 GLOBALLY,authorized to use the role by the enterprise directory service




/18 SQL语句:CREATE SYNONYM to CREATE TRIGGER



CREATE TABLE:
               PARTITION 分区:range_partitions;list_partitions;hash_partitions;
                                                 composite_range_partitions;composite_list_partitions;composite_hash_partitions;
                                                 reference_partitioning不能为索引组织表,外部表或域索引存储表指定此子句。

                                                 system_partitioning:不含任何partitioning key columns;Pruning follows the base table pruning rules 

             table_compression:valid only for heap-organized tables
                                             COMPRESS FOR OLTP以最大化压缩,同时仍然允许对数据进行一些未来的DML更改,早期COMPRESS FOR ALL OPERATIONS


/20 SQL Statements: DROP SEQUENCE to ROLLBACK



DROP USER: 当您删除用户时,Oracle数据库还会从回收站清除所有该用户的模式对象。



FLASHBACK DATABASE:
     (1)条件: run in  ARCHIVELOG  mode(2) must be mounted, but not open
      (2)语句:TO SCN;TO TIMESTAMP;TO RESTORE POINT
      (3)ALTER DATABASE OPEN RESETLOGS


FLASHBACK TABLE:
(1)dependent on the amount of undo data in the system
(2)不能将表恢复到更改表的结构的任何DDL操作
(3)acquires exclusive DML locks on all the tables specified in the Flashback list.
(4)对以下无效cluster, materialized views, Advanced Queuing (AQ) tables, static data dictionary tables, system tables, remote tables, object tables, nested tables, or individual table partitions or subpartitions.


PURGE:user-specified name,则清除保存最久的,System-generated recycle是唯一的,会清除该指定的对象


















3/ Basic Elements of Oracle SQL

3.6 Comments
RESULT_CACHE 每当其创建中使用的数据库对象成功修改时,缓存的结果将自动失效。此提示优先于初始化参数的设置RESULT_CACHE_MODE




alter table:





merge_table_partitions1、对hash分区无效;2、合并范围分区必须相邻,列表分区不用

                                                                                              For语句指定分区即可不需要指定name


/5 Functions



NLSSORT:
For monolingual collations, for example FRENCH,
For multilingual collations, for example GENERIC_M


/12 SQL语句:ALTER CLUSTER到ALTER JAVA





12.7 ALTER DISKGROUP



undrop_disk_clause:   cancel the drop of disks from the disk group.c ancel the pending drop of all the disks in one or more disk groups

RESTRICTED | NORMAL:其他instance不能mount,更不能access


/13 SQL语句:ALTER LIBRARY到ALTER SYSTEM

13.2 ALTER MATERIALIZED VIEW:


刷新:快速刷新incremental refresh method   完整刷新 defining query


/14 SQL Statements: ALTER TABLE to ALTER TABLESPACE

14.1 alter table 

shrink_clause 
(1)shrink子句允许您手动收缩表,索引组织表或其溢出段,索引,分区,子分区,LOB段,物化视图或物化视图日志中的空间。
(2)默认情况下,Oracle数据库压缩段,调整高水位标记,并立即释放恢复的空间。如果您的应用程序具有任何基于rowid的触发器,则应在发出此子句之前禁用它们。
(2)指定shrink_clause之前,不要对 index-organized  进行row movement ,因为rowid是主键
(4)compact仅进行segment碎片整理,并压缩,以供ALTER TABLE... SHRINK SPACE发布,不会重新调整高水位,并且不会立即释放空间,必须发出另一个 ALTER TABLE... SHRINK SPACE才能完成


/16  SQL语句:CREATE CLUSTER to CREATE JAVA


创建DISKGROUP

create_diskgroup.gif的描述如下

NORMAL REDUNDANCY要求存在至少两个故障组

HIGH REDUNDANCY要求存在至少三个故障组

EXTERNAL REDUNDANCY表示Oracle ASM不为磁盘组提供任何冗余;当用hardware mirroring or RAID时



CREATE FLASHBACK ARCHIVE: CREATE FLASHBACK ARCHIVE  test_archive1 RETENTION 1 DAY;  这两个是必须的

create_flashback_archive.gif的说明如下





/17 SQL Statements: CREATE LIBRARY to CREATE SPFILE



CREATE ROLE
Description of create_role.gif follows
(1)create a role是(1)NOT IDENTIFIED ——no password
                                  (2)IDENTIFIED  BY password, 则可以grants you the role with ADMIN OPTION. 
                                                                  using package:如果不指定schema, then the database assumes the package is in your own schema.
                                                                  EXTERNALLY:must be authorized by an external service
                                                                 GLOBALLY,authorized to use the role by the enterprise directory service




/18 SQL语句:CREATE SYNONYM to CREATE TRIGGER



CREATE TABLE:
               PARTITION 分区:range_partitions;list_partitions;hash_partitions;
                                                 composite_range_partitions;composite_list_partitions;composite_hash_partitions;
                                                 reference_partitioning不能为索引组织表,外部表或域索引存储表指定此子句。

                                                 system_partitioning:不含任何partitioning key columns;Pruning follows the base table pruning rules 

             table_compression:valid only for heap-organized tables
                                             COMPRESS FOR OLTP以最大化压缩,同时仍然允许对数据进行一些未来的DML更改,早期COMPRESS FOR ALL OPERATIONS


/20 SQL Statements: DROP SEQUENCE to ROLLBACK



DROP USER: 当您删除用户时,Oracle数据库还会从回收站清除所有该用户的模式对象。



FLASHBACK DATABASE:
     (1)条件: run in  ARCHIVELOG  mode(2) must be mounted, but not open
      (2)语句:TO SCN;TO TIMESTAMP;TO RESTORE POINT
      (3)ALTER DATABASE OPEN RESETLOGS


FLASHBACK TABLE:
(1)dependent on the amount of undo data in the system
(2)不能将表恢复到更改表的结构的任何DDL操作
(3)acquires exclusive DML locks on all the tables specified in the Flashback list.
(4)对以下无效cluster, materialized views, Advanced Queuing (AQ) tables, static data dictionary tables, system tables, remote tables, object tables, nested tables, or individual table partitions or subpartitions.


PURGE:user-specified name,则清除保存最久的,System-generated recycle是唯一的,会清除该指定的对象
















  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值