Need help with update statement to be used in the stored procedure
I have the following update statement and I get "ORA-06512. Someone of you can help me.----
UPDATE MO X SET X.MOMODEL = (SELECT Y.MOMODEL FROM MO Y WHERE Y.MOID = A_TEMP_INT3)
WHERE X.MOID in (UPDATE MO X SET X.MOMODEL = (SELECT Y.MOMODEL FROM MO Y WHERE Y.MOID = A_TEMP_INT3)
WHERE X.MOID in (A_TEMP_INT1, (select assocchild from mo_association
Connect prior assocchild = assocparent
Start with assocparent = A_TEMP_INT1)); (by selecting assocchild in mo_association
Connect prior assocchild = assocparent
Start with assocparent = A_TEMP_INT1));
----
Note: A_TEMP_INT1 and A_TEMP_INT3 are the values of cursor and is assigned to numeric values in the code.
Thanks for all the help in advance.
Kind regards
REDA
WHERE X.MOID IN
(SELECT ASSOCCHILD FROM MO_ASSOCIATION
CONNECT BY PRIOR ASSOCCHILD = ASSOCPARENT
START WITH ASSOCPARENT = A_TEMP_INT1
UNION
SELECT A_TEMP_INT1 FROM DUAL );
Should work.
VR,
Sudhakar B.
Tags: Database
Similar Questions
-
need help with my screen has been using mouse and the screen is smaller and smaller
need help with my screen has been using the mouse and the screen is smaller and smaller, so can't see
Try to hold the 'ctrl' key and turn the wheel of scrolling the mouse forward to zoom, turning the scroll wheel to the rear is to zoom out.
-
Is there a default value for the color management in PSE10? Beautiful photos from iPhoto, but blur with elements. I need help with this before as I consider that the upgrade to PSE13 and beyond.
Printing which forms an angle seems ok, but one that is horizontally seems faded, incomplete.
I was wondering if I saved a layer somewhere and set it as a default value.
If you group the layers, you will be left with a single layer, thus spreading your concern.
Suggest that you do the following:
- Make sure you have the latest drivers for your printers
- Reset the default preferences.
Hold the Alt, Ctrl + Shift keys when you click the icon to open the items. When asked if you want to delete the settings file, say Yes.
Items nearby and let regenerate the file.
-
Need help with Update instructions.
Hi all
I am learning XMLDB Berkeley and facing problem to query the XML file that is inserted. I have a small XML file with the following content:
& lt;? XML version = "1.0" standalone = "yes"? & gt;
& lt; Bookshop & gt;
& lt; Book & gt;
& lt; book_ID & gt; 1 & lt; / book_ID & gt;
& lt; title & gt; Harry Potter and the order of the Phoenix & lt; / title & gt;
& lt; subtitles & gt; A photographic history & lt; / subtitle & gt;
& lt; author & gt;
& lt; author_fname & gt; J.K. & lt; / author_fname & gt;
& lt; author_lname & gt; Rowling & lt; / author_lname & gt;
& lt; / author & gt;
& lt; price & gt; 9.99 & lt; / price & gt;
& lt; year_published & gt; 2004 & lt; / year_published & gt;
& lt; Editor & gt; Scholastic, Inc. & lt; / Editor & gt;
& lt; kind & gt; Fiction & lt; / Type & gt;
& lt; quantity_in_stock & gt; 28997 & lt; / quantity_in_stock & gt;
& lt; popularity & gt; 20564 & lt; / popularity & gt;
& lt; / Book & gt;
& lt; / Library & gt;
When I try to update the TITLE of this node, I have the following error message:
---------------------------------------------------------------------------------------------------------------------------
C:\Users\Chandra\Desktop\BDB & gt; javac - classpath. ; "C:\Program Files\Sleepycat software
ware\Berkeley XML DB 2.1.8\jar\dbxml.jar «;» C:\Program Files\Sleepycat Software\B
erkeley XML DB 2.1.8\jar\db.jar' bdb.java
BDB. Java: 75: illegal start of expression
public static final String STATEMENT1 = 'replace the value of the collection of nodes ("twopp."
RO.bdbxml")/bookstore/book/BookID/title with «NEWBOOK" «;»
^
BDB. Java: 80: ")' expected"
System.out.println ("query:" + enonce1);
^
2 errors
---------------------------------------------------------------------------------------------------------------------------
But when I remove the update statements and try to display the TITLE of this node, I see no output. Please help me to make up for my mistakes. Here is the source code that I use to perform this function.
Thank you.
import java.io.File;
to import java.io.FileNotFoundException;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlException;
import com.sleepycat.dbxml.XmlInputStream;
import com.sleepycat.dbxml.XmlManager;
import com.sleepycat.dbxml.XmlUpdateContext;
import com.sleepycat.dbxml.XmlDocument;
import com.sleepycat.dbxml.XmlQueryContext;
import com.sleepycat.dbxml.XmlQueryExpression;
import com.sleepycat.dbxml.XmlResults;
import com.sleepycat.dbxml.XmlValue;
public class bdb {}
Public Shared Sub main (String [] args)
{
Environment myEnv = null;
File envHome = new File ("D:/xmldata");
try {}
EnvironmentConfig envConf = new EnvironmentConfig();
envConf.setAllowCreate (true); If the environment is not
outputs, create it.
envConf.setInitializeCache (true); Turn on the shared memory
region.
envConf.setInitializeLocking (true); Turn the locking subsystem.
envConf.setInitializeLogging (true); Turn on the recording subsystem.
envConf.setTransactional (true); Turn on the transactional
envConf.setRunRecovery (true);
subsystem.
myEnv = new environment (envHome, envConf);
BDB XML work here.
} catch {} (DatabaseException of)
Exception handling goes here
} catch (exception FileNotFoundException fnfe) {}
Exception handling goes here
} {Finally
try {}
If (myEnv! = null) {}
myEnv.close ();
}
} catch {} (DatabaseException of)
Exception handling goes here
}
}
XmlManager myManager = null;
XmlContainer myContainer = null;
The document
String docString = "D:/xmldata/test.xml";
The name of the document.
String docName = "cia."
try {}
myManager = new XmlManager(); Assume that the container doesn't currently exist.
myContainer =
myManager.createContainer ("twoppro.bdbxml");
myManager.setDefaultContainerType (XmlContainer.NodeContainer); A context of update needed to put it.
XmlUpdateContext looking for = myManager.createUpdateContext (); Get the input stream.
XmlInputStream theStream =
myManager.createLocalFileInputStream (docString); Put the real
myContainer.putDocument (docName, / / the name of the document)
theStream, / / the document itself.
Looking for, / / context of the update
(required).
(null); Object XmlDocumentConfig
theStream.delete ();
Update title
public static final String STATEMENT1 = ' * replace the value of the node collection("twoppro.bdbxml")/Bookstore/Book / [bookid = 1] / title with 'NEWBOOK ""; *
XmlQueryContext context = myManager.createQueryContext ();
XmlQueryExpression queryExpression1 = myManager.prepare (STATEMENT1, context);
System.out.println ("try to execute the query:" +)
System.out.println ("query:" + enonce1);
queryExpression1.execute (context);
Get a request context
XmlQueryContext context = myManager.createQueryContext ();
Set the type of Lazy evaluation.
context.setEvaluationType (XmlQueryContext.Lazy);
Declare the query string
Dim queryString As String =
"for $u in collection('twoppro.dbxml')/Bookstore/Book / [bookid = 1].
+ "* return $u/title '; *
Prepare (compile) the query
XmlQueryExpression qe = myManager.prepare (queryString, context);
Results = qe.execute (context) XmlResults;
System.out.println ("OK");
System.out.println (Results);
} catch (XmlException e) {}
Error handling goes here. You may want to check
for XmlException.UNIQUE_ERROR, which is triggered
If a document with this name already exists in
the container. If this exception is thrown,
Try to put it again with a different name, or
Use XmlModify to update the document.
} catch (FileNotFoundException exception) e {}
Generative TODO catch block
e.printStackTrace ();
} {Finally
try {}
If (myContainer! = null) {}
myContainer.close ();
}
If (myManager! = null) {}
myManager.close ();
}
} catch (XmlException this) {}
Exception handling goes here
}
}
}
}
Hello
Please try this (it goes on my shell of dbxml)
public static final String STATEMENT1 = "for $n in collection('twoppro.bdbxml')/Bookstore/Book[book_ID=1]/title return replace value of node $n with 'NEWBOOK'"
Just use "to take care of all the nodes".
Published by: rucong.zhao on February 11, 2009 02:11
-
user_table should be used in the stored procedure.
Hello
I want to find my permanent table user_tables and then drop and recreate it,
I can use this user_tables in my stored procedure for above purpose or is there any notice that must be used.
SP is admin sp, used to run in offline mode.
yorus truly
Published by: 944768 on 10 February 2013 23:44
Published by: 944768 on 10 February 2013 23:44944768 wrote:
but I wanted to know that can I use user_table in above proc stored to conclude and then drop and create it when Everitt runs?Oracle manages two "flavors" of the stored procedure - copyright and rights of the Summoner. Rights of the DEFINER (default) is always performed under stored security area of the owner of the procedure no matter who calls it. So, if you ask USER_TABLES (or any display USER_, besides) within DEFINER rights stored procedure, you will get a list of tables owned by the owner of the stored procedure, not stored calling procedure. Rights (AUTHID CURRENT_USER) stored Invoker procedure is always carried out under the domain of the calller security. Therefore, if you are querying USER_TABLES (or any display USER_, besides) within the Summoner rights stored procedure you will get a list of tables belonging to the appellant a stored procedure. Hope it answers your question.
SY.
-
need help with update of the applications using the creative cloud
I get an error: failed to update... impossible to extract the downloaded files... U44M1I210
Hi craigdb,
Please see the Ko: http://helpx.adobe.com/creative-suite/kb/error-u44m1i210-installing-up dates-HYPERLINK .
Kind regards
Baudier
-
I will start with my features of laptops.
-System-
Manufacturer: HP
Model: HP G62 Notebook PC
Rating: 4.0
Processor: AMD Athlon II P320 Dual-Core Processor 2.10 GHz
RAM: 8.00 GB
System type: 64-bit Operating System
So the problem I have is that when I am games I am roughly pushing my computer to its limit and I want to accelerate as efficiently as possible. I recently upgraded my 4.0 GB 8.0 GB RAM, but that's all I've done so far. Keeping in mind the laptop is a bit outdated (I bought in 2010 or 2009). I don't know exactly what the best upgrades are, so why I post here for assistance. I am open to suggestions and advice help my computer!
I know I should just buy a new computer, but I grew attached to it and I can't really have a desktop computer because I am a student and I need to be moving quite often.
I would say that my budget is 200 to 400 $ CAD.
My questions are...
How can I find out what kind of processor would be best for my computer (if you know it please leave a link or something to show me what would work well)
The upgrade of the motherboard would also help? (I also don't know what would be useful or compatible)
TL; DR: I need help to upgrade my laptop and suggestions on what it takes to update and with what would be great!Unfortunately there isn't much you can do to make this portable game better. What you need is more powerful graphics and there is no way to get it. There is no better motherboard that you put in it. Ago slightly faster processors, you could install, but the cost would be very important and he would not really game better. Sell your laptop and add it to the CAD $ 400 you have budgeted for upgrades. There are some bargains out there right now on the computers of all kinds, including laptops.
If you need any help post more come back.
-
Need help with installation/change of phone number for the Microsoft account
I think I entered a wrong phone number upon registration of my Microsoft account, is there a way to edit/change it?
Reconnect the MS Account to maintain or modify
I assume you are referring to a MS Account, which is used in the purchase/installation of Software MS for example Office 2013 -
Satellite P850-30V - need help with update drivers
Hello
Tempo said there are new drivers for NVIDIA and LAN Wi - Fi. I have download extract it the files and they run, BUT the drivers have not been updated and tempo continues to tell me there are updates.
I play diablo 3 and when I run the game it tells me that my video driver is outdated.
Help, please
If everything is working properly you should not install any update, especially not the driver WLAN.
You have problems with the WIFI connection?With the game is a little problem. On mobile units (portable computers) display are preinstalled drivers supported by the laptop manufacturers. The game will be the latest version of the driver from the manufacturer of the graphics card but they don t support drivers for laptops... it's a little complicated.
My advice to you: If everything works fine and you don t have serious problems disable Tempro.
-
So I am new to SQL and ORACLE. I need to know how to do the commands below in a single statement. I did it in two here, but I have no idea how do it in one. Any ideas?
ALTER TABLE books
ADD Catcode VARCHAR2 (3);
ALTER TABLE books
ADD CONSTRAINT books_catcode_fk FOREIGN KEY (catcode)
REFERENCES (catcode) category;
Any help appreciated ^^SQL> ed Wrote file afiedt.buf 1 alter table books 2 add( catcode varchar2(3), 3 constraint books_catcode_fk 4 foreign key( catcode ) 5* references category( catcode ) ) SQL> / Table altered.
Justin
-
Need help with deprovision as a single resource to the user using API profile
Hello
I need to write a little code, where I can layout only one resource profile of the user via the API of the IOM. Please help me to start coding.
Thank you
Kalpana.Change your code to do this
String oiuKey = resultset.getStringValue ("User-Object Instance to User.Key");
You must pass the oiuKey method revokeObject no Object Key
See more details here revokeObject method [IOM] - howto?
-
Need help with updates of Photoshop CC
I have Photoshop CC 64-bit running on Windows 7 with Kaspersky and continual problems with upgrades to Photoshop, usually U44M1P7. I've disabled Kaspersky then manually run 13.1.2 and the software says that he has done but Photoshop continues to try to load again the same upgade. Upgrading BRUTE emitted at the same time loaded without any problems. Now the Applications Manager failed during an upgrade and disappeared from my system. Help.
Please visit: http://forums.adobe.com/message/5391508
-
Need help with update of Windows 8
Can someoneplease tell me how to get the window updates 8 for Acer computer.
-
need help with an order first level using LABVIEW PID control process.
As the program begins to run the PV value also increase when it reaches the SP is not settledown instead it stops.
Have you tried on the NEST? There are a bunch of examples here on the forum
-
Need help with deleting/closing 63 process running on the computer always?
MY COMPUTER COSISTANTLY HAS ABOUT 60 PROCESSES RUNNING ALL THE TIME. I HAVE READ ALL THE INFORMATION ON WHAT THEY ARE AND WHAT THEY MEAN, BUT I STILL DON'T KNOW WHAT PROCESS I MUST CLOSE AND FEAR THAT I WILL END UP SHUTTING DOWN THE ONE WHO SHOULD RUN. IM NOT VERY SAVVY COMPUTER SO I DO NOT REALLY UNDERSTAND WHAT WANTS ALL SAY, BUT I DID RESEARCH ALMOST ALL PROCESSES TO SEE IF IT WOULD HELP ME DISTINGUISH WHICH THOSE DI NO NEED TO RUN WELL, IT HAS NOT HELPED. PLEASE IF ANYONE CAN HELP ME CLOSE / REMOVE PROCESSES THAT MUST RUN AND HELP ME FIND A PERMEANT WAY TO PROGRAMS/PROCESSES IN ORDER TO CLOSE WHEN NOT IN USE. THANKS FOR ANY HELP IT IS GREATLY APPRECIATED!
Hello jacquelinek1104,
Below, I've added a link with another similar to your question. Hope this helps you.
Microsoft Answers:
Thank you
James
Maybe you are looking for
-
Hi people, this is my first post! We used to have a Samsung TV which read usb drives without problems, but this new Sony has us pulling the hairs! We tried to connect one 1.5 to HD and another 500 GB drive, filled with files, AVI and thrying to acces
-
Should T530 - I better put the thermal grease on it?
I have 2359CTO t530. I bought it as refurb Lenovo more that year pass, is no longer under warranty. There 3740QM I7, NVIDIA graphics card NVS 5400 M, 16G of ram and 480G mSATA as main HD (I upgraded RAM and HD. When I run TPFC.63 7 manual setting, te
-
I received the following error message when you attempt to run an application built with LV 7.1: Error-2147221164 occurred at the class not registered in Open_Excel.vi > Report_generation_excel_Tbeta WITH new layout.vi > beta Mirror_Cycling_Main - 2.
-
Windows service pack 1 downloads 99.9% but still comes up with error and does not?
-
In the PROGRAMS & APPEARANCE tab virtually every program or function has an indication of the total capacity of its files and the total space they consume. However, even if I have Microsoft Works, which I use every now and then, under programs and F