Creation of XML report using the PL/SQL stored procedure
Hi friends,
I'm working on a report xml with the xml source as a PL/SQL stored procedure.
I mean the fiscal year indicated in the following link to understand the process:
http://orclapp.blogspot.com/2012/02/developing-xml-publisher-report-using.html
In the example shown in the link above, I did not understand the following:
(1) in the following procedure, setting out "retcode" is not used at all.
What is the importance of this parameter.
REPORT PROCEDURE (errbuf OUT VARCHAR2, retcode OUT VARCHAR2, p_product_id in NUMBERS)
(2) after the xml data are prepared and updates 'l_result' variable Clob, what follows
Loop is executed. I am not able to understand why the following loop is required.
LOOP
EXIT WHEN l_length = l_retrieved;
IF (l_length - l_retrieved) < 32000
THEN
SELECT SUBSTR (l_result, l_retrieved + 1) IN l_xmlstr FROM DUAL;
l_retrieved: = l_length;
fnd_file.put_line (fnd_file.output, l_xmlstr);
ON THE OTHER
SELECT SUBSTR (l_result, l_retrieved + 1, l_offset)
IN l_xmlstr
FROM DUAL;
l_retrieved: = l_retrieved + l_offset.
fnd_file.put_line (fnd_file.output, l_xmlstr);
END IF;
END LOOP;
(3) in the example it is not explained how the concurrent program gets the xml data?
I guess that it is written to a file by using the following line of code:
fnd_file.put_line (fnd_file.output, l_xmlstr);
I would be grateful if someone can shed some light in my questions above so that I can well understand the process.
Thanks and greetings
Hawker
Hi 32000 in the code is a 'safe' than 32767 available max mesh, loops is intended to get around the entire thing into pieces that can be managed within the limits of the data type.
BTW; If you are in the following Oracle e-business, you can also use the Oracle reports very simply to create the XML output.
If you have reports developer all you need to do is put raw sql (create XML without any "Fireworks") in the SQL report and then set reporting in XML format in the definition of program in Oracle e-business.
Best regards
Robert.
Tags: Oracle Applications
Similar Questions
-
appellant the pl/sql stored procedure
Jdev11g R2, ADF BC
I have a stored procedure 'COPY_BKG_E2I' and it has three input parameters to generate a new record in the database.
===========================================================================
I created the AM method as follows and defined as method of the client AM class:
=========================================================
helper method:
===========
protected void callStoredProcedure (String stmt, Object [] bindVars) {}
PreparedStatement st = null;
try {}
// 1. Create a JDBC PreparedStatement for
St = (PreparedStatement class) getDBTransaction () .createPreparedStatement ('start' stmt + ";"end;", 0);
If (bindVars! = null) {}
// 2. Loop on values for the bind variables passed, if any
for (int z = 0; z < bindVars.length; z ++) {}
// 3. Set the value of each variable binding in the statement
st.setObject (z + 1, bindVars [z]);
}
}
// 4. Execute the statement
st.executeUpdate ();
}
catch (SQLException e) {}
throw new Aexception.getLocalizedMessage (e);
}
{Finally
If (st! = null) {}
try {}
// 5. Close statement
St.Close ();
}
catch (SQLException e) {}
}
}
}
call the stored procedure:
{} public void callProcWithThreeArgs (String V_BKG_NO, String V_VESSEL_ARRIVED_REMARKS, Date V_ATA_POD_D)
callStoredProcedure ("COPY_BKG_E2I(?,?,?)", ")
New Object [] {V_BKG_NO, V_ATA_POD_D, V_VESSEL_ARRIVED_REMARKS});
}
Now, I created back bean and page fragment,
=================================
in my page fragment, I bind the field three entries to the bean back:
============================================
package olfms.view.backing;
Import oracle.adf.view.rich.component.rich.input.RichInputDate;
Import oracle.adf.view.rich.component.rich.input.RichInputText;
Import oracle.adf.view.rich.component.rich.output.RichOutputText;
public class saveBkgUpd {}
Private RichOutputText bkg_no;
Private RichInputDate arrive_date;
Private RichInputText arrive_remarks;
public saveBkgUpd() {}
Super();
}
{} public void setBkg_no (RichOutputText bkg_no)
This.bkg_no = bkg_no;
}
public RichOutputText getBkg_no() {}
Return bkg_no;
}
{} public void setArrive_date (RichInputDate arrive_date)
This.arrive_date = arrive_date;
}
public RichInputDate getArrive_date() {}
Return arrive_date;
}
{} public void setArrive_remarks (RichInputText arrive_remarks)
This.arrive_remarks = arrive_remarks;
}
public RichInputText getArrive_remarks() {}
Return arrive_remarks;
}
My question:
//?????? How to call the callProcWithThreeArgs with these three bkg_no; arrive_date; arrive_remarks; Help, please! Thank you!
?
}Check your imports
especially: import oracle.binding.BindingContainer;
This is the bean of tireimport oracle.adf.model.BindingContext; import oracle.binding.BindingContainer; import oracle.binding.OperationBinding; public class Test { public Test() { } public BindingContainer getBindings() { return BindingContext.getCurrent().getCurrentBindingsEntry(); } public String callProcedureProgramatically() { BindingContainer bindings = getBindings(); OperationBinding operationBinding = bindings.getOperationBinding("callProcWithThreeArgs"); operationBinding.getParamsMap().put("param1", "first value"); operationBinding.getParamsMap().put("param2", "second value") ; operationBinding.getParamsMap().put("param3", "third value"); Object result = operationBinding.execute(); if (!operationBinding.getErrors().isEmpty()) { return null; } return null; } }
-
Creation of XML file using blackberry waterfalls
Hi all
I use blackberry stunts to create a xml file, which will consist of data QMessage.
The code that I am by train is as below: -.
foreach (const Message &message, inboxMessages) { // Creating QVariant Map for each Message object QVariantMap messageMap; messageMap["address"] = QVariant(); messageMap["date"] messageMap["subject"] = QVariant(message.subject()); messageMap["body"] = ........... / Adding this object to Qvariant List QVariantList messageList= QVariantList() << QVariant(messageMap); } // end of for each loop QVariantMap topLevelMessageMap; topLevelMessageMap[".root"] = QVariant("messages"); topLevelMessageMap["message"] = QVariant(messageList); QVariant myData = QVariant(topLevelMessageMap); // Retrieve the working directory, and create a temporary .xml file in that // location QDir home = QDir::home(); QTemporaryFile file(home.absoluteFilePath("myXMLFile.xml")); // Open the file that was created if (file.open()) { // Create an XmlDataAccess object and save the data to the file XmlDataAccess xda; xda.save(myData, &file);
IN the above code, I create mannualy xml tags using the QVariant class.
However is it possible where xml schema can be used from xslt/xsd and it may be analyzed to generate xml data with data to fill the Message class in accordance with the business logic.
Please suggest
What would you win? in my opinion this isn't a valid usecase for xslas you must complete all the values manually in any case.
You can use xsl with qxmlquery xmldataaccess has no support in his favor. -
Cannot create Materialized View using the PL/SQL procedure
Hello
I have a question related to the creation of materialized view.
I have a stored procedure that creates the materialized view. When you try to perform this procedure, I get not enough privileges error: ORA-01031.
When I run the content of this procedure as a PL/SQL block anonymous their materialized view is created without any complications.
Can you please advice me on this subject?
It is even possible to create a materialized view in the stored procedure as I found no info on this subject.
Thank you
PetrHi chudapet,
Whenever you make in procedure, you must have direct subsidies and not through a role.
Most likely the grant to create a materialized view is available via a role to your username.
Assign a direct grant to the user:grant create materialized view to scott; {code}
-
Retrieve and display a result set using the dynamic sql?
Hi all
How would display a result set in Oracle using the dynamic SQL? Reason being, the table where I'd retrieve and display the result set is a GLOBAL TEMP TABLE created in a stored procedure. If I try to use the loop as usual, the compiler complains that the table does not exist. This makes sense because the compiler does not recognize the table because it is created dynamically. Here is an example:
create or replace PROCEDURE maketemptab IS
sql_stmt VARCHAR2 (500);
OutputString VARCHAR2 (50);
BEGIN
-create temporary table
sql_stmt: = ' CREATE of TABLE TEMPORARY GLOBAL globtemptab (id NUMBER, col1 VARCHAR2 (50))';
EXECUTE IMMEDIATE sql_stmt;
dbms_output.put_line ('... created table ');
-Insert a row into the temporary table
sql_stmt: = "INSERT INTO globtemptab values (1, 'some data of a test')';"
EXECUTE IMMEDIATE sql_stmt;
dbms_output.put_line ('... inserted row ');
-Insert a row into the temporary table
sql_stmt: = ' INSERT INTO globtemptab values (2, "some more test data");
EXECUTE IMMEDIATE sql_stmt;
dbms_output.put_line ('... inserted row ');
-Select the row on temporary table
sql_stmt: = 'SELECT col1 FROM globtemptab WHERE id = 1';
EXECUTE IMMEDIATE sql_stmt INTO outputstring;
dbms_output.put_line ('... selected line: ' | outputstring);
-drop temporary table
sql_stmt: = 'DROP TABLE globtemptab;
EXECUTE IMMEDIATE sql_stmt;
dbms_output.put_line ('... moved table ');
-display the result set
for tabdata loop (select col1 from globtemptab)
dbms_output.put_line ('... test of recovered data are' | tabdata.col1)
end loop;
end;
In short, how to rewrite the SQL below the comment "to display the result set" using the dynamic sql?
Thank you
Amedeo.Hello
Try this:
CREATE OR REPLACE PROCEDURE maketemptab IS sql_stmt VARCHAR2(500); outputstring VARCHAR2(50); v_cursor SYS_REFCURSOR; v_col1 VARCHAR2(30); BEGIN -- create temp table sql_stmt := 'CREATE GLOBAL TEMPORARY TABLE globtemptab(id NUMBER, col1 VARCHAR2(50))'; EXECUTE IMMEDIATE sql_stmt; dbms_output.put_line('...table created'); -- insert row into temp table sql_stmt := 'INSERT INTO globtemptab values (1, ''some test data'')'; EXECUTE IMMEDIATE sql_stmt; dbms_output.put_line('...row inserted'); -- insert row into temp table sql_stmt := 'INSERT INTO globtemptab values (2, ''some more test data'')'; EXECUTE IMMEDIATE sql_stmt; dbms_output.put_line('...row inserted'); -- select row from temp table sql_stmt := 'SELECT col1 FROM globtemptab WHERE id=1'; EXECUTE IMMEDIATE sql_stmt INTO outputstring; dbms_output.put_line('...row selected: ' || outputstring); OPEN v_cursor FOR 'SELECT col1 FROM globtemptab'; LOOP FETCH v_cursor INTO v_col1; EXIT WHEN v_cursor%NOTFOUND; dbms_output.put_line('...test data retrieved is' || v_col1); END LOOP; CLOSE v_cursor; -- drop temp table sql_stmt := 'DROP TABLE globtemptab'; EXECUTE IMMEDIATE sql_stmt; dbms_output.put_line('...table dropped'); END; /
Kind regards
-
creation of report editor BI by oracle stored procedure
Hello
can someone provide me steps to create BI publisher report using the oracle stored procedure.
Thank you
SriThe sql in pipeline table function to return the dataset returned by the procedure in the form of a table.
Take a look at the following:
http://bipublisher.blogspot.com/2007/10/bi-Publisher-taking-it-to-next-level.html
http://winrichman.blogspot.com/search/label/pipelined
BI publisher to use the stored procedureThank you
BIPuser -
to find the location of PL/SQL, stored PROCEDURE in the database
Hello
This is the detail I have the executable of the Application Developer program simultaneous
Executable NAPESCO_STAFF_LEDGER_DTLS
Short name NPSTALEDDTLS
Application of human resources
Execution of PL/SQL, stored procedure method
Name of file execution NAPESCO_STAFF_LEDGER_DTLS
I would like to know how to view and change this procedure, where it is stored
kindly helpHello
This seems to be a custom package. To display the source of the simultaneous program ' PL/SQL Stored Procedure', please refer to (Note: 455582.1 - where can I get the whole "stored procedure" Pl/Sql Source file on the current program?).
Thank you
Hussein -
SQL stored procedure input and output parameters
Hello Gang,
My dead end trying to call a stored procedure in SQL Server 2008 with the LV database tool.
for purposes of experimentation, I've created a small procedure with an input parameter that returns an integer as return value. It works describing a query, but all attempts at LV produce an error-2147217900 when executing query VI. I did find examples of that.
Sending a bunch of parameters to a stored procedure and checking the value of return seems to be pretty common stuff.
I'll appreciate any help.
Thank you
Roger
Hi Roger,
There are a few prerequisites which I will list below. If you have not checked these things, so don't hesitate, as your hiccups can be there.
Prerequisites:
- Ensure that you can read from a table in the database to verify that you can access the database (user permissions) and ensure that your login details are correct. Among other things, make sure that the. DSN switches to the correct database. (See the simple example below, SQL Select.vi)
- Make sure that your user (if you use SQL authentication) has permissions to run the STORED procedure by running the procedure in SQL Server Management Studio (you seem to have already done this)
Example by calling a procedure without parameters (attached as SPROC_No_Parameters.vi):
Example by calling a procedure with parameters (attached as SPROC_Parameters.vi):
An article on the execution of stored procedures is here:
http://digital.NI.com/public.nsf/allkb/07FD130746083E0686257300006326C4
Don't forget to download the example VI since it includes the cases where you want an output parameter of the procedure rather than a table.
I tested these against two very simple SPROCs and it worked fine (on SQL Server 2005, but 2008 should be the same). Stored procedures have been:
CREATE PROCEDURE [dbo]. [GetContacts]
AS
BEGIN
-SET NOCOUNT ON added to avoid additional results sets from
-interfering with SELECT statements.
SET NOCOUNT ON;-Controls insert for procedure here
SELECT * FROM Contacts
ENDand
CREATE PROCEDURE [dbo]. [MultiplyAges]
@param1 INT = 1
AS
BEGIN
-SET NOCOUNT ON added to avoid additional results sets from
-interfering with SELECT statements.
SET NOCOUNT ON;-Controls insert for procedure here
SELECT (age * @param1) OF Contacts
ENDI would like to know if these examples work for you or if you have any other questions. Don't forget to go through this KB article and articles related to it, they should cover other situations.
Matt
- Ensure that you can read from a table in the database to verify that you can access the database (user permissions) and ensure that your login details are correct. Among other things, make sure that the. DSN switches to the correct database. (See the simple example below, SQL Select.vi)
-
How to create simultaneous program of type PL/SQL stored procedure?
I have the procedure to reset sequence as below:
CREATE OR REPLACE PROCEDURE DEV_RESET_XX IS
V_NEXT_VAL1 NUMBER;
BEGIN
RUN IMMEDIATELY "ALTER SEQUENCE DEV_RECEIPT_S1 MINVALUE 0';"
RUN IMMEDIATELY "SELECT DEV_RECEIPT_S1. DOUBLE NEXTVAL ' IN V_NEXT_VAL1;
RUN IMMEDIATELY "ALTER SEQUENCE DEV_RECEIPT_S1 INCREMENT BY ' |" -V_NEXT_VAL1;
RUN IMMEDIATELY "SELECT DEV_RECEIPT_S1. DOUBLE NEXTVAL ' IN V_NEXT_VAL1;
RUN IMMEDIATELY "ALTER SEQUENCE INCREMENT DEV_RECEIPT_S1 1 ';"
END DEV_RESET_XX;
And if I run this query don't use PL/SQL, no problem and success.
EXEC DEV_RESET_XX
And then I want to create simultaneous program for this procedure.
1. create the executable program
-Methods: PL/SQL, stored procedure
2. create the simultaneous program
-Call the executable program
-Nothing parameter
3. assign the application group to receive
And then I try to run this competitor.
But, status complete error.
Help, please.
Thank you.
Hello
To save pl sql program, we have two required parameters. ERRBUFF and RETCODE
Steps to create a concurrent program of type PL/SQL stored procedure. Techmandate.com
No need to create these parameters in the simultaneous program window. Just use those in your procedure.
hope this will help you
-
Call a PL/SQL stored procedure - data type mismatch
I call a PL/SQL stored procedure from within a procedure of ODI using the specified technique page Cezar and Julien (http://odiexperts.com/how-to-use-plsql-procedures-and-functions-in-odi) and I get the error "Wrong number or argument types»
I tested each of the types of parameters, in that I'm passing and it is the text that is causing the problem. I tried to use 'Text' and 'Alphanumeric' for the data type of the variable of the ODI and so many VARCHAR2 and VARCHAR for the PL/SQL parameter type and I can't make it work.
Is there a trick for passing a string in the ODI PL/SQl?Hello
Ensure
1. to declare/refresh of the variable before call to PL/SQL.
2. If the variable is of "alphanumeric" ODI calling must be attached to apostrophes and prefix with the code project as ' #MYPROJECT. ODI_Var'
3. as parameters you have u who must pass both during the call (IN, OUT, etc.).
Thank you
Guru -
Hello
I'm new to the development of Oracle.
I have the following scenario for which I need your help/suggestions to write a stored procedure.
A load process in a table unfolds with about million files once a month.
I have a LOG Table to record the events of job loading IE when it starts, when it stops, status etc. with the following columns
job_name, job_status, start_time, end_time, date, flag
work focuses on the work that is in charge of the table.
Based on the values in this table, I want to develop a stored procedure sql pl verifies the status of the job and does the following
When the flag = R (assume for running job) set it to run the job again as 1 hour later... if its still ongoing then 1 hour later... so now up to 5 trys
= F (Finished)
= E (error problem) launch the load immediately
The flag State values noted above are not binding... values just to give you an idea... all the other variables to use to store procedure or any new passes in the table... .suggestions are welcome for these values as well.
Basically, I would like the stored procedure to be called at some point... say SUNDAY at 06:00 and check the STATUS of the INDICATOR/table newspaper column and run.
In short, I like the pl sql store procedure to use table to log and monitor the loading process.
Structure/Basic code stored procedure for this requirement or a stored procedure that you have met similar requirements are welcome.
Thanks in advance.
Published by: user13517642 on March 23, 2011 13:28
Published by: user13517642 on March 23, 2011 13:29Your process or procedure shud look like - [not tested]
DECLARE l_flag LOG.flag%TYPE; BEGIN SELECT flag INTO l_flag FROM LOG WHERE job_name = p_job_name; WHILE l_flag = 'R' LOOP DBMS_LOCK.sleep (3600); --3600secs in 1hr SELECT flag INTO l_flag FROM LOG WHERE job_name = p_job_name; END LOOP; IF (l_flag IN ('F', 'E')) THEN --<
> END IF; END; Look at the following to find out how to plan work-
http://www.oradev.com/dbms_scheduler.jsp
Published by: Sri on 23 March 2011 14:10
Published by: Sri on 23 March 2011 14:11
-
Dashboard of the guests and stored procedures
Hello
I have 7 guests - 2 which are necessary and others are optional. I created guests from Dashboard and grouped 2 those required in a dashboard command prompt and more optional 5 in an another guest of dashboard. All the guests are assigned to the variables and used in calling a stored procedure in SQL Server. Because I have 2 groups there are 2 go buttons on the page. I found that the order in which I enter data and click on the questions of buttons and will disrupt the call to the proc (i.e. sometimes it brings back data but sometimes she will be not based on recorded fast values).
I have 2 questions:
1. is it possible to separate the optional and mandatory guests so I can put them in separate the dashboard sections, but to have only 1 'Go' button to send the data?
2. among the guests, I would like to be a multiple selection. Is it possible to send the options of multiple selections in a stored procedure? I use the variables to other values, but I've read using a variable for multiple selection is not possible.
Any help would be appreciated
Thank you
UNAIssues related to the:
1. not in the standard, but with a bit of javascript, it is possible
http://sranka.WordPress.com/2008/11/09/how-to-replace-multi-go-button-prompt-by-one/
2. it is not possible in 10 g but possible normally as promised to 11 g. You must create camps prompt or a command prompt with the different possibilities to pass a string instead of an array or a list.Success
Nico -
BPEL does not receive "return value" of MS SQL, stored procedure
Hello
We are facing this problem citing a MS SQL stored procedure the BPEL (jdbc 1.2 driver). We have created the wsdl for the stored procedure correctly using a command line utility tool provided with Oracle SOA Suite.
But the question is THAT BPEL is not able to get the data present in the statement of "return" of the procedure. We receive null output. But it is able to extract the data from the output variable, if any. Case 1 below is for the return statement. Case 2 is for the output variable
Case 1: in the following, the output is returned using the return statement. The BPEL that calls this procedure is to obtain a NULL value as an answer to this.
ALTER PROCEDURE [dbo]. [AddNumbersRet]
-Add the parameters for the procedure
@Number1 int,
@Number2 int
AS
BEGIN
-SET NOCOUNT ON added to avoid additional results sets from
-interfering with SELECT statements.
SET NOCOUNT ON;
-Controls insert for procedure here
Return (@Number1 + @Number2);
END
Case 2: in the following, the output is returned using the SumOfNums output variable. The BPEL that calls this procedure is to obtain a correct answer.
ALTER PROCEDURE [dbo]. [AddNumbers]
@Number1 int,
@Number2 int,
@SumOfNums int output
AS
BEGIN
-SET NOCOUNT ON added to avoid additional results sets from
-interfering with SELECT statements.
SET NOCOUNT ON;
Set @SumOfNums = (@Number1 + @Number2);
END
Case 1 is a failure and case 2 is successful. We cannot change our procedures similar to case 1 to use variables of output because of dependencies on other applications.
All the world is facing this problem? This looks like a bug in BPEL. Please, share your experiences.
Thanks and greetings
Mohan
Published by: user10980910 on December 8, 2009 05:16There is a gap in the command line utility that was addressed in the adapter configuration (AS11gR1) Wizard. The API is a procedure, not a function, so does not return the query for the parameters that the utility made anything for the RETURN statement.
The adapter configuration wizard is unable to say if there is a RETURN statement either, but it provides the user with a check box that can be used to indicate the presence of the declaration. In the wizard, if you check the checkbox, a parameter is added to the XSD to the RETURN statement. In essence, the adapter will process the procedure as a function and you will get the value of the PERFORMANCE.
Usually, I wish to indicate that you certainly should NOT change the generated XSD. But you might be able to do it, by adding the necessary element to the OutputParameters for your RETURN statement. Add the following immediately AFTER the element of 'Lines', which occurs first in the XSD and BEFORE all items for the other none.
Use a value for the "
" that is meaningful to you. The wizard uses the name of the stored procedure with the name of the element. We could call this "RETURN_VALUE" or else if is more to your liking. Add the item after you generate the XSD using the command line utility, and then use the XSD when you model your BPEL processes. The WSDL should already have the content for this element handling. -
The call PLSQL stored procedure from the HTML form Submit button
Hello
I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.HTP.PRINT('<form action=ZWGKERCF.P_confdelete>'); HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>'); HTP.PRINT('</form></div>');
Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.
So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!
Seems simple enough, but I don't know how to make this happen... My thoughts were:
Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?
Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)
Thank you very much in advance!
-Jeff>
...I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.
But you already have it in a variable. If you want you can assign the value again to another variable.
example of
PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2) IS v_crn number(38); v_term number(38); v_conf varchar2(1000); BEGIN HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); v_crn := crn; v_term := term; v_conf := conf; HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); END P_confdelete;
-
Cannot specify precision of the year in the RANGE of stored procedure parameter
Version Oracle 10.2.0.3.0
I write a PL/SQL stored procedure that accepts a parameter of type INTERVAL YEAR TO MONTH. For example...
Problem with the above is that if I try to call with pin_Interval = 100-00', I get the following error...CREATE OR REPLACE PROCEDURE INTERVAL_TEST ( pin_Interval IN INTERVAL YEAR TO MONTH )
... but I'm not able to specify the precision of the component 'YEAR' in the following stored procedure definition...ORA-01873: the leading precision of the interval is too small
... This translates by...CREATE OR REPLACE PROCEDURE INTERVAL_TEST ( pin_Interval IN INTERVAL YEAR(4) TO MONTH )
Try as I might, I can't create a stored procedure that will take in an INTERVAL YEAR TO MONTH more precisely 2 on the year.PLS-00103: Encountered the symbol "(" when expecting one of the following: to
I hope that I do just something stupid, and this is not a limitation of PL/SQL.
Any help is appreciated.Hello
Is the maximum number of decimal digits of the value of each field (YEAR and MONTH) 2, excerpt from [Datetime and Interval examples | http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements001.htm#BABBICGH]
Kind regards
Maybe you are looking for
-
Satellite Pro M10 attempted to upgrade processor
Hello I tried to upgrade cpu original 400 fsb 1.4 mhz centrino centrino 1.6 mhz 1 MB cache 400 fsb cache 2 MB (SL7EG), it works but only the minimum frequency (+-670 Mhz), it remains each time to the lowest frequency even if a lot of work is invited
-
Satellite A60-122: end of production?
I really want to know when this laptop is at the stop in production. I need to know this, because I would buy an A60-122, but still need some time to get the money to buy it. Issue 2: is there a book (from Toshiba of course) which is comparible or be
-
Bookmarklets don't work but open dozens of tabs
With some software bookmarklets, as in Yojumbo, use it causes dozens of tabs open in Firefox for Mac. This has happened Each time Firefox opened == I installed Yojimbo, but it has happened with other software using bookmarklets
-
ATRIX 2: How can I send a TEXT to several people?
I hope that motorola can improve there text message App. If I want to forward the message to some people, I have to type all the names, and I don't like Group Messaging.