Include a runnable Python script that shows the problem.
import cx_Oracle
query = """
CREATE USER new_user IDENTIFIED BY somepassword;
GRANT CREATE SESSION TO new_user;
GRANT SELECT ON dba_users TO new_user;
"""
connection = cx_Oracle.connect(user=user, password=pass, dsn=dsn)
with connection:
with connection.cursor() as cursor:
cursor.execute(query)
Include a runnable Python script that shows the problem.
ORA-00922: missing or invalid option