创建PDB

作者: 如果不是废物谁又愿混吃等死 | 来源:发表于2019-10-14 15:28 被阅读0次

    1、sqlplus / as sysdba
    2、create pluggable database testorcl
    admin user testorcl identified by testorcl
    file_name_convert=('D:\oracle\app\orcl\oradata\orcl','D:\oracle\app\orcl\oradata\orcl\testorcl');
    3、alter session set container = testorcl;
    4、startup;

    1、create user username identified by password;
    2、grant dba to username;

    TNS中添加:
    TESTORCL =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESTORCL)
    )
    )

    删除

    1、alter pluggable database testorcl close immediate; --变更状态
    2、drop pluggable database testorcl including datafiles; --删除

    相关文章

      网友评论

          本文标题:创建PDB

          本文链接:https://www.haomeiwen.com/subject/lmurmctx.html