0

I am trying to create a table in Oracle through the command:

CREATE TABLE xml_binary (
   id    NUMBER,
   fv  XMLTYPE)
   XMLTYPE fv STORE AS BINARY XML
      XMLSCHEMA "http://www.example.com/fvInteger_binary.xsd"
      ELEMENT "ROOT";

However, I get the error:

ORA-43853: SECUREFILE lobs cannot be used in non-ASSM tablespace

I found in this forum a solution which would be to ignore the error through the command:

ALTER SYSTEM SET db_securefile = 'IGNORE;

I do not think it is a good solution, however.

What can I do in order to solve it properly?

Thanks in advance!

1 Answer 1

2

Securefile can be created only on ASSM tablespace.

SELECT tablespace_name,  segment_space_management
      FROM dba_tablespaces;

segment_space_management = auto = ASSM-tablespace.

db_securefile = 'IGNORE' works in that way. After restart, the db will ignore information about SF and it will create basicfile.

Solution:

1) Store binaryxml in basicfile.

XMLTYPE fv STORE AS BASICFILE BINARY XML

2) Store binaryxml in securefile in assm tablespace.

 XMLTYPE fv STORE AS securefile BINARY XML(tablespace assm_tablespace) 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.