Java: XPath: Read series of attributes from xml files

The following piece of code is an example of extraction of specific attribute from an xml file.The xml looks like this:<?xml version="1.0" ?><xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xft-xliff="http://www.xfa.org/schema/xfa-xliff/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"><file…

Continue ReadingJava: XPath: Read series of attributes from xml files

Oracle PL/SQL: Custom Exceptions

Here is a piece of code, which shows the structure of user defined exception:declare      exc_invalid_request_id     EXCEPTION;...      IF l_accepted_request > 0      THEN         RAISE exc_invalid_request;      END IF;...   EXCEPTION      WHEN exc_invalid_request      THEN

Continue ReadingOracle PL/SQL: Custom Exceptions

Oracle DB: Gather statistics – Show statistics

Gather schema statsistics:exec dbms_stats.gather_schema_stats( -     ownname          => 'SCOTT', -     options          => 'GATHER AUTO'   );Show schema stats:select * from DBA_IND_STATISTICS WHERE OWNER='SCOTT'select * from DBA_TAB_STATISTICS WHERE OWNER='SCOTT'select * from DBA_TAB_COL_STATISTICS WHERE…

Continue ReadingOracle DB: Gather statistics – Show statistics