1,485 views
in 12C Cloud by ACE (20,920 points)

1 Answer

by ACE (20,920 points)

You can determine whether or not Oracle XML DB is already installed. If it is installed, then the following are true:

    User XDB exists. To check: SELECT * FROM ALL_USERS;

    View RESOURCE_VIEW exists. To check: DESCRIBE RESOURCE_VIEW

SQL> SELECT * FROM ALL_USERS where username like 'XDB';

USERNAME                          USER_ID CREATED
------------------------------ ---------- ------------------
XDB                                    45 21-FEB-14


SQL> DESCRIBE RESOURCE_VIEW
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 RES                                                XMLTYPE(XMLSchema "http://xm
                                                    lns.oracle.com/xdb/XDBResour
                                                    ce.xsd" Element "Resource")
 ANY_PATH                                           VARCHAR2(4000)
 RESID                                              RAW(16)

Categories

...