Purpose of a Multitenant Environment A multitenant environment enables the central management of multiple PDBs in a single installation. By using a multitenant environment, you can accomplish the following goals: Cost reduction By consolidating hardw…
Creating and Removing PDBs with SQL*Plus This chapter contains the following topics: About Creating and Removing PDBs Preparing for PDBs Creating a PDB Using the Seed Creating a PDB by Plugging an Unplugged PDB into a CDB Unplugging a PDB from a CDB…
About oracle mulittenant environment The multitenant architecture enables an Oracle database to function as a multitenant container database (CDB) that includes zero, one, or many customer-created pluggable databases (PDBs). A PDB is a portable colle…
Below tables contains contant you need to consider while planning for a CDB. Action Considerations for a CDB Additional Information Plan the tables and indexes for the pluggable databases (PDBs) and estimate the amount of space they will require. In…
Using the CREATE DATABASE Statement to Create a CDB This section describes creating a CDB using the CREATE DATABASE SQL statement. Note: Oracle strongly recommends using the Database Configuration Assistant (DBCA) instead of the CREATE DATABASE SQL s…
SQL优化原则 二.SQL语句编写注意问题 www.2cto.com 下面就某些SQL语句的where子句编写中需要注意的问题作详细介绍.在这些where子句中,即使某些列存在索引,但是由于编写了劣质的SQL,系统在运行该SQL语句时也不能使用该索引,而同样使用全表扫描,这就造成了响应速度的极大降低. 1. IS NULL 与 IS NOT NULL 不能用null作索引,任何包含null值的列都将不会被包含在索引中.即使索引有多列这样的情况下,只要这些列中有一列含有null,该列就会从索引中排…
1.Oracle表的管理 表名和列名的命名规则: 必须以字母开头: 长度不能超过30个字符: 不能使用oracle的保留字: 只能使用如下字符:A-Z, a-z, 0-9, $, # 等. Oracle支持的数据类型: 字符型 char 定长 最大2000个字符 char(10)----'小韩' 前四个字符放'小韩',后添加6个空格补全.(查询效率高) varchar2(20) 变长 最大4000个字符 vachar2(10)----'小韩' oracle分配四个字符,这样可以节省空间. clo…
<ORACLE 10.2.05版本的升级补丁安装> 首先我们解压 $ unzip p8202632_10205_LINUX.zip 解压后我们会发现多出了个文件夹,他是:Disk1,进入Disk1.然后执行安装: $ ./runInstaller 执行脚本 # /u01/app/oracle//db_1/root.sh Running Oracle 10g root.sh script... The following environment variables are set as: ORA…
Configuration oracle database Password file(非必要)        cd $ORACLE_HOME/dbs/ ls 查看是否有init.ora 创建密码文件: orapwd file=orapwSID password=value 例如: orapwd file=orapwupcrm password=upcrm 这样创建后的密码文件是一个二进制文件 ls 查看是否创建成功 Parameter file        从oracle9i开始,oracl…
一.索引 表的数据是无序的,所以叫堆表(heap table),意思为随机存储数据.因为数据是随机存储的,所以在查询的时候需要全表扫描.索引就是将无序的数据有序化,这样就可以在查询数据的时候 减少数据块的读取,实现快速定位数据.对大表的排序是非常消耗资源的,索引是事先排好序,这样就可以在需要排序的时候使用索引就可以避免排序.索引对数据库的影响是巨大的,但索引不是万能的,数据库对索引的使用是有选择的,我们可以强制使用索引,也可以强制不使用索引.一般的情况下数据库会自动的判断是否使用索引,除非你明确…