Error creating pluggable db on 12c

Simon Chang <[email protected]>
Newsgroups gmane.comp.python.db.cx-oracle
Message-ID <CABXr4A7TK7pwE3HK6KfUnfk8gBc8SeaTDypg=1uYRj04+ifDrA@mail.gmail.com>
I'm trying to create an Oracle 12c pluggable database with the following
code ...

ora_dsn = cx_Oracle.makedsn('192.168.1.1', 1521, service_name='cdb')
connection = cx_Oracle.connect('sys/oracle', dsn=ora_dsn,
                                   mode=cx_Oracle.SYSDBA)
cursor = connection.cursor()
cursor.execute("create pluggable database pdb admin user pdbadmin
identified by password;")
connection.close()

.... and got this error:

cursor.execute("create pluggable database pdb admin user pdbadmin
identified by password;")
cx_Oracle.DatabaseError: ORA-00922: missing or invalid option

I tested the "create pluggable database" statement in sqlplus and it
worked.  Is "create pluggable database" supposed to work on cx_Oracle
5.1.3?  If so, can anyone advise what I'm doing wrong?

Thanks!

Simon

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
cx-oracle-users mailing list
cx-oracle-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.