using the slider to the number of sum, gives an error
HelloI use two tables: emp (identification number, number of sal) and another table sal_given (month varchar, the number of total_sal).
emp table is filled. I use oracle 9iR1 on Windows XP operating system.
Via a slider I want add the salary of the EMP and insert in the field total_sal in the sal_given table.
So I wrote this code, have a look at it,
declare
sum1 number: = 0;
cursor sal_cursor1 is select * from emp;
SAL1 sal_cursor1% rowtype;
Start
Open sal_cursor1;
loop
When the output sal_cursor1% notfound;
sum1: = sum1 + sal1.sal;
end loop;
insert into sal_given values ('feb', sum1);
close sal_cursor1;
end;
/
After running this, Oracle block unexpectedly.then I have to restart the Oracle service. So where is the flaw?
user12222356 wrote:
Really? cursor is to slow down the implementation process?
Sure.
Here is a simple test to show a cursor actually making a simple insertion of more 15 times slower.
SQL> create table t (n number);
Table created.
Elapsed: 00:00:00.00
SQL> insert into t
2 select level from dual connect by level <= 100000;
100000 rows created.
Elapsed: 00:00:00.17
SQL> rollback;
Rollback complete.
Elapsed: 00:00:00.04
SQL> begin
2 for c in (
3 select level x from dual connect by level <= 100000
4 ) loop
5 insert into t values (c.x);
6 end loop;
7 end;
8 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:02.75
SQL> rollback;
Rollback complete.
Elapsed: 00:00:00.95
SQL>
Backing up is 20 times slower too.
Tags: Database
Similar Questions
-
Question about the installation of XP with an OEM disc and using the number of CoA HP
Hello
I have a DC5100SFF that I bought refurbished last year, and it came not with all drives. It comes with windows XP pro and has the CoA sticker with the activation code. It also has "HP" written on it.
I thought to wipe the hard drive and reinstall XP Pro in the near future. I have an an OEM Windows XP Pro disc, but it is not specific to HP. The CoA sticker has been removed from the new drive (and the package is not open), but there is nothing on the packaging to indicate what OEM brand (its likely it was another popular provider).
My question is, if I install XP from this disc, he on my machine can use the number on the certificate of authenticity to activate it, or do I need to use a specific disc HP XP Pro?
Thank you
Hello:
David is correct. You don't have the product key if you use recovery discs.
However, I believe that you can still get the recovery disc for your Business from HP desktop PC.
Just dial 1-800-334-5144 and inform the representative of customer services that you need a set of quick restore CD.
You will need to provide the model number and serial number.
A game costs $10.00.
As for your other question... If someone has already used the product key XP pro on the sticker on your PC, you can use any disk XP Pro OEM installation and enter the product key.
I do it all the time. I used OEM Dell on HP PC disks. Never had a problem.
Paul
-
I am owner of acrobat 9 pro and he had to re - download the program from a computer problem but when I get the code of the adobe Web site gives me error invalid serial code. I use copy / paste to prevent Miss typing the code.
Hi Laurent,.
Please try the steps listed in the KB: https://helpx.adobe.com/creative-suite/kb/error-invalid-serial-number-acrobat.html
Kind regards
Rave
-
When I use the trial license, it gives me a simple Chinese version, but I want to use the version in traditional Chinese, how to change?
Cloud creation help / solve the installation language. Creative Cloud applications. CCM-
http://helpx.Adobe.com/creative-cloud/KB/change-installed-language.html
-
When I use the Brush tool, it gives a red highlighter effect
When I use the Brush tool, it gives a red highlighter effect, regardless of the color brush or color that I am that overlap. How can I fix it?
Disable the quick mask (Q hit key)
-
How can I reinstall the CoreVideo.dll. iTunes gives me error that it is not found
How can I reinstall the CoreVideo.dll. iTunes gives me error that it is not found
For iTunes problem, contact Apple for support with their software:
http://www.Apple.com/support/iTunes/
See you soon.
Mick Murphy - Microsoft partner
-
During the publication of businesscatalyst gives an error message "SHARED_UNKNOWN_ERROR:67".
Hello
Please sign of Muse and identify yourself again and try to publish.
You have the possibility of disconnection of help > Sign Out
In the case that do not fix the issue made me know.
Concerning
Vivek
-
I have to renew the admittance of covers offered by my University pass, but the product (the redemption code) code gives me error. What can I do?
Hello
Please help us to better understand.
What is the error you get?
In the meantime, you can also check: -.
-
Recovery of phone contact names using the number of the person
Hello everyone!
I'm working on a SMS application.
My problem is...
I want to replace the number (in my Application, Outbox Inbox) name if this contact is in the list of contacts from my blackberry...
As if I get a text from 909037372 and if I have a contact named "Mike" stored in the native contacts from my phone list with that number. So, what I'm trying to implement is that Messages right. in the Inbox of/Iutbox my request should be replaced by "Mike" instead of display "909037372" as is the case in real Inbox and the outboxes...
Help, please! I need...
Thanks in advance...
You can use the searchByNumber to contactlists. or use a workaround, create a phonecalllog with the number and see if it has a name (the name is provided by the infrastructure of system)
-
I bought this card of NEITHER. I've been in contact with Comsoft which apparently is the developer of this Council. I used the Configurator II to try to build the network. The GSD file for my slave is entered. I can also see the GSD file for the master. There seems to be no obvious way to test the bus of the configuration tool. I tried the Express VI provided by Comsoft. Nothing happens. I have a purchased with endings installed profibus cable. I know that the works of cable as a another division has an another Profibus master that works with this cable how to configure correctly for you? How to test?
Thank you
Rick
The problem has been resolved. In the configuration tool, after the slave device is connected to the network, all of the attributes listed under it must also be dragged over and placed in the list that appears. Never seen this step in the documentation. Once this has been done the configuration tool could initialize and find the slave.
Rick
-
as the title suggests I get error message 86 that I close all processes from adobe using the Task Manager and always update fails and the 86 error message reappears. I was stuck with this for 2 days. any suggestions please.
Hello
Please see Error Code 86 | Cloud Creative
Kind regards
Sheena
-
Hello
I am a relative to the VI Toolkit novice so apologies if I ask you something ridiculous.
I am trying to save a virtual machine using the VI Toolkit, but get the error "a general error has occurred: failure of ' (seen in the VI Client) when the virtual machine must be connected to the host. I use Registervm_task to perform this task.
Here is the code:
-
to connect-VIServer MyVIServer
http://Reflection.Assembly: LoadWithPartialName ("vmware.vim")
$clus_name = "MY_CLUSTER".
$folder_name = "DR".
$esxcsv = import-csv «.\esx-hosts.csv.
$vmcsv = import-csv «.\vm-list.csv.
$dr_folder = get-view-file-filter viewtype @{"name" = $folder_name}
$clus = get-view - viewtype ClusterComputeResource-filter @{"name" = $clus_name}
foreach ($vm to $vmcsv)
{
+ $dr_folder. RegisterVM_task($vm.) PATH, $vm. VM, $false, $clus. ResourcePool, $null) +.
}
-
If I look in the 'tasks and events' VI, I see the following events:
'Machine virtual myvm is connected' and then a few seconds later "Creating myserver on the host myhost.myfqdn.net in my data center"
I can join the virtual machine manually via the VI Client and confirmed the account that I'm using has permissions.
Any ideas or suggestions would be welcome.
Kind regards
Jamie.
If the problem persists, could perhaps include a sample of the content of the two CSV files?
-
In CS2 program error: "could not use the text because of a program error."
Yesterday when using the text tool, I kept getting the message "Could not use the text tool because of a program error". Today I still get this message and the same message when I try to change the size of the image. There is no information on what the program error is - all advice?
This can be caused by a corrupt police.
If you are on a Mac, FontBook open, select all (Cmd + A) fonts, file > validate font. Check fonts corrupted / invalid according to the results. Delete all corrupt fonts. Try using the text tool now.
If you are under Windows, use this: http://fix-fonts-folder.en.softonic.com/ or search for one of the many programs on Google font manager.
-ST
-
Try to use the streets & trips 2010, receive initialization error occurred in 0xC004D301
I started to get an error message when streets & 2010 trip that says Error initializing license to opening took place 0xC004D301 after the establishment of a leading GPS transfer routine.
I'm not locked out of streets & trips. Any suggestions?
Hi ScooterZB,To resolve this issue, follow the steps in the link below: -
Error giving a subquery, but with the outer query, it gives no error.
Hello
The following query gives error "ORA-00979: not a GROUP BY expression" (I know to use the filter condition in the WHERE clause, but for reasons explaining the problem, I use the HAVING clause)
SELECT DeptNo
WCP
HAVING comm IS NULL;
But when I use it as a subquery in as long as below, the query will run successfully (resultset may be wrong).
SELECT d.
BY d Dept.
(SELECT deptno
WCP
WITH comm IS NULL) a
WHERE d.deptno = a.deptno;
Please explain the reason.
Kind regards
DanishSort of philosophical question. But you're right, this behavior can be misleading.
Maybe you are looking for
-
HP Envy H8 1414 Desktop Racing Fan
Normally, the fan runs very quietly. Time to time... maybe every 5 minutes the cooling fan will run. Speed will increase slowly calm down the rage for about 15 seconds, and then she slowly returned to its normal speed alone. Any idea what can be th
-
Thread mode in LabVIEW 2010 bug?
I had an application written in LabVIEW 2009 for a PSC-2220 who stopped working when it was converted in LabVIEW 2010, and I tracked down the problem to one thing: the software sets the mode of the Serial wire. Call this method simply disables all of
-
Can not see the bar of tasks and start button
I was trying to connect my video camera and software, when I lost my taks bar and my desktop icons. I can open programs by going to Task Manager, but I would rather just my icons. Can you help me?
-
NullPointerException in screen #navigationMovement Manager
Hello After you add a VerticalFieldManager to a screen, Manager of navigationMovement super screen throws a NullPointerException and the verticalFieldManager scroll with the trackpad of this point (using the Enter key to scroll works very well and af
-
Hello, this my first question after. before all sorry for my English. I have trouble with r710 perc6i raid 5. 1 hard drive 3 sas can't (it is installed 7CV6H: hard drive, Module, 300G, SAS6, 15 K, 3.5, Seagate -info comes from the support page of del