OCI error ORA-01403: no data found in oracle goldengate replication after tts instaniation

I recently migrated our central system of tg (11.1.0.7) solaris from Sun to linux (11.2.0.3) environment using goldengate (tablespace transportable method used for instantiation).

Initial replication has worked with HANDLECOLLISIONS and after I took over LAG, I took off Handlecollisions and noticed updated report discarded with OIC error ORA-01403: no data available in two repetitions.


I followed all the steps in the migration tts steps provided by oracle best practices.


Can anyone provide any clue how to fix this?


Thank you in advance.

For that error, the common problem is missing data, GoldenGate cannot find it because there is no key (search KEYCOLS in the installation guide), or a null is present (trying to update a record and a constraint is not null).

Tags: Business Intelligence

Similar Questions

  • ORA-01403: no data found / error line could not.

    Hi all
    I copy a page form another application and I run to the demand for labour.
    I got following error:
    ORA-01403: no data found
    Error line could not.

    Any idea,

    Thank you
    NY

    Ok

    Andy

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • DAC 11.1.1.6.4 fails with the error cannot get columns: ORA-01403: no data found

    Hello

    We strive to run a full charge in DAC, but it is a failure.

    The S_ASSET table is empty and therefore, we get the error

    Could not get column: ORA-01403: no data found

    We were not facing this error in DAC 10 g but after upgrade to DCA 11 g, this task has no place if the array is empty. How remove this restriction and DAC will work perfectly even if the tables are empty to full charge?

    CAD DETAILS

    Console Administration Oracle BI DW

    CAD build a 11.1.1.6.4.20121119.2022 Build date: November 19, 2012

    Management Console to install, configure, and administer the Warehouse Analytics of Oracle Business

    Schema version - 47, Index version - 36, repository version - 6, data version Seed - 16

    INFORMATICA - VERSION9.0.1 HF2


    Here's the log of IMG_BUILD - S_ASSET when this task was running in DAC 10 g. The task facing any problem when S_ASSET table was empty.

    [code]

    2013-12-23 15:34:29.644 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of prunes: 4

    After change data capture: 2013-12-19 12:23:19.332 in full Mode.

    2013-12-23 15:34:29.69 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-23 15:34:29.89 - executed successfully.

    2013-12-23 15:34:29.9 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-23 15:34:30.145 - executed successfully.

    2013-12-23 15:34:30.16 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-23 15:34:30.198 - executed successfully.

    2013-12-23 15:34:30.236 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-19 12:23:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-23 15:34:30.968 - executed successfully.

    2013 12-23 15:34:30.989 - execution of deleting duplicates rowid.

    2013-12-23 15:34:31.01 - successfully deleting duplicates rowid.

    2013-12-23 15:34:31.27 - execution:

    DROP VIEW V_ASSET

    2013-12-23 15:34:31.566 - executed successfully.

    2013-12-23 15:34:31.569 - execution:

    CREATE VIEW V_ASSET AS

    SELECT

    *

    Of

    S_ASSET

    2013-12-23 15:34:31.743 - executed successfully.

    2013-12-23 15:34:31.78 - execution:

    SELECT COUNT (*) IN S_ASSET

    The County is: 0

    Executed successfully: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    (Number of attempts: 1).

    Executed orders:

    IMG_BUILD - internal

    2013-12-23 15:34:31.851 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the completed state.

    The same task, IMG_BUILD - S_ASSET fails when it is running in DAC 11 g, because the table is empty. Here is the log for the failure of the task to 11g.

    [code]

    2013-12-27 21:21:47.497 acquisition of resources

    2013-12-27 21:22:20.33 acquired resources

    2013-12-27 21:22:20.787 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of plum: 5760

    After change data capture: 2013-12-23 21:19:19.233 in full Mode.

    21:22:21.211 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-27 21:22:22.384 - executed successfully.

    21:22:22.389 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-27 21:22:22.532 - executed successfully.

    21:22:22.534 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-27 21:22:22.546 - executed successfully.

    21:22:22.55 2013-12-27 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-23 21:19:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-27 21:22:22.614 - executed successfully.

    2013 12-27 21:22:22.616 - execution of deleting duplicates rowid.

    2013-12-27 21:22:24.72 - successfully deleting duplicates rowid.

    Could not get column: ORA-01403: no data found

    FAULT INFO: Error executing: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    MESSAGE: com. Siebel.Analytics.etl.Execution.exceptions.ChangeCaptureTaskFailedException: Change Capture failed.

    EXCEPTION CLASS: java.lang.RuntimeException

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:536)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    : CAUSE:

    MESSAGE: change Capture failed.

    EXCEPTION CLASS: com.siebel.analytics.etl.execution.exceptions.ChangeCaptureTaskFailedException

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.executeChangeCapture(ChangeCaptureTask.java:93)

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.doExecute(ChangeCaptureTask.java:46)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:477)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    (Number of attempts: 1).

    IMG_BUILD - internal

    2013-12-27 21:22:31.526 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the Failed state.

    [[code


    The CREATE VIEW privilege was missing from the CAD database user, therefore, was not to create the step. I have granted CREATE VIEW and all is well.

  • ORA-01403 no data found cursor error - please help.

    DECLARE
    Name1 talent.candidate_name%TYPE; -Declaring variables
    long name2; -Declaring variables
    emp_id talent_id.emplid%TYPE.
    EXCEPTION NO_DATA_FOUND.

    CURSOR c1 IS
    Select candidate_name,('''||) Trim (Upper (candidate_name)) | "') as tst of talent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    OUTPUT WHEN c1% NOTFOUND; -TRUE when FETCH can't find none online

    Select distinct emplid
    IN emp_id
    a names
    where a.name_type = 'PRI '.
    and upper (a.last_name) | ',' | Upper (a.first_name) = name2;


    INSERT INTO talent_id VALUES (emp_id, Name1);

    END LOOP;

    CLOSE c1;
    COMMIT;





    Question: Above queries ask me the msg of error ora-01403 no data available for emplid. I try but fail to solve. Please help me. Thank you

    Published by: user12051088 on March 4, 2010 01:38

    Published by: user12051088 on March 4, 2010 01:40

    This unique INSERT could possibly end up with all of your pl/sql code!

    insert into Talent_ID (Emp_ID
                          ,Name1)
                    (select distinct
                            a.Emp_ID
                           ,t.Candidate_Name
                     from   names a
                           ,Talent t
                     where  a.Name_Type = 'PRI'
                     and    upper(a.Last_Name || ', '|| a.First_Name) = trim(upper(t.Candidate_Name))
                    )
    /
    

    Keep in mind, there is no way for me to test it! Furthermore, TALENT_ID is a strange name for a table. Probably typo but simply change the INSERT statement accordingly!

    P;

  • You are not allowed to open the form ORA-01403: no data found

    Hello

    I created a new forms of Oracle 10 g. It compiles successfully, but when it is open, it gives an error message: you are not allowed to open the form ORA-01403: no data found.

    I am already connected to the database. Please can someone help what is the reason of this problem, and no matter what possible resolution?

    Looks like you have some kind of security is enabled.  However, because you do not share details about your environment or what you're doing here is not that we can do is guess.

    • Exactly what version of forms do you use?
    • Exactly which version of the database that you are using?
    • You use something like Oracle E-Business (e.g. template.fmb)?
    • You created the form with Oracle Designer?
    • If you create a simple form using only the layout assistants and the DataBlock compared to schema Oracle demo (SCOTT), this form run?

    No additional details describing what you do or have done could be useful.

  • ORA-01403: no data found

    Hello

    The following procedure works fine when the select statement returns a line.
    However, it creates "ORA-01403: no data found" error when no data is returned for select.

    When I put the following exception after select it, It doest go inside the if block. (It stops after selection). Do not know why.
    exception
    when NO_DATA_FOUND then null;
    How can I set an exception for this?
    CREATE OR REPLACE PROCEDURE kill_blocking
    IS
    l_sid number(10); 
    l_serial number(10);
    l_wait number(10);
    l_username varchar2(20);
    sqlStmt VARCHAR2(1000);
    BEGIN
    
    SELECT s1.sid,s1.serial#,s2.seconds_in_wait,s2.username
    into l_sid,l_serial,l_wait,l_username
    FROM v$lock l1, v$session s1, v$lock l2,v$session s2,v$sql sqlt1, v$sql sqlt2
    WHERE s1.sid =l1.sid
    AND s2.sid =l2.sid AND sqlt1.sql_id= s2.sql_id AND sqlt2.sql_id= s1.prev_sql_id AND l1.BLOCK =1
    AND l2.request > 0 AND l1.id1 = l2.id1 AND l2.id2 = l2.id2;
    
    if l_username='APP' and l_wait > 100
    then 
    sqlStmt := 'ALTER SYSTEM KILL SESSION ''' || TO_CHAR(l_sid) ||',' || TO_CHAR(l_serial) ||'''' ;
    dbms_output.put_line( sqlStmt );
    
    EXECUTE IMMEDIATE sqlStmt;
    
    
    END IF;
    END;
    / 

    Check this box

    SQL> CREATE OR REPLACE PROCEDURE kill_blocking IS
      2     l_sid        NUMBER (10);
      3     l_serial     NUMBER (10);
      4     l_wait       NUMBER (10);
      5     l_username   VARCHAR2 (20);
      6     sqlstmt      VARCHAR2 (1000);
      7  BEGIN
      8     SELECT s1.SID, s1.serial#, s2.seconds_in_wait, s2.username
      9       INTO l_sid, l_serial, l_wait, l_username
     10       FROM v$lock l1,
     11            v$session s1,
     12            v$lock l2,
     13            v$session s2,
     14            v$sql sqlt1,
     15            v$sql sqlt2
     16      WHERE s1.SID = l1.SID
     17        AND s2.SID = l2.SID
     18        AND sqlt1.sql_id = s2.sql_id
     19        AND sqlt2.sql_id = s1.prev_sql_id
     20        AND l1.BLOCK = 1
     21        AND l2.request > 0
     22        AND l1.id1 = l2.id1
     23        AND l2.id2 = l2.id2;
     24
     25     IF l_username = 'APP' AND l_wait > 100
     26     THEN
     27        sqlstmt :=
     28              'ALTER SYSTEM KILL SESSION '''
     29           || TO_CHAR (l_sid)
     30           || ','
     31           || TO_CHAR (l_serial)
     32           || '''';
     33        DBMS_OUTPUT.put_line (sqlstmt);
     34
     35        EXECUTE IMMEDIATE sqlstmt;
     36     END IF;
     37  EXCEPTION
     38     WHEN NO_DATA_FOUND
     39     THEN
     40
     41        DBMS_OUTPUT.put_line ('No Data Found');
     42  END;
     43  /
    No Data Found
    
    PL/SQL procedure successfully completed.
    
  • Function body PLSQL returning a sql report returns ORA-01403 no data found

    I'm on APEX 3.1.2.00.02 and Oracle 10 g.

    I develop a relationship with the type of SQL query (body of function from PL/SQL returning SQL query). But the performance of the report, I get

    error report:
    ORA-01403: no data found


    Source of the region
    declare
      qry varchar2(32767);
    begin
      --Procedure call
      my_pkg.get_query(qry);
    
      htp.p(qry);
    
      return /*select 1 from dual */ qry;
    end;
    Procedure
    PROCEDURE get_query (V_QRY OUT VARCHAR2)
    IS
      qry varchar2(32767);
    begin
    
      qry := ' select name
         , max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Jan-09"
         , max(decode(to_char(service_date,''Mon-YY''), ''Jan-09'', value, null)) as "Feb-09"
         from MY_TABLE
         group by name ';
      
      V_QRY := qry;
    end;
    The query will be improved later to add more month and year according to the user settings that I am running on this report.

    I want to use specific query column names. I saw this suggestion from Scott in a number of threads to use / * select 1 double * / with the query, but does not not in my case.

    Please can anyone suggest what I can do to make it work?

    Kind regards

    Amir

    First of all, unit you have tested the procedure (namely, in the workshop of SQL, SQL * Plus, SQL Developer, etc, etc) to see if it produces the output in the first place right?

    If you have, and the generated query string is valid, try to assign the output to a page element (allowing you to visualize in the session browser), or even through the procedure output window for debugging (using the wwv_flow.debug function). This might indicate a change of State or session that is causing it not to return. You might find this easier to achieve if you switch from one "procedure and output parameter ' combination 'function returning string' approach."

    If not, try to re-create the report in a new region - sometimes I came across strange bugs with parts of the report which were solved in this way.

  • ORA-01403: no data found for default

    I have the body of the following pl/sql function to set the default value of a selection list.

    DECLARE
    VARCHAR2 (100);
    BEGIN
    Select person_id in selected in ht_people
    where: app_user = flow_user;
    RETURN selected;
    END;


    It works perfectly until the user is not on the list and then I get:

    ORA-01403: no data found
    ERR-9131 error in PLSQL function for default code point body, item = P7_IDENTIFIED_BY

    Is there an item property that I can put to treat it or must it be done in PL/SQL?

    It throws no error if the user did not find:

    DECLARE
       selected   VARCHAR2 (100);
    BEGIN
       FOR c IN (SELECT person_id
                   FROM ht_people
                  WHERE :app_user = flow_user)
       LOOP
          selected := c.person_id;
       END LOOP;
    
       RETURN selected;
    END;
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • In: creating a custom update process: ORA-01403 no data found.

    I have a tabular presentation for a table called com_transactions.

    I have a column in the form that does not exist in the table that is editable (I have the code that simply displays an error message on the appropriate line, which is the column)

    When I am happy with the data I submit an application.

    I then pl/sql next executed conditionally when the application is submitted. (submit calculations and validations)

    BEGIN
    : P42_VALIDATION_MESSAGE: = apex_application.g_f02. COUNTY;

    FOR i FROM 0... apex_application.g_f02. COUNTY
    LOOP

    IF apex_application.g_f01 (i) IS NULL THEN
    INSERT INTO com_transactions (Month_num
    Financial_Year
    transactions)
    VALUES (apex_application.g_f03 (i)
    apex_application.g_f04 (i)
    apex_application.g_f05 (i));


    ON THE OTHER
    UPDATE com_transactions
    SET Month_num = apex_application.g_f03 (i),
    Financial_Year = apex_application.g_f04 (i),
    transaction = apex_application.g_f05 (i)
    WHERE ID = apex_application.g_f01 (i);

    END IF;

    END LOOP;
    END;

    The process described above is any mistake producing an ORA-01403: no found error.

    Ideas please people?

    your muchly

    JH

    FOR i FROM 0... apex_application.g_f02. COUNTY

    The array index starts from 1, not 0

    You will also get this error when the berries f01, f02, f03, f04 or f05 is not available in the page or has no items for the specified index. For example the radio buttons and boxes to check an example extracted only records checked/selected.

  • ORA-01403: no data found on the LOGICAL standby database

    Hello

    Logical question of Eve:
    Enterprise Edition Oracle 10.2.0.2.

    M work waiting LOGIC for 1 year but still i have not had this...
    I m not be countinuously no data foud errror on the logic of the standby database.

    I found the table causing the problem (db_logstdby_events) and jumped this table and table instantiated using the package bwlow:

    exec dbms_logstdby.instantiate_table (...)

    but when I start to apply the logical waiting process it gives again some were found for the new data table:

    I even tried to instantiate the table to EXPORT/IMPORT assistance over time, but the same problem same deal with.

    As much as I knew abt the error that is:
    Table1:
    ID
    10
    20
    30


    Now if sql apply processes on standby logic tent performs the operation of (for example) updated as below

    Update table1 set id = 100 where id = 50;

    above request will not be completed cos he'll never find 50 values which is not in the table. That is why this error coming...


    Now my concern is... no user didn't dare change/make of such changes on the logic ensures. So if there is no change in the tables, then apply it sqll should get all the values to be needded for an update...

    watingggg guyssss...

    Hello;

    How do you know that the database pending is compatible with the primary?

    Are there opportunities has one or several tables have been created on the eve before they were created on the primary? (If Yes check in DBMS_LOGSTDBY. INSTANTIATE_TABLE)

    Or jump and re-instantiate the table.

    Example of

    EXEC DBMS_LOGSTDBY.SKIP('DML','EMPLOYEES','%');
    
    EXECUTE DBMS_LOGSTDBY.INSTANTIATE_TABLE  ('YOUR_USER', 'EMPLOYEES', 'YOUR_DBLINK');
    

    Best regards

    mseberg

  • ERR-7620 could determine no workspace for the application (4950), ORA-01403: no data found

    Hi, I am trying to upgrade XE APEX 4-5 with this tutorial

    https://docs.Oracle.com/CD/E59726_01/install.50/e39144/oracle_xe.htm#HTMIG29430

    Everything was fine, no errors, but after upgrade, I can't run apex over and get this err message.

    Laptop with MS 8.1 PRO, 64

    What should do? Thanks for help.

    Have you read step # 8 in the instructions? :

    1. Go to the Oracle Application Express Administration Services application:

      1. In a Web browser, go to:

        http://hostname:port/apex/apex_admin
        

        Where:

        hostnameis the name of the system where Oracle XML DB Protocol server is installed.

        portis the port assigned to HTTP the server of Oracle XML DB Protocol number. In a default installation, this number is 8080. If you use the multitenancy of 12 database Oracle, then each database plug-in (PDB) will be a separate port number.

        apexthe database access descriptor (DAD) is defined in the configuration file.

      2. On the login page:
        • Username - enter admin .

        • Password - enter the Oracle Application Express account password specified in step 7.
        • Click on connect to Administration.

        Note that, depending on your configuration, you may need to change your password when you sign in for the first time.

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • The execution of the trigger, 01403 error. 00000 - "no data found".

    Hi guys, Pl/Sql

    When we try to run after initiation, as 01403 error. 00000 - "no data found".

    Trigger is

    CREATE OR REPLACE TRIGGER SYNC_OUGR_USER_ADDRESS

    AFTER INSERT ON OUGR_USER_ADDRESS FOR EACH LINE

    DECLARE

    P_CD_ADDR_TYPE OUGR_USER_ADDRESS. TYPE % CD_ADDR_TYPE;

    P_AD_CITY OUGR_USER_ADDRESS. TYPE % AD_CITY;

    CITY OF P_NM_NAME. TYPE % NM_NAME;

    P_FL_OVERSEAS OUGR_USER_ADDRESS. TYPE % FL_OVERSEAS;

    P_AD_COUNTRY OUGR_USER_ADDRESS. TYPE % AD_COUNTRY;

    P_TEMP_CITY VARCHAR2 (10);

    P_CD_CODE REF_COUNTRY_CODE. TYPE % CD_CODE;

    BEGIN

    P_CD_ADDR_TYPE: =: NEW. CD_ADDR_TYPE;

    P_FL_OVERSEAS: =: NEW. FL_OVERSEAS;

    P_AD_CITY: =: NEW. AD_CITY;

    P_AD_COUNTRY: =: NEW. AD_COUNTRY;

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    IF P_CD_ADDR_TYPE ('ma', 'PA') THEN

    IF P_TEMP_CITY IS NULL THEN

    P_AD_CITY: = P_NM_NAME;

    ON THE OTHER

    P_AD_CITY: = P_AD_CITY;

    END IF;

    ON THE OTHER

    P_AD_CITY: = P_NM_NAME;

    END IF;

    IF P_FL_OVERSEAS = "Y" THEN

    P_AD_COUNTRY: = P_CD_CODE;

    ON THE OTHER

    P_AD_COUNTRY: = P_AD_COUNTRY;

    END IF;

    INSERT INTO OUGR_USER_ADDRESS@TO_GVRS

    (ID_ADDRESS,

    CD_ADDR_TYPE,

    AD_UNIT,

    AD_NUM,

    AD_STR1,

    AD_STR2,

    AD_CITY,

    AD_COUNTY,

    AD_ST,

    AD_COUNTRY,

    AD_ZIP5,

    AD_ZIP4,

    FL_AD_RURAL,

    FL_OVERSEAS,

    TM_STAMP

    )

    VALUES (: NEW.ID_ADDRESS,)

    : NEW. CD_ADDR_TYPE,

    : NEW. AD_UNIT,

    : NEW. AD_NUM,

    : NEW. AD_STR1,

    : NEW. AD_STR2,

    P_AD_CITY,

    : NEW. AD_COUNTY,

    : NEW. AD_ST,

    P_AD_COUNTRY,

    : NEW. AD_ZIP5,

    : NEW. AD_ZIP4,

    : NEW. FL_AD_RURAL,

    : NEW. FL_OVERSEAS,

    : NEW. TM_STAMP

    );

    END SYNC_OUGR_USER_ADDRESS;

    /

    Greatly appreciate your help in this regard.

    Thanks in advance.

    Kind regards

    REDA

    Hi, Raj,

    Instead of

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    You can say:

    P_TEMP_CITY: = LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' ')));

    SELECT MIN (NM_NAME)

    IN P_NM_NAME

    OF THE CITY

    WHERE ID_TOWN = P_AD_CITY;

    SELECT MIN (CD_CODE)

    IN P_CD_CODE

    OF REF_COUNTRY_CODE

    WHERE CD_CODE = P_AD_COUNTRY;

    You don't need the double table much in PL/SQL.

    When you use an aggregate function (MIN, as above) without a clause GROUP BY, the result set is guaranteed to have exactly 1 row.  This also avoids the error (ORA-01422) TOO_MANY_ROWS, which is probably impossible in this example.

  • -Error ORA-00932: inconsistent data types: expected TANK got the NUMBER

    Here is my report query...
    select 
    *
    from   DW_RFA_JOBDATA
    where  FINISH_TIME >= :P1_START_DATE 
    and FINISH_TIME < :P1_END_DATE
         AND RFA_FLAG = (CASE :P1_JOB_CLASSIFICATION WHEN '0' THEN 'LSF'
                                      WHEN '1' THEN 'NON-LSF' 
                                      ELSE RFA_FLAG END)
    The column data type RFA_FLAG is NUMBER(*,0)... I'm view RSA and RSA - not the area of selection, but I get the error ORA-00932: inconsistent data types: expected TANK got the NUMBER >

    I have created a static LOV with LST display 0 return
    Display NON - RSA 1 return...

    Could any body please help me in truble shooting error? How to to convert the data type to number, I have no privileges to make changes to the table...

    Mark you my previous answer as correct? (MOST POINTS!  :))

  • Error ORA-00932: inconsistent data types

    Hello world

    I'm having a small problem with the error ORA-00932: inconsistent data types. The code below is what I'm working on. The error is on line 12:
    "vStmt: = ' select DDH_HOST_NM, DDH_SCHEMA_NR from ' | '. vSchema |'. < table > @ < DB_LINK > '; ». This is because DDH_HOST_NM is a VARCHAR2 and DDH_SCHEMA_NR a number.

    I know what is the error and where it is but I can't work on how to solve this problem. I tried to use to_char on DDH_SCHEMA_NR but that does not.

    Anyone have an idea how I can fix this problem?

    Thank you
    N.S.N.O.

    DECLARE
    vSchema varchar2 (1000);
    vStmt varchar2 (1000);
    Version number (38);
    CURSOR c_schemas IS
    Select "< SCHEMA-NAME >" as "< scheme name >" twice;
    BEGIN
    Open c_schemas;
    LOOP
    SEEK c_schemas INTO vSchema;
    EXIT WHEN c_schemas % NOTFOUND;
    vStmt: = ' select DDH_HOST_NM, DDH_SCHEMA_NR from ' | vSchema |'. < table > @ < DB_LINK > ';
    Run immediately vStmt in version;
    dbms_output.put_line(vSchema||) e '|| Version);
    END LOOP;
    CLOSE C_schemas;
    END;

    The problem is that you choose 2 columns in a single variable?

    vStmt: = ' select DDH_HOST_NM, DDH_SCHEMA_NR from ' | vSchema |'.

    @';
    Run immediately vStmt in version ;

    This must be either

    vStmt: = ' select DDH_SCHEMA_NR from ' | vSchema |'.

    @';
    Run immediately vStmt in version;

    or

    vStmt: = ' select DDH_HOST_NM, DDH_SCHEMA_NR from ' | vSchema |'.

    @';
    Run immediately vStmt in vHostNm, version;

    where vHostNm should set as a variable too.

Maybe you are looking for

  • Laptop HP Pavilion AMD8 15: upgrading Windows 8.1 to 10. Failed to install, error 80070032

    I use windows 8.1 on a HP Pavilion laptop 64 bit. while improving to 10 Windows, the download is complete, but the installation failed because the update error 80070032. I tried solving the problems, but I can't find an answer for this problem.  I ha

  • Charger property - number of one-dimensional array objects read

    Greetings and happy independence day. I use the property Loader to load a local array of containers. I use a ForEach statement to iterate through the array for the number of items varies with the type of the object to measure. But now, I need to know

  • HP Photosmart 6510 B211a unable to Scan

    I have a HP Photosmart 6510 B211a e-Print wireless printer/scanner, that I use with my desktop version of Mac OS X Lion 10.7.5 (Mac Mini) and, with the help of Parallels Desktop 7 for Mac, I use it with my Windows 7 PC.  I am not able to scan from my

  • problema con ingreso data in excel

    Buenos dias. El programa as estoy realizando're para save temeperatura datos y humedad en excel y el mismo momento of toma it data is guardaria el con dato hora. MI problema're cuando ingreso los datos Excel in some momentos to me financial el ingres

  • HP 2540: Connection iPad2 at the HP wireless printer

    Can I connect iPad 2 to hp 2540 via Att hotspot using AirPrint myfi? I thought that the iPad 2 could connect directly to an HP e-printer anyway