Oracle 12c
Expect-乐
兴趣是最大的动力。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Oracle12c DG环境搭建级联备库
1 说明在11.2及以上版本支持级联备库,就是第二备库从第一个备库接受redo日志,而不是直接从主库接受redo日志。这样会减少主库的压力。实际上和正常搭建DG没什么区别,只是改一下参数即可,这里通过采用ADG方式来搭建。最多支持30个级联备库,为啥呢?因为LOG_ARCHIVE_DEST_n,只有31个。2 实验更多详细信息,参考官方文档:http://docs.oracle.co...原创 2019-06-02 10:27:35 · 3044 阅读 · 0 评论 -
Orcle 12c 新特性 --- APPROX_COUNT_DISTINCT
1 说明The new and optimized SQL function, APPROX_COUNT_DISTINCT(), provides approximate count distinct aggregation. Processing of large volumes of data is significantly faster than the exact aggregat...原创 2019-06-20 10:20:32 · 438 阅读 · 0 评论 -
Orcle 12c 新特性--- 支持PDB OMF
1 说明12c中支持PDB级别使用OMF,如果PDB不指定CREATE_FILE_DEST参数,那么会继承CDB中的CREATE_FILE_DEST参数设置。使DBA更容易管理PDB。2 实验2.1 查看当前CREATE_FILE_DESTSQL> show parameter CREATE_FILE_DESTNAME TYPE VALUE---------...原创 2019-06-20 10:21:57 · 759 阅读 · 0 评论 -
Orcle 12c 新特性---全库缓存
1 说明顾名思义,全库缓存,就是将整个数据库放入到内存中,真刺激。当然,前提是内存大小要比整个数据库要大,而且要估算数据量的增长情况。这么一来,带来的性能肯定是巨大的,特别是对于I/O和响应时间提升非常明显。该特性会强行缓存所有表。1.1 默认数据库缓存机制Smaller tables are loaded into memory only when the table size ...原创 2019-06-20 10:23:59 · 758 阅读 · 0 评论 -
Orcle 12c 新特性---支持高级索引压缩
1 说明Advanced Index Compression works well on all supported indexes, including those indexes that are not good candidates for the existing prefix compression feature; including indexes with no, or fe...原创 2019-06-20 10:25:47 · 441 阅读 · 0 评论 -
Orcle 12c 新特性---支持限制PGA使用大小
1 说明This feature limits the total amount of Program Global Area (PGA) that an instance can allocate, using a parameter called PGA_AGGREGATE_LIMIT. When the instance has allocated the PGA_AGGREGATE_L...原创 2019-06-20 10:31:19 · 1286 阅读 · 0 评论 -
Orcle 12c 新特性---增强实时监控操作
1 说明Real-time database operations monitoring allows database administrators to easily monitor and troubleshoot performance problems in long running jobs. This feature helps make long running databas...原创 2019-06-20 10:35:33 · 972 阅读 · 0 评论 -
oracle12c 新特性--- Hybrid直方图
1 Hybrid Histograms官网:http://docs.oracle.com/database/121/TGSQL/tgsql_histo.htm#TGSQL372A hybrid histogram combines characteristics of both height-based histograms and frequency histograms. This “b...原创 2019-06-20 11:03:45 · 1341 阅读 · 0 评论 -
Oracle12c 新特性--- top frequency直方图
1 说明官方文档:http://docs.oracle.com/database/121/TGSQL/tgsql_histo.htm#TGSQL-GUID-DA1B97DA-DFE5-47CA-B8A0-57AB248B10EFOracle creates histograms on columns that have a data skew to improve cardinalit...原创 2019-06-21 09:36:27 · 925 阅读 · 0 评论 -
Oracle 12C R1升级到12C R2
1环境说明源库:12.1.0.2SQL> select * from v$version rownum =1;BANNER CON_ID---------------------------------------------------------------- ----------------Oracle Database 12c Enterprise E...原创 2019-06-21 09:38:07 · 1987 阅读 · 0 评论 -
Orcle 12c 新特性---支持克隆PDB部分表空间
1 说明从12.1.0.2开始,引入了User Tablespaces,简单的说就是可以按表空间(用户创建的)来克隆PDB。比如,当前PDB1中,用户新建了三个表空间tbs1,tbs2,tbs3,那么我们后期测试,可能只需要tbs1表空间中的数据,那么我们可以用USER_TABLESPACES子句来只克隆PDB1中的tbs1表空间,这样大大的缩短了可怜时间和不必要的空间开销。对于拆分数据也很有...原创 2019-06-17 10:41:00 · 484 阅读 · 0 评论 -
Orcle 12c 新特性 --- 支持克隆远端PDB
1 说明The new release of Oracle Multitenant fully supports remote full and snapshot clones over a database link. A non-multitenant container database (CDB) can be adopted as a pluggable database (PDB...原创 2019-06-20 10:18:17 · 554 阅读 · 0 评论 -
Orcle 12c 新特性---支持只克隆PDB的元数据
1 说明An administrator can now create a clone of a pluggable database only with the data model definition. The dictionary data in the source is copied as is but all user-created table and index data ...原创 2019-06-20 10:14:51 · 601 阅读 · 0 评论 -
Orcle 12c DG 新特性---ADG支持在全局临时表上执行DML操作
1 说明This feature expands the number of read-only applications that can be off-loaded from production databases to an Active Data Guard standby database. Even though an Active Data Guard standby data...原创 2019-06-02 10:30:42 · 1237 阅读 · 0 评论 -
Orcle 12c DG 新特性---ADG默认实时应用
1 说明In previous releases, when creating a Data Guard configuration using the SQL command line, the default configuration was to apply redo from archived log files on the standby database. In Oracle ...原创 2019-06-15 10:02:21 · 1327 阅读 · 0 评论 -
Oracle 12c DG新特性---一键failover
1 说明在12c中,这个新特性的出现有大大减少了switchover 和failover的复杂性。只需要一个命令即可进行角色的切换操作。而在之前的数据库版本中,往往需要多个命令才可以完成角色的切换。注意:之前的切换操作,在12c中仍然支持。2 实验-failover2.1 将主库REDO刷到备库(可选)–如果可以的话,否则会造成数据丢失由于之前做了switchover操作,所以现在...原创 2019-06-15 10:05:37 · 677 阅读 · 0 评论 -
Oracle 12c DG新特性---一键switchover
1 说明在12c中,这个新特性的出现有大大减少了switchover 和failover的复杂性。只需要一个命令即可进行角色的切换操作。而在之前的数据库版本中,往往需要多个命令才可以完成角色的切换。注意:之前的切换操作,在12c中仍然支持。2 实验-switchover2.1 验证是否满足switchover新增了一个命令VERIFY用于验证备库是否满足switchover,...原创 2019-06-15 10:08:11 · 809 阅读 · 0 评论 -
Orcle 12c 新特性---DG新增快速同步模式
1 说明Data Guard maximum availability supports the use of the NOAFFIRM redo transport attribute. A standby database returns receipt acknowledgment to its primary database as soon as redo is received i...原创 2019-06-15 10:13:24 · 754 阅读 · 0 评论 -
Orcle 12c ASM新特性---Oracle ASM 支持对已打开文件执行chown, chgrp, chmod 操作
1 说明该特性允许ASMCMD chown、chgrp和chmod命令执行来修改文件属性,即使文件是打开的。在Oracle 11g R2(11.2)中,这是不允许的。ALTER DISKGROUP MODIFY OWNERSHIP命令也有同样的效果,因为此SQL提供了对ASMCMD命令的支持。语法和之前版本的没有区别。如:ASMCMD [+fra/orcl/archivelog/fla...原创 2019-06-15 10:16:21 · 458 阅读 · 0 评论 -
Oracle 12c 新特性---Oracle ASM提高Rebalance操作
1 说明Oracle ASM rebalance enhancements improve scalability, performance, and reliability of the rebalance operation. This feature extends the rebalance to operate on multiple disk groups in a single...原创 2019-06-15 10:19:05 · 1246 阅读 · 0 评论 -
Orcle 12c 新特性---新增参数FAILGROUP_REPAIR_TIME
1 说明已经有的一个参数是DISK_REPAIR_TIME(默认是3.6h),表示磁盘offline时间超过规定的时间,那么Oracle会自动把该磁盘给drop掉,那么就需要手动再添加到磁盘组中。12c中又新增了一个参数FAILGROUP_REPAIR_TIME(默认值24h),同样表示:如果一个FAILGROUP OFFLINE超过规定时间,那么也会被DROP掉。对这个参数的引入,还是很...原创 2019-06-15 10:20:18 · 965 阅读 · 0 评论 -
Orcle 12c 新特性---并行创建PDB
1 说明从12.2开始,支持并行创建pdb。毫无疑问会加快PDB的创建,当数据库版本是12.2.0或更高,默认Oracle会自动选择并行度。The PARALLEL clause of the CREATE PLUGGABLE DATABASE statement specifies whether to use parallel execution servers during PDB ...原创 2019-06-15 10:22:08 · 438 阅读 · 0 评论 -
Orcle 12c 新特性---支持保存当前PDB装
1 说明The SAVE STATE clause and DISCARD STATE clause are now available with the ALTER PLUGGABLE DATABASE SQL statement to preserve the open mode of a pluggable database (PDB) across multitenant contai...原创 2019-06-15 10:24:12 · 388 阅读 · 0 评论 -
Orcle 12c 新特性---PDB支持logging
1 说明The PDB LOGGING or NOLOGGING clause can be specified in a CREATE or ALTER PLUGGABLE DATABASE statement to set or modify the logging attribute of the pluggable database (PDB). This attribute is ...原创 2019-06-17 10:44:07 · 486 阅读 · 0 评论 -
Orcle 12c 新特性---安装GRID支持自动执行配置脚本(root.sh)
从12c开始,在安装/升级Grid时提供自动运行root.sh脚本的选项。这样就不需要最后,手动去运行了。输入root用户密码即可。原创 2019-06-17 10:45:34 · 503 阅读 · 0 评论 -
Orcle 12c 新特性---支持将OCR备份到磁盘组中
1 说明从12c开始,支持将OCR备份到磁盘组中。将在Oracle ASM磁盘组中存储OCR备份可以简化OCR管理,如果需要OCR恢复,则允许在集群中的任何节点访问OCR备份。2 实验2.1 修改OCR备份路径[root@rac1 ~]# /u01/app/12.2.0/grid/bin/ocrconfig -backuploc +DATA2.2 手动备份一下[root@rac1 ...原创 2019-06-17 10:47:35 · 469 阅读 · 0 评论 -
Orcle 12.2 新特性 --- 支持动态修改IM大小
1 说明从12.2开始,支持在数据库打开的状态下动态修改IM的大小,而不需要重启数据库。而在此之前,都是需要重启数据库的。使用该特性必须满足以下条件:The column store must be enabled.The compatibility level must be 12.2.0 or higher.The database instances must be...原创 2019-06-18 16:19:53 · 236 阅读 · 0 评论 -
Orcle 12.2新特性 --- PDB Archive Files (.pdb Files)
1 说明When a pluggable database (PDB) is unplugged, all data files associated with a PDB along with the PDB manifest need to be copied or moved individually over to the remote server where it is plugg...原创 2019-06-18 16:22:58 · 735 阅读 · 0 评论 -
Orcle 12c 新特性 --- 增强PDB Lockdown Profiles
1 说明1.1 关于PDB Lockdown ProfilesPDB lockdown profile是一组可以控制操作的命名集。控制PDB的操作权限,是对所有用户都生效。例如:可以控制用户禁止直行ALTER SYSTEM这样的语法。某种程度上保证了数据库的安全性。可以限制下面四个方面的操作:Network access features. These are operati...原创 2019-06-18 16:33:05 · 613 阅读 · 0 评论 -
Orcle 12c 新特性---12.2支持更多PDB
1 说明Oracle Database 12c Release 2 (12.2) now supports having thousands of pluggable databases (PDBs) in a single multitenant container database (CDB).Oracle Database 12c Release 1 (12.1.0.1) suppo...原创 2019-06-18 16:34:12 · 429 阅读 · 0 评论 -
Orcle 12c 新特性---几乎0停机时间迁移PDB
1 说明This new feature significantly reduces downtime by leveraging the clone functionality to relocate a pluggable database (PDB) from one multitenant container database (CDB) to another CDB. The so...原创 2019-06-18 16:43:58 · 542 阅读 · 0 评论 -
Orcle 12c 新特性---限制PDB的IO
1 说明You can set the MAX_IOPS initialization parameter and the MAX_MBPS initialization parameter to limit the disk I/O generated by a PDB.主要是为了限制PDB的I/O,来控制整体CDB性能,保证其他PDB能有足够的I/O资源可用。A large amou...原创 2019-06-18 16:52:05 · 586 阅读 · 0 评论 -
Oracle 12C R2-新特性-夸平台将PDB导入到另一个CDB中
1 使用非一致性备份执行夸平台传输PDB可以使用不一致和一致备份的组合来传输PDB并将其插入到位于不同平台上的CDB。 不一致的备份使您能够减少应用程序停机时间,因为在执行备份时可以打开PDB。类似于XTTS技术,减少停机时间。当PDB打开时,创建跨平台不一致的备份。 第一个备份是增量级0备份。 后续备份是包含自上次增量备份以来对PDB所做更改的增量级别1备份。 对不一致的1级备份的数量没有...原创 2019-06-24 15:46:49 · 1226 阅读 · 0 评论 -
Oracle 12C R2-新特性-多租户:支持本地UNDO模式
在12.1中,所有的在一个实例中的PDB只能共享同一个UNDO表空间。在12.2中它们都有各自的undo表空间了。这种新的管理机制就叫做本地undo模式。与此同时,在之前的版本中现在就成为是共享undo模式。本地undo模式为新建数据库的默认模式。1 转换为共享undo模式1.1 查询当前的模式:SQL>COLUMN property_name FORMAT A30SQL>...原创 2019-06-24 15:56:46 · 515 阅读 · 0 评论 -
Oracle 12C R2-新特性-跟踪索引使用情况V$INDEX_USAGE_INFO
12.2中新增了新的视图V$INDEX_USAGE_INFO,提供索引在数据库中使用的情况。从而可以看出索引是否被使用以及使用率。这些信息有助于评估索引的策略。SQL> desc V$INDEX_USAGE_INFO Name Null? Type ----------------------------------------- -------- ------------...原创 2019-06-24 15:58:19 · 799 阅读 · 0 评论 -
Oracle 12C R2-新特性---增强索引压缩
高级索引压缩可以很好的应用于所有支持的索引。使用高级索引压缩创建索引可以减少所有唯一和非唯一索引的大小,并显着提高压缩率,占用更少的空间,同时仍然可以有效地访问索引。对于分区索引,可以在分区基础上指定压缩类型。 您还可以对索引分区指定高级索引压缩,即使父索引未压缩。高级索引压缩是工作在块级别,可以为每个块提供更好的压缩。1 具体例子SQL>conn oe/oracle@orclpd...原创 2019-06-24 16:01:58 · 616 阅读 · 0 评论 -
Orcle 12c 新特性---创建PDB支持指定默认表空间
1 说明When you create the PDB from the CDB seed or an application seed and specify the DEFAULT TABLESPACE clause, Oracle Database creates a smallfile tablespace and sets it as the default tablespace ...原创 2019-06-18 16:17:50 · 781 阅读 · 0 评论 -
Orcle 12c 新特性---IM快速启动
1 说明In-Memory Column Store allows objects (for example, tables, partitions, and subpartitions) to be populated in-memory in a compressed columnar format. Until now, the columnar format has only bee...原创 2019-06-18 16:14:47 · 535 阅读 · 0 评论 -
Oracle Flex Cluster介绍及hub和leaf节点转换
1 说明Oracle Flex Cluster is a new Oracle Clusterware based topology utilizing two types of cluster nodes: Hub Nodes and Leaf Nodes. Hub Nodes represent traditional nodes, tightly coupled using netwo...原创 2019-06-17 10:53:26 · 1373 阅读 · 0 评论 -
对Oracle 12c R1中的Flex Cluster Leaf节点的误解-进行说明
从官方文档中可以看到对Leaf节点的说明:12c R1官方文档说明:Leaf Nodes are different from standard Oracle Grid Infrastructure nodes, in that they do not require direct access to shared storage, but instead request data throu...原创 2019-06-17 10:54:55 · 491 阅读 · 0 评论
分享