The following errors are observed when running ora_setup on SharePlex 8.6.2 or higher on Oracle 12c Pluggable Database (PDB) or higher version of Oracle PDB (shown in the example below):
Enter username for new user [splex/splex] :
SQL> CREATE USER splex IDENTIFIED BY splex
OCIStmtExecute: Oracle error ORA-65096: invalid common user or role name
The error occurs due to insufficient privileges. It is most likely due to one of the following scenarios:
1. The following privileges need to be granted by sysdba to the Shareplex user prior to running ora_setup in a multitenant database (here sp_admin is the SharePlex user in our example below):
create user c##sp_admin identified by sp_admin;
grant dba to c##sp_admin container=ALL;
grant select on sys.user$ to c##sp_admin with grant option container=ALL;
If they are not granted prior to running ora_setup, the error ORA-65096 will occur. To resolve it, grant the above privileges and then re-run ora_setup.
2. Even though the privileges have been granted to a user who is purported to be the SharePlex user, if a different user has been specified during the running of ora_setup, it will fail with the ORA-65096. The most common reason for this to occur is when ora_setup prompts “if you want to create a new SharePlex user” and the customer replies in affirmative while not granting the above privileges prior to running ora_setup for a new user. Grant the above privileges to the SharePlex user and then re-run ora_setup.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center