Solved

Not a valid Month

Posted on 2007-12-02
1
1,093 Views
Last Modified: 2013-12-07
Why i'm I getting a not a valid month when executing this

INSERT INTO PROG_CHAN
VALUES(11001,10306,'12-01-2007',TO_DATE('01-12-2007 2:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(11001,10306,'12-02-2007',TO_DATE('02-12-2007 4:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(11002,33753,'12-03-2007',TO_DATE('03-12-2007 6:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(11002,33753,'12-04-2007',TO_DATE('04-12-2007 2:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(11005,22024,'12-05-2007',TO_DATE('05-12-2007 6:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(11005,10108,'12-06-2007',TO_DATE('06-12-2007 12:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(21002,33753,'12-07-2007',TO_DATE('07-12-2007 4:00:00','DD-MM-YYYY hh:mi:ss'));

INSERT INTO PROG_CHAN
VALUES(21004,37349,'12-07-2007',TO_DATE('08-12-2007 2:00:00','DD-MM-YYYY hh:mi:ss'));
0
Comment
Question by:awehme
1 Comment
 
LVL 25

Accepted Solution

by:
imitchie earned 500 total points
Comment Utility
try making sure that hh:mm:ss has exactly 8 chars, i.e.
VALUES(21004,37349,'12-07-2007',TO_DATE('08-12-2007 02:00:00','DD-MM-YYYY hh:mi:ss'));
instead of
VALUES(21004,37349,'12-07-2007',TO_DATE('08-12-2007 2:00:00','DD-MM-YYYY hh:mi:ss'));
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to take different types of Oracle backups using RMAN.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now