Oracle SQL Developer 1.1.1.25.14, I rror ORA-01722 Invalid Number

I have installed the new version of Oracle SQL Developer 1.1.1.25.14, I use Oracle 9.2. When I browse in the tree of the stored procedures and compile I obtain Error ORA-01722 Invalid Number. The previous version does not give this error. I have tried to change the decimal separator to comma ',' and point '.' but this error always appears.

create or replace
PROCEDURE getAge (
dtmDataStart_in IN DATE,
dtmDataEnd_in IN DATE,
intYears_out OUT NUMBER,
intMonths_out OUT NUMBER,
intDays_out OUT NUMBER) AS
-- Calcola il numero di anni, mesi, giorni intercorsi
-- dalla data iniziale alla data finale.
-- Se la data iniziale è > della data finale, le due date
-- vengono scambiate e le variabili di output vengono ritornate
-- con segno negativo.
--==================================================
-- Data Ultima Modifica: 31/07/98
-- Aggiunta procedura per il calcolo della differenza tra
-- due date dello stesso anno.
--==================================================
-- DICHIARAZIONE VARIABILI INIZIO --------------------------------------------------------
intYMDStart NUMBER(10);
intYMDEnd NUMBER(10);
intYMD NUMBER(10);
intDiffAnni NUMBER(5);
intDiffMesi NUMBER(5);
intDiffGiorni NUMBER(5);
intMeseStart NUMBER(5);
intAnnoStart NUMBER(5);
intTotGiorniMeseStart NUMBER(5);
ysnNegativo NUMBER(5);
-- DICHIARAZIONE VARIABILI FINE ----------------------------------------------------------
BEGIN
intYMDStart := TO_NUMBER( TO_CHAR(dtmDataStart_in,'YYYYMMDD'));
intYMDEnd := TO_NUMBER( TO_CHAR(dtmDataEnd_in,'YYYYMMDD'));
ysnNegativo := 0;
IF intYMDStart = intYMDEnd THEN
intYears_out := 0;
intMonths_out := 0;
intDays_out := 0 ;
ELSE
IF intYMDStart > intYMDEnd THEN
intYMD := intYMDStart;
intYMDStart := intYMDEnd;
intYMDEnd := intYMD;
ysnNegativo := -1;
END IF;
intDiffAnni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'YYYY')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
intDiffMesi := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'MM')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
intDiffGiorni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'DD')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'DD'));
-- I valori cosi' calcolati di intDiffAnni, intDiffMesi e intDiffGiorni vanno bene
-- ad eccezione dei seguenti casi:
-- Sistemo intDiffAnni
IF (intDiffMesi > 0 OR (intDiffMesi = 0 AND intDiffGiorni >= 0)) THEN
-- intDiffAnni e' OK
intDiffAnni := intDiffAnni;
ELSE
-- non e' ancora arrivato il giorno del compleanno
intDiffAnni := intDiffAnni-1;
END IF;
-- Sistemo intDiffMesi
IF (intDiffMesi > 0 AND intDiffGiorni < 0) THEN
intDiffMesi := intDiffMesi-1;
ELSIF (intDiffMesi < 0 ) THEN
     if(intDiffGiorni<0) THEN
     intDiffMesi := intDiffMesi+11;
else
     intDiffMesi := intDiffMesi+12;
END IF;
ELSIF (intDiffMesi=0 AND intDiffGiorni<0) THEN
     intDiffMesi:=11;
END IF;
-- Sistemo intDiffGiorni
-- Calcolo i giorni come (TotGiorniMeseIniziale - GiornoIniziale) + (GiornoFinale - 0)
-- che e' uguale a fare TotGiorniMeseIniziale + (GiornoFinale-GiornoIniziale)
IF intDiffGiorni < 0 THEN
intMeseStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
IF intMeseStart IN (1,3,5,7,8,10,12) THEN
intTotGiorniMeseStart := 31;
ELSIF intMeseStart = 2 THEN
-- Da enciclopedia: sono bisestili gli anni multipli di 4
-- esclusi i secoli che non sono multipli di 400 (Parte commentata).
intAnnoStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
if (intAnnoStart MOD 4) = 0
-- AND NOT ((intAnnoStart MOD 100) = 0 AND (intAnnoStart MOD 400) <> 0)
Then
intTotGiorniMeseStart := 29;
else
intTotGiorniMeseStart := 28;
end if;
ELSIF intMeseStart IN (4,6,9,11) THEN
intTotGiorniMeseStart := 30;
END IF;
intDiffGiorni := intDiffGiorni + intTotGiorniMeseStart;
END IF;
IF ysnNegativo = 0 THEN
intDays_out := intDiffGiorni;
intMonths_out := intDiffMesi;
intYears_out := intDiffAnni;
ELSE
intDays_out := intDiffGiorni * (-1);
intMonths_out := intDiffMesi * (-1);
intYears_out := intDiffAnni * (-1);
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END getAge;
The output result of compilation is "GETAGE Compiled", I think the 01722 error is not caused from an sql syntax error, but probably caused from an invalid or unsupported or 'strange' configuration on nationalization... the fact surprises me that the previous version did not give problems
THANKS SO MUTCH
*/

Similar Messages

  • ORA-01722: Invalid number - error only in Oracle 10g?

    While trying to insert a numeric value into a decimal column, I get this error. Hitherto, my update statements used to look fine.
    Can anyone let me know if this enforcement is specific to Oracla 10g? I am running :
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Thanks in advance for your help!
    Niranjan

    Well, you've a blank space which isn't a number, that's why you have an error.
    Please see the following example to have a default value :
    SQL> create table tutu (id number, text varchar2(10));
    Table created.
    SQL> alter table tutu modify id default 0;
    Table altered.
    SQL> insert into tutu values (' ', 'NoWork');
    insert into tutu values (' ', 'NoWork')
    ERROR at line 1:
    ORA-01722: invalid number
    SQL> insert into tutu values (null,'NullValue');
    1 row created.
    SQL> insert into tutu (text) values ('Default');
    1 row created.
    SQL> insert into tutu values (1,'NonDefault');
    1 row created.
    SQL> select * from tutu;
            ID TEXT
               NullValue
             0 Default
             1 NonDefault
    SQL> Nicolas.
    Message was edited by:
    N. Gasparotto

  • ORA-01722: invalid number error coming in Oracle 10g.

    Hi,
    We are getting the error "ORA-01722: invalid number" while opening a cursor using CURSOR FOR LOOP.
    This error has started coming only after we have migrated to Oracle 10g from Oracle 9i. Earlier the same code used to work properly. And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works.
    Does anybody know about any such bug in Oracle 10g. Our cursor is a parametrized cursor accepting a VARCHAR2 parameter and the value we are passing to it is also character.
    Our database is Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production and is running on UNIX server.

    And also on Oracle 10g, its not happening every time. Sometimes it gives error while sometimes it works. This is typically due to
    a) environment settings that differ from session to session
    b) or more often, data
    The actual error means that Oracle expects a number and is unable to obtain a number from the input (data or SQL or bind variables) supplied. I agree with William that it looks a lot like an implicit TO_NUMBER() conversion failing.
    Why not add a debug exception handler to the code? When that exception occurs, dump the PL/SQL call stack and values of all variables and parameters to a debug/logging table (using an autonomous transaction).

  • Classic ASP - "ORA-01722: invalid number" using OraOLEDB.Oracle driver

    I am working on doing some maintenance updates to a Classic ASP website, and I need to be able to run an insert/update statement for putting values into a lookup table. I am currently running into an "ORA-01722: invalid number" error when trying to use ADO and bind variables for my insert statement.
    Below is an example of a table that I am having problems with:
    CREATE TABLE "MATMGR"."TEST_SWING_TABLE"
    (     "TABLE1_ID" NUMBER(4,0) NOT NULL ENABLE,
         "TABLE2_ID" NUMBER(4,0) NOT NULL ENABLE,
         CONSTRAINT "TEST_SWING_TABLE_PK" PRIMARY KEY ("TABLE1_ID", "TABLE2_ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    Here is some snippet code of the basic functionality I am trying to get to work:
    ''START CODE''
    Dim connDb, cmdDoseInsert
    Set connDb = Server.CreateObject("ADODB.Connection")
    connDb.CursorLocation = adUseClient ' Setup to return RecordSet
    connDb.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source={host};User ID={user id};Password={password}"
    connDb.Open()
    Set cmdDoseInsert = Server.CreateObject("ADODB.command")
    Set cmdDoseInsert.ActiveConnection = connDb
    cmdDoseInsert.CommandType = adCmdText
    cmdDoseInsert.NamedParameters = true ' Set the command object to use named parameters
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.CommandTimeout = 0
    cmdDoseInsert.CommandText = "INSERT INTO TEST_SWING_TABLE (TABLE1_ID, TABLE2_ID) VALUES (:P_TABLE1_ID, :P_TABLE2_ID)"
    cmdDoseInsert.Prepared = true
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE1_ID", adNumeric, adParamInput)
    cmdDoseInsert.Parameters.Append cmdDoseInsert.CreateParameter("P_TABLE2_ID", adNumeric, adParamInput)
    '... START: While Looping
         cmdDoseInsert.Parameters(0).Value = {some numeric value}
         cmdDoseInsert.Parameters(1).Value = {some numeric value}
         cmdDoseInsert.Execute
    '... END: Looping
    ''END CODE''
    What I have been able to find out so far is that there is some type of issue with numeric values getting translated right when sending two and retrieving from Oracle in ASP. So, does anyone have any thoughts on how to resolve this as I would like to use parameterized SQL to improve application performance?
    I am connecting to a developmental server running Oracle 9.2

    Ok, in my slightly larger example I found out that for what ever reason my named parameters are not being enforced, and so I had to make sure that the parameters were in the same order as they appeared in the SQL. To be on the save side, I did this when they were added as well as when I was assigning values to them.
    Can anyone tell me if this is an Oracle issue or a ASP issue?

  • SQL*Loader- Records Rejected - Error on table ORA-01722: invalid number

    Getting the following errors :
    Please tell me where I am going wrong?
    Attached is the log file and snippets of datafile along with the control file !!
    Also please direct me how can i upload 4900 records at one go?
    SQL*Loader: Release 11.1.0.7.0 - Production on Fri Oct 14 03:06:06 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Control File: sample.ctl
    Data File: Cities.csv
    Bad File: Cities.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table CITY, loaded from every logical record.
    Insert option in effect for this table: INSERT
    Column Name Position Len Term Encl Datatype
    ID FIRST * , CHARACTER
    NAME NEXT 35 , ' CHARACTER
    COUNTRYCODE NEXT 3 , ' CHARACTER
    POPULATION NEXT * WHT CHARACTER
    Record 1: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 4: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 5: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 6: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 7: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 8: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 9: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 10: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 11: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 12: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 13: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 14: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 15: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 16: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 17: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 18: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 19: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 20: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 21: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 22: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 23: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 24: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 25: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 26: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 27: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 28: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 29: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 30: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 31: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 32: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 33: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 34: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 35: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 36: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 37: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 38: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 39: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 40: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 41: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 42: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 43: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 44: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 45: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 46: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 47: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 48: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 49: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 50: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    Record 51: Rejected - Error on table CITY, column POPULATION.
    ORA-01722: invalid number
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    Table CITY:
    0 Rows successfully loaded.
    51 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 35840 bytes(64 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 64
    Total logical records rejected: 51
    Total logical records discarded: 0
    Run began on Fri Oct 14 03:06:06 2011
    Run ended on Fri Oct 14 03:06:12 2011
    Elapsed time was: 00:00:06.18
    CPU time was: 00:00:00.03
    my control file (sample.ctl):
    load data infile 'Cities.csv'
    into table city
    fields terminated by ','
    (id integer external,
    name char(35) enclosed by "'",
    countrycode char(3) enclosed by "'",
    population integer external terminated by '\n'
    my datafile (Cities.csv) (it contains 4900 records, but I am showing here just 4 records for ease)
    3830,'Virginia Beach','USA',425257
    3831,'Atlanta','USA',416474
    3832,'Sacramento','USA',407018
    3833,'Oakland','USA',399484
    Thanks in advance!!

    Look that when I change a little bit your datafile as follows
    1,'Kabul','AFG',1780000
    2,'Qandahar','AFG','237500'
    3,'Herat','AFG','186800'  I got the same error (2 last rows rejected for the same error invalid number)
    mhouri > select * from cities;
            ID NAME                                COU POPULATION
             1 Kabul                               AFG    1780000
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Oct 14 10:38:06 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   cities.ctl
    Data File:      cities.dat
      Bad File:     cities.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table CITIES, loaded from every logical record.
    Insert option in effect for this table: INSERT
       Column Name                  Position   Len  Term Encl Datatype
    ID                                  FIRST     *   ,       CHARACTER           
    NAME                                 NEXT    35   ,    '  CHARACTER           
    COUNTRYCODE                          NEXT     3   ,    '  CHARACTER           
    POPULATION                           NEXT     *  WHT      CHARACTER           
    Record 4: Rejected - Error on table CITIES, column ID.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    Table CITIES:
      1 Row successfully loaded.
      3 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                  35840 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         3
    Total logical records discarded:        0
    Run began on Fri Oct 14 10:38:06 2011
    Run ended on Fri Oct 14 10:38:06 2011
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.09Population value within the data file should be a number
    Best regards
    Mohamed Houri

  • Error ODDM  Versión 4.0.0.833 -- java.sql.BatchUpdateException: ORA-01722: invalid number

    Hello,
    I have a ten relational data modeler. When I export a reporting scheme I get the following error:
    java.sql.BatchUpdateException: ORA-01722: invalid number
                    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10296)
                    at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:216)
                    at oracle.dbtools.crest.exports.reports.RSTables.export(RSTables.java:108)
                    at oracle.dbtools.crest.exports.reports.RSRelationalModel.export(RSRelationalModel.java:28)
                    at oracle.dbtools.crest.exports.reports.ReportsHandler.export(ReportsHandler.java:123)
                    at oracle.dbtools.crest.swingui.ControllerApplication$ExportToReportsSchema$1.run(ControllerApplication.java:2055)
    Will I could help with the error?
    Logical data modeler is exported correctly
    Thanks.

    Hi,
    I've logged a bug on this.
    It seems likely that the problem has arisen because one of your tables has a non-integer value for one of its volumetric properties (Minimum, Expected or Maximum volume).
    (If this is the case, then the problem will probably still occur with the DM 4.1 EA1 version.)
    David

  • Ora-01722 invalid number error in oracle 11g working fine in 9i

    Problem : I am getting ora-01722 invalid number i below mention code.Some times the procedure runs successfully but sometimes it gives error for the same parameters.The code runs fine in 9i Database.Help needed ASAP.
    CODE :
    PROCEDURE Get_HQ_for_Manager(p_person_id IN NUMBER
    ,p_maximum_level IN NUMBER
    ,io_cursor OUT dynamic_cursor) IS
    v_session_id NUMBER;
    BEGIN
    /* Create the Employee hierarchy */
    v_session_id := AMHR_GENIE_APIS.GET_SESSION_ID(p_person_id);
    OPEN io_cursor FOR
    SELECT decode(t.org_information3, 402, 'India - DVCI HR HQ', ou.NAME) HQ_Name,
    t1.org_information2 HQ_Email
    FROM hr.hr_organization_information t,
    hr_all_organization_units ou,
    hr_organization_information t1,
    (SELECT *
    FROM AMDOCS.AMHR_EMP_HIERARCHY_TMP B
    WHERE B.MNG_PERSON_ID = P_PERSON_ID
    AND B.SESSION_ID = V_SESSION_ID
    AND b.hier_level <= p_maximum_level) hier,
    per_all_people_f p_emp,
    hr_locations_all l
    WHERE t.organization_id = 342
    AND t.org_information_context = 'AMHR_COUNTRY_BY_HQ'
    AND t.org_information2 + 0 = ou.organization_id
    AND t.org_information1 = l.country
    AND t.org_information2 = t1.organization_id
    AND t1.org_information_context = 'AMHR_HQ_EMAIL_LIST'
    AND t1.org_information1 = 'HQ'
    AND p_emp.person_id = hier.person_id
    AND trunc(SYSDATE) + 0 BETWEEN p_emp.effective_start_date AND
    p_emp.effective_end_date
    AND p_emp.business_group_id <> 0
    AND (hier.ASSIGNMENT_TYPE = 'C' OR hier.ASSIGNMENT_TYPE = 'E')
    AND hier.location_id = l.location_id(+)
    AND hier.person_id <> p_person_id
    UNION
    SELECT 'India - ABSI HR HQ' HQ_Name, '[email protected]' HQ_Email
    FROM hr.hr_organization_information t,
    hr_all_organization_units ou,
    (SELECT *
    FROM amdocs.AMHR_EMP_HIERARCHY_TMP a
    WHERE a.mng_person_id = p_person_id
    AND a.session_id = v_session_id
    AND a.hier_level <= p_maximum_level) hier,
    per_all_people_f p_emp,
    hr_locations_all l
    WHERE t.organization_id = 342
    AND t.org_information_context = 'AMHR_COUNTRY_BY_HQ'
    AND t.org_information2 = ou.organization_id
    AND t.org_information1 = l.country
    AND p_emp.person_id = hier.person_id
    AND trunc(SYSDATE) + 0 BETWEEN p_emp.effective_start_date AND
    p_emp.effective_end_date
    AND p_emp.business_group_id <> 0
    AND (hier.ASSIGNMENT_TYPE = 'C' OR hier.ASSIGNMENT_TYPE = 'E')
    AND hier.location_id = l.location_id(+)
    AND t.org_information3 = 402
    AND hier.person_id <> p_person_id;
    END Get_HQ_for_Manager;

    Hi There,
    I'm having trouble seeing anything spatial in your procedure. Since this forum is for "Discussions related to Oracle Spatial, Locator, GeoRaster, Topology, Network Data Model, GeoCoder, Router, Spatial Web Services and 3D Data Model. Recommended reading: Pro Oracle Spatial" you might have better luck asking your question on one of the other forums:
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    A line number for the error would help too.
    Best of luck,
    Matt

  • Sdo_util error code ORA-01722: invalid number in Oracle 11g R2

    Dear every one,
    Greetings.
    Hi. As mentioned in the title, I met a strange problem when I was trying to extrude the 2D objects into 3D. The error code says ORA-01722: invalid number. Then, to eliminate the possibility that the code would be wrong, I took the sample code from the ORACLE document about sdo_util.extrude
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e11830/sdo_util.htm#SPATL1230
    the same error appeared. However, I tested the same code through the SQLDeveloper in Linux (where the 11g R2 is located) to perform the same thing in my other database in windows server 2008 where 11g R1 was installed. Works fine.
    Is there any particular configuration I should do or I have done wrong. Any one knows, please help. Thanks.
    Jun

    Hi,-
    Please use w/o 'FALSE' parameter for 11.2.0.1.0 release:
    SELECT SDO_UTIL.EXTRUDE(
    SDO_GEOMETRY(
    2003,
    null,
    null,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(5, 1,8,1,8,6,5,7,5,1)),
    SDO_NUMBER_ARRAY(0,0,0,0,0),
    SDO_NUMBER_ARRAY(5,10,10,5,5),
    0.005) from dual;
    In 11.1.0.7 release, you need to use 'FALSE' parameter:
    SELECT SDO_UTIL.EXTRUDE(
    SDO_GEOMETRY(
    2003,
    null,
    null,
    SDO_ELEM_INFO_ARRAY(1,1003,1),
    SDO_ORDINATE_ARRAY(5, 1,8,1,8,6,5,7,5,1)),
    SDO_NUMBER_ARRAY(0,0,0,0,0),
    SDO_NUMBER_ARRAY(5,10,10,5,5),
    'FALSE',
    0.005) from dual;
    We fixed this confusion for the next releases so that both interfaces can be used
    and 'FALSE' parameter will be ignored.
    Best regards
    baris

  • ORA-01722: invalid number caused with SQL using bind variable

    Hi,
    Im am hoping that someone can help me resolve a problem thats only just services and is being experienced on quite a few clients.
    our application uses C++ exes and makes OCI calls to the database.
    what has happened in the last week or so, there has been quite a few invalid number errors being received on a prod server but strangly enough we cannot reproduct the error on our UAT system.
    The sql is using bind variables and the information in the trace file shows that a number is being used for the bind variable, here is an extract from one trace file:
    for some schemas, the bind variable value is some currupted value, i think:
    oacdty=01 mxl=32(21) mxlc=00 mal=00 scl=00 pre=00
    oacflg=03 fl2=1206001 frm=01 csi=178 siz=32 off=0
    kxsbbbfp=9a8d62b8 bln=32 avl=03 flg=05
    value="Â*d"
    but on another schema, the value used is:
    Bind#0
    oacdty=01 mxl=32(32) mxlc=00 mal=00 scl=00 pre=00
    oacflg=03 fl2=1206001 frm=01 csi=178 siz=32 off=0
    kxsbbbfp=c5f92718 bln=32 avl=04 flg=05
    value="2101"
    however both produce invalid number errors.
    I am relatively inexperienced as a DBA so would appreciate as much help as i can get.

    Could you post your sql statement that is being run.
    Also post the query plan from your uat system and the one from your production system (They are likely to be different)
    You can export the stats from your production system and run them in your uat system. If you do this, then the execution plans should be the same on both systems(dbms_stats) and if you have the same data you should run into the same problem on uat as in production.
    The root cause of this type of problem is having a column in a table which holds values which are of different datatypes. Typically there is a condition in the where clause which indicates that for example only numeric columns should be retrieved from the column which holds multiple data types. However since the optimizer is free to rewrite the query any way it sees fit, (It does not necessarily execute in the order the sql statement is written) it does not filter this data first, and therefore you hit non-numeric data and run into the invalid number error.
    You can use little techniques like using an inline view with rownum in the column list, to perform the first filter. This ensures that the inline view is executed on its own, rather than being merged (materialized) with the rest of the query.
    A quick temporary solution is to use a comparison like to_char(column_name) = variable
    Make sure your comparisons are correct and it doesn't negatively impact on performance of the query

  • Getting ORA-01722 - Invalid number error in SQL

    I am trying to run a query like
    SELECT NVL (ic.industryclassdesc, 'NULL') industryclass,
    NVL (hci.updated_by, 'NULL') updatedby,
    NVL (hci.operation, 'NULL') operation,
    hci.audittimestamp audittimestamp
    FROM xxx_company_inxxxx hci, xxx_industry ic
    WHERE hci.company_id = 9079496
    AND ic.industryclassid = hci.industryclass_id
    ORDER BY DECODE (hci.operation, 'D', 'X', hci.operation), hci.audittimestamp
    And getting the error - ORA-01722 - Invalid number.
    But the columns - ic.industryclassid, hci.industryclass_id and also hci.company_id are 'Number' datatype and also not nullable.
    Can anyone suggest a approch

    SELECT NVL (ic.industryclassdesc, 'NULL')
    > industryclass,
    NVL (hci.updated_by, 'NULL') updatedby,
    NVL (hci.operation, 'NULL') operation,
    hci.audittimestamp audittimestamp
    xxx_company_inxxxx hci, xxx_industry ic
    WHERE hci.company_id = 9079496
    AND ic.industryclassid = hci.industryclass_id
    BY DECODE (hci.operation, 'D', 'X', hci.operation),
    hci.audittimestamp
    And getting the error - ORA-01722 - Invalid number.
    Do not enter 'String' in the nvl function,if the column is number datatype,
    venki
    null

  • Oracle/sql developer error message....

    Hi All,
    I have this sql and get the error: Please help! Urgent! Thank you...thank you....
    ORA-01722: invalid number
    01722. 00000 - "invalid number"
    *Cause:   
    *Action:
    WITH
    REPORTDATE AS
    (SELECT MAX(MMR_DATE) AS RPT_DATE
    FROM RESULTS.MMR_MONTH_DEALERS
    WHERE STAGE_ID >= 12 AND STAGE_ID <= 15
    ALLACTIONS AS --ACTIONS
    (SELECT
    AH.PART_DEALERID AS PART_DEALERID,
    results.gbst.get_element(AH.action_type2gbst_elm) AS ACT_TYPE,
    results.gbst.get_element(AH.action_subtype2gbst_elm) AS ACT_SUBTYPE,
    results.results_tools.get_action_group_name(AH.action_summ2act_grp) AS ACT_HIST2ACT_GRP,
    AH.total_solicited
    -- AH.ACT_TYPE AS "ACT_TYPE",
    -- AH.ACT_SUBTYPE AS "ACT_SUBTYPE",
    -- AH.ACT_HIST2ACT_GRP AS "ACT_HIST2ACT_GRP"
    FROM
    RESULTS.TABLE_ACTION_SUMM AH --SA.TABLE_ACTION_HISTORY AH
    WHERE
    AH.SUMMARY_DATE >= (SELECT RPT_DATE FROM REPORTDATE)
    AND AH.SUMMARY_DATE < ADD_MONTHS((SELECT RPT_DATE FROM REPORTDATE),1)
    -- AH.ACTION_COMP__DATE >= (SELECT RPT_DATE FROM REPORTDATE)
    -- AND AH.ACTION_COMP__DATE < ADD_MONTHS((SELECT RPT_DATE FROM REPORTDATE),1)
    -- AND AH.ACT_RESULT = 'ACTION_PROCESSED'
    and results.gbst.get_element(AH.action_type2gbst_elm)in ('EMAIL','LETTER','LETTEREMAIL','PHONE')
    AND AH.PART_DEALERID = '00333' --(AH.PART_DEALERID = '{?Dealer}' or '{?Dealer}' = 'ALL')
    ORDER BY
    PART_DEALERID
    GRPACT AS --ACTIONS CATEGORIZED
    (SELECT
    PART_DEALERID AS PART_DEALERID,
    ACT_TYPE AS ACT_TYPE,
    ACT_SUBTYPE AS ACT_SUBTYPE,
    ACT_HIST2ACT_GRP AS ACT_HIST2ACT_GRP,
    COUNT(*) AS CNT
    FROM
    ALLACTIONS -- RESULTS.TABLE_ACTION_SUMM
    GROUP BY
    PART_DEALERID,
    ACT_TYPE,
    ACT_SUBTYPE,
    ACT_HIST2ACT_GRP
    ORDER BY
    PART_DEALERID
    ACT_HIST AS --ACTIONS IDENTIFIED
    (SELECT
    GA.PART_DEALERID AS PART_DEALERID,
    GA.ACT_TYPE AS ACTION_TYPE,
    GA.ACT_SUBTYPE AS ACTION_SUBTYPE,
    AGL.GROUP_NAME AS ACTION_GROUP,
    GBST.GET_ELEMENT(ACL.MEDIA_TYPE2GBST_ELM) AS MEDIA_TYPE,
    GBST.GET_ELEMENT(ACL.ACTION_STAGE2GBST_ELM) AS STAGE,
    GA.CNT AS CNT_ACTION
    FROM
    GRPACT GA -- RESULTS.TABLE_ACTION_SUMM
    INNER JOIN SA.TABLE_ACTION_GROUP_LIST AGL
    ON GA.ACT_HIST2ACT_GRP = AGL.OBJID
    INNER JOIN RESULTS.ACTION_CONTROL_LIST ACL
    ON AGL.OBJID = ACL.ACT_CONTROL_LIST2ACT_GRP
    AND GA.ACT_SUBTYPE = GBST.GET_ELEMENT(ACL.ACT_SUBTYPE2GBST_ELM)
    AND GA.ACT_TYPE = GBST.GET_ELEMENT(ACL.ACT_TYPE2GBST_ELM)
    ACTCNTS AS --ACTIONS SUMMED UP
    (SELECT
    PART_DEALERID,
    SUM("H") AS "H", SUM("I") AS "I", SUM("J") AS "J", SUM("K") AS "K",
    SUM("L") AS "L", SUM("M") AS "M", SUM("N") AS "N", SUM("O") AS "O",
    SUM("H") + SUM("I") + SUM("J") + SUM("K") +
    SUM("L") + SUM("M") + SUM("N") + SUM("O") AS "P",
    SUM("Q") AS "Q", SUM("R") AS "R", SUM("S") AS "S", SUM("T") AS "T",
    SUM("T2") AS "T2", SUM("U") AS "U", SUM("V") AS "V", SUM("W") AS "W",
    SUM("Q") + SUM("R") + SUM("S") + SUM("T") +
    SUM("T2") + SUM("U") + SUM("V") + SUM("W") AS "X",
    SUM("Y") AS "Y", SUM("Z") AS "Z", SUM("AA") AS "AA",
    SUM("Y") + SUM("Z") + SUM("AA") AS "AB",
    SUM("AD") AS "AD", SUM("AE") AS "AE", SUM("AF") AS "AF", SUM("AG") AS "AG",
    SUM("AH") AS "AH", SUM("AI") AS "AI",
    SUM("AD") + SUM("AE") + SUM("AF") + SUM("AG") +
    SUM("AH") + SUM("AI") AS "AJ"
    FROM
    (SELECT
    PART_DEALERID AS "PART_DEALERID",
    CASE WHEN ACTION_GROUP = 'THANKS' AND ACTION_TYPE = 'LETTER' THEN
    CNT_ACTION ELSE 0 END AS "H",
    CASE WHEN ACTION_GROUP = 'VOW' AND ACTION_TYPE = 'LETTER' THEN
    CNT_ACTION ELSE 0 END AS "I",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'LETTER'
    AND STAGE = 'Reminder' THEN CNT_ACTION ELSE 0 END AS "J",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'LETTER'
    AND ACTION_SUBTYPE LIKE '%F/U%' AND
    (STAGE = 'Non-Responder' OR STAGE = 'Follow-Up') THEN
    CNT_ACTION ELSE 0 END AS "K",
    CASE WHEN (ACTION_GROUP = 'AFTER_SERVICE' OR ACTION_GROUP = 'DECL')
    AND ACTION_TYPE = 'LETTER' THEN
    CNT_ACTION ELSE 0 END AS "L",
    CASE WHEN ACTION_GROUP = 'SEASONAL' AND ACTION_TYPE = 'LETTER' THEN
    CNT_ACTION ELSE 0 END AS "M",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'LETTER'
    AND STAGE = 'Bring-em-back' THEN CNT_ACTION ELSE 0 END AS "N",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'LETTER'
    AND STAGE = 'Last Chance' THEN CNT_ACTION ELSE 0 END "O",
    CASE WHEN ACTION_GROUP = 'THANKS' AND ACTION_TYPE = 'EMAIL' THEN
    CNT_ACTION ELSE 0 END AS "Q",
    CASE WHEN ACTION_GROUP = 'VOW' AND ACTION_TYPE = 'EMAIL' THEN
    CNT_ACTION ELSE 0 END AS "R",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'EMAIL'
    AND STAGE = 'Reminder' THEN CNT_ACTION ELSE 0 END AS "S",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'EMAIL'
    AND ACTION_SUBTYPE LIKE '%F/U%' AND
    (STAGE = 'Non-Responder' OR STAGE = 'Follow-Up') THEN
    CNT_ACTION ELSE 0 END AS "T",
    CASE WHEN ACTION_GROUP = 'AFTER_SERVICE' AND ACTION_TYPE = 'EMAIL' THEN
    CNT_ACTION ELSE 0 END AS "T2",
    CASE WHEN ACTION_GROUP = 'SEASONAL' AND ACTION_TYPE = 'EMAIL' THEN
    CNT_ACTION ELSE 0 END AS "U",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'EMAIL'
    AND STAGE = 'Bring-em-back' THEN CNT_ACTION ELSE 0 END AS "V",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'EMAIL'
    AND STAGE = 'Last Chance' THEN CNT_ACTION ELSE 0 END "W",
    CASE WHEN ACTION_GROUP = 'MAINT' AND MEDIA_TYPE = 'Dynamic Message'
    AND STAGE = 'Pre-Reminder' THEN CNT_ACTION ELSE 0 END AS "Y",
    CASE WHEN ACTION_GROUP = 'THANKS' AND MEDIA_TYPE = 'Dynamic Message'
    AND ACTION_TYPE = 'PHONE' THEN CNT_ACTION ELSE 0 END AS "Z",
    CASE WHEN ACTION_GROUP = 'VOW' AND MEDIA_TYPE = 'Dynamic Message'
    AND ACTION_TYPE = 'PHONE' THEN CNT_ACTION ELSE 0 END AS "AA",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'PHONE'
    AND STAGE = 'Reminder' THEN CNT_ACTION ELSE 0 END AS "AD",
    CASE WHEN ACTION_GROUP = 'MAINT' AND ACTION_TYPE = 'PHONE'
    AND ACTION_SUBTYPE LIKE '%F/U%' AND
    (STAGE = 'Non-Responder' OR STAGE = 'Follow-Up') THEN
    CNT_ACTION ELSE 0 END AS "AE",
    CASE WHEN ACTION_GROUP = 'CSI_SALES' AND ACTION_TYPE = 'PHONE'
    AND ACTION_SUBTYPE = 'NEWVEH' THEN CNT_ACTION ELSE 0 END AS "AF",
    CASE WHEN ACTION_GROUP = 'VOW' AND ACTION_TYPE = 'PHONE'
    AND ACTION_SUBTYPE = 'VOW_SVY' THEN CNT_ACTION ELSE 0 END AS "AG",
    CASE WHEN ACTION_GROUP = 'CSI_SERVICE' AND ACTION_TYPE = 'PHONE'
    AND ACTION_SUBTYPE = 'CP' THEN CNT_ACTION ELSE 0 END AS "AH",
    CASE WHEN ACTION_GROUP = 'CSI_SERVICE' AND ACTION_TYPE = 'PHONE'
    AND ACTION_SUBTYPE = 'WAR' THEN CNT_ACTION ELSE 0 END AS "AI"
    FROM
    ACT_HIST
    GROUP BY PART_DEALERID
    SELECT
    BO.ORG_ID AS "E", --Dealer ID
    BO.X_NGR_MFG_DLR_CODE AS "F", --Mfg ID
    BO.NAME AS "G", --Dealer Name
    ACTCNTS."H" AS "H", --Thank You Mailers
    ACTCNTS."I" AS "I", --Visiting Owners Mailers
    ACTCNTS."J" AS "J", --Reminder Mailers
    ACTCNTS."K" AS "K", --Non-Responder Mailers
    ACTCNTS."L" AS "L", --ASTY Mailers
    ACTCNTS."M" AS "M", --Seasonal
    ACTCNTS."N" AS "N", --Bring-em-Back Mailers
    ACTCNTS."O" AS "O", --Chance Mailers
    ACTCNTS."P" AS "P", --Total Mailers
    ACTCNTS."Q" AS "Q", --Thank You Emails
    ACTCNTS."R" AS "R", --Visiting Owner Emails
    ACTCNTS."S" AS "S", --Reminder Emails
    ACTCNTS."T" AS "T", --Non-Responder Emails
    ACTCNTS."T2" AS "U", --ASTY Emails
    ACTCNTS."U" AS "V", --Seasonal Emails
    ACTCNTS."V" AS "W", --Bring-em Back Emails
    ACTCNTS."W" AS "X", --Chance Emails
    ACTCNTS."X" AS "Y", --Total Emails
    ACTCNTS."Y" AS "Z", --Pre-Reminder Dynamic Msg
    ACTCNTS."Z" AS "AA", --Thank You Dynamic Msg
    ACTCNTS."AA" AS "AB", --Visiting Owner Dynamic Msg
    ACTCNTS."AB" AS "AC", --Total Dynamic message
    ACTCNTS."AD" AS "AD", --Reminder Phone Contacts
    ACTCNTS."AE" AS "AE", --Non-Responder Phone Contacts
    ACTCNTS."AF" AS "AF", --New Vehicle Survey
    ACTCNTS."AG" AS "AG", --Visiting Owner Survey
    ACTCNTS."AH" AS "AH", --After Service CP Survey
    ACTCNTS."AI" AS "AI", --After Service WP Survey
    ACTCNTS."AJ" AS "AJ", --Total Count of Phone Contacts     
    SYSDATE
    FROM
    SA.TABLE_BUS_ORG BO
    LEFT OUTER JOIN ACTCNTS
    ON BO.ORG_ID = ACTCNTS.PART_DEALERID
    WHERE BO.ORG_ID = '00333'--(BO.ORG_ID = '{?Dealer}' or '{?Dealer}' = 'ALL')
    ORDER BY
    BO.ORG_ID;

    1 - This is not a free support forum (see 'Terms and conditions' at the bottom of each page)
    2 - In a forum of volunteers there is no such thing as 'urgent'. If it is really urgent visit My Oracle Support (paid service) and submit a SR
    3 - The code you posted is fully unreadable. You also didn't provide table definitions. The location of the ORA-1722 is unclear.
    Do you really think anyone is going to look at the junk you posted? If you think so, your expectations are incorrect.
    Sybrand Bakker
    Senior Oracle DBA

  • How to print a something in oracle sql developer

    Hello all
    Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
    thank u in advance.
    best

    1003209 wrote:
    Hello all
    Do you know How to print a something in oracle sql developer? i mean for example in the query we write something, (offcourse i dont mean comments)
    thank u in advance.
    bestDBMS_OUTPUT()

  • Oracle SQL Developer 1.0 is easy to install and use, and is portable

    I have tried the latest version of Oracle SQL Developer 1.0 and would like to share my experience of using it.
    Installation of Oracle SQL Developer 1.0
    Download from
    http://www.oracle.com/technology/software/products/sql/index.html?_template
    Unzip the Oracle SQL Developer for Windows (55.8 MB) to C:\sqldeveloper (103MB)
    Advantages: The unzip folder can be your removable disk and you can access Oracle
    anywhere provided that there is an Internet connection to Oracle Server.
    Unzip sqldeveloper-1557.zip to C:\ with folder name;
    double-click on sqldeveloper.exe in c:\sqldeveloper
    Click on [No]
    Tick all check boxes
    Click on [OK]
    Right-click on Connections, New
    Database Connection…
    Enter User name: SCOTT
    Password: TIGER
    Hostname: 127.0.0.1 (or IP of your Oracle Server on the Internet)
    SID: orcl
    If you want to connect to local Oracle user SYS,
    Enter User name: sys
    Password: ora10g_manager_password
    Hostname: 127.0.0.1
    SID: orcl
    Select Role: SYSDBA
    Click on [Connect]
    Right-click on Tables, Create Table
    Click on [Add Column]
    Select Type: NUMBER for COLUMN2
    Click on [OK]
    Table1 is created
    Click on TABLE1, click on “Data” tab
    Click on the “Green Plus” icon to insert record
    Click on “Commit Changes” icon
    Click on “DBConnection1” tab
    Enter: select * from table1;
    Click on “Execute Statement (F9)” icon
    To exit: Click on File, Exit

    Have you noticed that there's a forum dedicated to SQL Developer?
    C.

  • Copying from Oracle SQL Developer to Microsoft Word doesn't retain formatting (Font,colors etc)

    Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
    visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste Settings

    Hi,
    I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
    Then, I recommend we check the Word settings:
    1. Go to: Options > Advanced > Cut, Copy and Paste
    2.  Make sure that Use smart cut and paste is ticked. 
    3. Click the Settings button next to this option
    4. Make sure that Smart Style
    Behavior is checked.
    If the issue still exists, please upload a sample through One Drive, I want to test.
    Regards,
    George Zhao
    TechNet Community Support

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

Maybe you are looking for