Database Administration (MOSC)

MOSC Banner

Query PDB from CDB .

edited Feb 2, 2016 6:46AM in Database Administration (MOSC) 6 commentsAnswered

Hi all

I am trying to run a query at PDB from CDB.

I created a user C##USER at the container and give this user the following.

ALTER USER C##USER SET CONTAINER_DATA=ALL CONTAINER=ALL;

GRANT SELECT_CATALOG_ROLE TO C##USER CONTAINER=ALL;

GRANT SET CONTAINER, CREATE SESSION TO C##USER CONTAINER=ALL;

I am getting the following errors:

SQL> ALTER SESSION SET CONTAINER=OR12PDB5;

ERROR:

ORA-65024: Pluggable database OR12PDB5 is not open.

SQL> ALTER SESSION SET CONTAINER=PDB$SEED;

ERROR:

ORA-01031: insufficient privileges


Please advice.

Eyal

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center