14.01.2015 Views

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

ChemOffice.Com - CambridgeSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ALTER INDEX index_name<br />

PARAMETERS('RAISE_ERROR=NO')<br />

statement, and the default behavior can be restored<br />

by the<br />

ALTER INDEX index_name<br />

PARAMETERS('RAISE_ERROR=YES')<br />

statement. If the alter index statement was called<br />

with 'RAISE_ERROR=YES' parameter, then any<br />

erroneous input data will be rejected, and an<br />

exception will be thrown. Otherwise, the data will<br />

be stored, no error message will be generated, but<br />

an entry will be added to the<br />

schema_name.index_name_E table.<br />

The following sql script illustrates this process:<br />

truncate table mx;<br />

alter index mxix<br />

parameters('RAISE_ERROR=YES');<br />

insert into mx values(1, 'CCj');<br />

select * from mx;<br />

alter index mxix<br />

parameters('RAISE_ERROR=NO');<br />

insert into mx values(1, 'CCj');<br />

select * from mx;<br />

and the result:<br />

Table truncated.<br />

Index altered.<br />

insert into mx values(1, 'CCj')<br />

*<br />

ERROR at line 1:<br />

ORA-29875: failed in the<br />

execution of the ODCIINDEXINSERT<br />

routine<br />

ORA-29400: data cartridge error<br />

ORA-29400: no chemical data in the<br />

document, can not be indexed<br />

ORA-06512: at<br />

"CSCARTRIDGE.MOLECULEINDEXMETHOD<br />

S", line 28<br />

ORA-06512: at line 1<br />

no rows selected<br />

Index altered.<br />

<strong>ChemOffice</strong> Enterprise Workgroup & Databases 2005 CS Oracle Cartridge • 205<br />

Bulk loading

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!