Error PLS-00402 - duplicate column names

I get the following error message: PLS-00404: list of the cursor in order to avoid duplicate column requested Alias names on the following pl/SQL script

Can someone please help me solve this problem, because from what I see, it does seem as if I had duplicates


create or replace procedure CIS. UP_WATER_RATE_CHANGE_COMM is

number of n_account_number;
number of n_service_id;
number of n_servservacct_rate_cate_id;
number of n_service_service_acct_id;
vc_rate_category varchar2 (8);
vc_sewer_rate_category varchar2 (8);
vc_infrastr_rate_category varchar2 (8);
vc_water_meter_size varchar2 (10);

vc_new_rate_category varchar2 (8);
vc_new_sewer_rate_cat varchar2 (8);


Start

for my_rate_rec_comm in
(SELECT AC. ACCOUNT_NUMBER,
SPAM SERVICE_SERVICE_ACCT_ID,
SPAM SERVICE_ID,
FTM WATER_METER_SIZE,
SSARC. SERVSERVACCT_RATE_CAT_ID,
SSARC. SERVICE_SERVICE_ACCT_ID,
SSARC. RATE_CATEGORY,
SSARC. EFFECTIVE_DATE,
SSARC. SEWER_RATE_CATEGORY,
SSARC. INFRASTR_RATE_CATEGORY,
SSARC. END_DATE
OF HIS SERVICE_ACCOUNT,.
SERVICE_SERVICE_ACCOUNT SSA,
SERV_SERV_ACCT_RATE_CAT SSARC,
RATE_CATEGORY RC,
ACCT_CUSTOMER_MAIL_INSTR ACMI,
CUSTOMER_MAILING_ADDRESS CMA,
ACCOUNT_CUSTOMER AC,
SERVICE_ADDRESS SADD,
SERVICE S,
ELECTRONIC EQUIPMENT,
AND TYPE_EQUIPEMENT,
EQUIPMENT_CLASS EC
WHERE SA. SERVICE_ACCOUNT_NUMBER = SSA. SERVICE_ACCOUNT_NUMBER
AND SSARC. SERVICE_SERVICE_ACCT_ID = SSA. SERVICE_SERVICE_ACCT_ID
AND ACMI. ACCOUNT_CUSTOMER_ID = AC. ACCOUNT_CUSTOMER_ID
AND ACMI. MAILING_ADDR_ID = CMA. MAILING_ADDR_ID
AND AC. ACCOUNT_NUMBER = SA. ACCOUNT_NUMBER
AND RC. RATE_CATEGORY = SSARC. RATE_CATEGORY
AND SADD. SERVICE_ADDRESS_ID = SA. SERVICE_ADDRESS_ID
AND SSA. SERVICE_ID = S.SERVICE_ID
AND SA. LAST_SERVICE_END_DATE IS NULL
AND SSARC. END_DATE IS NULL
AND S.SERVICE_TYPE = 'WATER '.
AND THE ACM. END_DATE IS NULL
AND ACMI. END_DATE IS NULL
AND RC. RATE_CATEGORY IN ('2', '4', '11', '12', '13', ' 14 ', ' 15', 16', 17', 18', 60', 60 'A')
AND RC. RATE_CATEGORY NOT IN ('66', '81', '84' 86', 'CFLATWTR')
AND S.SERVICE_ID = E.CURRENT_SERVICE_ID
AND E.EQUIPMENT_TYPE_ID = AND. EQUIPMENT_TYPE_ID
AND HE. EQUIPMENT_CLASS = CBS. EQUIPMENT_CLASS
and ssarc.servservacct_rate_cat_id in (231234, 305193)
AND THIS. EQUIPMENT_CATEGORY = "WMETER")



loop
n_account_number: = my_rate_rec_comm.account_number;
n_service_id: = my_rate_rec_comm.service_id;
n_servservacct_rate_cat_id: = my_rate_rec_comm.servservacct_rate_cat_id;
n_service_service_acct_id: = my_rate_rec_comm.service_service_acct_id;
vc_rate_category: = my_rate_rec_comm.rate_category;
vc_sewer_rate_category: = my_rate_rec_comm.sewer_rate_category;
vc_infrastr_rate_category: = my_rate_rec_comm.infrastr_rate_category;
vc_water_meter_size: = my_rate_rec_comm.water_meter_size;

vc_new_rate_category: = ' ';
vc_new_sewer_rate_cat: = ' ';


If vc_rate_category = 60 'a' then

case vc_water_meter_size
When ' 5/8 ' then
vc_new_rate_category: = 'CWSWEX58 ';
When ' 3/4 ' then
vc_new_rate_category: = 'CWSWEX34 ';
When then '1'
vc_new_rate_category: = 'CWSWEX00 ';
When ' 1' 1/2 then
vc_new_rate_category: = 'CWSWEX01 ';
When "2" then
vc_new_rate_category: = 'CWSWEX02 ';
When '3' then
vc_new_rate_category: = 'CWSWEX03 ';
When '4' then
vc_new_rate_category: = 'CWSWEX04 ';
When '6' then
vc_new_rate_category: = 'CWSWEX06 ';
When '8' then
vc_new_rate_category: = 'CWSWEX08 ';
end case;


vc_new_sewer_rate_cat: = null;

on the other

case vc_water_meter_size
When ' 5/8 ' then
vc_new_rate_category: = 'COMWTR58 ';
vc_new_sewer_rate_cat: = 'COMSWR58 ';
When ' 3/4 ' then
vc_new_rate_category: = 'COMWTR34 ';
vc_new_sewer_rate_cat: = 'COMSWR34 ';
When then '1'
vc_new_rate_category: = 'COMWTR00 ';
vc_new_sewer_rate_cat: = 'COMSWR00 ';
When ' 1' 1/2 then
vc_new_rate_category: = 'COMWTR01 ';
vc_new_sewer_rate_cat: = 'COMSWR01 ';
When "2" then
vc_new_rate_category: = 'COMWTR02 ';
vc_new_sewer_rate_cat: = 'COMSWR02 ';
When '3' then
vc_new_rate_category: = 'COMWTR03 ';
vc_new_sewer_rate_cat: = 'COMSWR03 ';
When '4' then
vc_new_rate_category: = 'COMWTR04 ';
vc_new_sewer_rate_cat: = 'COMSWR04 ';
When '6' then
vc_new_rate_category: = 'COMWTR06 ';
vc_new_sewer_rate_cat: = 'COMSWR06 ';
When '8' then
vc_new_rate_category: = 'COMWTR08 ';
vc_new_sewer_rate_cat: = 'COMSWR08 ';
end case;

end if;


-Expiry date the old rate
UPDATE SERV_SERV_ACCT_RATE_CAT
END_DATE SET = TO_DATE ('2009-11-01 00:00:00 ',' ' YYYY/MM/DD HH24:MI:SS)
WHERE SERVSERVACCT_RATE_CAT_ID = n_servservacct_rate_cate_id;



-Insert the new rate
INSERT INTO SERV_SERV_ACCT_RATE_CAT
VALUES (SERV_SERV_ACCT_RATE_CAT_SEQ.nextval, n_service_service_acct_id, vc_new_rate_category, TO_DATE ('2009-11-01 00:00:00 ',' ' YYYY/MM/DD HH24:MI:SS), vc_new_sewer_rate_cat, vc_infrastr_rate_category, null);

end loop;

-commit;

Exception
while others then
dbms_output.put_line (' failed to update on account of Service of Service ID: ' | n_servservacct_rate_cate_id);
Rollback;


end UP_WATER_RATE_CHANGE_COMM;

Hello

the next column is selected twice SERVICE_SERVICE_ACCT_ID, you need an alias for one of them.

Thank you

Tags: Database

Similar Questions

  • ERROR DUPLICATE COLUMN NAME

    I get an error of duplicate column name to submit using automatic processing of line.

    I have a few items on the page with the same column name, but they appear under certain conditions. Even if I put in them NEVER occurs again.

    I would understand that you still can't duplicate names even if the elements are conditional?

    If this is the case, then Ill have to do with javascript or something. Pain cos apart from that, my form is quite clean

    Thanks for the help of anyones :-)

    Colin

    Since your sql does not deal with conditional columns, you don't CAN NOT use the same column name several times... Unless you write your own DML to manage updates/inserts & removes...

    Thank you

    Tony Miller
    Webster, TX

  • Error PLS-00402 in < for IN (SELECT...)

    I have a sp with slider and loop for IN (SELECT) it Dichter fine until I got to join in the SELECT statement for I get this now:
    PLS-00402: alias required in the SELECTION list of the cursor to avoid duplicate column names

    I have triple checked my SELECT worked very well for the query window, are there special rules for < for (SELECT) IN >
    It is in fact view if it's to colect contra information on given side transaction
    FOR i IN  (  
        select t1.IDCUST, t1.AMOUNT, t1.CELL, 
           t1.SHIPCUST, t1.PRODID, 
           t2.SHIPCUST, t2.PRODID, 
          from RYBA.VIEW_TANG t1 
          inner join RYBA.VIEW_TANG t2  on t2.IDCUST = t1.IDCUST
          where  t1.SIDE != t2.side
              )   
    
       LOOP
    ....
    This error indicates the line < for in >:
    PLS-00402: alias required in the SELECTION list of the cursor to avoid duplicate column names

    I see that he doesn't like t1.shipcust and t2.shipcust at the same time, as it doen't recognize my prefixes t1, t2 is an easy solution but why it so?
    without t2. columns that it compiles OK.

    Appreciate your help on this simple someboy material.


    TX
    Trento

    T1. SHIPCUST
    T2. SHIPCUST
    T1. PRODID,
    T2. PRODID,

    Alias of these columns...

  • [4.0.1] bug in Data Import: ORA-00957: duplicate column name

    I found a serious problem in the import feature in 4.0.1 data as well as in the old version 3.2. It generates an INSERT script with duplicate column names, so that I can't use this feature at all. This is very critical for me. I don't see that I did anything wrong. It does not appear that the DB table columns are optional or required, or if I have NULL data in the file to import the required columns or not important.

    Here is a stripped down test cases:

    CREATE TABLE IMPORT_DATA

    (

    ACCOUNT VARCHAR2 (25 BYTES),

    NUMBER AMOUNT (30.3).

    CUSTOMER VARCHAR2 (25 BYTES)

    COST_CENTER VARCHAR2 (25 BYTES),

    DESCRIPTION VARCHAR2 (255 BYTES),

    THE PERIOD NUMBER (15),

    NUMBER OF AWARDS (30.8).

    PROJECT VARCHAR2 (25 BYTES)

    ID_RESSOURCE VARCHAR2 (25 BYTES),

    TOTAL_HRS COMP (30.8).

    TRANS_ID COMP (30.3).

    VERSION VARCHAR2 (25 BYTES),

    NUMBER OF VOLUME_FLAG (15),

    WORKORDER VARCHAR2 (25 BYTES)

    );

    There are examples of input data with a single line (Excel CSV/separator with ";" as separator). It doesn't matter that I have import this as CSV/delimited or as original XLSX file, the error still occurs.

    COST_CENTER; PROJECT; ID_RESSOURCE; WORKORDER; VERSION; ACCOUNT; VOLUME_FLAG; TOTAL_HOURS; PRICE; AMOUNT; PERIOD_FROM; PERIOD_TO; DESCRIPTION; TRANS_ID; CUSTOMER

    Z4; D425Z4; RC 8901; 0; 0; 0; 0.00; 201004; 201004; TestData; -118; Z4

    The import script generated is:

    SET DEFINE OFF

    -As line 1 non been einfügen

    -ORA-00957 double column name:

    Line - 1

    INSERT INTO IMPORT_DATA (COST_CENTER, PROJECT, id_ressource, WORKORDER, VERSION, ACCOUNT, VOLUME_FLAG, ACCOUNT, PRICE, QUANTITY, ACCOUNT, ACCOUNT, DESCRIPTION, TRANS_ID, CUSTOMER) VALUES ("Z4", "D425Z4", ",", "RC", '8901' 0,0 '0', 0.0, 0.0, '201004', '201004', "Testdata",-118.0, "Z4");

    and as you can see, it has the column AMOUNT several times.

    Help!

    Concerning

    Peter

    What you have on the step 3 of 5 of the wizard when you set the columns?

    It seems you have more values on your input string you have columns of your table.

  • How to create Table View with even a column name but another Table?

    Hi all

    I have the problem to create a tableview with the same column name, but in the other table.

    Table I: -.

    Table - PAC051MPROFORMA

    Column - MNR, visitid

    Table - PAC051TPROFORMA
    Column - MNR, visitid

    Table - PAC052MTRANSBILL
    Column - MNR, visitid

    Then, I want to create a table for this table. It comes to my SQL

    Pacviewproforma CREATE VIEW (MNR, visitid, MNR, visitid, MNR, visitid)

    Like some PAC051MPROFORMA.mrn, PAC051MPROFORMA.visitid, PAC051TPROFORMA.mrn, PAC051TPROFORMA.visitid, PAC052MTRANSBILL.mrn, PAC052MTRANSBILL.visitid

    where

    * (a.PAC051MPROFORMA.mrn = PAC051TPROFORMA.mrn) *.
    and
    * (a.PAC051TPROFORMA.mrn = PAC052TRANSBILL.mrn) *.

    SQL return this error ORA-00957 =: duplicate column name

    Can I change this SQL for

    Pacviewproforma CREATE VIEW (MNR, visitid)

    Like some PAC051MPROFORMA.mrn, PAC051MPROFORMA.visitid, PAC051TPROFORMA.mrn, PAC051TPROFORMA.visitid, PAC052MTRANSBILL.mrn, PAC052MTRANSBILL.visitid

    where

    * (a.PAC051MPROFORMA.mrn = PAC051TPROFORMA.mrn) *.
    and
    * (a.PAC051TPROFORMA.mrn = PAC052TRANSBILL.mrn) *.
    This time this error return = ORA-01730: number of column names specified invalid

    What should I do?

    Thank you...

    Hello

    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
     10  where
     11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
     12  and
     13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
                                             *
    ERROR at line 1:
    ORA-00957: duplicate column name
    

    Please give different names to each column.

    Something like that...

    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
     10  where
     11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
     12  and
     13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    
    View created.
    
    SQL> DESC  pacviewproforma;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MPROFORMA_MRN                                      NUMBER
     MPROFORMA_VISITID                                  NUMBER
     TPROFORMA_MRN                                      NUMBER
     TPROFORMA_VISITID                                  NUMBER
     MTRANSBILL_MRN                                     NUMBER
     MTRANSBILL_VISITID                                 NUMBER
    

    ORA-01730: number of column names specified invalid

    The list of the nmae column you specified for the CREATE VIEW must correspond with the list of SELECTION in the view.

    Twinkle

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • PLS-00402 Alias required for selection of the slider list to avoid the names of col dup

    Hi Frens,

    I met the above error and fail to solve. Can someone help me please? I can't draw.

    PROCEDURE FTEST_ST_YLD_PROC
    (
    pScheduleoption IN varchar2,
    pCustomercode IN varchar2,
    pActivity IN varchar2,
    Adapting IN varchar2,
    pWW varchar2,
    pPackage IN varchar2,
    pCursor in THE CRPT_CURTYPE. T_RPTCUR)
    IS

    vStartDate varchar2 (15) value default null;
    vEndDate varchar2 (15) value default null;
    vWW default number 0;
    vCustomercode VarChar2 (5);
    vPackage VarChar2 (30);
    vActivity Varchar2 (40);
    vStep Varchar2 (40);

    jar varchar2 (20);

    XYZ cursor IS
    SELECT leadcount package unit, testdevice, customercode, originalcustomerlotnumber, customerlotnumber, trackinqty, batch, bintype, binphysicalqty, testpasssamplenumber,
    Description, ww, BinType, binnumber, binlotid, t.Activity, t.Step, month, LastUpdate, UNACCOUNTVARIANCE, binlotid, yieldvalue
    OF ftest_testtxn@shdb t, fwcatns_testbintxn@shdb b
    where t.lotobject = b.lotobject
    and t.step = b.step
    and t.operationtype = b.operationtype
    and t.lottxncounter = b.lottxncounter
    and t.activity = vActivity
    and t.customercode = vCustomerCode
    and t.step = vStep
    and t.package = vPackage
    and ((t.lastupdate > vStartDate et t.lastupdate < = vEndDate) or t.ww = vWW);


    BEGIN

    -CustomerCode
    If pCustomercode = ' *' OR pCustomercode Is Null Then
    vCustomerCode: = '% ';
    On the other
    vCustomerCode: = pCustomercode;
    End If;

    -Package
    If ppackage = ' *' GOLD ppackage Is Null Then
    vPackage: = '% ';
    On the other
    vPackage: = ppackage;
    End If;

    Their properties-
    If pActivity = '%' OR pActivity Is Null Then
    vActivity: = '% ';
    On the other
    vActivity: = pActivity;
    End If;

    -Step
    If adapting = ' *' OR adapting Is Null Then
    vStep: = '% ';
    On the other
    vStep: = adapting;
    End If;

    -Date range
    If pScheduleoption = "Monthly" then
    vStartDate: = utl_cal.firstdayofperiod (to_char (SYSDATE, 'YYYYMMDD'));
    vEndDate: = utl_cal.lastdayofperiod (to_char (SYSDATE, 'YYYYMMDD'));
    elsif pScheduleoption = "Weekly" then
    VEM: = utl_cal.workweek (to_char (SYSDATE, 'YYYYMMDD'));
    vStartDate: = firstdayofww (vWW, utl_cal.firstdayofperiod (to_char (SYSDATE, 'YYYYMMDD')));
    vEndDate: = lastdayofww (vStartDate);
    elsif pScheduleoption = 'Manual' then
    VEM: = pWW;
    End If;


    For Rec loop XYZ

    Select to_char (d.originalcustomerlotnumber) separate in jar
    fwcatns_diesinventory d, ftest_testtxn t
    where d.lotobject = t.lotobject
    and d.customerlotnumber = Lotcur.customerlotnumber;


    If the BDU is null then
    jar: = Lotcur.originalcustomerlotnumber;
    ElsIf length (trim (wfr)) < = 100 then
    jar: = wfr | «, » || Lotcur.originalcustomerlotnumber;
    On the other
    Exit;
    End If;

    End loop;


    OPEN FOR PCURSOR
    SELECT * FROM ftest_testtxn t, fwcatns_testbintxn b
    where t.lotobject = b.lotobject
    and t.step = b.step
    and t.operationtype = b.operationtype
    and t.lottxncounter = b.lottxncounter;

    End;

    Hello
    Whenever you perform the operation of join between two tables, the similar names of the columns in the junction tables must be identified under the pseudonym given to their respective tables. This helps to db to retrieve data in the required columns.
    Thus,.
    Replace the column name in the selection with an alias list duplicate.

    Kind regards
    Twinkle

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • 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?

  • Error in the COLMAP clause. Column name not found

    Hi guys,.

    I must be missing something simple here, but I can't understand it. I have a very simple test, I am trying to make. Remap the 1 table column in the other on replicat.

    I created the file defgens.
    *
    * Definitions created/modified 2013-02-12 13:08
    *
    * Description of the areas for each entry in the column:
    *
    * 1 name
    * Data type 2
    * 3 external length
    * Fetch 4 Offset
    * Level 5
    * 6 level
    * 7 null
    * 8 so strange bump
    * Inner length 9
    * 10 binary length
    * Length of the table 11
    * 12 most significant DT
    * 13 least significant DT
    * 14 high precision
    * 15 little specific
    * 16 point elementary
    * Occurs 17
    * Column 18 key
    * Data type of void 19
    *
    *
    Definition of table of BILLING. B1
    Length: 92
    SYSKEY: 0
    Columns: 2
    B_ID 64 50 0 0 0 1 0 50 50 50 0 0 0 0 1 0 1 2
    B_F_NAME 64 30 56 0 0 1 0 30 30 0 0 0 0 0 1 0 0 0
    End of definition
    *
    Definition of table of BILLING. B2
    Length: 92
    SYSKEY: 0
    Columns: 2
    B_ID 64 50 0 0 0 1 0 50 50 50 0 0 0 0 1 0 1 2
    B_L_NAME 64 30 56 0 0 1 0 30 30 0 0 0 0 0 1 0 1 0
    End of definition


    I installed the replicat read the sourcedefs and remap the columns

    -Identify the Replicat group:
    REPLICAT rxtest
    -State that the source and target definitions are identical:
    -ASSUMETARGETDEFS
    SOURCEDEFS /u12/oracle/golden_gate_11_rep/dirsql/defgen_billing.sql
    -Delete the installation program
    DISCARDFILE u12/oracle/golden_gate_11_rep/dirout/rxtest.txt, SERVING
    SETENV (NLS_LANG = 'AMERICAN_AMERICA. WE8MSWIN1252")
    -Specify the database connection information as needed for the database:
    GG username, password
    -Specify the error handling rules:
    REPERROR (BY DEFAULT, ABEND)

    DDL EXCLUDE ALL THE

    Billing.b1, billing.r1 of the TARGET CARD,
    () COLMAP
    B_ID = id,
    b_f_name = what);

    Now, when I try and start replicat rxtest I get this error in the report.

    Resolved CARD (entry of BILLING. (B1):
    THE CARD BILLING. B1, TARGET billing.r1, COLMAP (B_ID = id b_f_name = what);
    ... (B_ID = id b_f_name = what...)
    ^
    Error in the COLMAP clause. Column name not found.

    Any ideas? Thank you

    And the ranking of the column names in your clause of colmap? If that is not reversed?

  • Error based on nested groups used by column name.

    Hi team,

    If I used the function of group nested with column name his does not work. Could you please all you suggest me.

    How to use it.

    Kind regards
    Vincent.

    Please find coil...

    SQL > select user_name, max (max (CNT)) in (select USER_NAME, count (*) NTC from v$ open_cursor group USER_NAME)
    2 group user_name, CNT;
    Select user_name, max (max (CNT)) in (select USER_NAME, count (*) NTC from v$ open_cursor group USER_NAME)
    *
    ERROR on line 1:
    ORA-00937: not a single group group function


    SQL > select max (max (CNT)) in (select USER_NAME, count (*) NTC from v$ open_cursor group USER_NAME)
    2 group of user_name;

    MAX (MAX (CNT))
    -------------
    605

    Or simply (but it would be wrong if several users have same count (*)):

    select max(USER_NAME)keep(dense_rank first order by count(*)) username
          ,max(count(*)) CNT
    from v$open_cursor
    group by USER_NAME
    
  • Invalid column name error

    Having an interesting problem with a site I'm fixing. I don't know that I'm looking beyond the obvious, so maybe some of you can help:

    ASP pages display the results of the recordset based on a session variable (Member ID) that is created when the user login.

    Recordset looks like this:

    < %
    Dim rs__MMColParam
    rs__MMColParam = '% '.
    If (Session("memberID") <>"") then
    rs__MMColParam = Session("memberID")
    End If
    % >
    < %
    Set rs = Server.CreateObject ("ADODB. Recordset')
    RS. ActiveConnection = MM_cnConnection_STRING
    RS. Source = "SELECT id, adminusername, anotherone1, anotherone2, anotherone3 FROM dbo.basic1 WHERE adminusername = ' ' + replace (rs__MMColParam,"'"," "") + "'."
    RS. CursorType = 0
    RS. CursorLocation = 2
    RS. LockType = 3
    RS. Open()
    rs_numRows = 0
    % >

    Looks good to me, unles I forget something obvious.

    Unfortunately, I get the following error:

    Microsoft OLE DB provider for ODBC error '80040e14' drivers
    [Microsoft] [ODBC SQL Server driver] [SQL Server] Invalid column name 'SESSIONVAR.

    (Note: this error above, SESSIONVAR is the name of the variable member of session ID)

    Strange thing is, as long as the session variable is a #, everything works. If that's a Word, it won't work. It seems that the session variables are defined and passed to the next page.

    Regarding the database, this is a SQL database
    column 'adminusername' is an NVARCHAR with a limit of 4000 tank

    Thanks in advance for any help.

    Having an interesting problem with a site I'm fixing. I don't know that I'm looking beyond the obvious, so maybe some of you can help:

    ASP pages display the results of the recordset based on a session variable (Member ID) that is created when the user login.

    Recordset looks like this:

    < %="">< br="">Dim rs__MMColParam < br="" >="" rs__mmcolparam="« % »"> < br=""> if (Session("memberID") <> "") then < br=""> rs__MMColParam = Session("memberID") < br=""> End If < br=""> %>
    < %="">< br="" >="" set="" rs="Server.CreateObject" ("adodb.="" recordset »)="">< br="" >="" rs.="" activeconnection="MM_cnConnection_STRING">< br="" >="" rs.="" source="« SELECT" id,="" adminusername,="" anotherone1,="" anotherone2,="" anotherone3="" from="" dbo.basic1="" where="" adminusername=' » + remplacer (rs__MMColParam, "' ",="" "''")="" +="" « '="">< br="">RS. CursorType = 0 < br="" >="" rs.="" cursorlocation="2"> < br="" >="" rs.="" locktype="3"> < br="" >="" rs.="" open()=""> < br=""> rs_numRows = 0< br="" >="" %="">

    Looks good to me, unles I forget something obvious.

    Unfortunately, I get the following error:

    Microsoft OLE DB provider for ODBC error '80040e14' drivers
    [Microsoft] [ODBC SQL Server driver] [SQL Server] Invalid column name 'SESSIONVAR.

    (Note: this error above, SESSIONVAR is the name of the variable member of session ID)

    Strange thing is, as long as the session variable is a #, everything works. If that's a Word, it won't work. It seems that the session variables are defined and passed to the next page.

    Regarding the database, this is a SQL database
    column 'adminusername' is an NVARCHAR with a limit of 4000 tank

    Thanks in advance for any help.

  • Number of error SQL ORA-00904: invalid column name has occurred.

    Hello
    on P8.18 on a Win 2003 server when we launch SWPAUDIT, it failed with:
    Number of error SQL ORA-00904: invalid column name has occurred. Query process failed.
    I searched this error on metalink3. Nothing in connection with.

    Any idea?

    Thank you.

    Please give a clear picture of what you are doing... .and what paintings... There is the possibility of the audit refers to certain tables... with deleted. names of columns just look in the structure of what you audit?

    Please, find the name of column...

    ORA-00904: string: invalid identifier
    Cause: The column name entered is invalid or missing.
    Action: Enter a valid column name. A valid column name must start with a letter, must be less than or equal to 30 characters and include only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in quotation marks. It cannot be a reserved word.

  • Oracle: Nested joins/sub-requetes: odd column names and an unexplained error

    The following query works fine. It is a series of nested joins to give me a kind of main table:

    SELECT *

    FROM proj_trainer k

    JOIN

    (

      SELECT *

      FROM proj_breeder i

      JOIN

      (

      SELECT *

      FROM proj_jockey g

      JOIN

      (

      SELECT *

      FROM proj_horses e

      JOIN

      (

      SELECT *

      FROM proj_results c

      JOIN

      (

      SELECT *

      FROM proj_race_details a

      JOIN proj_meet b

      ON a.meet_id = b.meet_id

      ) d

      ON c.race_id = d.race_id

      ) f

      ON e.horse_id = f.horse_id

      ) h

      ON g.jockey_id = h.jockey_id

      )j

      ON i.breeder_id = j.breeder_id

    ) l

    ON k.trainer_id = l.trainer_id;

    It works very well with a strange feature, that is not my main problem. Some columns are back with weird codes such as "QCSJ_C000000001300001". Don't know why, or if it comes to my real problem.

    The real problem is that when I add just a subquery join more I get:

    ORA-00904: "N"."RACE_ID": invalid identifier

    Here is the same code with the additional nested block (the one on the very outside)

    SELECT *

    FROM proj_entry m

    JOIN

    (

      SELECT *

      FROM proj_trainer k

      JOIN

      (

      SELECT *

      FROM proj_breeder i

      JOIN

      (

      SELECT *

      FROM proj_jockey g

      JOIN

      (

      SELECT *

      FROM proj_horses e

      JOIN

      (

      SELECT *

      FROM proj_results c

      JOIN

      (

      SELECT *

      FROM proj_race_details a

      JOIN proj_meet b

      ON a.meet_id = b.meet_id

      ) d

      ON c.race_id = d.race_id

      ) f

      ON e.horse_id = f.horse_id

      ) h

      ON g.jockey_id = h.jockey_id

      )j

      ON i.breeder_id = j.breeder_id

      ) l

      ON k.trainer_id = l.trainer_id

    ) n

    ON n.race_id = m.race_id AND n.horse_id = m.horse_id;

    I felt as if I was on the hill with it and then the last line was wrong somehow, despite having virtually the same structure as all previous blocks. I also used the race_id and the horse_id above in the code so that they work.

    I also tried this on the last line:

    ON n.race_id = m.race_id AND n.horse_id = m.horse_id;

    and a few other variations, with supports etc...

    Hello

    I can't reproduce the problem, so I can't say with certainty. It might have to do with the same column names which occur in several tables.

    Why do you need nested views online?  Why not simply join all tables directly, like this?

    SELECT *- or display the columns that you really need

    OF proj_race_details one

    JOIN proj_meet b ON b.meet_id = a.meet_id

    JOIN proj_resuls c ON c.race_id = b.race_id - or a.race_id

    ...

    JOIN proj_trainer k WE k.trainer_id = i.trainer_id - or else

    JOIN proj_entry m ON m.race_id = k.race_id - or else

    AND m.horse_id = k.horse_id - or else

    ;

    I guess just the tables that contain columns; for example, I can't tell what you posted if proj_race_details or proj_meet contains race_id.  If I guessed wrong, use the correct table alias.  Are eligible all the column names with the correct alias.

  • INSTEAD, error PLS-00049: bad connection variable

    I try to use a PLACE for me to enter data in a table of bridge. Thanks in advance

    I get the following error:

    Error on line 4: PLS 00049: bad connection variable ' NEW. MEMBER_ID'

    2 INSTEAD OF THE INSERT OR UPDATE OR DELETE
    3 ON VI_Member_Talent_VW making REFERENCE AGAIN AS NINE OLD and OLD
    4. FOR EACH LINE
    5. START TO
    6. IF THE INSERTION

    Here is the code:



    CREATE OR REPLACE TRIGGER VI_INSERT_UPDATE_MT
    INSTEAD OF INSERT OR UPDATE OR DELETE
    ON VI_Member_Talent_VW REFERENCING NEW AS NEW as OLD OLD
    FOR EACH LINE
    BEGIN
    IF THE INSERTION
    THEN
    INSERT INTO VI_Member_Talent (Member_ID, Talent_ID) VALUES (: NEW.) Member_ID,: NEW. Talent_ID);
    END IF;
    IF THE UPDATE
    THEN
    UPDATE VI_Member_Talent SET Member_ID =: NEW. Member_ID, Talent_ID =: NEW. Talent_ID
    WHERE ROWID =: OLD.ID;
    END IF;
    IF THE REMOVAL
    THEN
    DELETE FROM VI_Member_Talent WHERE ROWID =: OLD.ID;
    END IF;
    END;

    Edited by: user13003575 may 2, 2010 08:53

    user13003575 wrote:
    It's the view

    CREATE OR REPLACE FORCE VIEW  "VI_MEMBER_TALENT_VW" ("ID", "Member_ID", "Talent_ID") AS
    SELECT rowid id, Member_ID, Talent_ID
    FROM VI_Member_Talent
    /
    

    and there is the problem.

    The view was created with quotes around column names, so that they are case-sensitive. You need to either modify your trigger double quote column names, or rebuild the view without the quotes. Personally, I'd go with changing the display.

    John

Maybe you are looking for

  • No HDMI audio on TV - Pavilion dm4-1160us Entertainment Notebook

    I know there are a lot of post on this issue, but nothing works for me.  I have a Pavilion dm4-1160us entertainment laptop running windows 7 64 bit.  I uninstalled the drivers both graphics and chip and reinstalled (warning says that I was installing

  • When Windows XP does not store my background picture to screen?

    What I wonder about has been taken with a cell phone camera and installed by my wife months ago. I would use a copy of this picture on my other computer Windows XP, because I lost the original. So where can I find it and could you please be specific

  • DLL C:\Program Files\NewDotNet\newdotnet_722.dll is not a valid Windows image.

    The foregoing constantly appears on our computer.  It started recently and we have not uploaded any files.  What is clicked OK, the pop up disappears.  Need help to eliminate this problem.

  • Cannot access Smart WiFi in cascade mode

    I have the following Setup. My modem ADSL ISP is the main router with DHCP and its address is 10.0.0.138 who, for some reason, I can't change. I booked 10.0.0.1 for my EA2700. My EA2700 Port 1 is connected to my wireless Internet service provider rou

  • Open the file using paint .bmp, it no longer works.

    Original title: how? Greetings... today I open a .bmp file with paint... and now this file does not work... I want to this: http://prntscr.com/4d0gf8 I know that this is not cause of bmp I can't open bmp like that... means to bmp file restoration pai