Toad error

Hi all
I'm trying to connect to database through toad getting an error
i.e
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
if any one knows please let me know.
Thanks & Regards,
Ramesh

ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

Similar Messages

  • Toad error ORA-01026: multiple buffers of size 4000 in the bind list

    Hi All
    when iam running explain plan in Toad version 11.5.1.2 the below error coming,
    ORA-01026: multiple buffers of size > 4000 in the bind list
    i have checked the all possible solutions provided in forums but no luck
    I hav changed NLS_LANG parameter in registry for all ORACLE_HOMES but no luck.
    Please any solution share us.
    Thanks
    Shaik

    Have you referred this thread
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=596588
    Also you can see MOS Document 18617.1

  • TOAD ERROR : OCI version 10.2.0.1.0 is not supported

    Hi all,
    Previously i have oracle 9i in my system, now i installed oracle 10.2.., after this when i am trying to retrieve data from tables im getting this error "OCI version 10.2.0.1.0 is not supported". Please help me how can i solve this problem.
    Thanks in advance

    You need deinstall the old version of toad and install version higher than V 8.5 which will fix the issue. Because the default home is read by Toad sometimes reinstallation will fix the issue.
    --kccrga                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Toad Error Could not locate oci dll

    Hi,
    I have edit my tnsnames file as follows:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    Now when i try to connet to the database using SCOTT/TIGER it gives me error initialization error could not locate OCI dll .
    Please can anyone help....

    Hi Vishal
    I am using Toad 7.6 i am able to connect with scott/tiger with my database orcl.
    These are my Environment tabs. Do i have to change anything here or add anything.
    TNS_ADMIN C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN
    PERL5LIB C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib;C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86;C:\oracle\product\10.2.0\db_1\perl\site\5.8.3;C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;C:\oracle\product\10.2.0\db_1\sysman\admin\scripts;

  • TOAD error : Missing close tag in element Container.

    Hi ,
    when i try to open TOAD 8.6.1.0 fo oracle data base login ,
    It gives the error " Missing close tag in element Container", further i am not able to login and i have to forcefully kill the TOAD session , Please help me in this regard.
    Thanks & Rgds
    Ashok

    Hi;
    TOAD is a product from Quest,not from Oracle. It may be better you ask such a question in an appropriate TOAD forum:
    http://toadfororacle.com/index.jspa
    I totaly agree to Werner . You can post upper related link about your issue, by the way you can use Oracle sql_developer instread of toad.
    For more details please check:
    http://www.oracle.com/technology/products/database/sql_developer/index.html#news
    Regard
    Helios

  • Toad Error after installed Oracle Work Flow Builder

    Hi,
    I have using Toad 9.6.1 version. I installed newliy Oracle Work Flow Bulider 10g. After installed when i trying to open Toad it is giving Access Vioalation Error.
    Please advice what may be the reason and how to correct it.
    Thanks

    Hi,
    Did you use exsisiting oracle_home while installing workflow builder? if yes then may be reinstallation of toad is the soluiton.
    Is toad throwing error at startup or when you fire any query? and what is complete error message...
    Thanks,
    JD

  • Toad error when installing

    hi am installing toad 10.5.1 in window 7 am geting the following error when installing
    the following product require .Net Framework 2.1 and will not be insattled can someone help where can i get the correct .Net Framework for oracle toad

    Pl post this in the TOAD forums - http://toadfororacle.com/forumindex.jspa?categoryID=649
    HTH
    Srini

  • Toad Error - Cannot load OCI DLL: C:\Oracle\instantclient_11_1\oci.dll

    Hello All,
    Help needed to fix this error.
    We are getting the below error from Toad after fresh install on Windows 7 64 Bit.
    Toad for Oracle Base
    Version: 10.6.1.3
    Cannot load OCI DLL: C:\Oracle\instantclient_11_1\oci.dll
    We are using the Oracle Instant Client (instantclient-basic-nt-11.2.0.2.0).
    We are able to connect to the database from the command line successfully, but when we tried to launch the Toad and connect it we are getting the above error.
    How do we fix this issue?
    Thanks in advance.
    Sandeep S

    mseberg wrote:
    So is this a Toad issue or an Oracle client issue?More like a general software or programming "issue". If Toad (or other program) is 32-bit, then loaded libraries (e.g. Oracle Client dll's) needs to be 32-bit.
    I'm sure this is documented in requirements for Toad. See e.g. [url http://toadfororacle.com/servlet/KbServlet/download/4264-102-12585/10.6_ReleaseNotes.htm#SystemRequirements]Toad 10.6 Release notes.
    Edited by: orafad on Aug 10, 2011 2:35 AM

  • TOAD Error: oci.dill

    I installed Oracle 11gR1 64 bit in Win7 64bit OS
    Toad 9.6
    I able to connect to the database from sqlplus and cmd promt but when i am trying to connect from TOAD(9.6) it is giving oci.dill error
    Please do needful
    Thanks,

    Handle:      Nano_4612219
    Status Level:      Newbie
    Registered:      Nov 2, 2009
    Total Posts:      77
    Total Questions:      34 (27 unresolved)
    so many questions & so few answers.
    I able to connect to the database from sqlplus and cmd promt but when i am trying to connect from TOAD(9.6) it is giving oci.dill errorso Oracle works & TOAD has problem.
    Does not this indicate a problem with TOAD & should be posted to TOAD forum; & not here?

  • Connecting to vmware database using TOAD on windows7(client machine) issue?

    hi
    10gR2 installed on OEL4.2(VMWARE) on windows7 HOST. Please let me know how to connect to database installed oel4.2(vmware) on windows7 using the TOAD. as i downloaded the oracle10g client about 35MB and unzipped. it got all class files and then moved this to C:\ folder on windows machine and set the environment variables to the include the path of oracle client and also created the tnsnames.ora in instantclient folder.
    i can able to ping to vmware machine from windows and viceversa and listener and tnsnames are running at the database side. When i am trying to connect to database using TOAD or pl/sql developer its giving error.
    pl/sql developer error:
    Oracle client nor properly installed
    OracleHomekey:
    Oracledir:
    TOAD Error:
    cannot find OCI.dll
    in the instantclient folder i have OCI.dll but still giving the error
    Please give some suggestions or links to solve this error..
    regards!!
    vams
    oracle apps dba

    804369 wrote:
    hi
    10gR2 installed on OEL4.2(VMWARE) on windows7 HOST. Please let me know how to connect to database installed oel4.2(vmware) on windows7 using the TOAD. as i downloaded the oracle10g client about 35MB and unzipped. it got all class files and then moved this to C:\ folder on windows machine and set the environment variables to the include the path of oracle client and also created the tnsnames.ora in instantclient folder.
    i can able to ping to vmware machine from windows and viceversa and listener and tnsnames are running at the database side. When i am trying to connect to database using TOAD or pl/sql developer its giving error.
    pl/sql developer error:
    Oracle client nor properly installed
    OracleHomekey:
    Oracledir:
    TOAD Error:
    cannot find OCI.dllgo post TOAD problem in TOAD forum; not here

  • (S41) Expecting:..... Error

    Hello everybody
    I've got a very strange problem here. Goal of my application is to generate stored procedures based on my own custom metadata that will retrieve data from an xml file into a regulare db table.
    So I've got a procedure that generates this and this works allright when I just display the ddl statement it's perfect. however when I try to do execute immediate v_sql_statement the created stored procedure is invalid. It has following error:
    (S41) Expecting: , . ; @ AS CONNECT CROSS FULL GROUP HAVING identifier INNER INTERSECT JOIN LEFT MINUS NATURAL ORDER PARTITION RETURN RETURNING RIGHT SAMPLE START SUBPARTITION UNION VERSIONS WHERE.
    Even stranger is that when I recompile the procedure in toad without making any changes at all to the code the error disappears.
    Now I was thinking this maybe was a toad error so I tried to do the same in sqlplus, with the same result. It actually says "succes with compilation errors".
    When I just copy paste the generated statement in procedure editor everything is generated correctly, without any error so I don't have any syntax error.
    Here's the generated ddl statement (this is executed with the executed immediate command in my package).
    CREATE OR REPLACE PROCEDURE RT_CD_STG_CD (pin_sequence IN rt_message_history.sequence%type)
    IS
    /* PROCEDURE NAME: RT_CD_STG_CD
    /* GENERATED: 09-JAN-2008 15:38:21
    /* ++ MAPPING BETWEEN: ++
    /* CD version: 1
    /* and STG_CD
    BEGIN
    INSERT INTO STG_CD
    ( title
    , artist
    , website
    , Description
    SELECT
    Title
    , Artist
    , Website
    , upper(description)
    FROM RT_MESSAGE_HISTORY Q,
    XMLTABLE ( '/CD' PASSING Q.MESSAGE_BODY
    COLUMNS
    Title VARCHAR2(50) PATH '/CD/Title'
    , Artist VARCHAR2(50) PATH '/CD/Artist'
    , Website VARCHAR2(50) PATH '/CD/Website'
    Description VARCHAR2(50) PATH '/CD/Description'
    ) xml;
    END RT_CD_STG_CD;
    Any help is welcome!

    Hi,
    remove the slash
    SQL> drop procedure sub_proc;
    Procedure dropped.
    SQL> create or replace package test_proc as
      2    procedure proc;
      3  end test_proc;
      4  /
    Package created.
    SQL> create or replace package body test_proc as
      2   procedure proc as
      3  begin
      4    execute immediate q'[create or replace procedure sub_proc(p_id number)5 is begin dbms_output.put_line('Hello!'); end; <b>--no slash</b>]';  6    execute immediate 'begin sub_proc(:p1); end;' using 1;
      7  end proc;
      8  end test_proc;
      9  /
    Package body created.
    SQL> set serveroutput on;
    SQL> exec test_proc.proc;
    Hello!                                                                         
    PL/SQL procedure successfully completed.

  • Toad.. Out Of Memory

    I tried to export large amount of data (1.5 GB) to a text file from Toad 9.0. The Toad errors out "Out of memory".Oracle version 10g
    Please Suggest me a solution.
    Thanks again.

    Although this isn't a Toad forum, I'll take pity on you: I'm not sure if this option exists in 9.0 or not, but on the Save As screen, if there's an option called "Display all results in grid" untick that.

  • ORA-14189: this physical attribute may not be specified for an index subpar

    Hi,
    I have many partition table and their subpartition and also I create index partition ans index subpartition.
    I moved partition table another new tablespace and then when I rebuild partition indexes I am getting below error.
    ORA-14189: this physical attribute may not be specified for an index subpartition
    I coulsn't understand the problem and I also not find a answer google.
    Details:
    ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP148ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP1ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP21ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP41ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP61ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP62ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP63ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP64ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP122ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP123ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP124ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP125ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP201ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP206ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP207ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP208ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP261ALTER INDEX ADMINISTRATOR.DX_IND REBUILD
    SUBPARTITION SYS_SUBP262
    Error at line 2
    ORA-14189: this physical attribute may not be specified for an index subpartition
    db version: 9.2.0.8
    Could you any body help me please how can I solve this problem.
    thanks and regards,

    Hi Justen,
    I just run rebuild the index with TOAD. So just I copied toad error output so I haven't written it and also in my computer there is a space. I think when I paste the output here, space gone out.
    Anyway, I found workaround solution. First I am taking the script from toad then drop and recreate the index. But this takes very long time, only one index takes 1 hour for recreation. so I have so many index like this and If I calculate all indexes takes 3 days for recreation again.
    any other solution is there?
    thanks and regards

  • ORA – 01031:, ORA – 06512:

    Hello All,
    I am writing a security package with a procedure.
    I got a following TOAD Error message.
    ORA – 01031: insufficient privileges
    ORA – 06512: at “SYS.DBMS_SESSION”, line 90
    ORA – 06512: at “PRJ.PRJ_SEC_PKG”, line 22
    ORA – 06512: at line 2
    What I am doing wrong?
    Thanks,
    NYC

    Hi,
    Capital of World  wrote:
    Thank Guru Frank Kulash'
    When I comment out following couple line, no more error.
    DBMS_SESSION.SET_CONTEXT(‘PRJ_CTX’, ‘USER_NAME’, ‘V_PRJ_USERNAME’);
    DBMS_SESSION.SET_CONTEXT(‘PRJ_CTX’, ‘USER_ROLE’, ‘V_PRJ_ROLE’);
    If this involves set_context, is this the package named in the CREATE CONTEXT command?
    According to my knowledge, answer is NO.Then that's the problem, unless this procedure is being called from that package.
    Set_context can only be called by the trusted package. It can be called indirectly (that is, the trusted package can
    (1) call set_context itself,
    (2) call something else, that calls set_context,
    (3) call something else, which calls yet another procedure, which calls set_context
    ... and so on.
    The trusted package must always be in the calling stack when set_context is called.
    Post the results of "SELECT * FROM all_context WHERE namespace = 'X';" where X is the namespace in question.
    Please tell me more about the namespace.[CREATE CONTEXT in the SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5002.htm#sthref5947] is a good place to start.
    Are all the privileges you need granted directly to the package owner, and not just to some role?
    How I can check it?Query the data dictionary view all_tab_privs.
    In the case of EXECUTE privileges, the table_name column will contain the package (or function, or procedure) name.
    Please give me example command to grant.
    GRANT EXECUTE ON dbms_session TO capital;

  • Error while executing procedure in TOAD which contains parameter and dblink

    Hi all,
    I am getting error while executing the following code in TOAD and APEX.
    It contains parameter( start_date and end_date) and dblink(@TO_FUT).
    When I hardcode the parameter values, It works fine.
    When I dont give hardcoded values in the procedure, the error comes.
    When I comment the lines whereever parameter comes, still the error comes.
    I am not sure whether it is parameter issue or dblink issue or some other issue
    Is anybody having any clue about this error?
    Your help is very much appreciated.
    The code:
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC(START_DATE DATE,END_DATE DATE)
    AS
    BEGIN
    EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
    INSERT INTO OUTPUT_TABLE
    (FIRST_NAME ,LAST_NAME,HID ,EFF_DT,CID,PLAN, FLAG)
    SELECT
    TEMP1.FIRST_NAME,
    TEMP1.LAST_NAME,
    TEMP1.HID,
    TEMP1.EFF_DT,
    TEMP1.CID,
    TEMP1.PLAN,
    NVL((SELECT 'Y'
    FROM FADMIN.MEMI_TABLE@TO_FUT MEMI
    WHERE MEMI.MEME_CK = TEMP1.MEME_CK
    AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
    AND MEMI.PBP = TEMP1.PLAN
    AND MEMI.MEMI_TXN_CD IN ('AC','RE')
    AND MEMI.MEMI_SEQ_NO = (SELECT MAX (MI.MEMI_SEQ_NO)
    FROM FADMIN.MEMI_TABLE@TO_FUT MI
    WHERE MI.MEME_CK = MEMI.MEME_CK
    AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
    AND MI.PBP = MEMI.PBP
    AND MI.MEMI_TXN_CD IN ('AC','RE')
    AND MI.MEMI_INTF_STS = 03 )),'N') AS FLAG
    FROM
    ( SELECT
    M1.FIRST_NAME ,
    M1.LAST_NAME ,
    M1.HID ,
    M1.EFF_DT,
    M1.CID,
    M1.PLAN ,
    (SELECT MEME.MEME_CK
    FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
    WHERE MEME.M_HIN = M1.HID
    AND MEME.GRGR_CK = GRGR.GRGR_CK
    AND GRGR.GRGR_ID = M1.GRGR_ID
    )AS MEME_CK
    FROM FADMIN.METR_TABLE@TO_FUT M1,
    ( SELECT M3.HID, M3.EFF_DT FROM FADMIN.METR_TABLE@TO_FUT M3
    WHERE M3.TYPE IN ('60','61')
    AND M3.REPLY IN ('117','118')
    AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M3.SYIN_INST = (SELECT MAX (M4.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M4
    WHERE M4.HID = M3.HID
    AND M4.TYPE IN ('60','61')
    AND M4.REPLY IN ('117','118')
    AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
    ) TEMP
    WHERE M1.TYPE IN ('60','61')
    AND M1.REPLY ='011'
    AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M2
    WHERE M2.HID = M1.HID
    AND M2.TYPE IN ('60','61')
    AND M2.REPLY ='011'
    AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
    AND M1.HID = TEMP.HID (+)
    AND M1.EFF_DT = TEMP.EFF_DT (+)
    AND TEMP.HID IS NULL
    UNION
    SELECT
    M1.FIRST_NAME ,
    M1.LAST_NAME ,
    M1.HID ,
    M1.EFF_DT,
    M1.CID,
    M1.PLAN ,
    (SELECT MEME.MEME_CK
    FROM FADMIN.MEME_TABLE@TO_FUT MEME, FADMIN.GRGR_TABLE@TO_FUT GRGR
    WHERE MEME.M_HIN = M1.HID
    AND MEME.GRGR_CK = GRGR.GRGR_CK
    AND GRGR.GRGR_ID = M1.GRGR_ID
    )AS MEME_CK
    FROM FADMIN.METR_TABLE@TO_FUT M1
    WHERE M1.TYPE IN ('60','61')
    AND M1.REPLY IN ('016', '017', '022', '023')
    AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1.SYIN_INST = (SELECT MAX (M2.SYIN_INST)
    FROM FADMIN.METR_TABLE@TO_FUT M2
    WHERE M2.HID = M1.HID
    AND M2.TYPE IN ('60','61')
    AND M2.REPLY IN ('016', '017', '022', '023')
    AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
    )TEMP1 ;
    END;
    The error:
    ORA-00918: column ambiguously defined
    ORA-02063: preceding line from TO_FUT
    ORA-06512: at "PROC_ENR_ACC", line 5
    ORA-06512: at line 5

    Okay
    Here's the code formatted
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE DATE, END_DATE DATE)
    AS
    BEGIN
       EXECUTE IMMEDIATE 'TRUNCATE TABLE OUTPUT_TABLE';
       INSERT INTO OUTPUT_TABLE (FIRST_NAME,
                                 LAST_NAME,
                                 HID,
                                 EFF_DT,
                                 CID,
                                 PLAN,
                                 FLAG)
       SELECT   TEMP1.FIRST_NAME,
                TEMP1.LAST_NAME,
                TEMP1.HID,
                TEMP1.EFF_DT,
                TEMP1.CID,
                TEMP1.PLAN,
                NVL (
                     (SELECT   'Y'
                      FROM   MEMI_TABLE MEMI
                      WHERE       MEMI.MEME_CK = TEMP1.MEME_CK
                      AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
                      AND MEMI.PBP = TEMP1.PLAN
                      AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
                      AND MEMI.MEMI_SEQ_NO = (SELECT   MAX (MI.MEMI_SEQ_NO)
                                              FROM   MEMI_TABLE MI
                                              WHERE   MI.MEME_CK = MEMI.MEME_CK
                                              AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
                                              AND MI.PBP = MEMI.PBP
                                              AND MI.MEMI_TXN_CD IN ('AC', 'RE')
                                              AND MI.MEMI_INTF_STS = 03)
                      ),'N') FLAG
       FROM (SELECT   M1.FIRST_NAME,
                      M1.LAST_NAME,
                      M1.HID,
                      M1.EFF_DT,
                      M1.CID,
                      M1.PLAN,
                      (SELECT   MEME.MEME_CK
                       FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                       WHERE       MEME.M_HIN = M1.HID
                       AND MEME.GRGR_CK = GRGR.GRGR_CK
                       AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
             FROM   METR_TABLE M1,
                    (SELECT   M3.HID, M3.EFF_DT
                     FROM   METR_TABLE M3
                     WHERE   M3.TYPE IN ('60', '61')
                     AND M3.REPLY IN ('117', '118')
                     AND TRUNC (M3.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
                     AND M3.SYIN_INST = (SELECT   MAX (M4.SYIN_INST)
                                         FROM   METR_TABLE M4
                                         WHERE   M4.HID = M3.HID
                                         AND M4.TYPE IN ('60', '61')
                                         AND M4.REPLY IN ('117', '118')
                                         AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
                     ) TEMP
             WHERE   M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
             AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
             AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                 FROM   METR_TABLE M2
                                 WHERE       M2.HID = M1.HID
                                 AND M2.TYPE IN ('60', '61')
                                 AND M2.REPLY = '011'
                                 AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            AND M1.HID = TEMP.HID(+)
            AND M1.EFF_DT = TEMP.EFF_DT(+)
            AND TEMP.HID IS NULL
            UNION
            SELECT   M1.FIRST_NAME,
                     M1.LAST_NAME,
                     M1.HID,
                     M1.EFF_DT,
                     M1.CID,
                     M1.PLAN,
                     (SELECT   MEME.MEME_CK
                      FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                      WHERE       MEME.M_HIN = M1.HID
                      AND MEME.GRGR_CK = GRGR.GRGR_CK
                      AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
            FROM   METR_TABLE M1
            WHERE   M1.TYPE IN ('60', '61')
            AND M1.REPLY IN ('016', '017', '022', '023')
            AND TRUNC (M1.METR_TRANS_DT) BETWEEN START_DATE AND  END_DATE
            AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                FROM   METR_TABLE M2
                                WHERE   M2.HID = M1.HID
                                AND M2.TYPE IN ('60', '61')
                                AND M2.REPLY IN ('016', '017', '022', '023')
                                AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            ) TEMP1;
    END;
    /When posting code if you put {noformat}{noformat} (with the curly brackets and in lower case) above and below it you can preserve formatting.
    To your original question...
    Is the link name supposed to be variable?
    What do you mean by 'hard coding' the values, do you mean in the procedure itself so you'd actually PROC_ENR_ACC();?
    What happens when you run this?DECLARE
    start_date DATE;
    end_date DATE;
    BEGIN
    start_date := '01-JAN-2009';
    end_date := '01-FEB-2009';
    PROC_ENR_ACC(start_date, end_date);
    END;
    I need to know exactly how to recreate your error...
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    +Don't forget to mark replies helpful or correct+ ;)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • ITunes (unknown error -54) when syncing music to iPhone 4s. Help!

    I just got a 64 GB iPhone 4s and I'm having trouble syncing my music library. A few artist into syncing and get an error message saying a certain song could not sync (unknown error -54). Then the rest of my library does not sync to my iPhone. I delet

  • Enable A Guest Account So We Could Save Restriction Settings

    How about a setting that will enable at boot up an option to log in main user (admin) or Guest account? And in the main user's restriction settings allow you to configure what apps the guest account can access. Then all you would have to do is set th

  • Apps keep adding themselves back onto icloud backup

    Really annoying problem because ill get emails from icloud saying the backup is almost full , upon checking the backup page and what apps are backed up . I keep finding that my winzip app , adobe reader, and another app keep adding themselves back on

  • Assigning a position to Org Unit in mass upload

    Hi, I am creating Org units using PPOM transaction where i can create Many org units at a time. NOw i need to assign positions to these org units? is there any way to mass upload positions and assign to these Org units? I have arrount 1020 Org Units

  • " FAILED TO SAVE DOCUMENT"   " NOT SUPPORTED"

    I have a Crystal Report that I have worked on for serveral hours and that I have saved throughout the day; however, when I try to save it now, I get the following error: " FAILED TO SAVE DOCUMENT"   I hit OK and then the following appears.   " NOT SU