Error (11,15): PL/SQL: ORA-00913: too many values
CREATE OR REPLACE TRIGGER TBI_POSCUSTXREF_IDU BEFORE INSERT OR UPDATE OR DELETE ON pos_cust_xref FOR EACH ROW
DECLARE
l_cod_action CHAR;
BEGIN
IF INSERTING THEN
l_cod_action := 'I';
ELSIF UPDATING THEN
l_cod_action := 'U';
ELSIF DELETING THEN
l_cod_action := 'D';
END IF;
INSERT INTO at_pos_cust_xref VALUES (
:new.DIST_NUMBER,
:new.DIST_BRANCH,
:new.DIST_NUMBER,
:new.DIST_BRANCH ,
:new.DAYS_PRICE_PROT ,
:new.TAPE_DAYS_PRICE_PROT ,
:new.DAYS_IN_TRANSIT ,
:new.ACTIVE_IND ,
:new.COMM_IND ,
:new.SHORT_NAME ,
:new.SG_BILL_TO_CUST_NO ,
:new.TAPE_BILL_TO_CUST_NO ,
:new.SG_SHIP_TO_CUST_NO ,
:new.TAPE_SHIP_TO_CUST_NO ,
:new.NAME_FLAG ,
:new.ADMIN_GLOBAL_ID ,
:new.ZIP_CODE_PREFIX ,
:new.DAILY_POS ,
:new.PRIMARY_SALES_OUT ,
:new.PRIMARY_COUNTRY_FLAG ,
:new.PRIMARY_START_DATE ,
:new.CWAC_ID ,
:new.COMMENT_ID ,
:new.LAST_UPD_BY ,
:new.LAST_UPD_DATE ,
:new.DESIGN_IN_IND ,
:new.CLAIM_PROCESSOR ,
:new.PRE_APPROVER_ID ,
:new.CLAIMS_WITHIN_DAYS ,
:new.SG_AREA_CODE ,
:new.CLAIM_TYPE ,
:new.ART_APPROVER_ID ,
:new.ACCT_PAY_ID ,
:new.TAPE_ACCT_PAY_ID ,
:new.POS_CORP_CODE ,
:new.POS_CUST_NAME ,
:new.POS_COUNTRY ,
:new.POS_STREET_ADDR ,
:new.POS_CITY ,
:new.POS_STATE ,
:new.POS_ZIP ,
:new.INDIRECT_DISTI ,
:new.ARCHIVE_DATE ,
:new.CONT_CUST_EFFDATE ,
:new.LSID ,
:new.POS_COUNTRY_CODE ,
:new.SEGMENTATION ,
:new.POS_STREET_ADDR2 ,
:new.INVENTORY_AUDIT_DATE ,
:new.PROCESS_REGION ,
:new.CATEGORY_TYPE ,
:new.OVERRIDE_ZIPCODE ,
:new.OVERRIDE_COUNTRYCODE ,
:new.OVERRIDE_COM_FLAG ,
:new.POS_STREET_ADDR3 ,
:new.POS_STREET_ADDR4 ,
:new.POS_STREET_ADDR5 ,
:new.POS_STREET_ADDR6 ,
:new.POS_STATE_CODE ,
:new.DIST_NUMBER_CE ,
:new.SG_BILL_TO_CUST_NO_CE ,
:new.DIST_NUMBER_RTL ,
:new.SG_BILL_TO_CUST_NO_RTL ,
:new.DIST_NUMBER_MXO ,
:new.SG_BILL_TO_CUST_NO_MXO ,
:new.SRP_CATEGORY ,
:new.PTPP_DIST_NUMBER ,
:new.BOOKED_REVENUE ,
:new.GROUP_DIST_NUMBER_ZYME ,
:new.ZYME_CUTOVER_DATA_DATE ,
:new.DIST_TIMEZONE ,
:new.CURRENCY_CODE ,
systimestamp,
l_cod_action);
END;
Published by: user9093700 on March 7, 2012 11:58
:new.DIST_NUMBER,
:new.DIST_BRANCH,
:new.DIST_NUMBER,
:new.DIST_BRANCH,
Why you insert DIST_NUMBER and DIST_BRANCH two times each? Remove each one and your problem will be solved.
Tags: Database
Similar Questions
-
Hi all
I use the Sub merge statement and I'm getting too many questions of lines when I'm compiling.
BEGIN
FOR te_rec IN (SELECT / * + parallel(ts,4) * / telcos_eligible te.dtv_acct_num you, telcos_setup ts, tp telcos_partners)
WHERE tp.telcos_name = UPPER ((p_telcos_name))
AND ts.partner_id = tp.partner_id
AND te.ts_id = ts.ts_id) LOOP
MERGE INTO tcs_accounts
WITH THE HELP OF)
SELECT / * + DRIVING_SITE (a) * / account_id, a.subscriber_id, status, account_type FROM account@tcs_to_paris an a.subscriber_id WHERE the = te_rec.dtv_acct_num
) paris_accounts
WE (tcs_accounts.subscriber_id = paris_accounts.subscriber_id)
WHEN MATCHED THEN
GAME UPDATE
account_type = paris_accounts.account_type,
subscriber_id = paris_acounts.subscriber_id,
status = paris_accounts.status
WHEN NOT MATCHED THEN
INSERT (account_id, subscriber_id, status_account_type)
VALUES (paris_accounts.account_id, paris_accounts.subscriber_id, paris_accounts.status, paris_accounts.account_type);
END LOOP;
END;
Can you let me know what is the problem here.
Thank you
MK.>
WHEN NOT MATCHED THEN
INSERT (account_id, subscriber_id, status_account_type) - the problem here: STATUS_ACCOUNT_TYPE
VALUES (paris_accounts.account_id, paris_accounts.subscriber_id, paris_accounts.status, paris_accounts.account_type);
>Comma after STATUS instead of underscore (_), otherwise, you have only three columns instead of four:
(.. STATUS, ACCOUNT_TYPE) -
ORA-00913: too many values
Hello
I RAN
Then the results are:-ORA-00913: too many valuesselect T.bill_no,T.bill_date,T.vehicle_no,T.PARTY_NAME,SUM(T.AMOUNT),SUM(T.VAT_AMOUNT), (select SUM(L.LABOUR_AMT),SUM(L.SERVICE_TAX_AMT) from LAB_WORK_DTL L where T.BILL_NO=L.BILL_NO(+)) from transaction_details T where T.BILL_NO =:P27_BILL_NO GROUP BY T.bill_no,T.bill_date,T.vehicle_no,T.PARTY_NAME
Why is this error. Where is the problem in my code.
Thank youHello Maury,
What exactly are you trying to achieve in this queryselect SUM(L.LABOUR_AMT), SUM(L.SERVICE_TAX_AMT) from LAB_WORK_DTL L where T.BILL_NO = L.BILL_NO(+)
You can not have 2 values there SUM (L.LABOUR_AMT) and SUM (L.SERVICE_TAX_AMT).
Do you intend to add them or perform any other operation.
If no, and you need these values separately it is a way to doselect T.bill_no, T.bill_date, T.vehicle_no, T.PARTY_NAME, SUM(T.AMOUNT), SUM(T.VAT_AMOUNT), (select SUM(L.LABOUR_AMT) from LAB_WORK_DTL L where T.BILL_NO = L.BILL_NO) LABOUR_AMT, (select SUM(L.SERVICE_TAX_AMT) from LAB_WORK_DTL L where T.BILL_NO = L.BILL_NO) SERVICE_TAX_AMT from transaction_details T where T.BILL_NO = :P27_BILL_NO GROUP BY T.bill_no, T.bill_date, T.vehicle_no, T.PARTY_NAME
See you soon!
BobinPublished by: Buga change request
-
An error of Dimension to slow variation: too many values
Hello
Trying to implement using the CPCS? IKM dimension to slow variation on all columns with their descriptions
but, when I execute the lines 8 old Historize interface, that it was not
Error message:
913: 42000: java.sql.SQLException: ORA-00913: too many values
java.sql.SQLException: ORA-00913: too many values
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
I have only on 93 records
can someone help me on this?
Thank you
Saichand.v
Published by: André Varanasi on October 4, 2010 16:26SAI,
The query I've deduced the following:
1. natural key is DATASOURCE_ID
2. you have 2 columns marked as end IFL stamp - T.AUX_DATE2, T.AUX_DATE4
3. you have 3 columns marked as IFL Start Timestamp - S.INS_EXP_DT, S.AUX_DATE1, S.AUX_DATE3Apart from the error you are getting, there is another error you get - not enough columns.
>
Set)
T.FLAG
,
T.AUX_DATE2,
T.AUX_DATE4
) = (
Select 0
,
S.INS_EXP_DT,
S.AUX_DATE1,
S.AUX_DATE3
André. ' ' I$ _WC_CAR_Test "S
>
You try to define 3 columns, while the select statement has 4 columns.
And this is due to the fact that you have more columns marked as start date of the SCD and SCD End Date.
I met this interesting scenario, I think that the KMs are built to handle only a single column to be marked as SCD Start Date and another a column to be marked as SCD End Date.
And it is consistent with the definition of the Type 2 SCD.Now, the error you get currently - as you have mentioned earlier that your Datasource_id is constant = 1. So, you have a natural key which is always 1 for all 93 records!
Don't you think that it is good natural key? -
Hi all
11.2.0.3.10
AIX6
I was installing store_procedures on our PROD several times, and they are successful. This stored_procedures are created by developers and once tested on DEV & UAT, they are transferred to the PROD through me.
But this time I install a new SP, but I got error > Error (301,28): PL/SQL: ORA-00942: table or view does not exist
Even if the synonym. The owner of the schema of the SP has grant select on the table and synonym of created. Why not MS can see this synonym?
Is there something that I missed?
Help, please... I'm going crazy
Thank you all,
MK
Since there is only one user in your role, so I'll suggest to directly grant you the user rather than role - it's the easiest and simplest account according to your needs. The roles are best used to organize all of the users. If ever it is necessary to use roles (i.e. multiple users/schemas in a role) then, I think, you can play with AUTHID clause creating blocks.
-
CREATE or REPLACE (name in varchar2) procedure Compress_tab_partition
is
last_mnth_var varchar2 (8);
curr_mnth_var varchar2 (8);
number of last_mnth;
number of curr_mnth;
last_partition varchar2 (8);
high_val varchar2 (4000);
StartSelect to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;
Select to_char (sysdate, 'YYYY') | TO_CHAR (sysdate, 'mm') | ' 00' in the double curr_mnth_var;
Select to_number (last_mnth_var) in the double last_mnth;
Select to_number (curr_mnth_var) in the double curr_mnth;Dbms_output.put_line ('Compression of GOLDMGR Table scores.' | table-name |) "to go". ») ;
Dbms_output.put_line(' ');/ * Step 1 - identify the name of the partition of the specified table must be compressed * /.
Select high_value from high_val from user_tab_partitions where table_name = table-name;
Select nom_partition into last_partition from user_tab_partitions where table_name = table-name and high_value = rtrim (high_val);/ * Step 2 - Alter partition table to compress * /.
run immediately "ALTER TABLE GOLDMGR." | table_name | ' CHANGE THE PARTITION '. last_partition | "COMPRESS by low query";
/ * Step 3 - Index rebuild step * /.
I'm in (select index_name in user_indexes where table_name = table-name)
loop
run immediately "ALTER INDEX GOLDMGR." | i.index_name |' REBUILD ";
end loop;Dbms_output.put_line (' COMPLETED: compress the Table partitions change.) ") ;
end;
/I'm getting an error like: Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type
Please resolve.
HIGH_VALUE datatype is LONG. You may not use for a long TIME in WHERE clause expressions. You need to loop through the partitions by selecting HIGH_VALUE and then comparing. Secondly, there is no need to select double to calculate expressions. For example:
Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;
should be replaced by
last_mnth_var: = to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00'.
and there is no need to add_months here:
last_mnth_var: = to_char (trunc (sysdate, 'MM') - 1, "YYYYMM"). ' 00'.
But the main question is simply ALTER TABLE MODIFY PARTITION COMPRESS allows compression but does not compress. You must issue ALTER TABLE MOVE PARTITION COMPRESS:
SQL > create table tbl (n) partition by range (n)
2 (partition p1 values less than (maxvalue))
3. Select lpad('X',4000,'X') from dual connect by level<=>=>
4.Table created.
SQL > select bytes
2 from WHERE user_segments
3 where nom_segment = 'TBL '.
4 and nom_partition = 'P1 '.
5.BYTES
----------
830472192SQL > alter table tbl
2. change the partition p1 compress
3.Modified table.
SQL > select bytes
2 from WHERE user_segments
3 where nom_segment = 'TBL '.
4 and nom_partition = 'P1 '.
5.BYTES
----------
830472192SQL > alter table tbl
2. move the partition p1 compress
3.Modified table.
SQL > select bytes
2 from WHERE user_segments
3 where nom_segment = 'TBL '.
4 and nom_partition = 'P1 '.
5.BYTES
----------
8388608SQL >
SY.
-
I get currently getting an error when I try and insert into a table of a different pattern of my stored procedure:
Error (20.22): PL/SQL: ORA-00942: table or view does not exist
I am explicitly calling the table with the name of the schema that is infront
INSERT INTO SAPSR3. ZTREC_NAME_TYPE
(
MASTER_ID,
NAME_TYPE,
FAMILY_NAME,
FIRST NAME,
MIDDLE_NAME,
TITLE
)
VALUES
(
In_MasterID,
In_NameType,
In_FamilyName,
In_FirstName,
In_MiddleName,
In_Title
);
Only, I get this error when I try to compile my stored procedure. If I try this insert not within a stored procedure (for example, an empty script) it works perfectly.
Can someone tell me what Im doing wrong?
Thank you.Hello
Looks like you (the owner of the procedure) have privileges on that table only through a role.
Roles do not count in the stored procedures created with AUTHID OWNER (which is the default).Or the other
(1) user SAPSR3 have the privileges needed directly at you (or public), or
(2) change the procedure so that it runs with the privileges of the caller, adding AUTHID CURRENT_USER after the list of arguments, but before the keyword IS (AS os) like this:CREATE OR REPLACE PROCEDURE foo ( x IN NUMBER ) AUTHID CURRENT_USER IS ...
-
PL/SQL: ORA-00947: not enough values error message
Hi all I get Error (25.63): PL/SQL: ORA-00947: not enough error message values when executing after the insert statement. I am new to Oracle SPs, if someone could help me solve the problem.
Insert in estimate (ID, mValue) values ('select (where pm.ID is null then 10))
of other pm.ID
End ID), m1.mID, (case when mValue < 1 and m1.mID in (1.7))
then mValue * 100
of another mValue
mValue end) of
Scott. Left outer join METRICS m1
Scott. (PROJECTMETRIC h m1.mID = pm.ID and pm.ID = 10)');The syntax to insert rows into a table of a subquery is as follows:
insert into table (col1, col2, ...) select ... , ..., .... from ..., .... where .... /
-
UTL_SMTP. ORA-30678: too many open connections. Why?
Hello
I use UTL_SMTP for sending email to support staff in some scenarios. IT everything has worked until today, we got following error in Java logs. I searched and found a similar position at [http://asktom.oracle.com/pls/asktom/f/f?p=100:11:0:P11_QUESTION_ID:255615160805 #611756800346679486]
- Caused By (java.sql .SQLException: ORA-20005: prc_my_sp - ORA-30678: too many open connections ORA-06512: at "SYS.UTL_TCP", line 28 ORA-06512: at "SYS.UTL_TCP", line 257 ORA-06512: at "SYS.UTL_SMTP", line 115 ORA-06512 ORA-06512: at "MY_PKG", line 1378 {code}Still, I'm not able to make out how to resolve this error. We use Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production "CORE 10.2.0.4.0 Production" TNS for Solaris: Version 10.2.0.4.0 - Production NLSRTL Version 10.2.0.4.0 - Production Please throw some light on cause and resolution. Thanks, Sam
Yes, you need to open the connection outside of the loop.
-
ORA-00939: too many arguments for works by using zones in xquery
Running on the Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production database
CREATE TABLE "ORT"."SAMPLE" ( "THEDATE" DATE, "THETIMESTAMP" TIMESTAMP (6), "STARTTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE, "ENDTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE );
REM INSERTING into SAMPLE SET DEFINE OFF; Insert into SAMPLE (THEDATE,THETIMESTAMP,STARTTIMESTAMP,ENDTIMESTAMP) values (to_date('13-06-10 14:07:52','RR-MM-DD HH24:MI:SS'),to_timestamp('13-06-19 14:27:52.000000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 10:34:04.586000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 15:05:38.805000000','RR-MM-DD HH24:MI:SS.FF'));
the following query triggers ora-00939
SELECT XMLQUERY('for $v in fn:collection("oradb:/ORT/SAMPLE") let $date1 := $v/ROW/STARTTIMESTAMP/text() let $date2 := $v/ROW/ENDTIMESTAMP/text() return if ($date1 < $date2) then (concat($date1," date is less than ", $date2)) else (concat($date1," date is greater than ", $date2)) ' returning content) from dual;
ORA-00939: too many arguments to function
00939 00000 - "too many arguments for the function.
* Cause:
* Action:
any ideas?
This is a bug related to the rewriting of XQuery.
It works with the NO_XML_QUERY_REWRITE indicator:
SELECT / * + no_xml_query_rewrite * /.
XMLQUERY)
but you should probably open a SR for this.
-
Too many values are related...
Hi all
I generate the report in dev and tested, working fine.i have exported and imported prod, have too many values in a cell.
Can someone tell me what is the problem...
Thank youI could be totally wrong, but I think I remember a question like that. Modification of data query optimization settings solved a similar problem. Reading this: http://docs.oracle.com/cd/E12825_01/epm.111/fr_user/25000334.html-and play with couple of different parameters. I would start by comparing the settings in different environments.
See you soon,.
Mehmet -
Dashboard quickly too many values of constraint
I have a requirement where the user wants to select among the thousands of available records. When you create a dashboard prompt that it takes only 250 values and remaining wrote too many values.My question is why you would build a prompt with the values a lot? I know you said the 'user wants', but sometimes you have to educate the (and when I say 'them' several times, it's a few loud people who just shout the loudest and so achieve their ends) that what they want isn't always the best. I think that it is virtually impossible to have to sift through thousands of values to find the one you want.
However, if the values are to be given, I would recommend penetrate blocked guests indicating on the label invited a range of values, so that each of them has a 'reasonable' values list and the user can directly access which "invites the high-end" will contain the value he wants.
-
Hello
Is it possible to change the thresholds of recoverable to a quick filter to dashboard. I see "too many values" in a filter and would like the opportunity to view all values.
Can anyone help?
Thank youHello
Drop-down list can handle a maximum of 256 values but if we want more drop-down list
Add the code below in instanceconfig.xml under tag ServerInstance
10000
* Restart services presentation
Reference: http://varanasisaichand.blogspot.com/2010_03_01_archive.htmlKind regards
Srikanth -
Drop-down list invites 'TOO MANY VALUES' from the list
I did a dashboard quickly with a list box down and I'm getting "too many values at the end of the fall to the bottom of the list box.
I want that all the values to display.
Anyone has a solution, thanks
I saw in the FAQ about the instanceconfig.xml file and the tag
value of < guests > < MaxDropDownValues > you must < / MaxDropDownValues > < / guest >
But I did not work for me, I use the KISS we and not POET...
Published by: Jim Nolette on June 4, 2010 09:07You've restarted services? and location also tags important, it should be inside tags serverinstance.
-
Error in Trigger (PL/SQL: ORA-01744: INTO inappropriate)
Hello
I wrote the trigger in the following format... As the initial trigger is about 700 lines, as well, everything is written here... Please cooperate...
The above code gives the error...CREATE OR REPLACE TRIGGER -- AFTER UPDATE OF COL1 ON TAB1 REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW WHEN (NOT(OLD.COL1 IS NULL AND NEW.COL1=0)) DECLARE -- -- rowToins PAK1.fdList; i number; BEGIN IF :NEW.COL2='V' THEN INSERT INTO DEST( --- --- D_AT) SELECT * FROM ( SELECT -- ---- ---- PAK2.FUN1('AD',TAB10.ID) AS D_AT FROM --- WHERE --- ) WHERE D_AT IS NOT NULL; ELSEIF :NEW.COL2 ='H' THEN SELECT * FROM ( SELECT -- ---- ---- PAK2.FUN1('AD',TAB9.ID) AS D_AT BULK COLLECT INTO rowToins FROM --- WHERE --- ) WHERE D_AT IS NOT NULL; i:=rowToins.FIRST; WHILE i IS NOT NULL LOOP --insert row 1 PAK1.fun2(rowToins(i).<col>, ---- ); i:=rowToins.NEXT(i); END LOOP; END IF; END; /
So, how can I fix the code...PL/SQL: ORA-01744: inappropriate INTO
Thank youSorry my mistake, it should be like this
SELECT * BULK COLLECT INTO rowToins FROM ( SELECT -- ---- ---- PAK2.FUN1('AD',TAB9.ID) AS D_AT FROM --- WHERE --- ) WHERE D_AT IS NOT NULL;
Maybe you are looking for
-
Error 80070664 to try Windows Update to "Definition of the update for Microsoft Office 2010 (KB982726), 64-bit edition" Windows 7 64-bit operating system
-
Windows 7 will not install the driver for hp deskjet 6540
I followed all the instructions on the site of HP and windows will not find and install the driver for my HP 6540. How to make Windows do what should or is there a reliable place to download the driver from?
-
Copy files from document library Sharepoint with matching criteria
Over the years, I have downloaded many files to a specific Sharepoint document library (recently upgraded to Sharepoint 2010). Now, I want to copy those files that match some filtering criteria (metadata column). I know how to create a view in Sharep
-
Updates to Photoshop Lightroom CC
I saw online that Lightroom CC has been updated, but my sign Adobe Apps says that they are all up to date, which they are not.
-
PayPal Standard - details wrong be pre-populated on the Paypal page
HelloThe sreenshot it should better explain but basically when I put Paypal Standard implemented on my site I put shippingAddress and billingAddress fields on the payment page for a user to fill out. However when I try and go to Paypal the shippingAd