Using Oracle 11g R2 I'm running into an issue where PL/SQL Developer will execute indefinitely while selecting an xmltype column that is stored as binary xml. The column is returned as and the only way to stop execution is to close/terminate the executing window; breaking execution with Shift+Esc is ineffective. If .getclobval() is added to the column it correctly displays as . Tying to rule out my local settings as the problem, I used Oracle's SQL Developer and the column displayed correctly without needing a CLOB conversion. Is there any way to resolve this error so xmltype columns don't need to be explicitly converted?
Client: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
NLS_CHARACTERSET: AL32UTF8
Windows 7 (64-bit) 6.1 Build 7601 (Service Pack 1)
PL/SQL Developer - Version 10.0.5.1710
Server: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
NLS_CHARACTERSET: AL32UTF8
SQL:
CREATE TABLE bin_xml (xml_col XMLTYPE)
XMLTYPE COLUMN xml_col STORE AS SECUREFILE BINARY XML;
INSERT INTO bin_xml
VALUES(XMLTYPE('<TestNode>TestVal</TestNode>'));
COMMIT;
SELECT bx.xml_col --<Value Error>
FROM bin_xml bx;
SELECT bx.xml_col.getclobval() --<XMLTYPE>
FROM bin_xml bx;
Client: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
NLS_CHARACTERSET: AL32UTF8
Windows 7 (64-bit) 6.1 Build 7601 (Service Pack 1)
PL/SQL Developer - Version 10.0.5.1710
Server: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
NLS_CHARACTERSET: AL32UTF8