473,320 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

oracle error..ORA-01858

I am getting this error while writing this query.
I am using the same query in other server but i am not getting any error message
Do I need to reset the date format in Server.

Date is saved in table as varchar.. I want to convert it into date format

SQL> desc mis_branch_master
Name Null? Type
------------------------------- -------- ----
PARAMETER NOT NULL VARCHAR2(15)
PARAM_VAL VARCHAR2(25)

SQL> select * from mis_branch_master;

PARAMETER PARAM_VAL
--------------- -------------------------
Br_Name MODEL Branch
RO_Name Mahalaxmi Layout
CO_Name Bangalore
DP_Code 1091
BSCA_Code 9999
DB_Ver 2.09
AP_Ver 2.00
Bal_Date 30-JUN-2007

8 rows selected.

SQL> select to_date(param_val,'dd/mm/rrrr') from mis_branch_master
2 where parameter = 'Bal_Date';
ERROR:
ORA-01858: a non-numeric character was found where a numeric was expected



no rows selected
Jun 13 '07 #1
2 4032
r035198x
13,262 8TB
I am getting this error while writing this query.
I am using the same query in other server but i am not getting any error message
Do I need to reset the date format in Server.

Date is saved in table as varchar.. I want to convert it into date format

SQL> desc mis_branch_master
Name Null? Type
------------------------------- -------- ----
PARAMETER NOT NULL VARCHAR2(15)
PARAM_VAL VARCHAR2(25)

SQL> select * from mis_branch_master;

PARAMETER PARAM_VAL
--------------- -------------------------
Br_Name MODEL Branch
RO_Name Mahalaxmi Layout
CO_Name Bangalore
DP_Code 1091
BSCA_Code 9999
DB_Ver 2.09
AP_Ver 2.00
Bal_Date 30-JUN-2007

8 rows selected.

SQL> select to_date(param_val,'dd/mm/rrrr') from mis_branch_master
2 where parameter = 'Bal_Date';
ERROR:
ORA-01858: a non-numeric character was found where a numeric was expected



no rows selected
If the Bal_Date is the one stored in the DB as a varchar then isn't it the one that you want to do to_date on first? .
Jun 13 '07 #2
Saii
145 Expert 100+
try using to_char on param_val before the to_date conversion.
Jun 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
2
by: Cherrish Vaidiyan | last post by:
Hello all, A warm Xmas greetings to all. I have a small problem with starting up the database. Here my strategy. I have installed Oracle 9i R 2 on Red Hat 9. i created two database on this...
1
by: Wayne Happ | last post by:
I'm a new Oracle user. I've installed Oracle 9i on a Linux RedHat machine V9.0 and it's running. I took a Windows XP machine and installed the Oracle client on it along with PL/SQL developer...
3
by: Nathan Sokalski | last post by:
When I attempt to run a form created with Oracle9i Forms Builder I receive a dialog box asking for the following info: User Name: Password: Database: I obviously know my User Name and...
4
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine....
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
13
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
5
by: Michael Rudolph | last post by:
Hi newsgroup, I have an issue with the configuration of a DB2 federated database (WebSphere Information Integrator) in conjunction with the relational wrapper for Oracle on AIX. DB2 seems to not...
5
by: Martin Solveig | last post by:
Hello, SLES9 SP1 is on PIII with two 800MHz procesors and 2GB RAM, on four SATA 156GBhard disks are created two RAID1 arays, on one RAID is OS with 1GB swap and Oracle 10.1.0.4 enterprise edition,...
2
by: devas | last post by:
Hai, Issue: I am using OEM 10g grid control. I want to establish the connection from oracle to sql server=>I can’t able to connect it. Please help me I have created the system dsn below steps....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.