如何在可插拔数据库中创建表空间(Oracle 12C)

时间:2015-10-23 07:24:15

标签: oracle oracle12c

当我尝试连接到可插件以创建表空间时,我尝试以具有足够权限的本地用户直接连接到PDB,但我有这个问题为什么?

SQL> $ sqlplus sys/password@localhost:1521/orcl as sysdba

SQL> $ sqlplus sys/password@localhost:1521/pdborcl as sysdba

SQL> ALTER SESSION SET CONTAINER = pdborcl;

SQL> CONN pdb_admin@pdborcl;
Introduzca la contrase±a:
ERROR:
ORA-01017: invalid username/password; logon denied

Advertencia: íYa no estß conectado a ORACLE!

1 个答案:

答案 0 :(得分:0)

SQL> CONN pdb_admin@pdborcl;
Introduzca la contrase±a:
ERROR:
ORA-01017: invalid username/password; logon denied

输入的用户名密码不正确。您可以使用pdb_admin用户直接登录可插拔数据库,而无需在多个步骤中执行此操作。由于您在本地连接,您可以这样做:

sqlplus pdb_admin/password@pdborcl

或者,在提示时稍后提供密码。

如果您提供正确的用户名/密码,您的工作方式应该会成功。

例如,

C:\>sqlplus sys@pdborcl as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Fri Oct 23 13:31:18 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Enter password:

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions

SQL> conn scott@pdborcl;
Enter password:
Connected.