If i am trying to assing the value at the if level

declare
v_deptno number;
begin
if v_deptno =10 then
update emp set sal=sal+1000 where deptno=v_deptno;
dbms_output.put_line(v_deptno);
else
--update emp set sal=sal+10*sal where deptno=v_deptno;
update emp set sal=sal+10000;
end if;
end;
The statement always being effected at the else level even though i am assigning the value 10 at if please solve this

812809           Newbie
Handle:      812809
Status Level:      Newbie (10)
Registered:      Nov 17, 2010
Total Posts:      81
Total Questions:      48 (36 unresolved)
Name      Naren >
Your question depicts the fact that after 81 posts, you haven't still not managed to read the documentation or any standard book on PL/SQL and didn't grasp even the simple conceptions of the language (and may be you are not re-visiting your threads also and follow the suggestion, that's why too many questions and too few solved).
Where did you assigned the value to the variable ?

Similar Messages

  • How to pull the root level XML tags in the XML source-SSIS?

    Hi All,
    Can anyone please help out with the following requirement?
    There is a XML file data which I need to pull it to database. Please see the attached XML file.
    Question: When I am trying to pull the root level data (i.e. CreationDateTime and FileNumber) from XML source in the dataflow, the respective tag is not seen in the input. Can anyone help me how can I get those values in my input to pull the data to Database?
    Thanks & Regards,
    Sri

    Hi Sri,
    In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. For more details, please refer to the following steps:
    Double-click the XML Source in the Data Flow Task. 
    Browse the XML file for the XML location.
    Click the Generate XSD button to generate an XSD file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Goods Issue to increase the stock levels in a plant

    Folks,
    I am not a MM guy and I am trying to increase the stock levels in a plant using a Goods issue.
    1.     Can I do the Goods Issues without reference to a Purchase Order? If so, how can I do this
    2.     What are the relevant movement types when GI is made w/o reference to a Purchase Order?
    3.     Can GI be made with reference to any other entity/object other than PO?
    Thanks

    1. Can I do the Goods Issues without reference to a Purchase Order? If so, how can I do this
    No u can't ..u have to do Goods receipt for a PO
    Raise a PO for the same material and do GR
    2. What are the relevant movement types when GI is made w/o reference to a Purchase Order?
    u cant do GI for PO
    3. Can GI be made with reference to any other entity/object other than PO?
    GI aganist cost centre, production order, reservations ....
    the easier way to bring in stock of a material is to do intial entry thru MB1C with mvt type 561.

  • How to set the isolation level on Entity EJBs

    I am using 10.1.3.3 of the OC4J app server.
    I am creating an application that uses EJB 2.1.
    I am trying to set the isolation levels on the EJBs to either serializable or repeatable read.
    When i deploy the EAR file from the OC4J admin console, i can set the isolation level property on the EJB's however when i inspect the orion-ejb-jar.xml file I do not see the isolation level being set. Furthermore, i tried to manually change the isolation setting by editing the orion-ejb-jar.xml and adding the isolation="serialiable" attribute on the entity bean descriptor. I then stopped and restarted the server. I noticed that my change was no longer in the file.
    Can someone please let me know how to solve this problem and set the isolation level on Entity EJBs . Thanks

    I find it at ejb.pdf from BEA.
              The transaction-isolation stanza can contain the elements shown here:
              <transaction-isolation>
              <isolation-level>Serializable</isolation-level>
              <method>
              <description>...</description>
              <ejb-name>...</ejb-name>
              <method-intf>...</method-intf>
              <method-name>...</method-name>
              <method-params>...</method-params>
              </method>
              </transaction-isolation>
              "Hyun Min" <[email protected]> wrote in message
              news:3c4e7a83$[email protected]..
              > Hi!
              >
              > I have a question.
              > How to set the transaction isolation level using CMT in descriptor?
              >
              > The Isolation level not supported in CMT?
              >
              > Thanks.
              > Hyun Min
              >
              >
              

  • Hide the last level of a hierarchy in bex

    HI experts,
    In a query I use a hierarchy based on 0account (characteristic based hierarchy, every node is also an account...)only leaves have figures in the cube (meaning no direct posting on nodes).
    This hierarchy doesn't have flat / equal levels, and final accounts are sometimes located on level X, sometimes on level X+1 etc...therefore, I can't use the standard fonctionnality "expand to level X"
    see below a simple exemple
    (in fact my hierarchy contain more than 10 levels):
    level1..|..level2..|..level3
    ..node 1-1     
    .........|.node 1-2 ("R"account)
    .......................|.<b>account</b>
    ..node 2-1 ("R"account)
    .........|.<b>account</b>
    My users want to be able to simply navigate in the hierarchy on specific nodes(which have specific properties through the usage of an navigational attribute used on my 0account characteristic), whitout having to expand to the last level: example the "R" level wich is the level before. Again, this R level resides in different levels of my hierarchy.
    So I have to find a way to stop the expand of the hierarchy to this specific level, hide the levels below(account), but include the amount of the lower levels in this specific specified level ("R").
    If you have any ideas/clues or suggestions on how to resolve this issue (navigational attribute, exits, restricted key figures, hidden columns...)...this would really be much appreciated.
    thanks a lot!
    Ps: I work on BW 3.5
    Message was edited by: Agathe LE LAMER

    Hi Agathe LE LAMER
    I know this thread is a little old now, but I would be interested to know if you had found a way of doing this. I am also trying to supress the lowest level in a hierarchy which are not all the same levels.
    Thanks
    Ben

  • Can i change the volume level for just a part of a track?

    i am trying to raise the volume level for just a little section of a track without raising the volume for the whole track, just a one little section. can i do that on garage band? how would it do that?

    Yes you can
    On the track instrument selector, there is a row of small buttons, one being an upside down triangle. Click the triangle to display Automation. The default controller is Track Volume. You will see a bright green line which is the volume level throughout the track..
    Simply, go to the location where you want to reduce the volume, click on the green line to insert a control point. The first click is used the maintain the current volume. Go to the point where you want the volume to be reduce to, and click-and-hold the line and drag the new control point to the target volume.
    NOTE: Use the Shift key to adjust incremental amounts.
    Have fun!!

  • Do validations in the page level

    Hi ,
    I want to do validate the EMAIL field in my page as unique, for that i want to do validate in the entity level or what i want do?
    i tried validations in the entity level but it is not working, how to do this .
    Thanks In Advance,
    SAN

    Sundaravaradhan,
    One more thing please make sure that you close all your threads which are resolved with the resolution.
    fnd top and java top in R12
    Error page while running sample page in OAF
    and many more
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • I am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me

    Dear ALL,
    i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
    var myBookFileName ,myBookFileName_temp;
                    if ( myFolder != null )
                            var myFiles = [];
                            var myAllFilesList = myFolder.getFiles("*.indd");    
                            for (var f = 0; f < myAllFilesList.length; f++)
                                        var myFile = myAllFilesList[f]; 
                                        myFiles.push(myFile);
                            if ( myFiles.length > 0 )
                                        myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
                                        myBookFileName_temp=myFolder.name ;
                                        myBookFile = new File( myBookFileName );
                                        myBook = app.books.add( myBookFile );  
                                       myBook.automaticPagination = false;
                                        for ( i=0; i < myFiles.length; i++ )
                                                   myBook.bookContents.add( myFiles[i] );             
                                        var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
                                        var bookComps = myBook.bookContents;
                                        if (bookComps.length === 1)
                                                       bookComps = [bookComps];
                                         var myPDFExportPreset = app.pdfExportPresets.item("AER6");
                                        app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
                                      //myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
                                      //myBook.exportFile(pdfFile, false, pdfPref, bookComps);
                                        myBook.close(SaveOptions.yes);      

    Change the below line:
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
    to
    app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
    Vandy

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • Trying to get the value of a prompted filter on the Title bar

    Hi,
    I'm trying to display the value of a prompted filter, like a company name, next to
    the report title.
    Is this possible?
    Many thanks,
    Belinda

    What he means is this:
    1) You have to use a dashboard prompt and save it to a Presentation Variable.
    2) Drag any column from the workspace and place it at the beginning of your report, in column position one.
    3) In the fx of this column, delete what is in there and enter the name of the presentation variable (you can click on Variable>Presentation and type it in to have OBI put in the proper syntax).
    4) Now go to the Narrative View and enter @1. The reason you put "1" is because the column is position one. If the column was in position 5, you would write @5. Got it?
    5) Now because the Narrative View is a separate view, in your Compound Layout view, just add the Narrative View and place it on the top, just below your Title View.
    Now you will have the selected value from the dashboard prompt at the top of your report. If you want, you can also put Presentation Variables in the Title View as well. Follow the same syntax convention: @{pvar_name}

  • Trying to add a value to REG_NONE in the Registry

    I'm trying to add a value to the Windows Registry with key type of REG_NONE. I looked here, among other places, and it was no help:
    http://superuser.com/questions/331811/how-to-create-registry-key-of-type-reg-none
    Here's the command I am using:
    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer /v IconUnderline /t REG_NONE /d 3
    When that command executes, the data it sets is 33 00 00 00.
    HOWEVER, it needs to be 03 00 00 00!
    How can I modify the command to get it to add 03 00 00 00 and NOT 33 00 00 00?
    Thanks!

    It's clearly displayed as REG_NONE in the Registry... I marked your Tuesday, September 16, 2014 3:17 PM post as the answer though.  Thanks!
    I agree with jrv that this appears to be a DWORD in Windows 7 and higher (probably Vista, too, but I can't check that). If you really want to try to make it a NONE value, though, you can do it with PowerShell:
    Method 1: reg.exe
    reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer /v IconUnderline /t REG_NONE /d ([char] 3)
    Method 2: New-ItemProperty cmdlet
    $Params = @{
        Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer"
        Name = "IconUnderline"
        PropertyType = "None"   # Microsoft.Win32.RegistryValueKind
        Value = [System.BitConverter]::GetBytes(3)
    New-ItemProperty @Params
    # Add -Force to command if the value may already exist
    I'm not sure if you can do method 1 from a batch file or not, but you should be able to convert it to a VBScript command if you can't use PowerShell. The trick is sending the ASCII character that corresponds to the value you're after (3), which is an unprintable
    character in this case.

  • Trying to fetch a value in a java function and returning the array.

    hello....I am trying to fetch a value in a java function and returning a array......I already write the pl/sql function which is working fine....but i think i m lost......when i run it through the jsp it shows me error........pls help
    java code:=
    public String [] viewx(String bid) throws SQLException, Exception {
    String [] values;
    try {
    CallableStatement cstmt = null;
    String SQL = "{?=call vi_dis.v_dis(?)}";
    cstmt = con.prepareCall(SQL);
    cstmt.registerOutParameter(1,Types.ARRAY);
    cstmt.setString(2, bid);
    cstmt.execute();
    Array simpleArray = cstmt.getArray(1);
    values = (String [])simpleArray.getArray();
    cstmt.close();
    } catch (SQLException sqle) {
    error = "SQLException: Could not execute the query.";
    throw new SQLException(error);
    } catch (Exception e) {
    error = "An exception occured while retrieving emp.";
    throw new Exception(error);
    return values;
    pl/sql function
    create or replace package vi_dis
    as
    function v_dis(vbid IN student.bid%type) return stuarray ;
    end;
    create or replace
    package body vi_dis
    as
    function v_dis(vbid IN student.bid%type) return stuarray
    is
    l_stu stUarray :=stuarray();
    cursor c_sel
    is
    SELECT CNAME
    FROM COURSE C,ENROLL E
    WHERE C.CID=E.CID
    AND E.BID=vbid;
    BEGIN
    OPEN c_sel;
    FETCH c_sel BULK COLLECT INTO l_stu;
    l_stu.extend;
    CLOSE c_sel;
    RETURN l_stu;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN DBMS_OUTPUT.PUT_LINE('NO RESULT AVAILABLE');
    CLOSE c_sel;
    END;
    END;
    /

    BalusC wrote:
    It is comparing the selected value against the List<SelectItem> returned by getSetoresOrigem() as it is during the apply request values phase of the form submit request.Ok. That's what I supposed JSF was doing.
    BalusC wrote:
    If the selected value isn't in there, then you will get this error.I can understand this, but is this right? As I said, the old value isn't really there because I changed the list values to new ones. But the new value (the value of fSetorOrigem ) corresponds to a value that exist in the new list items, so a valid value. So JSF is not considering that I also changed the list, not just the value. It is comparing the new value with the old list, not the new one. Acting like this JSF is making the page looks like a static HTML page, not a dynamic one. If I can't change the list and the value, what's the point of that? In my point of view I'm not doing anything wrong, I'm not violating any JSF rules.
    Marcos

  • Not able to get the profile value set at Responsibility level

    Hi,
    I had set the value of a custom profile at Responsibility level and in CO i used the
    following code,
    String rLocation = pageContext.getProfile("XXTMG_PR_SCP_LOCATION");
    The above call returns NULL. But if i set the value of the profile at Site Level then the above code returns the correct value of the profile. I bounced the apache after the profile option was changed but no avail.
    I even tried using getOADBTransaction().getSpecificProfile() in the AM (which was
    called from CO) as below but could not get the value of the profile,
    Number lRespID = new Number(getOADBTransaction().getResponsibilityId());
    String retLoc1 = getOADBTransaction().getSpecificProfile("XXTMG_PR_SCP_LOCATION","","",
    lRespID.toString());
    Could any of you please let me know whether i have missed something in the code which results in not getting the correct value for the profile at the Responsibility level.
    Thanks, Suresh.

    Instead of passing null for the other parameters in call to getSpecificProfile, can you please set these params and try ?
    Also, please note that if a value is defined at site level, then even if a value is present at the resp level, the value at site will be returned when you use getProfile method.
    Thanks
    Tapash

  • I am using an Mac PPC version 10.5.8 and I am trying to download the correct version of Flash Player.  I did once but I had to install a "Clean Install" of my computer and when finished I had put back the new Flash Player I just installed well every time

    I am using an Mac PPC version 10.5.8 and I am trying to download the correct version of Flash Player.  I did once but I had to install a "Clean Install" of my computer and when finished I had put back the new Flash Player I just installed well every time I try install the new player it is place in my Trash Folder and I can not get Player to work.  I did everything I was to install it correctly but it still does not install it correctly.  Can some help me.  Bob

    Some MacBook Pro versions cannot be upgraded past 10.6.8; others are maxed out at 10.7.5. newer models can go all the way to 10.10. So it is important to know exactly what version you have--there may be close to 40 variants produced since the MB made its debut in 2006.
    You can safely give us a snapshot of your model and its current config that will allow us to deternmmine your model and its upgrade potential, plus show it you have any software that may impede any upgrades. Please download and install this free utility:
    http://www.etresoft.com/etrecheck
    It is secure and written by one of our most valued members to allow users to show details of their computer's configuration in Apple Support Communities without revealing any sensitive personal data.
    Run the program and click the "Copy report to clipboard" button when it displays the results. Then return here and paste the report into a response to your initial post. It can often show if any harmful files/programs are dragging down your performance.
    Remember that, on leaving OS10.6.8, you lose the ability to run older softare written for older PowerPC Macs (yours in Intel-based). Programs such as Office 2004 will no longer work (min of Office 2008 needed to work on newer OS versions), and AppleWorks will stop working completely

  • I lost all of my Itunes music because of an infection that required them to wipe my computer.  I am trying to get the music back from multiple sources.  What I have recovered is a mess. Albums are mixed or songs not grouped as album. Help?

    My computer got infected with some terrible virus.  I contacted the manufacturer and they said the only thing to do was wipe the whole thing. I could not back it up bec this mess?ause it would include the infection. I have been trying to recover the lost music from several different places.  A friend tried to help me by putting all of his music on my computer from his external hard drive. That was very nice of him but now it is a terrible mess. The recovered songs are not grouped into albums correctly.  Some albums are mixed - every other song is from the other album.  Some songs are listed separately and not grouped as an album.  I tried to ask iTunes to find album art work and it has been running that for over 48 hours. Is that possible?  When I try to stop it I get a message that says I will lose all the data.  I admit that I am not very tech. savvy and I really don't know what I am doing.  It took me more than 20 years to make that collection and I am heart broken. Do you have any ideas about how I start to fix

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

Maybe you are looking for

  • Error while saving reports in Active Studio.

    Hi, I have installed BAM software and I am creating Reports for External Database objects. I am able to create plan which is running fine. But when I create any Report and try to save it, I am getting the following error.. Exception Message: Length c

  • How to print data of selection screen

    hi plz tell me how to print that data in smartforms which the user enters in the selection screen...........

  • Settings not taking?

    Is anyone else having problems with settings not taking? I've had this with keywording a bunch of images and upon quitting Aperture 2.0 and restarting AP they were gone. Then had the same problem with image adjustment settings. Maddening to say the l

  • Name Changes in the From Collum

    Hi All, So, something odd happens... Several names on the from column in the mail program change to different names that are in my address book. So, if I get a message from Sam, his name mysteriously changes to Fred. I have tried rebuilding the mail

  • Vbscript amending Remote Desktop Services

    I want amend several AD Accounts and add home, profile and system drive using Vbscript , what is the best way achieved ? Server : Windows 2008 R2 Client: Windows 7 (64bit)