Why did my system hang when I run this block
When I run this query, why my oracle stop repondingand after a while a start-up ifinite output...
*******************************
declare
v_nextval varchar2 (10);
cursor c6 is
(select double seq_a.nextval);
Start
Open c6;
loop
extract the c6 in v_nextval;
When the output v_nextval < = 10;
dbms_output.put_line (v_nextval);
end loop;
Close c6;
end;
/
*****************************
kinkly take a look on this
Thank you
Maybe something like that.
>
Suppose that in my neck of table A
last value inserted 258
I've migrated database from sql server 2005 to oracle 10g
where currval sequences initailized and last value is not 1
now I m creating a new sequence, but I do want to mention Startwith 258
So how do
>
SQL> select 'create sequence sequence_' || chr(level + 64) || ' start with 1 ; ' from dual
2 connect by level <= 2;
'CREATESEQUENCESEQUENCE_'||CHR(LEVEL+64)||'ST
---------------------------------------------
create sequence sequence_A start with 1 ;
create sequence sequence_B start with 1 ;
SQL> create sequence sequence_A start with 1 ;
Sequence created.
SQL> create sequence sequence_B start with 1 ;
Sequence created.
SQL> create table table_A
2 (
3 sno number
4 )
5 /
Table created.
SQL>
SQL> insert into table_a
2 select level from dual connect by level <= 10;
10 rows created.
SQL>
SQL> create table table_b
2 (
3 sno number
4 )
5 /
Table created.
SQL>
SQL>
SQL> insert into table_b
2 select level from dual connect by level <= 20;
20 rows created.
SQL> with mapping_table
2 as
3 (
4 select 'sequence_a' sequence_name, 'table_a' tname, 'sno' column_name from dual
5 union all
6 select 'sequence_b', 'table_b', 'sno' from dual
7 ),
8 max_value_table
9 as
10 (
11 SELECT
12 sequence_name,
13 to_number(
14 extractvalue(
15 xmltype(
16 DBMS_XMLGEN.getxml('select max(' || column_name || ') c from '||tname))
17 ,'/ROWSET/ROW/C')) max_value
18 FROM mapping_table
19 )
20 select * from max_value_table;
SEQUENCE_N MAX_VALUE
---------- ----------
sequence_a 10
sequence_b 20
1* select * from user_sequences where sequence_name in ('SEQUENCE_A','SEQUENCE_B')
SQL> /
SEQUENCE_NAME MIN_VALUE MAX_VALUE INCREMENT_BY C O CACHE_SIZE LAST_NUMBER
------------------------------ ---------- ---------- ------------ - - ---------- -----------
SEQUENCE_A 1 1.0000E+27 1 N N 20 1
SEQUENCE_B 1 1.0000E+27 1 N N 20 1
SQL> with mapping_table
2 as
3 (
4 select 'sequence_a' sequence_name, 'table_a' tname, 'sno' column_name from dual
5 union all
6 select 'sequence_b', 'table_b', 'sno' from dual
7 ),
8 max_value_table
9 as
10 (
11 SELECT
12 sequence_name,
13 to_number(
14 extractvalue(
15 xmltype(
16 DBMS_XMLGEN.getxml('select max(' || column_name || ') c from '||tname))
17 ,'/ROWSET/ROW/C')) max_value
18 FROM mapping_table
19 ) ,
20 sequence_collation
21 as
22 (
23 select us.sequence_name, us.increment_by, mvt.max_value from user_sequences us, max_value_Table mvt
24 where
25 us.sequence_name = upper(mvt.sequence_name)
26 ),
27 sequence_exec_order
28 as
29 (
30 select 1 execution_sequence, 'alter sequence ' || sequence_name || ' increment by ' || max_value || ';' text from sequence_collation
31 union all
32 select 2, 'select ' || sequence_name || '.nextval from dual ; ' from sequence_collation
33 union all
34 select 3, 'alter sequence ' || sequence_name || ' increment by ' || increment_by || ' ;' from sequence_collation
35 )
36 select text from sequence_exec_order order by execution_sequence
37 /
TEXT
-----------------------------------------------------------------------------------------------------
alter sequence SEQUENCE_A increment by 10;
alter sequence SEQUENCE_B increment by 20;
select SEQUENCE_A.nextval from dual ;
select SEQUENCE_B.nextval from dual ;
alter sequence SEQUENCE_A increment by 1 ;
alter sequence SEQUENCE_B increment by 1 ;
6 rows selected.
SQL> alter sequence SEQUENCE_A increment by 10;
Sequence altered.
SQL> alter sequence SEQUENCE_B increment by 20;
Sequence altered.
SQL> select SEQUENCE_A.nextval from dual ;
NEXTVAL
----------
10
SQL> select SEQUENCE_B.nextval from dual ;
NEXTVAL
----------
20
SQL> alter sequence SEQUENCE_A increment by 1 ;
Sequence altered.
SQL> alter sequence SEQUENCE_B increment by 1 ;
Sequence altered.
SQL> select * from user_sequences where sequence_name in ('SEQUENCE_A','SEQUENCE_B')
2 /
SEQUENCE_NAME MIN_VALUE MAX_VALUE INCREMENT_BY C O CACHE_SIZE LAST_NUMBER
------------------------------ ---------- ---------- ------------ - - ---------- -----------
SEQUENCE_A 1 1.0000E+27 1 N N 20 11
SEQUENCE_B 1 1.0000E+27 1 N N 20 21
Concerning
REDA
P.S: query of dbms_xmlgen old posts in this forum...
Tags: Database
Similar Questions
-
Tecra M4: System hangs when you run a package of modeling
My Tecra M4 2 GB memmory crashes when executing a package of modeling. The package works on all other machines to date.
Hard reset is necessary. It is a task by the intensive computation — could it have something to do with the power to save options?Also, it crashes when saving using a packard bell store and save the external drive.
Hello
Very interesting question, but you haven't written what saving settings you use. The processing speed of the CPU is set to the maximum level?
-
Satellite L350 - 16L system restarts when you run with power cord plugged
Satellite L350 - 16L
32 bit windows 7 ultimate sp1Power cable is connected, start the start, and just at the point where desktop should appear, the system restarts.
When the system is running on battery, everything works fine.
When the system boots to battery, works very well, and if I plug in the power cable, the system hangs
When the power cable is plugged in, battery charge normally.I tried the different power cable, same thing.
Do you remember when this issue began to appear?
It would be interesting to know if something special that has happened in the past
You use the original Toshiba AC adapter that came with this laptop?I think that this problem occurs due to the problem of the motherboard and I imagine that there could be some electronic problem power if the AC isn't affected adapter.
I think it would be the worst case, because it means that your motherboard must be replaced to solve this problem... motherbaord replacement is very expensive and, probably, it is not worth to fix...
By the way: is it possible to reinstall the system, while the laptop is conencted to the power adapter? What happens if enter you BIOS mode?
-
I bought this new comp with windows 7 already installed. has worked fine up intill a week or two it y a. I installed a new game, and after installation, I press launch to play it and pop up with a message saying not sufficient privileges: you must be an administrator when you run this application for the first time. also, I thought that I must be the administrator when I tried to launch the disk defragmentation. my account is the administrator account so I don't understand why they say that.
I'm sorry. I was reading through additional FAQS regarding the same problem. I saw where someone said to try to add another admisistrator account to try to take on the former. but I had no luck with this ether. I also downloaded the program of the UAC, and I turned it off, reset my computer and still no change to my problem. I also tried to download the MSE restore tool, but I found myself with a message saying that I have no MSE
Sorry, the MSE tool is to set the MSE when its broken.
UAC controller Tool v1.0 can be used to control the
The UAC settings.However, I suggest you restart the PC and after BIOS hold the F8 key
and when the Windows Startup Menu appears, select Mode safe mode with networking.Now, you will enter Safe Mode. On the page to connect, you will see the
Standard Windows administrator click it to open a windows session, press and hold
in mind, the password can be blank.Once you have done that make a new account administrator and giv it a name.
Restart the PC. That you did this newspaper using the new account.
Once you have done that decide what to keep with your current administrator
account once you've done it restart the PC, BIOS hold down the F8 key and
Select Mode safe mode with network and enter dependencies the Standard Windows administrator.Go to control panel-> user accounts control and security for the family-> user accounts, then
Select manage another account. In the list, select the administrator account
your select and then delete the account, then it will ask you if you want to keep
files etc, it's your own decision. Itknowledge24.com -
It is a new connection created when I run this code?
Hello everyone,
Anyone know tell me if a new connection with the database, it is created when I run this code?
I use JDeveloper Studio 11.1.1.4.0.
ADF Swing application.
//Método que exclui os endereços filhos de Observador private static void excluirEnderecoObservadorPanelGrid(Row row) { String appModule = "hidro2.gov.snirh.ig.hidro.model.adf.app.AppModuleGlobalTabApoio"; String config = "AppModuleGlobalTabApoioLocal"; ApplicationModule am = Configuration.createRootApplicationModule(appModule, config); ViewObject voObtemEnderecoObservador = am.findViewObject("ViewObjEndObservador1"); try { voObtemEnderecoObservador.setNamedWhereClauseParam("END_OBS_ID", row.getAttribute("ObsId")); voObtemEnderecoObservador.executeQuery(); if (voObtemEnderecoObservador.getRowCount() > 0) { Row rowEndereco = voObtemEnderecoObservador.first(); rowEndereco.remove(); am.getTransaction().commit(); } } catch (Exception ex) { ex.printStackTrace(); } }
Hello
You must free request module after the creation.
ApplicationModule m = Configuration.createRootApplicationModule (appModule, config);
In the finally block, add the code below
Configuration.releaseRootApplicationModuleHandle (appModule, true);
-
System hangs when browsing online, games, typing
I have continues momentary crash when the cursor is blocked. I can do anything online or not... browsing, typing, games. I did the normal layman automatic tests. Windows updates are up-to-date; the memory is good, etc..
I hev been using Windows 7 for almost two years to upgrade to Vista, but the problem is relatively new.
Help?
TNX,
Jim
Moved from feedback
This can be caused by many things, so I suggest that looking through the event logs for entries marked "error". To do that click on start-> Control Panel-> administration-> event viewer tools. Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.
Perhaps the most common reason is that your swap file is extended. You can enlarge through the system if necessary control panel applet. Then he must not freeze your system for 15 to 20 seconds while it extends. You didn't say how you have memory or simultaneous assignments how you are running or how many times you restart to defragment RAM. These can all be factors.
Good luck.
-
System crash when I run Windows Experience Index
Original title: Windows experience index
Hi, I bought a laptop HP Probook s 4530 2 days. my laptop is:
Windows Ultimate 64-bitCPU: CI3 2350RAM: 4GAnd my laptop 2 graphics cards:1 ATI Radeon HD M 74702-Intel HD 3000My problem is: when I run "Index Windows performance" my laptop will crash and the laptop computer monitor will be disabled. I have to hold the power button down until the laptop is turned off and the new. Please help me.Hello
Did you follow the troubleshooting steps?
If you did not follow the steps in the previous post, I suggest you to try and see if it helps.
I would say as you to see the link to use the System File Checker tool (sfc) to troubleshoot missing or corrupted system files in Windows:
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
-
Original title: Windows Explorer has stopped working
My computer is running XP Home Edition Sp3 and using Norton internet security 2011. I recently installed PowerDesk Pro v7.0.1.3and now, the system crashes when you right-click to copy a folder, etc. I read on this forum of a person having a similair problem and being referred to this site offering a patch that seems to not be available:
http://KB.avanquestusa.com/Al/12/1/article.aspx?Aid=4030&Tab=Search&BT=4&r=
Marilyn answers Support Engineer Microsoft's answer also suggested maybe using some registry changes, which I'm not comfortable with because of my limited experience.
Any suggestion would be greatly appreciated pedro147
None of these suggestions to the Microsoft support technician will help you, but they will consume large amounts of your time.
Please post a link to this Marilyn Microsoft engineer answer Support responses involving some registry maybe going to I can see that too.
Older versions of PowerDesk Pro 7.x are known to cause explore crash, so that the sounds on the right.
The current version of PowerDesk Pro is 8.5.
You might be able to get the old version to behave by disabling PowerDesk one shell extensions at a time until when you right-click Explorer no longer crashes. This will leave you with limited functionality of PowerDesk since those afflicted extensions will be disabled, but you should not have these extensions to do anything, you need to make sheets.
I would start with the PowerDesk ZIP shell extension (I already know about this one).
It is a version shortened and changed my notes on the use of ShellExView (since you already think sheets):
Download ShellExView here to see what Explorer extensions you have loaded:
http://www.NirSoft.NET/utils/shexview.html
ShellExView does not install anything on your computer, simply of runs and displays.
After launching ShellExView, under Options, choose "Mark non-Microsoft Extensions" and extensions not Microsoft will be pink, clear, but on some systems which is a difficult color to see, so click on display, choose the columns and move the column Microsoft closer to the top, so you can see on your screen without having to scroll left and right.
Click on the column header for Microsoft sort display (by clicking on the column of Microsoft) then all the non Microsoft extensions are on top and easy to see.
Non-Microsoft extensions would be things you have added (non-Microsoft) and are what you should be suspect.
You can also Google the name of a suspect add-on and see if there is any success on the mistakes of the DEP and what other people have done about it.
For example, you could Google something like:
Explorer XP crashing (you must fill in the name of add your suspect on.) See what kind of search results hits you get and are looking for solutions or situations that sound like yours.
Right click and disable Microsoft no suspicious extensions one at a time take a list so you can enable them again later if you wish.
The result of the change is immediate and no reboot is necessary. Test your failure condition. If the Explorer starts to behave, you will know which extension is the culprit, then you can start to enable them one by one until the Explorer fails again.
Don't forget - disabling the extension does not uninstall the extension - it is just disabled so you can always turn it on again.
Disable them one at a time until your right click on do not generate an error, then restart and test again. You have disabled the last extension would be suspicious. You can then start to reactivate other extensions to zero on the extensions that are causing your accident
If the cause of the accident is a third party application or program, their may be a later version of the program available that solves the problem.
If you find the offending extension that's the problem, please let us know what it is that I can add to my list.
-
System hangs when you work on Foxprox 2.6 for DOS
hanging system
I work in foxprox 2.6 for dos. My foxprox program hangs when system os on snare for one or two seconds how can solve this problem. the system is active and only the program hangs.
Hi Maury,
Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited on the MSDN forums. Please ask your question in the following forum.
-
Original title: System hangs when you open Add/Remove programs
Original title: System hangs
Windows XP crashes each time I have open the control panel and try to view add or remove programs (it also crashes in safe mode). He locks also after has been idle for a few minutes. I tried selective startup mode and the shutdowns continue to be committed. All the screensavers and standby/hibernation modes are turned off. I ran the diagnostics and only met with a 2000-0146 error code. Any other ideas out there?
I was finally able to save all my data and was able to reformat my existing hard drive. I also reinstalled XP SP3. I finally got all the drivers reloaded and have reinstalled virus protection. So far, everything seems to be back to the standard...
-
System crash when you run Mcafee
McAfee Scan freezes at C:\Program Files\...\Mpeg_Engine\ASH264Enc.dll
Screen of the blackout, blue, general drama. Computer says 'one of your disks should be checked for consistency. Dell said they find no hardware problem in their analysis. McAfee said that there is a windows problem.
Help!
Hi, I had a similar problem with MBAM and someone recommended to mehttp://www.resplendence.com/whocrashed
He informed me that he wqs indeed one out of the pilot, I dated and had no problems since.
Just re-run your Mcafee scan and after it blue screens, start up run this tool and it will let you know what little devil is causing your aggravation. Hope you find it useful to thius.
Driver can be a fickle bunch.
Select this option.
Windows Vista (the best), home premium.
-
the system restore program is activated.
A restore point is selected. program is activated.
It runs and after system restart, it is said that no changes have been made, run another restore point.
Same results every time!
Help!
Hi larryburrage,
1. did you of recent changes on the computer?
2 when was the last time it was working fine?
3 do you have Norton installed on the computer security software?
If you use Norton Security software on the computer then refer to the article below and check if it helps.
http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013
If you don't use security software Norton then temporary deactivation of security software installed on the computer and check if it helps.
Important: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.
-
Why did he say that you are running an operating system that Photoshop can't
I just bought Adobe student cloud. When I try to download Photoshop on my mac that he comes back with the error "you are running an operating system that supports Photoshop is no longer", nobody knows what this operating system? Can anyone help?
Check your version of MAC OS
First, click on the Apple icon in the upper left corner of your screen. From there, you can click on "about this Mac". You will now see a window in the middle of your screen with information on the Mac you're using.
-
Why did Windows 7 freezing when using Firefox?
S ' went for months now with many attempts to identify the cause. Came to the conclusion that it is Firefox but can't understand why.
-If you use Firefox, my whole PC, not only Firefox freezes. Sometimes in the first 5 minutes of use of Firefox, other times it can happen an hour in a session. A hard reboot is the only way to get back to my Office I waited an hour before, after a freeze and nothing happens. The mouse pointer move, nothing.
D ' first thought it was a hardware problem or a problem of antivirus protection.
-Reinstalled windows on three different hard disks that all have the disk check. Still happens
-Installed windows 8 to see if this could solve the problem. Nope, did the same thing on Windows 8.
-Ran Memtest 86 + 14 hours overnight to see if it was my memory. No, zero found errors of memory
-To be sure I even tried to use only a strip of ram in my PC at the same time to see if the chopsticks were bad. No, it froze with each stick
-Tried to change my anti-virus. He froze with every single one, AVG Free, Avast free, Microsoft Security Essentials.
-J' realized that my PC freezes only when I'm on the web in firefox. If I use chrome or Internet explorer, it doesn't happen. These total PC freezes happen when I use firefox.
-My only adds on / plug that I use is Adblock more and more those who come with default Firefox.
-My firefox is updated, I reset and reinstalled [everything by adding only Ad Block +] and again, this does not solve the problem
-In the event log window, the only thing that happens every time my PC freezes is the error "Session"Microsoft Security customer OOBE"stopped because of the following error: 0xC000000D", why this would affect Firefox, I don't know.
-I would like to understand the cause of this because I really want to use Firefox again.I finally understood that Firefox isn't the problem with this problem, but it's actually the Nvidia drivers. It's a shame as Nvidia pushes the hard driver updates. Drivers to eliminate this problem are 314.22. After you have uninstalled the latest drivers and replacing them with 314.22 I did have the problem at all in any program, including Firefox.
Here's a thread from Nvidia on the issue.
I had to replace a lot of my material before I figured out it was the Nvidia drivers because I don't have the correct error message on my old set up which pointed me in the direction of the video card.
If someone has this problem I highly recommend demotion to 314.22 driver version if you have a Nvida GPU in your system.
I'm very disappointed in Nvidia for not solving this problem after 15 + updated since 314.22 driver.
-
Why is my system hangs for 20 minutes?
Explore files, IExplorer9, tasks etc. hang with "not responding". When I click or right-click on the icon trash it crashes. Vista Ultimate SP2 observer of events shows many more crashes...
Event 10010, the Service Control Manager event log provider
A timeout (30000 milliseconds) was reached while you wait for a response from the service event log transaction.Event 10010, DistributedCOM
The server {7F6316B4-4D69-4765-B0A3-B2598F2FA80A} is not registered with DCOM within the required time.Event 8210, System Restore
Scheduled restore point could not be created. Additional information: (0 x 81000101).Event 8193, System Restore
Unable to create on the volume restore point (process = C:\Windows\system32\rundll32.exe/d: c:\windows\system32\srrstr.dll, ExecuteScheduledSPPCreation;)Descripton = regular control; HR = 0 x 81000101).
Event 1002, Application Hang
SystemPropertiesAdvanced.exe version 6.0.6000.16386 program ceased to interact with Windows and was closed. To see ifmore information about the problem is available, check the history of the problem in the reports on the problems and Solutions control panel.
Process ID: 146c Start Time: time of termination 01cc011d94ceb342: 0
Event 3002, MicroSoft antimalware
Feature of Microsoft Antimalware Real - Time Protection has encountered an error and has failed.
Feature: Access
Error code: 0x80004005
Error description: unspecified error
Reason: The pilot filter skipped scanning points and is in through mode. It is maybe because of the conditions of low resources.It is always sensible in this situation to achieve a malware check
Start the computer in safe mode with network and download and install Malwarebytes (free version for individuals only), updated definitions and run in safe mode. Disable other security software while you do the analyses.
Download and run SuperAntiSpyware (Free Edition)
http://www.SUPERAntiSpyware.com/download.html
Some malware is installing the entries of proxy server redirecting internet connections. If you encounter this problem step 2 see in the following link:
http://www.myantispyware.com/2011/02/21/how-to-remove-Internet-Security-Essentials-virus/
Maybe you are looking for
-
Mac freezes transfer of photos of Pentax K-30
When I transfer photos from my camera Pentax K-30 to iPhoto on my Mac, transfer hangs after moving 3 or 4 pics max. Anyone know how I can stop what is happening or transfer the photos on my Mac another way?
-
I'm sure I'm missing a tab in my icon editor... Can someone tell me where my lack of tab (forgot the name of it) has been done? Furthermore, I can not synchronize with the icon library OR. The problems occurred today for the first time. After that, I
-
How can I prevent windows messenger from Yahoo from loading when I turn on my computer
How can I prevent windows messenger from Yahoo from loading when I turn on my computer
-
GAL/LACP with several VIRTUAL LANs
Hello I have two switches SG-200-50. I created three VLANS on one and define the place of the other - there is no requirement for routing between VIRTUAL LANs. However, I want to trunk between local networks VIRTUAL using with LACP LAG. For example,
-
I had to cancel my debit because of fraudulent activity card and my creative cloud subscription was related to this card. I just got my new card and plugged on creative cloud but the icon on the taskbar to the top of my mac is gone and I don't know h