How to install the 12c DB and use the Pluggable DB with SQL DeveloperGoal

 To give a path to install the 12c Database with Pluggable Databases.

Solution

This is one method to install the 12c Pluggable Database onto a Windows  x64 PC.

. Where to get the 12c DB?

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

For this note I am using the Microsoft Windows x64 (-bit)Oracle Database 12c Release  Enterprise Edition.

Download both file  and file  into the same directory. Unzip the files into the same directory.

. How to create the 12c DB installation?

Keep a Record of your DB names and passwords!

  A. Double click <path to DB files>\database\Setup

  B. Email = email address required - Next

  C. Make your choice.. skipped Software updates. - Next

  D. Create and configure a database. - Next

  E. Desktop class - Next

  F. Create New Window User - Give a new unused name and password. - Next

  G. a. Set the Oracle base path to a new oracle home location.

     b. Software location - where your software is located

     c. DB file location - as desired

     d. DB Edition - Enterprise Edition

     e. Character set - default

     f. global DB name: Different than other DB's you may have or just default if you have none.

     g. Admin pass word - set your PW

     h. Create as Container DB - Check

     i. Pluggable database name: give it a name or use Default - Next

     j. Install

     k. About  % the install will stop. There is a window that has to be

        clicked OK to continue. This may be behind the install window. If

        you have several windows open you may not see it.

     l. Finish the DB as normal. Passwords can be set at the end.

. Set your path preferences for the plugable DB. This works in SQL Developer 4.0 EA2 but not in 3.2.. You should be able to set it in Enterprise Manager also.

  A. In SQL Developer create a connection to SYS to the DB that you just

     created. Make sure in the make connection window you change Default to SYSDBA.

  B. From the Tool bar: View - DBA : This opens the DBA box.

  C. Create a connection in the DBA box. Use the SYS from the 12c DB.

     a. Expand the 12c SYS - expand the Database Configuration

     b. Click on the Initialization Parameters. This opens the parameters in the working window.

c.Item  -  need to have directory's assigned to them. 

Create  directories:

        i. db_create_file_dest = <your path>\db_create_file_dest

ii.db_create_online_log_dest_1 = <your path>\db_create_online_log_dest_1

        iii. db_create_online_log_dest_2 = <your path>\db_create_online_log_dest_2 Through .

  d. Select commit from the Worksheet tool bar. 

  e. select both spfile and Memory to save it permanently and on this session.

. Open the Database

 SQL> select open_mode from v$database; 

 OPEN_MODE---------- MOUNTED 

 SQL> alter database open; 

 Database altered.

Now you have a Database of 12c. However you do not want to use it. That would defeat the purpose of the pluggable DB.

. Create a Pluggable DB. This can be done from SQL Developer 4.0 EA2 or the DBCA. Pick A or B

A. Using SQL Developer

   a. In the DBA box expand Container Database under your 12c SYS connection.

   b. Right click on the Container Database - Create Pluggable Database.

   c. Provide the Database Name, Admin name and PW. 

d.Click Apply ONLY once. This will take a few seconds to create.(if you click apply more than once you will get an error)

B. DBCA from a command window.

   a. DBCA from command window

   b. Manage Pluggable Databases - Next

   c. Create a Pluggable Database - Next - Next

   d. Create a new Pluggable Database - Next

   e. Pluggable DB Name, Admin user name and PW

   f. Finish - Close

When trying to connect to the Pluggable DB, if you get the error:

Status : Failure -Test failed: Listener refused the connection with the following error:

ORA-, TNS:listener does not currently know of SID given in connect descriptor then you will need to complete step C.

C. Before connecting, be sure the pluggable databases are listed in the listener.ora and the 

tnsnames.ora files

 Example:

 SID_LIST_LISTENER =

 (SID_LIST =

 (SID_DESC =

 (SID_NAME = CLRExtProc)

 (ORACLE_HOME = E:\DB_12c\product\12.1.\dbhome_1)

 (PROGRAM = extproc)

 (ENVS = "EXTPROC_DLLS=ONLY:E:\DB_12c\product\12.1.0\dbhome_1\bin\oraclr12.dll")

 )

 )

 LISTENER =

 (DESCRIPTION_LIST =

 (DESCRIPTION =

 (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1527))

 (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = ))

 )

 )

 SID_LIST_LISTENER =

 (SID_LIST =

 (SID_DESC =

 (SID_NAME = PDB1)

 (ORACLE_HOME = <your path>\DB_12c\product\12.1.)

 )

 )

D. Open the Pluggable DB.

   i. In the DBA window expand your 12c SYS connection

   ii. expand Container Database

   iii. right- click your Plugable DB select - Modify State 

   iv. Make sure the New State is OPEN - Apply

. Make a new connection to your Pluggable DB in the connection window.

. To add Scott/Tiger to your new pluggable DB:

@ <your path>\DB_12c\product\12.1.\dbhome_1\RDBMS\ADMIN\scott.sql
 

转:12C CDB and pdb with sql developer的更多相关文章

  1. Oracle 12C CDB、PDB常用管理命令

    Oracle 12C CDB.PDB常用管理命令 --查看PDB信息(在CDB模式下) show pdbs  --查看所有pdbselect name,open_mode from v$pdbs;  ...

  2. ORACLE 12C新特性——CDB与PDB

    Oracle 12C引入了CDB与PDB的新特性,在ORACLE 12C数据库引入的多租用户环境(Multitenant Environment)中,允许一个数据库容器(CDB)承载多个可插拔数据库( ...

  3. 转 12C 连接CDB和PDB

    来源:David Dai -- Focus on Oracle 连接到CDB 和普通实例一样的连接. 指定ORACLE_SID 以后可以使用OS认证,也可以使用密码进行连接. [oracle@Ora1 ...

  4. Oracle 12c CDB PDB

    先说基本用法: 先按11G之前进行 conn / as sysdba; create user test identifed by test; ORA-65096: 公用用户名或角色名无效. 查官方文 ...

  5. Oracle 12c 多租户 CDB 与 PDB 级别 expdb 与 impdb(表、用户、全库)

    Oracle 数据库 12 c 多租户下,如何在容器数据库 (CDB) 和可插拔数据库 (PDB) 中使用 expdb 与 impdp (数据泵) 呢? 我们一起探讨下PDB 下进行表级,用户级别,全 ...

  6. 12c debug 转 12C 连接CDB和PDB

    来源:David Dai -- Focus on Oracle 连接到CDB 12c debug 和普通实例一样的连接. 指定ORACLE_SID 以后可以使用OS认证,也可以使用密码进行连接. [o ...

  7. oracle 12C的新特性-CDB和PDB

    1.前言 CDB与PDB是Oracle 12C引入的新特性,在ORACLE 12C数据库引入的多租用户环境(Multitenant Environment)中,允许一个数据库容器(CDB)承载多个可插 ...

  8. Oracle 12c中CDB与PDB实例参数更改影响实验

    基础知识单薄的同学,请逐字逐句阅读以下概念,来自于博客园AskScuti. 预备知识:什么是参数文件.存放位置.参数文件的分类和参数文件的命名方式.参数文件如何创建.参数文件加载顺序.参数分类.参数修 ...

  9. Oracle 12c SQL Developer连接报错(ORA-12505)

    Oracle 12c SQL Developer连接报错(ORA-12505) 连接时报错码:Listener refused the connection with following error: ...

随机推荐

  1. PostgreSQL ----- No relations found.

    本篇文章可能有错,尚未细细研究 运行\d出错: No relations found. \d只显示可见的表,也就是该数据库的schema在search_path中. SHOW search_path; ...

  2. AVFoundation--AVCaptureSession

    // // ViewController.m // AVFountionCamera // // Created by ZhuYi on 16/5/3. // Copyright © 2016年 DD ...

  3. 2、Web应用程序中的安全向量 -- CSRF/XSRF(跨站请求伪造)

    CSRF的概念可以分为两类:XSS和混淆代理. 混淆代理中的"代理"是指用户的浏览器.CSRF是基于浏览器的工作方式运作的.用户登录到一个站点后,用户的信息将会存储在cookie中 ...

  4. 判定生死的心跳机制 --ESFramework 4.0 快速上手(07)

    在Internet上采用TCP进行通信的系统,都会遇到一个令人头疼的问题,就是"掉线".而"TCP掉线"这个问题远比我们通常所能想象的要复杂的多 -- 网络拓扑 ...

  5. 优化SQLServer数据库加快查询速度

    查询速度慢的原因很多,常见如下几种: 1.没有索引或者没有用到索引(这是查询慢最常见的问题,是程序设计的缺陷) 2.I/O吞吐量小,形成了瓶颈效应. 3.没有创建计算列导致查询不优化. 4.内存不足 ...

  6. [ An Ac a Day ^_^ ] hdu 1662 Trees on the level 数据结构 二叉树

    紫书上的原题 正好学数据结构拿出来做一下 不知道为什么bfs的队列一定要数组模拟…… 还可以练习一下sscanf…… #include<stdio.h> #include<iostr ...

  7. SqlServer 汉字转换拼音首字母函数

    CREATE function [dbo].[Func_GetPY](@str nvarchar(4000))returns nvarchar(4000)asbegin set @str=RTRIM( ...

  8. chapter11_1 Lua数组、列表

    Lua中的table可以表示其他语言提供的数据结构:数组.记录.线性表.队列.集合等. 在Lua中很少编写搜索算法,因为table本身就提供了直接访问任意类型的功能. 数组 使用整数来索引table即 ...

  9. 【Linux】zookeeper构造伪集群

    1.在一台机器装安装3个zk server,构建伪集群模式安装步骤如下:1.下载zookeeper,下载地址:http://mirror.bit.edu.cn/apache/zookeeper/zoo ...

  10. IE/Chrome背景图片居中1px偏移解决方法

    最近在支持行业运营的一个推广页面,遇到了非常规的页面banner图居中的问题,为了解决此问题,做了简单的测试,做了一个小结,为经常做大促页面的兄弟姐妹们提供参考解决方案. 首先来看看现象.最经典的页面 ...