Not able to manage the value 'Table Type' in my procedure, humble need help here
Hi all
I am facing a problem with below pl/sql block. The time I run it it works fine, but when I run the procedure only from the exact values (hardcoded), it throws error as below.
[Error] Execution (38: 1): ORA-06550: line 2, column 1:
PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
What I understand problem is, I use a Type of table herewhich works very well with my Pl/Sql block, but do not work when I run the same procedure of the value hard-coded.
Please guide me how to handle this situation.
Pl/Sql block [works absolutely well]:
Declare
lv_eff_from_dt DATE;
lv_eff_to_date DATE;
v_severity_codes_wl param_tbl: = param_tbl();
lv_algo_id_wl sagedbo.alerts.algo_id%TYPE;
Begin
lv_eff_from_dt: = sage_utility.get_transaction_date('EFF_FROM_DATE'); -' 05-Aug-2013. '
lv_eff_to_date: = sage_utility.get_transaction_date('EFF_TO_DATE'); -' 04-sep-2013. '
lv_algo_id_wl: = sage_utility.get_code_values('ALERT_MODELS','GRAY_LIST'); -GLABNORMAL
v_severity_codes_wl: = sage_utility.get_multi_parameter_value(1,'SEVERITY_CODE_WL'); -4.5
SONARDBO.sage_generate_alert.create_abnormal_by_trader (lv_algo_id_wl, v_severity_codes_wl, lv_eff_from_dt, lv_eff_to_date, 'US');
End;
Pl/Sql block [does not] (by the way the same values but hard)
Begin
SONARDBO.sage_generate_alert.create_abnormal_by_trader ('GLABNORMAL', '4', 5, 5 August 2013 ', ' 04-Sep-2013', 'US');
End;
Error PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.
I'm sorry that my question is not so generic, you cannot run on your computer. How should just guide me with the concept, I treat the values in table hardcodedly? (For testing of use)
Thank you very much
If your passage of type table, then you will need to run as below
Begin
SONARDBO.sage_generate_alert.create_abnormal_by_trader ("GLABNORMAL", param_tbl (' 4 ', ' 5'), August 5, 2013 ', ' 04-Sep-2013', 'US');
End
Means that you must call with the table type ("' hard coded values"). Here is the simple test. Take a look at this
SQL > CREATE or REPLACE the TYPE nt_tab IS TABLE OF VARCHAR2 (50);
2.
Type of creation.
SQL > CREATE OR REPLACE PROCEDURE test_proc (p_nttab nt_tab)
2 AS
3 v_nttab nt_tab: = p_nttab;
4 BEGIN
5 FOR me in 1.v_nttab. COUNTY
6 LOOP
7 DBMS_OUTPUT. Put_line (v_nttab (i));
8 END OF LOOP;
9 END;
10.
Created procedure.
-Perform the procedure with only one value of type table
SQL > EXEC test_proc (nt_tab ('KING'));
KING
PL/SQL procedure successfully completed.
-Run procedure with the multi-value table type
SQL > EXEC test_proc (nt_tab ('KING', 'AAAA', 'BBBB'));
KING
ABDELKADER
BENAMER
PL/SQL procedure successfully completed.
Post edited by: 000000
Post edited by: 000000
Tags: Database
Similar Questions
-
Not able to get the value of the type defined in the other program
Hi all
I have create a type in a single package spec (Globally), now I'm using the same type in another package. Simply I'm calling the first package and try to store the value in the Type and use the same type in the second package.
But I'm not able to get the value
Type declaration
Declared in package Spec TYPE t_aa_derive_tbl_type IS TABLE OF xxxx%ROWTYPE; t_aa_derive t_aa_derive_tbl_type;
Package 1
Package1. PROCEDURE name( some parameters); is Cursor c1 is Select * from dual; begin OPEN c_aa_derive; FETCH c_aa_derive BULK COLLECT INTO t_aa_derive; CLOSE c_aa_derive; END get_aa_derive;
In my second package
I'll call you
Package1. PROCEDURE name( some parameters); and then i am trying to for i in 1 .. package1.t_aa_derive.COUNT LOOP .... .... ... end loop;
I can not entered the loop for some reason any.
Could someone guide me if anything I missed.
See you soon,.
San
And what did you like refcursor c_aa_derive in the call to package1.name? Is it returns all rows? If this isn't the case, COUNT will be 0.
SY.
-
Not able to see the value of the item description->; main classification
Hello group,
I configured the responsibility of China. From now on, I'm not able to see the lov primary classification in the item Description screen.
China HRMS Manager-> Total Compensation-> Description-> primary Classification (column) element the only value that is gathering is "initialization of balance."
Where we, the responsibility, I am able to see more options. Can someone suggest me the reason for the same.
Thank you
It's 11.5.10 versionHi please refer to the below metalink note...
566421.1 setting form element has a single value in the primary Classification balance initialization
See you soon
Ganesh -
Not able to add the selection of Types of paper taken in charge
Hello
I am new to Oracle B2B.
Through the steps in the tutorial http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/b2b_tps.htm#BABGAJDE
Completed up to 5.3 - task 2 (add a user in the Interface of B2B Oracle)
And the next thing,
I'm not able to add select support Document Types.When I click on the "Add supported document type for the selected user", I see "CUSTOM", "EDI_EDIFACT" etc., but in this form has been disabled my ' Add ' button.
Please let me know how to proceed with this.
Thank you
Dembele.
Edited by: 796969 09/27/2010 14:11Hi dembele,.
To add a document, you must first create that.
Follow link below to see that the way to create a document.
http://download.Oracle.com/docs/CD/E14571_01/integration.1111/e10229/bb_doc_flow.htm#BABFGDBA
Once you have created a document, then go to add it. After the name of Protocol of document in which you created the document, you will see a sign plus. Expand until you see the definition of documents, that you created. Now, select the document definition name, and add the button is activated. Click Add to add this document definition in the trading partner profile.
Kind regards
Anuj -
not able to print the value of the url (aaa #bbb)
Hello
I am not able to print the < cfoutput > #url.xyz # < / cfoutput >
Here, the url.xyz in the url value is aaa #bbb
It is printing only aaaYou should have url-encoded query from the beginning chain. Given that you don't have, Coldfusion ignored everything in the query string that comes after the character #. To fix this, replace the character # % 23. . In other words, .
Another rule is that we should avoid the occurrence of the character # in a string. Thus, the correct value to cfoutput is "aaa ##bbb". To get and display code that is
#url_xyz #.
-
Not able to enter the values in a table.
I'm not able to enter values in any table that I create in labview. By mistake I pressed a key on the keyboard, and every time I try to enter values in a table, a window pop up opens and resets the value to zero, if I make selection from there.
I enclose the screenshot.
I'm with Altenbach on this one. Looks like you turned off your Autotool. If you go to View-> Toolbox, you will see the tool Palette. Make sure that the top button/led is on. Who will ensure the Autotool on.
-
Not able to print the value of the variable
I wrote the code below
create or REPLACE PROCEDURE ARMSTRONG_NUMBER_a as arm_num number :=371; num_len number:=0; a number:=0; b number:=0; c number; BEGIN num_len := length(arm_num); for i in 1..num_len loop DBMS_OUTPUT.put_line('VALUE of i ' || i ); b:= substr(a,i,1) ; DBMS_OUTPUT.put_line('VALUE OF b ' || b ); end loop; end;
-
Not able to convert the element of type xs: date DateTime in XSLT 2.0
Hello
I'm trying to subtract 2 dates and get the difference in months between the two using XSLT 2.0
That's what I did
< name of xsl: variable = "monthDiff" >
< xsl: Call-template name = "monthDifference" >
< xsl: with-param name = 'date1' select = "/ tns:StartDate" / >
< xsl: with-param name = "date2" select = "xp20:current - dateTime ()" / >
< / xsl: Call-template >
Model
< xsl: template name = "monthDifference" >
< xsl: param name = "date1" / >
< xsl: param name = "date2" / >
< xsl: value - of select = "(xsd:dateTime ($date1) - xsd:dateTime ($date2))" / >
< / xsl: template >
Problem I am facing is
1. If the value of tns:StartDate is in below format, then this transformation works successfully
2012-08-31 T 10: 00:37 + 05:30
2 but I'm tns:StartDate as input in the format because of which the transformation fails below
2012-08-31-04:00
I tried to format the date in the required format, but still the transformation fails
Can someone please help with this problem...
Thanks in advance.
Thank you
Anju
Published by: Anju on 29 August 2012 23:10Hi Anju,
Try this...
See you soon,.
Vlad -
I'm not able to get the value of an element in the region from the table using Java script
I have a fixation with two columns area, when the user tries to add a new line without having to fill in the line above, then it should throw an exception. It is the custom page and the home region is located at the end of my page so normal exception raises at the top of the page where the end user referred to in the current. I need to go with popup warning. I built a java script in PR
code:
OkButton OASubmitButtonBean = (OASubmitButtonBean) webBean.findChildRecursive ("addrow");
okButton.setOnClick ("javascript: a = document.getElementById ('prompt');" + "alert ('outside ' + (a.value));" +)
"if ((a.value)! = ") {input = alert ('check' + (a.value)) ;}} else {alert (' inside the else'+ (a.value));} ");"
The code above works for entering the message text in the header area, but it is does not make any value if the sub-region of table in advance. Kindly share your point of view on this issue.
This code will give you the same ID only.
Check the "View Source" code generated from the browser. https://support.Google.com/AdSense/answer/181951?hl=en
See you soon
AJ
-
I use LR 6/CC 2015.
Whenever I type in a negative fashion develop it is reset to zero after entry or tab.
I type in positive values remain and are not reset to zero.
In older versions of Lightroom, I had no such problems.
I have an iMac 27 with Yosemite 10.10.3.
Hope someone knows how to fix this annoying problem.
Your LR is configured in one language other than English? If so, this is a known bug. See the remark made by Simon Chen employee under this post (you need to click on see more reviews to actually see): 6 Lightroom: Bug of negative values (in German). The comment includes a workaround solution that is to edit a text TranslatedStrings.txt.
-
Not able to read the values in group by, when no records in the table
Hi all, I have this query
Select p.header_id,
Type "some_constant."
sum (nvl (p.total_amount, 0)) sum_of
from table_name p
P.header_id group
When there is record in the table, it works fine, but I want to if there is no any folder that it returns as below,
header_id type sum_of
some_constant 0 0
How to...?
Help, please.
Kind regards
SELECT * FROM (select p.header_id,
Type "some_constant."
sum (nvl (p.total_amount, 0)) sum_of
from table_name p
P.header_id group
UNION ALL
SELECT 0,
BOX WHEN (SELECT COUNT (*) FROM table_name) = 0 THEN type of 'some_constant',
ANOTHER NULL
END type as,
0
THE DOUBLE)
WHERE type IS NOT NULL;
Post edited by: 000000
-
Not able to get the values of distict even after the definition of the FUNCTION of MEMBERSHIP card
Hello
I'm trying to get distinct values of a query to an array type. Please see the code below
Please help me find the reason why it does not work...CREATE OR REPLACE TYPE T_COPY_EVNT_DTL IS OBJECT ( eventId VARCHAR2(100), eventDescription VARCHAR2(100), promoMonthDescription VARCHAR2(100), promoStartDate VARCHAR2(100), promoEndDate VARCHAR2(100), PROMOCOSTSTARTDATE VARCHAR2(100) , , MAP MEMBER FUNCTION sort_key RETURN VARCHAR2 ); CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL AS MAP MEMBER FUNCTION sort_key RETURN VARCHAR2 IS BEGIN RETURN eventId ; END; END; / CREATE OR REPLACE TYPE T_EVENT_TABLE IS TABLE OF T_COPY_EVNT_DTL; with event_data as ( select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual ) SELECT cast(collect(distinct t_copy_evnt_dtl(event, event_desc, promo_month_desc, promo_start_date, promo_end_date, promo_cost_start_date) ORDER BY event_desc, promo_month_desc, promo_start_date, promo_end_date, promo_cost_start_date) as t_event_table) from event_data; result : T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')', 'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')', 'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')', 'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')
Manjusha Muraleedas wrote:
Please see the link: http://www.oracle-developer.net/display.php?id=514
Title: using complex typesAnd as the article says, combining DISTINCT and ORDER BY does not work so well:
The diagram of the syntax in the documentation suggests that the two extensions can be combined to build ordered and distinct collections for each group.
However, in the version 11.2.0.1, this does not work.I can confirm that this does work on 11.2.0.2 either.
As a solution, I would probably use a subquery or MULTISET:
select cast( multiset( select distinct event , event_desc , promo_month_desc , promo_start_date , promo_end_date , promo_cost_start_date from event_data order by event_desc , promo_month_desc , promo_start_date , promo_end_date , promo_cost_start_date ) as t_event_table ) from dual;
-
Not able to perform the calculation on the data base not tabular column
Hi all
I have a master's degree and a tabular form of retail that has of the following requirement:
- If I choose two feel in my element Type of trip in my master form, no. tickets in my detailed tabular form must have doubled this IE. 2 * number of tickets
- The number of tickets is a field display text (does not state) so I'm not able to select the value of the field in jquery.
Kindle help me with this.
Thank you and best regards,
Madonna
Hello Nicolette,
I solved by creating a function of database and used in the source region of the form of the table with the column attribute as display text (does not save the State).
Thank you for your help.
Kind regards
Madonna
-
Not able to set the brightness of the screen to the point Windows 8.1
Hello
I m using HP Pavillion N208TX with the 64-bit version of windows 8.1. I am not able to adjust the brightness of the display key f2 and f3 and implementing market also. When I press these keys, it shows the slider to adjust the brightness on the top left corner of the screen but its not the brightness level from low to high. I've already updated the Intel HD Graphic driver sent by link for HP Cust. care. kindly help me on this ASAP...
Dear customer,
Welcome to the Support Forum HP and we are happy to help you.
Looks like you're trying to "Adjust the screen brightness in Windows 8.1" for your laptop.We will surely help you with that.
Please perform this step as indicated below to solve the problem:
1. go to search (at the top right point) and type Device Manager. Go.
2. expand graphic cards
3. right click on Intel(r) HD Graphics and click on disable
4 restart your computer
Note: Your screen resolution can be deformed now, you can simply ignore
5. turn the Manager of peripherals, graphics cards
6. right click on Intel(r) HD Graphics and click Enable
7 restart once again
Note: If at any time your screen goes off and won't come back, just HOLD down your power button until the
the computer shuts down. Then press power to restart the upward
Hope this helps, for other queries in response to the post and feel free to join us again
"I work for Hewlett-Packard.
Click on thePurple Thumbs Up icon in the lower right corner of a post"thank you *.
Please check accept as Solution if it solves your problem *.
Kind regards
K N R K
-
Not able to see the fields within a custom resources optimization
Hi all
I am not able to see the fields within a custom value.
Here is my code for the custom resource optimization:
public class CustomContentContainer extends VerticalFieldManager{ String content_header; int container_height; int displayWidth = Display.getWidth(); int displayHeight = Display.getHeight(); public CustomContentContainer(String content_header,int height){ super(Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL); this.content_header = content_header; container_height = displayHeight-height; } protected void sublayout(int maxWidth, int maxHeight) { super.sublayout(maxWidth, container_height); setExtent(maxWidth,container_height); }; protected void paint(Graphics graphics) { int X_POS = 20; int Y_POS = 20; int width = displayWidth; int height=container_height; int[] xPts = {0, width, width, 0}; int[] yPts = {0, 0, height, height}; int[] colors = { 0xffffff, 0xf7f7f6, 0xd4d0cc, 0xb0a9a2 }; graphics.drawShadedFilledPath(xPts, yPts, null, colors, null); graphics.setColor(0xc0c0c0); graphics.drawRoundRect(X_POS, Y_POS, getWidth()-40, container_height-40, 10,10); int stringWidth = getFont().getAdvance(content_header); graphics.setColor(0xF8F8F8); graphics.fillRect(35, 5, stringWidth+10, 30); graphics.setColor(0xFF0000); graphics.drawText(content_header, 40, 5); }; }
Here is the Code inside the class from the main screen
settingsContainer = new CustomContentContainer("Settings",vodavaultLogo.getHeight()); contentContainer = new VerticalFieldManager(Manager.VERTICAL_SCROLL|USE_ALL_WIDTH); passwd1 = new CustomEditField(); passwd2 = new CustomEditField(); contentContainer.add(passwd1); contentContainer.add(passwd2); contentContainer.setMargin(35,35,35,35); mainContainer.add(vodavaultLogoField); settingsContainer.add(contentContainer); mainContainer.add(settingsContainer); add(mainContainer);
You must call the super.paint (.) in your paint (...) optimization of resources, if you paint all areas which are added.
Maybe you are looking for
-
HP Envy 27 - p099na: Intel Wireless Display
In HP Support Assistant, it takes ages (3 hours plus) to download Intel Wireless Display on this PC brand new - a few MB 122,59 file. I have the super fast fiber broadband get just short of 40 MB/s - so I can't understand that. Even the slowest broad
-
H50-55 - is my motherboard SATA 2 or 3
I have a new Lenove H50-55 (just a couple of weeks) and I wanted to add an SSD to it. I would like to know if my SATA connections are SATA 2 or 3. I downloaded an application called CPU - Z that tells me that the number of brand and model of the Boar
-
I have no third party software on the laptop for the operation of burning or cd. The machine is as it came from Dell. This process has worked since the computer was new 2 years ago, but only recently left works apparently.
-
I'm fighting for a week at least. The HARD drive failed on this pc. So it is a pure Windows Vista 64 bit install on a new hard drive. It's pc to my son and he did not create recovery discs. I used this nvidia chipset sp36607 (evil) The chipset for th
-
How sign do not show SaveAs dialogue?
How sign do not show SaveAs dialogue?