Cannot write the recursive function in PL/SQL
I'm down to the following without interest in PL/SQL script:
Set serveroutput on;
Set feedback off;
DECLARE
recursion_counter NUMBER: = 0;
function countNum (OUT int counter) return a Boolean value is
Start
dbms_output.put_line (Counter);
If counter > 10 then
Returns true;
on the other
counter: = counter + 1;
countNum (counter);
end if;
end countNum;
BEGIN
dbms_output.put_line (case when countNum (recursion_counter) then end if 'false' to 'true');
END;
I get the following error:
PLS-00221: 'COUNTNUM' is not a procedure or is not defined
and I would really like to know why. The error refers to this line:
countNum (counter);
DECLARE
recursion_counter NUMBER: = 0;
function countNum (int counter) return a Boolean value is
Start
dbms_output.put_line (Counter);
If counter > 10 then
Returns true;
on the other
Return countNum (counter + 1);
end if;
end countNum;
BEGIN
dbms_output.put_line (case when countNum (recursion_counter) then end if 'false' to 'true');
END;
/
0
1
2
3
4
5
6
7
8
9
10
11
true
SQL >
SY.
Tags: Database
Similar Questions
-
I have Windows XP on a PC, I bought at the beginning of 2009. I have been using Microsoft Office applications with no problems until now. When I try to open Excel, the following events occur: 1) a presentation box appears and poster - "Please wait while the window configures Microsoft Office Home and Student 2007. Collection of the required information. 2nd) another box displays the following message: Error 1406 Setup cannot write the value in the \xlsx registry key. Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help. For more information about how to contact PSS, see PSS10R. CHM.
3rd, the next area said cancel, start over or ignore. Retry and ignore just redisplays the same message box again. When I click Cancel, the following error message is displayed - fatal error during installation. I do not understand why this is happening since 1) I've been using Excel for quite a while and 2) I'm not trying to install office as it was installed on my PC when it came from the manufacturer (Dell). Also, I have no problem with the opening of other Office programs. I am the only user on this computer. Help, please! Thank you, DennisOkie dokie.
Well I dug on the web and found someone with the same problem, and they said that when they have disabled "McAfee VirusScan 8.5 Access Protection", this error has disappeared. If this applies to you, give it a whirl if you wish.
But the best support that I found came from this website: http://support.microsoft.com/kb/838687. The jist of it is (trying to fix it yourself):
Fix it myself to fix this problem yourself, follow these steps:- Log the computer by using an administrator user account.
- Start Microsoft Windows Explorer.
- On the Tools menu, click Folder Options.
- Click the view tab.
- Under hidden files and folders, click Show hidden folders and files.
- Clear the Hide extensions for known file types check box, and then click OK.
- Open the following folder: C:\Documents and Settings\All Users\Application Data\Microsoft\Office\Data\
- If you are running Office 2003, right-click Opa11.dat, and then click Properties. If you are running Office XP, right-click Data.dat, and then click Properties.
- Click the Security tab.
- Click Advanced.
- Click the permissions tab.
- Click to select everyone in the list entered permissions and then click change.
- Click to select the full control check box.
- Click OK three times. If these steps do not resolve this issue, delete the Opa11.dat file or the Data.dat file in the following folder and then restart an Office 2003 program or an Office XP program:C:\Documents and Settings\All Users\Application Data\Microsoft\Office\Data
If this does not work for you, I would take my installation CD< completely="" uninstall="" microsoft="" excel="" (or="" any="" other="" problems="" that="" are="" giving="" you="" this="" error),="" then="" install="" microsoft's="" windows="" installer="" cleanup="" utility="" (which="" completely="" removes="" all="" stuff="" pertaining="" to="" whichever="" program="" you="" delete,="" for="" you,="" excel)="" and="" then="" reinstall="" microsoft="" excel.="" this="" utility="" program="" is="" really="" powerful,="" and="" you="" can="" download="" your="" copy="" from="">http://support.microsoft.com/kb/290301.
So, here are three options for you to try. I hope one works for you - let me know it to be.
-Carson
P.S. - KC Chiefs? Colts all the way! :)
-
Hi guys,.
When I try to run Lightroom, I get the following error messages:
- Win 32 API error 193 ("(erreur inconnue)" ") when you call: load the getCFunction library
- Cannot call the C function: private_load_AgCoreTest
So I can't access my library or to make a new library by importing files.
I run it on a laptop with Windows 10 64-bit, Nvidia GeForce 850 m GTX and a processor Intel Core i7 with 12 GB of RAM and a 500 GB SSD (Samsung 840 EVO). All with the latest drivers.
I tried already to unninstall and reinstall the program, all my packages of Visual C++ and the dll. I also already checked my permissions for the folder from catalog and granted full access. I also tried to run Lightroom as administrator.
None of these solved the problem.
What should I do?
According to the notes, they followed the instructions here to fix the problem: error: "unable to start correctly (0Xc000007b)"
-
I'm not able to install illustrator creative cloud CC. This is the error when I download creative cloud app. "Cannot write the registry value. "Verify permissions, and then try again.
No one can tell you anything without the info adequate system or other technical details, including the exact error message.
Mylenium
-
Re-write the code DOM node with SQL - XML funtions
Hi friends,
Could you please help to re - write the code using the following SQl - XML functions
DECLARE
l_domdoc dbms_xmldom. DOMDocument;
l_xmltype XMLTYPE.
l_root_node dbms_xmldom. DOMNode;
l_departments_node dbms_xmldom. DOMNode;
l_dept_element dbms_xmldom. DOMElement.
l_dept_node dbms_xmldom. DOMNode;
l_name_node dbms_xmldom. DOMNode;
l_name_textnode dbms_xmldom. DOMNode;
l_location_node dbms_xmldom. DOMNode;
l_location_textnode dbms_xmldom. DOMNode;
l_employees_node dbms_xmldom. DOMNode;
l_emp_element dbms_xmldom. DOMElement.
l_emp_node dbms_xmldom. DOMNode;
l_emp_first_name_node dbms_xmldom. DOMNode;
l_emp_first_name_textnode dbms_xmldom. DOMNode;
l_emp_last_name_node dbms_xmldom. DOMNode;
l_emp_last_name_textnode dbms_xmldom. DOMNode;
BEGIN
-Create an empty XML document
l_domdoc: = dbms_xmldom.newDomDocument;
-Create a root node
l_root_node: = dbms_xmldom.makeNode (l_domdoc);
-Create a new node departments and add it to the root node
l_departments_node: = dbms_xmldom.appendChild (l_root_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Deptartments'))
);
FOR r_dept IN (SELECT dept.department_id
dept.department_name
loc.city
SERVICE dept
JOIN the loc site
ON loc.location_id = dept.location_id
WHERE dept.department_id IN (10.20)
)
LOOP
-For each folder, create a new item Dept with the service as an attribute ID.
- and add this new Dept element in the node of departments
l_dept_element: = dbms_xmldom.createElement (l_domdoc, "Dept");
dbms_xmldom.SetAttribute (l_dept_element, 'Deptno', r_dept. Department_id);
l_dept_node: = dbms_xmldom.appendChild (l_departments_node
dbms_xmldom.makeNode (l_dept_element)
);
-Each node Dept will get a node names that contains the name of the service as a text
l_name_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Name'))
);
l_name_textnode: = dbms_xmldom.appendChild (l_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_dept.department_name))
);
-Each node Dept will also get a node to the location that contains the location (city) in the form of text
l_location_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Location'))
);
l_location_textnode: = dbms_xmldom.appendChild (l_location_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_dept.city))
);
-For each Department, add a node of employees
l_employees_node: = dbms_xmldom.appendChild (l_dept_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, 'Employees'))
);
FOR r_emp IN (SELECT employee_id
first name
last_name
Employees
WHERE department_id = r_dept.department_id
)
LOOP
-For each folder, create a new item Emp with the employee as an attribute ID.
- and add this new element of the Emp to the employees node
l_emp_element: = dbms_xmldom.createElement (l_domdoc, 'Emp');
dbms_xmldom.SetAttribute (l_emp_element, "empid", r_emp.employee_id);
l_emp_node: = dbms_xmldom.appendChild (l_employees_node
dbms_xmldom.makeNode (l_emp_element)
);
-Each node emp will get a first name and a last name node that contains the first name and the last name text
l_emp_first_name_node: = dbms_xmldom.appendChild (l_emp_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, "FirstName"))
);
l_emp_first_name_textnode: = dbms_xmldom.appendChild (l_emp_first_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_emp.first_name))
);
l_emp_last_name_node: = dbms_xmldom.appendChild (l_emp_node
, dbms_xmldom.makeNode (dbms_xmldom.createElement (l_domdoc, "LastName"))
);
l_emp_last_name_textnode: = dbms_xmldom.appendChild (l_emp_last_name_node
dbms_xmldom.makeNode (dbms_xmldom.createTextNode (l_domdoc, r_emp.last_name))
);
END LOOP;
END LOOP;
l_xmltype: = dbms_xmldom.getXmlType (l_domdoc);
dbms_xmldom.freeDocument (l_domdoc);
dbms_output.put_line (l_xmltype.getClobVal);
END;
/
Thank you and best regards,
Arun Thomas T
It's as simple as that:
SQL> select xmlserialize(document 2 xmlelement("Departments" 3 , xmlagg( 4 xmlelement("Dept" 5 , xmlattributes(d.department_id as "Deptno") 6 , xmlforest( 7 d.department_name as "Name" 8 , l.city as "Location" 9 ) 10 , xmlelement("Employees" 11 , ( 12 select xmlagg( 13 xmlelement("Emp" 14 , xmlattributes(e.employee_id as "empid") 15 , xmlforest( 16 e.first_name as "FirstName" 17 , e.last_name as "LastName" 18 ) 19 ) 20 ) 21 from hr.employees e 22 where e.department_id = d.department_id 23 ) 24 ) 25 ) 26 ) 27 ) 28 indent 29 ) 30 from hr.departments d 31 join hr.locations l on l.location_id = d.location_id 32 where d.department_id in (10,20) ; XMLSERIALIZE(DOCUMENTXMLELEMEN --------------------------------------------------------------------------------
Administration Seattle Jennifer Whalen Marketing Toronto Michael Hartstein Pat Fay -
Return to win 10 to Win 7 - cannot use the special function keys
Hello!
I updated to windows 10 two weeks ago and since then I had to restore to factory settings.
I didn't know that it would remove Toshiba programs, but there.
I cannot now use special function keys but I want them back.
What makes Toshiba program and what other programs Toshiba should I re - install.
Thank you.I'm not back to win 10 to Win 7. I win 10 and I want to download the programs I lost BUT...
PSKC8A-09V00S: part number you entered is not a device recognized supporting the upgrade to Windows 10. Please double check your part number and re-enter.
..... How to do that when I get this message? Is this to say that I'm stuck with Win10 on a Toshiba laptop without programs Toshiba? And if my device does not support windows 10, why I sent the upgrade, and why Win10 seems to work very well on my device? Can someone answer this? -
Error-2625 cannot write the file call node in NI_XML.lvlib:Save.vi
I get this error when you perform a certain acquisition with a CoolSnap HQ2. The user defines its parameters, then these settings are saved in the file so that they can be easily identified later in the database. The error came to us when we did a test with 4 different parameters. We did: Laser X w / filter X; Laser X w / filter Y. Laser Y w / filter X; Laser Y w / filter Y.
The first and the third is saved without errors, but the second and fourth receive errors.
Error-2625 cannot write file call node in NI_XML.lvlibave.vi
Someone has an idea, what happens? This is the vi I'm talking about.
I forgot to mention that the name of filter attribute is 593/LP, could the "/" be the cause?
Found the solution. It is indeed the "/" in the name of the filter that caused the problem. I replaced it with a '-' and everything worked
-
Cannot write the FFT of the integrated double data
I am a beginner to Labview environment.
I have acceleration Vs time dat file .lvm
Can I get the double integration of this
acceleration data for trip data.
Can I get FFT of displacement and displayed on the graph.
Up to this point VI works
But now if I connect this FFT of moving to 'write the measurement file' then it displays error.
Please help me... and correct the error... All I want is two column data, frequency andthe other of the amplitude of movement.
I have attached all files
I ask you to correct the VI please...
Thanking you!The concepts that you'll want to research are"matrices", "indexing of tables", 'automatic indexing', 'cluster' and 'type of waveform data'.
The loop IN the first VI I sent used the automatic indexation to take each element of a table 1 d of the clusters and perform operations on them separately to convert them to a waveform. Exit tunnel also uses automatic indexing so that the end result is a table 1 d of waveforms. I used the loop, so that no matter how many items appear in the table, you get a corresponding number of signals to the "writing on a file of measures."
In this case, because the output of the FRF is a single cluster (and not an array of clusters), the loop FOR was not necessary. The VI attached this time takes the output of cluster of FRF and maps the cluster to a single components build the wave function and you get a result of unique waveform.
I have no sound and Vibe loaded on my computer at the moment, so I can't run your VI and see the result of the integration of the snout to the Cloaca VI. The output data type is "Table 1 d of waveform" and your indicator and your two FRF can accept only waveforms. I put a function between integration and the indicator/FRF array index, but if there is more than one waveform in the table, it would be the wrong solution. My solution corrects the broken wires but throws waveforms 2,3,4... If they exist.
-
Cannot generate the multi-function in Vista
We ship an ActiveX control for use by our customers. In our sample code, we created a multi-function for them.
A customer reported that it cannot create a new function by using the Vista Panel - but he can create one using Windows XP.
Is there a known issue with the creation of panels to function under Vista?
Concerning
John Barton
Hi John,.
One thing you need to check on these machines that fail is the File Format of the FP. This opens a file of .fp to the CVI, then going to the Options menu and then click on the FP File Format. In this dialog box, make sure that the default new File Format is set to CVI 5.5 and later versions or CVI 8.5 and later versions. Once you put in one of these formats, you should be able to generate your panels to function again. Please let me know if this does not work, or if you have any questions.
NickB
National Instruments
-
I get this error message about 11 GB when burning a 22 GB Blu - ray. «Blu - ray error: "device error", the '3' Code, note: "CreateStcSequence: cannot write file M25.»» I tried almost everything as administrator, starting a new project and change the disc. I use CS6 and mad... any ideas?
It worked for me! I built my project to a blu - ray image, then burned a disk from the image without any problems. Maybe it's that you must try then too!
-
Cannot use the Val function in a script use
I'm trying to convert a text string (binary number) in a number by using the Val function in a script of use but the colors of tiara the term Val in red and the script produces an error indicating "Variable is undefined:"Val"
Why is that happen? Some functions are not allowed in use scripts?
In addition, it seems impossible to use debugging in my use - if I try to add a variable to the Watch window, there never have any value even if I put a breakpoint on this line of code. Would it not possible to debug scripts use?
David,
regarding your question on "Val" I would like to direct you to the "File.Formatter.ParseString" function which is part of the API available at DataPlugins.
CDbl and CLng do a good job in general, but they are dependent on the local configuration of the PC. 'ParseString' is so much more reliable.
Andreas
-
Cannot write the file in the destination folder.
Installed the new printer of brothers. PDF (file) scanning to e-mail could sweep old printer. Error code (CC3-103-00030302). Says "failed to write the file in 'Destination folder',
Got, it works. Here are some things I've done. I'm sure that some of them are useless holes to leave open, but its not working. These settings can be removed that time to identify exactly what is required to have fixed.
Windows 7 64-bit Brother MFC-J615W network Scan to Setup
1 open the windows firewall ports UDP 137, 54925 & 54926
2. set the read/write for the guests and users permissions
3. uninstall/reinstall
4. in CC3 configuration of SCANNING has two tabs; a device and software. You must pay attention to the directory/s you want to use.
Now, I am very satisfied with this printer. This is my first brother and I don't think that the last to the first impression. I have now this printer works wirelessly with a Ubuntu Netbook Remix, a MacBook 10.5 OS and Windows 7 64-bit.
* I am also able to scan in PDF without problem.
See you soon
-
When I try to use the text function the letters do not appear. Text feature appears frozen. Get the error message - unable to initialize the text.
Recently PSE11 uninstalled and reinstalled. Downloaded 2 Google font. Was able to use the text function with Google fonts with no problems. Two days later, attempted to work with the text function and the typed letters appear on the screen/layer. Tried to add the text with fonts pre-installed PS - still once, no text appeared. Impossible to set up a text box. How can I fix it? Thank you
Suggest that you reset the text tool, that only he can fix.
I believe in PSEv.11, there is a small arrow, top of the page to the left on the tool options bar. Click on this.
If the arrow is not there, look in the options bar to the text tool, on the right, for a box with lines inside. Adobe changed the location and icon in later versions of the program.
-
Cannot write the french accents by pressing the key
I can't french accents anyway by pressing the all longer.what to do. Thank you
Try to reset the function by typing the following command in the Terminal, followed by the return key or enter.
write g ApplePressAndHoldEnabled - bool true
Restart and try again.
-
Cannot run the XMLFromQuery function
Hi all
I am not able to execute sql queries using XDB service
My wsdl is
http://localhost:6999 / orawsv? WSDL
My call manually written is
< soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns:oraw = "http://xmlns.oracle.com/orawsv" >
< soapenv:Header / >
< soapenv:Body >
< oraw:query >
< oraw:query_text type = 'SQL' > select double 1 < / oraw:query_text >
< / oraw:query >
< / soapenv:Body >
< / soapenv:Envelope >
I tried a few flavors more than wrap soap, but I always get the answer instead of the real answer below
The answer is
< name of definitions = targetNamespace "orawsv" = "http://xmlns.oracle.com/orawsv."
xmlns = "http://schemas.xmlsoap.org/wsdl/".
xmlns:TNS = "http://xmlns.oracle.com/orawsv".
xmlns:SOAP = "http://schemas.xmlsoap.org/wsdl/soap/".
container = "http://www.w3.org/2001/XMLSchema".
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
xsi: schemaLocation = "http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/" >
< types >
< xsd: Schema
targetNamespace = "http://xmlns.oracle.com/orawsv."
elementFormDefault = "qualified" >
< xsd: element name = "query" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "DDL_text" type = "xsd: String".
minOccurs = "0" maxOccurs = "unbounded" / >
< xsd: element name = 'query_text' >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "type" >
< xsd:simpleType >
< xsd:restriction base = "xsd:NMTOKEN" >
< value xsd: Enumeration = "SQL" / >
< value xsd: Enumeration = "XQUERY" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: attribute >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: Choice minOccurs = "0" maxOccurs = "unbounded" >
< xsd: element name = "bind" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "name" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "bindXML" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: all / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: Choice >
< xsd: element name = "null_handling" minOccurs = "0" >
< xsd:simpleType >
< xsd:restriction base = "xsd:NMTOKEN" >
< value xsd: Enumeration = "DROP_NULLS" / >
< value xsd: Enumeration = "NULL_ATTR" / >
< value xsd: Enumeration = "EMPTY_TAG" / >
< / xsd:restriction >
< / xsd:simpleType >
< / xsd: element >
< xsd: element name = "max_rows" type = "positiveInteger" minOccurs = "0" / >
< xsd: element name = "skip_rows" type = "positiveInteger" minOccurs = "0" / >
< xsd: element name = "pretty_print" type = "xsd: Boolean" minOccurs = "0" / >
< xsd: element name = "indentation_width" type = "positiveInteger" minOccurs = "0" / >
< xsd: element name = "rowset_tag" type = "xsd: String" minOccurs = "0" / >
< xsd: element name = "row_tag" type = "xsd: String" minOccurs = "0" / >
< xsd: element name = "item_tags_for_coll" type = "xsd: Boolean" minOccurs = "0" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "queryOut" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: all / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: Schema >
< / types >
< name of message = "QueryInput" >
< name of part = element "body" = "tns:query" / >
< / message >
< name of the message 'XMLOutput' = >
< name of part = element "body" = "tns:queryOut" / >
< / message >
< portType name = "ORAWSVPortType" >
< operation name = "XMLFromQuery" >
< input message = "tns:QueryInput" / >
< output message = "tns:XMLOutput" / >
< / operation >
< / portType >
< connection name = "ORAWSVBinding" type = "tns:ORAWSVPortType" >
< style: binding soap = transport "document" = "http://schemas.xmlsoap.org/soap/http" / >
< operation name = "XMLFromQuery" >
< soap: operation soapAction = "http://localhost:6999 / orawsv" / >
< input >
< use of soap: body = "literal" / >
< / Entry >
< output >
< use of soap: body = "literal" / >
< / output >
< / operation >
< / binding >
< service name = "ORAWSVService" >
< documentation > Oracle Web Service < / documentation >
< name of port = "ORAWSVPort" binding = "tns:ORAWSVBinding" >
< soap: address location = "http://localhost:6999 / orawsv" / >
< / port >
< / service >
< / definitions >
Kind regardsI wonder how can we get response from the web service functions or procedures returning multiple lines
You must bring the function (or proc) returns an object type encapsulating your collection type instead.
Maybe you are looking for
-
I had provided both with Thunderbird and I imported a new address book via .csv. Everything was good until somewhere, I closed this address book and the other two have disappeared. What could have happened, or how can I get these back?
-
Updated to 19.0 lost norton toolbar and 2013.2.4.2. Run liveupdate, but 2013.2.4.2 is the most recent version.
-
HP Officejet Pro 8610: different print preview
I print a certificate in MS Publisher in landscape orientatiion. It is perfectly centered and print preview is just perfect as I want. When it prints, however, text boxes (text) is pushed all the way to the left of the page.
-
Acer Aspire S3 series off? Why does this happen?
I have a laptop Acer Aspire which has served me well. The laptop turns off unexpectedly when it is on battery or plugged in. The battery has been replaced twice, the fans and internal ducts cleaned, System calaberated and yet the problem persists. S
-
Hello. I installed windows xp on a thinkpad z60m. Everything is in order, but the wireless connection. I am unable to connect to my pc as the system says that I have to contact the system administrator. What can I do? Where can I insert the password?