My Oracle Support Banner

Registering a valid schema raises ORA-01850: hour must be between 0 and 23 (Doc ID 2462029.1)

Last updated on FEBRUARY 11, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

The procedure to register a valid schema fails as below:

DECLARE
l_xml XMLTYPE ;
BEGIN
  dbms_xmlschema.registerSchema(schemaURL => 'xsd1.xsd',
  schemaDoc => '
      '); 
l_xml := XMLTYPE('2002-05-30T24:00:00');  
  XMLTYPE.schemaValidate(l_xml);
END;

ORA-01850: hour must be between 0 and 23

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.