为什么80%的码农都做不了架构师?>>>   

1、SET UNUSED COLUMNS的若干问题

1.1 UNUSED后,所有的索引、约束和静态定义都被移除。

All constraints, indexes, and statistics defined on the column are also removed.

2、external table 外部表的特点

Oracle Database allows you read-only access to data in external tables.

You can select, join, or sort external table data. You can also create views and synonyms for external tables. However, no DML operations (UPDATE, INSERT, or DELETE) are possible, and no indexes can be created, on external tables.

3、FLASHBACK TABLE

3.1 Use the FLASHBACK TABLE statement to restore an earlier state of a table in the event of human or application error. The time in the past to which the table can be flashed back is dependent on the amount of undo data in the system. Also, Oracle Database cannot restore a table to an earlier state across any DDL operations that change the structure of the table.

3.2 You cannot roll back a FLASHBACK TABLE statement. However, you can issue another FLASHBACK TABLE statement and specify a time just prior to the current time. Therefore, it is advisable to record the current SCN before issuing a FLASHBACK TABLE clause.

4、index的其他问题

4.1 当指定主键后,不能再在主键上建索引,因为ORACLE 已经自动建了索引。即不能在一个列上建多个索引。

例子如下,table ord 的主键是ord_no

SQL> create index ord_idx on ord(ord_no);
create index ord_idx on ord(ord_no)
                            *
ERROR at line 1:
ORA-01408: such column list already indexed

5、数据库非正常关机中的sequence

The database might skip sequence numbers if you choose to cache a set of sequence numbers. For example, when an instance abnormally shuts down (for example, when an instance failure occurs or a SHUTDOWN ABORT statement is issued), sequence numbers that have been cached but not used are lost. Also, sequence numbers that have been used but not saved are lost as well. The database might also skip cached sequence numbers after an export and import

sequence numbers that have been used but not saved are lost as well.

那些已经被使用但还没有被保存的序列数字也会丢失。(问题:这里的保存怎么理解)

6、private synonym 和public synonym 区别

private synonym:只有有该对象访问权限的用户才能访问这个对象的synonym

public synonym:所有用户都能访问该synonym

示例:

SQL> conn test/test;
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as testSQL> select count(*) from hr.employees;COUNT(*)
----------107SQL> create synonym employees for hr.employees;Synonym createdSQL> select count(*) from employees;COUNT(*)
----------107SQL> conn sys/111 as sysdba;
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as SYSSQL> select count(1) from employees;select count(1) from employeesORA-00942: 表或视图不存在SQL> conn test/test;
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as testSQL> drop synonym employees;Synonym droppedSQL> create public synonym employees for hr.employees;Synonym createdSQL> select count(*) from employees;COUNT(*)
----------107SQL> conn sys/111 as sysdba;
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as SYSSQL> select count(*) from employees;COUNT(*)
----------107SQL>

转载于:https://my.oschina.net/kursk/blog/67763

ORACLE SQL总结六:管理方案对象相关推荐

  1. SQL 基础之管理方案对象(十七)

    使用 ALTER TABLE 语句: 增加字段 修改字段 修改字段默认值 删除字段 1.增加字段,新字段将成为最后一列: alter table table add (column datatype ...

  2. 视频教程-赵强老师:Oracle数据库从10g到11g(6)管理方案对象-Oracle

    赵强老师:Oracle数据库从10g到11g(6)管理方案对象 毕业于清华大学,拥有超过13年的工作经验. Oracle认证讲师,拥有6年以上授课经验.精通Oracle数据库.中间(Weblogic) ...

  3. ocp 042 第七章:管理方案对象

    这一章很简单,懒得做笔记 转载于:https://www.cnblogs.com/rhino1030/archive/2011/11/13/2247289.html

  4. oracle sql 基础(六):数据控制语言(用户及权限管理)

    权限是执行特殊SQL语句的权利.数据库管理员 (DBA) 是一个具有授予用户访问数据库及其对象的能力的高级用户.用户需要系统权限来访问数据库,需要对象权限来操纵数据库中对象的内容.用户也可以将被授予的 ...

  5. multiprocessing.manager管理的对象需要加锁吗_iOS内存管理布局及管理方案理论篇

    苹果设备备受欢迎的背后离不开iOS优秀的内存管理机制,那iOS的内存布局及管理方案是怎样的呢?我们一起研究下. 内存管理分为五大块 栈区(stack):线性结构,内存连续,系统自己管理内存,程序运行记 ...

  6. oracle sql以及性能调优

    目 录 1.选用适合的ORACLE优化器 2 2.访问Table的方式 3 3.共享SQL语句 3 4.选择最有效率的表名顺序(只在基于规则的优化器中有效) 5 5.WHERE子句中的连接顺序. 6 ...

  7. ORACLE SQL and SQL PLUS

    前言: 关系数据库的简单介绍 1970.Dr.E.F.codded 创建了关系数据库的模型(类似现在常用的二维表格) 关系数据库由许多数据对象组成, 被关系操作SQL命令管理着, 数据之间有完整性的约 ...

  8. ORACLE SQL and SQL*PLUS 学习

    前言: 关系数据库的简单介绍 1970.Dr.E.F.codded 创建了关系数据库的模型(类似现在常用的二维表格) 关系数据库由许多数据对象组成, 被关系操作 SQL命令管理着, 数据之间有完整性的 ...

  9. ORACLE SQL and SQL*PLUS

    ORACLE SQL and SQL*PLUS    余枫编写 2002.10 前言: 关系数据库的简单介绍 1970.Dr.E.F.codded 创建了关系数据库的模型(类似现在常用的二维表格) 关 ...

最新文章

  1. JAVA String.format 方法使用介绍
  2. 样式表中的 element.style样式如何修改
  3. python 如何判断一组数据是否符合正态分布
  4. java 钉钉获取用户信息,JAVA maven项目如何使用钉钉SDK来获取token、用户
  5. Java日常错误及需要注意细节,持续更新......
  6. 卷积码主要是对抗_【零基础学会LTE】【3】LTE 36.212 咬尾卷积码详解
  7. mysql5权威指南_MySQL5权威指南(第3版)
  8. linux修改文件或目录的所有者(chown)和用户组
  9. 格雷码Gray Code详解
  10. 【优化算法】蝗虫优化算法(GOA)【含Matlab源码 936期】
  11. python贪吃蛇简单代码_Python贪吃蛇简单的代码
  12. java语言程序设计郎波_Java语言程序设计(第3版) 郎波 清华大学出版社
  13. JAVA POJ3233—矩阵幂序列问题
  14. drop index mysql_MySQL修改和删除索引(DROP INDEX)
  15. c语言打气球游戏,打气球程序求修改
  16. 生于忧患,死于安乐。
  17. pantone潘通色卡对照表_潘通色卡微信版(PANTONE色C面效果)
  18. 推荐一款实用的用户画像工具--快鲸scrm
  19. win10环境下搭建IIS图片服务器
  20. java poi 水印_JAVA不使用POI给Word文档添加水印

热门文章

  1. 准确率 召回率_机器学习中F值(F-Measure)、准确率(Precision)、召回率(Recall)
  2. python项目开发案例集锦_在线分享 | 在 VS Code 中一站式完成 Python 项目开发
  3. 在苹果笔记本如何使用python_mac下如何将python2.7改为python3
  4. 麒麟710f能否升级到鸿蒙系统,定了!麒麟710以上支持升级鸿蒙系统,荣耀也可以升级...
  5. httpsurlconnection 写不进去authorization值_23. 假设检验的时候为什么常写p lt; 0.05,而不写具体的p值?...
  6. python拆分excel的sheet为单文件_pandas处理excel一个sheet拆分为多个sheet
  7. oracle dbms_crypto,DBMS_CRYPTO包对Oracle加密
  8. java线程创建方式_Java创建线程安全的方法
  9. 文件设置索引_什么样的网站结构备受搜索引擎喜爱?
  10. MySQL事务及字符集介绍