SQLPlus behaving differently in DOS prompt than in windows tool - why?

I'm executing the following using both sqlplus from a DOS prompt, and in the SQLPlus Windows application. I get different behavior and am trying to determine why. Here's the code:
create procedure JUSTTESTING (DebugStatus IN VARCHAR2)
AS
BEGIN
<do stuff>;
IF DebugStatus = 'MakeChanges' THEN
commit;
DBMS_OUTPUT.PUT_LINE('Changes Made!');
ELSE
rollback;
DBMS_OUTPUT.PUT_LINE('Not gonna do it');
END IF;
END;
Case 1: I fire up the Windows SQLPlus application and type in:
"execute justtesting('MakeChanges');"
it responds "Changes Made!"
If I type "execute justtesting('Just kidding');"
it responds "Not gonna do it"
This is as expected, of course.
Case 2: Now, let's store the following in a text file called "a.sql":
execute justtesting('MakeChanges');
execute justtesting('Just kidding');
quit
Then I type this from a DOS box:
sqlplus login/pwd@env @a.sql
The output says:
"PL/SQL procedure successfully completed"
"PL/SQL procedure successfully completed"
The PUT_LINE does not execute, nor does the commit when I give the right parm. Why, and how can I make it work?
This is Oracle 8.0 - I know that's way behind the times but that's unfortunately beyond my control.

user12955329 wrote:
I'm executing the following using both sqlplus from a DOS prompt, and in the SQLPlus Windows application. I get different behavior and am trying to determine why. Here's the code:
create procedure JUSTTESTING (DebugStatus IN VARCHAR2)
AS
BEGIN
<do stuff>;
IF DebugStatus = 'MakeChanges' THEN
commit;
DBMS_OUTPUT.PUT_LINE('Changes Made!');
ELSE
rollback;
DBMS_OUTPUT.PUT_LINE('Not gonna do it');
END IF;
END;
Case 1: I fire up the Windows SQLPlus application and type in:
"execute justtesting('MakeChanges');"
it responds "Changes Made!"
If I type "execute justtesting('Just kidding');"
it responds "Not gonna do it"
This is as expected, of course.
Case 2: Now, let's store the following in a text file called "a.sql":
execute justtesting('MakeChanges');
execute justtesting('Just kidding');
quit
Then I type this from a DOS box:
sqlplus login/pwd@env @a.sql
The output says:
"PL/SQL procedure successfully completed"
"PL/SQL procedure successfully completed"
The PUT_LINE does not execute, nor does the commit when I give the right parm. Why, and how can I make it work?
This is Oracle 8.0 - I know that's way behind the times but that's unfortunately beyond my control.As Anurug says, in the command line version you'll need to do...
set serveroutput onbefore any dbms_output calls are made so that SQL*Plus retrieves the contents of the DBMS_OUTPUT buffer and displays it.
As for you saying the commit does not execute, there doesn't appear to be anything in your code to commit, so how are you determining that?

Similar Messages

  • Forte C++ 6: #pragma fini() behaves differently on Solaris 8 than Solaris 7

    On Solaris 8, a C++ routine invoked via #pragma fini() in the same shared object module executes before the destructors of static objects in that module are invoked.
    On Solaris 7, the behavior is always the other way around: the static object destructors are called before the #pragma fini() routine(s).
    In WorkShop 5, it was explicitly documented in the C++ User's Guide that static object destructors would be called before the #pragma fini() routines.
    In Forte 6, this behavior is no longer documented.
    We've tried 6U1 and 6U2 as well as all seemingly applicable (free) patches with no change in behavior.
    How can I write a cleanup routine which is guaranteed to be called after all of the static object destructors in the same module?
    Please email to me at [email protected] in addition to any posting to this forum.
    Thanks for any help you can provide!
    Steve

    Ordinarily, the same source files and makefiles that work with C++ 5.0 on Solaris 2.6 should work with C++ 5.3 on Solaris 8.
    You didn't say what you did to "adapt the makefile" when changing compilers and OS versions. If the compiler was installed in the default /opt location on each system, we don't think any makefile change would be required. (You might want to make changes for performance or program organization reasons, but we don't think any changes are required just to repeat a working program build.)
    What happens if you use the original files that worked with C++ 5.0 on Solaris 2.6?
    Are C++ 5.0 and C++ 5.3 are both installed in the same /opt directory? That isn't allowed, and will lead to strange behavior.
    Are you continuing a build using the new compiler and OS in a directory containing old binary files or template cache? When changing OS and compilers, it is safest, but not strictly necessary, to rebuild all your binary files. At a minimum, you must delete the old template cache.
    Are you still using C++ 5.0 in the build process? If so, you must isolate the use of C++ 5.0 and 5.3. The compilers cannot share a template cache, so you must run compiles in different locations.
    Anything beyond these hints will require more support and analysis than we could provide in the Forum. You will probably need to generate a .i file from the compilation and have a support engineer look at it. If you have contract with Sun, please follow the service channel.
    - Rose

  • 11g Report behaves differently in Application Menu than Report Builder !

    Hi,
    I m working in 11g Reports and noted some objects, which shows different/no results when run from my application menu (through Web.Show_document & Run_Report_object), but these objects are OK when run in Report Builder (paper layout).
    (1)
    When I run report from my application menu, Formula Column shows no result i.e. 0 ,
    but when same run from Report Builder (Paper Layout), formula column shows the right result.
    Below is my Formula Column;
    function RATEFormula return Number is
    rt NUMBER(10,4);
    Mt VARCHAR2(8);
    begin
         Mt :=TO_CHAR(:FROMDATE,'RRRRMM');
    if :RATETYPE='A' THEN
         LOOP
         SELECT (sum(nvl(amount,0))) / (sum(nvl(rect_qty,0)))
         INTO Rt
         FROM trhrect h,trdrect d
         WHERE TO_CHAR(h.v_dt,'RRRRMM')=Mt
         AND d.item_code=:ITEM_CODE
         AND h.unit=d.unit AND h.v_ser=d.v_ser AND h.v_no=d.v_no ;
    EXIT WHEN RT >0 OR MT='201003';
         MT:=TO_CHAR(TO_NUMBER(MT)-1);
         END LOOP;
         end if;
    RETURN NVL(Rt,0);
    end;
    (2)
    Vertical Lines i.e. these lines are visible when run through Paper Layout in Report Builder, but these lines are not visible when run through my application menu.
    Kindly advise me, its urgent.
    Thanks/Regards
    Dev.

    1> Please check whether the same parameters are being passed to the reports(while running the report using the report builder and through the application). Apart from this there will be no issue.
    2> Please check for any format triggers on the lines.

  • AEBS setup behaves differently on Lion Server than Snow Leopard

    I have a small office setup with a Mac Mini Server running Lion server, a Canon Wifi printer scanner and a Canon USB A3 printer connected to an AEBS which is in turn connected to the buildings network gateway for internet access. We have 3 MacBook Pros (snow leopard) which connect wirelessly and the Mac Mini has an ethernet cable to the AEBS. Fairly simple and we just have 1 manual IP address for the server with the AEBS doing DHCP and NAT.
    The issue I have is that if I change the AEBS settings using Airport Utility on a Mac Book Pro (the first time I just changed the DNS numbers to Googles free set and nothing else), I lose internet connectivity. I can get a partial connection if I also set the subnet to 255.0.0.0 (most websites load, but maybe 10% fail). Consistent and repeatable behaviour - every time I change the AEBS settings I lose the internet and the same websites fail to load.
    I can get everything working again by using the Mac Mini server to change something on the AEBS, or just restart the AEBS. In which case I can use the recommended subnet mask of 255.255.255.192 and everything works as it should.
    So my question is Why?? Does the Server change some background ports, or retain some link to the AEBS which stops it functioning if I use a non-server machine to make a change??
    One bit of background: When I first got the Mac Mini Server I let it take control of the AEBS setup - It asked, and I let it, but this activated the 802.1x security and required a login to the server before access to the wifi was granted. A nice feature but the Canon wireless scanner/printer does not support this, so I had to stop this and set the aebs manually, so I could use my scanner again. Is it possible that some link has been retained from this?
    I do have a full working setup now that I realise I have to use the server to operate the AEBS, but can anyone help with an explanation? It caused me a few months of partial internet access and lots of wasted time, so would like to know if there is a solution that would allow me to set the AEBS from any Mac on our LAN.
    Thanks for taking the time to help!

    Which services have been removed or depreicated?
    You have to bear in mind that 'removed' or 'deprecated' only really means 'no longer bundled and supported by Apple'. Just because Mac OS X Lion Server doesn't ship with a foobar server that doesn't mean you can't download and install your own foobar server. It just won't be integrated into the Server Admin apps.
    For example, Lion Server no longer ships MySQL Server. So download and install your own copy. It's not like the GUI apps gave you any control over the MySQL anyway, other than starting it up and controlling the network ports.
    Likewise for print server. Some of the advanced print features such as quotas have been removed from the GUI, but you can implement them yourself.
    Likewise with QuickTime Streaming Server, where the functionality is little more than a web service.
    What features that have been enhanced?
    Lion Server has simplified the setup of a server for small workgroups with simple requirements. If that's you then the whole experience may be enhanced since you're not swamped with a slew of options that you don't understand, or need.
    I think a lot of people were also stymied by Snow Leopard Server because they expected the GUI apps to cover all the options, which was never the case.
    So my original point stands. There is pretty much nothing you cannot do in Lion Server than you could do in Snow Leopard Server, it's just that it might not be supported by the GUI. Most serious server admins eschew Server Admin.app anyway since even Snow Leopard Server's admin app doesn't cover all the capabilities of some of the services, so you end up driving it via the command line anyway.

  • CFFORM method=GET behaves differently in CFMX6.1 than in CF 8 ?

    Hi Everyone,
    My organization is in the process of testing applications for a move from CFMX6.1 to CF8, however, we've found there appears to be a difference between the way CFMX6.1 and CF8 handle the GET method in a CFFORM tag.
    I'm not quite sure why our developers would have used the "GET" instead of "POST" to begin with. In the application I'm currently testing, I've found that all but one of the 50+ occurrences of "GET" can be changed to "POST" without issue. However, I am a little concerned with the many other apps we have and the amount of testing that would be required.
    Here's what's happening:
    CFMX6.1: An appended query string parameter is always part of the submitted url whether the ACTION is POST or GET.
    CF 8: A query string parameter appended to a url in the ACTION attribute will be part of the submitted url when the METHOD is POST but not when the METHOD is GET.
    To see the above mentioned difference, execute the example code below in both CFMX6.1 and CF8. While executing in CFMX6.1, you will notice when the NEXT button is pressed, the myTestParameter=123 parameter is present in the browsers address bar and the variable will be accessible in the resulting page. This will not be the case when running in CF8
    <h3>Test CFFORM POST vs. GET (CFMX6.1 vs. CF 8)</h3>
    <cfoutput>
        <table>
            <cfform method="get" action="/Bayerah/gettest.cfm?myTestParameter=123" >      
                <input type="hidden" name="mytestFormVariable" value="abc">
                <tr>
                    <td>
                        The CFform tag which is displaying this text contains action="#CGI.Path_Info#?myTestParameter=123"
                        <br /><br />
                        <strong>CF 8</strong><br />                   
                        <p>
                            The query string parameter "myTestParameter=123" will be part of the url when the
                            METHOD is POST and the form is submitted but not when METHOD is GET
                        </p>
                        <br />
                        <strong>CFMX6.1</strong><br />                   
                        <p>
                            The query string parameter "myTestParameter" displays with both POST and GET
                        </p>
                        <br/><br />
                        Press Next to submit the form...
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="submit" value="Next">
                    </td>
                </tr>
            </cfform>
        </table>
    </cfoutput>
    Thanks in advance.

    Last word. I also think that url variables in the ACTION attribute should be honored.
    Yes, I was torn about that.  Though there is really no need to use url parameters with method="get", it just seemed a little counterintutive. At least  given how one normally works with urls.  But after looking at the spec's, it seems like this is the intended behavior and that the parameters should be ignored.
    http://www.w3.org/TR/html401/interact/forms.html#h-17.13.1
    With the HTTP "get" method, the form data set is appended to the URI specified by the action attribute (with a question-mark ("?") as separator) and this new URI is sent to the processing agent.
    Anyway, I am glad I could help.

  • SWF shows differently in OS X than in Windows

    I'm quite confused. This
    -->link<-- shows
    a flash site which run correclty under Windows. You have three
    bottons at the bottom right. Under Windows, clicking S'INSCRIRE or
    ME CONTACTER makes a form appear. This form is a MovieClip added
    dynamically during initialisation (addChild(formulaire_mc).
    Under OS X (Firefox or Safari, running under Leopard), the
    form doesn't appear at all! (or is it just my computer having the
    problem?)
    Any idea where I should search for a problem?

    Hello, thank you for replying. The problem was a bit more
    complex than that. Some erroneous code stopped the browsers in
    Safari and Firefox, but not on Windows! Everthing seems to run
    smoothly now.
    Guy

  • Fonts behave different in Photoshop in comparison with Illustrator

    I have a problem: it seems that some fonts behave different in Photoshop CS than in Illustrator CS on my Windows XP. Where Illustrator opens a vector (Ill) EPS file correct Photoshop shows me wrong characters sometimes: for example: an é becomes a wrong character: Capital O with a stroke through it. Frutiger was used.
    My question is: where does Photoshop behave different reading fonts in comparison with Illustrator?

    Perhaps you forgot to embed the font?
    Here comes an example, using characters  with accents.
    The font is GillSans-Schoolbook. The font or subset is embedded.
    The file extension TXT should be replaced by EPS after downloading.
    The EPS doesn't contain a preview image.
    The file is correctly handled by
    Photoshop CS2 (opened)
    InDesign CS2 (placed)
    Illustrator CS2 (opened)
    PSAlter (PostScript interpreter by Quite)
    All characters with accents are missing in
    Word 2007 (insert graphic)
    http://www.fho-emden.de/~hoffmann/buffel-7-sRGB-Dokument.txt
    Best regards --Gernot Hoffmann

  • Insert Stmt behaving differently within a PL/SQL block than independently

    I have an INSERT INTO statement that is behaving different within a PL/SQL block than it does if ran as an independent SQL query. When executed within a PL/SQL block the INSERT statement does insert rows, but only less than 50% of the rows returned by the SELECT statement used by the INSERT. There are no constraints and the only check on the destination table is a NOT NULL for supplier_id column.
    BEGIN
        INSERT INTO suppliers (supplier_id, supplier_name)
        SELECT account_no, name FROM customers WHERE city = 'Newark';
    END;Can anyone help me with this?
    Thanks

    Thought this sounded familiar:
    INSERT INTO statement that is behaving different within a PL/SQL block

  • HTML Tag formatting is behaving differently in CC than CS6?

    Why is HTML Tag formatting is behaving differently in CC than it did in CS6, even though the settings are set the same?!??!
    I've double-checked the tag settings - they are absolutely the same between both versions, but when I use APPLY formatting to a page in CC, it completely mangles the tags formatting on ANY html file...
    What's going on?  Any way to get CC to act properly like it does in CS6??

    Can you provide code examples of what you mean by mangled?
    It could be that your code contains errors which DW is attempting to reconcile. 
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    JavaScript - http://www.jslint.com/
    PHP -  http://phpcodechecker.com/
    Or perhaps your code format is not set-up the same in both apps.  Edit >  Tag Libraries.
    Nancy O.

  • PS1 String behaving differently - how to get only "/"?

    Hi there, let me first start with the 4 lines of code I use for my PS1 string (in bash)
    boBlack="\[\033[1;30m\]"
    boGreen="\[\033[1;32m\]"
    boCyanOnBlack="\[\033[1;36;40m\]"
    export PS1="$boCyanOnBlack"'${PWD%*/}'"$boBlack/$boGreen"
    Now what does this do?
    It will make a coloured string as part of my current working dir. (Prompt)
    Example:
    If i go to
    cd /home/shevegen
    then my prompt will look like:
    /home/shevegen/
    (I like the trailing / because I can copy/paste easier with it. )
    Now, the problem is when i am doing this:
    cd /
    then I am in /
    and while in konsole it works, in VTE this does not work.
    Does anyone know why this string behaves differently in
    VTE and Konsole? VTE for example does not show any
    / when you are in
    the / root dir
    PS: Anyone has a hint or knows why in VTE and in gnome-terminal this does
    not work?
    Last edited by shevegen (2007-03-19 12:10:39)

    Hi Dennis,
    thanks for your suggestion, unfortunately I already tried that and it didn't work. I have created several unique styles. Problem is, I need two diferent styles in *one paragraph* - one style for the "heading", which is consistent to the APA manual not an own paragraph (sorry, not my idea...), and another style for the following text. As my example above shows, the heading is followed by usual text and I may not press return after the heading and switch to a new paragraph..
    It has to look exactly like this:
    +heading in italics.+ Now heading is followed by usual text without changing the paragraph or starting a new line. Blurb blurb blurb whatsoever blurb blurb. The text goes on an on and an on you see.
    I can't format the heading differently than the text (because if I try, the whole paragraph is formatted this way) and so I can't add just the heading to the TOC. Do you see what my problem is? Got any other suggestion?

  • XPATH query behaves differently depending on presence of default namespace

    I'm curious to know why an XPATH query seems to behave differently depending on whether the default namespace is present in the query.
    My test case is as follows:
    I use a table called xml_messages (id number, message xmltype) containing two rows - one where xmlns is specified and the other without.
    1. Default namespace is specified:
    <?xml version="1.0"?>
    <Bereken xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Fout="false" Identifier="21-4-2008 12:55:02" xmlns="http://schemas.myco.nl/services/IPP">
    <Reglementen>
    <Reglement Ind="21000005" dlnsts="6">
    <Producten>
    <Product Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1032" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1052" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1062" ogr="0" bbr="2389.968" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3002" ogr="18968.00" bbr="5690.4" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3032" ogr="0" bbr="0" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3502" ogr="2845.00" bbr="2845.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="5002" ogr="3794.00" bbr="3794.00" igl="0" elt="18" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7502" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7503" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="8101" ogr="0" bbr="0" igl="65" elt="65" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7002" ogr="0" bbr="8724.6" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7202" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7302" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    </Producten>
    </Reglement>
    </Reglementen>
    <Parameters gbtd="1957-12-18T00:00:00.0000000+01:00" gsl="Vrouw" pdr="2008-03-01T00:00:00.0000000+01:00" hdgs="40000" ptp="100" />
    </Bereken>
    2. No default namespace specified:
    <?xml version="1.0"?>
    <Bereken xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Fout="false" Identifier="21-4-2008 12:55:02" >
    <Reglementen>
    <Reglement Ind="21000005" dlnsts="6">
    <Producten>
    <Product Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1032" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1052" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="1062" ogr="0" bbr="2389.968" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3002" ogr="18968.00" bbr="5690.4" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3032" ogr="0" bbr="0" igl="0" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="3502" ogr="2845.00" bbr="2845.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="5002" ogr="3794.00" bbr="3794.00" igl="0" elt="18" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7502" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7503" ogr="0" bbr="0" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="8101" ogr="0" bbr="0" igl="65" elt="65" pgs="63758.00" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7002" ogr="0" bbr="8724.6" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7202" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    <Product Ind="7302" ogr="0" bbr="0" igl="65" elt="130" pgs="0" slt="65" plt="0" reg="0" orf="0" />
    </Producten>
    </Reglement>
    </Reglementen>
    <Parameters gbtd="1957-12-18T00:00:00.0000000+01:00" gsl="Vrouw" pdr="2008-03-01T00:00:00.0000000+01:00" hdgs="40000" ptp="100" />
    </Bereken>
    Next, I use the following two queries to get attribute values from the xml messages:
    First query using xmlns:
    select extractvalue(value(v),'/Product/@Ind' ) ind
    , extractvalue(value(v),'/*/@Ind' ) ind2
    from xml_messages f
    , TABLE(XMLSequence( extract(f.message
         ,'/Bereken/Reglementen/Reglement/Producten/Product'
                                  ,'xmlns="http://schemas.myco.nl/services/IPP"'
                                  ))) v
    where f.id = 1; -- Selects from the xmltype message that does have xmlns specified
    This returns (as the first row)
    IND IND2
    ____ 1002
    ^
    |------ Nothing is returned by the XPATH /Product/@Ind
    Second without using xmlns
    select extractvalue(value(v),'/Product/@Ind' ) ind
    , extractvalue(value(v),'/*/@Ind' ) ind2
    from xml_messages f
    , TABLE(XMLSequence( extract(f.message
         ,'/Bereken/Reglementen/Reglement/Producten/Product'
                                  ))) v
    where f.id = 2; -- Selects from the xmltype message that has no xmlns
    This returns (as the first row)
    IND IND2
    1002 1002
    According to XMLSpy, the correct XPATH to get the "Ind" attribute is "/Product/@Ind" so what I dont understand is why query one doesnt return any data when using a default namespace.
    The XPATH "/*/@Ind" works in both cases and can be used as a workaround, but it seems less elegant than using the proper XPATH.
    I've tried this test case in 9i and 10g, in sqlplus and TOAD, with the same results in all cases.
    Can anyone provide some insight as to why this behavior occurs?

    Thanks, A_Non,
    adding the third parm to the extractvalue part of the query works.
    ie:
    select extractvalue(value(v),'/Product/@Ind', 'xmlns="http://schemas.myco.nl/services/IPP"' ) ind
    , extractvalue(value(v),'/*/@Ind' ) ind2
    from xml_messages f
    , TABLE(XMLSequence( extract(f.message
         ,'/Bereken/Reglementen/Reglement/Producten/Product'
                                  ,'xmlns="http://schemas.myco.nl/services/IPP"'
                                  ))) v
    where f.id = 1;               
    I had not expected this because I thought the xml fragment returned by the extract didnt include the default namespace.
    However, when looking at the query in more detail, its clear Oracle automatically includes the xmlns part in the returned xml fragment.
    One of the rows in the xml fragment:
    <Product xmlns="http://schemas.myco.nl/services/IPP" Ind="1002" ogr="27098.00" bbr="27098.00" igl="65" elt="130" pgs="63758.00" slt="65" plt="0" reg="0" orf="0"/>

  • Pdf duplication in Preview for Mac behaving differently

    When duplicating a PDF in Preview for Mac, a new image window would open that I could click on to select, then rename and save elsewhere. Just recently, seems like in the last few days, Preview now behaves differently. Now when I select duplicate, a duplicate document is created in the same window but shows as a thumbnail in the sidebar. This is confusing as it appears that Preview is trying to create a duplicate of the document at the end of the original. I don't appear to have received any updates from Apple that would account for this sudden change in behaviour (shows Preview last modified 18th November). I don't appear to be able to change this in Preview's Preferences. Can I revert Preview to the previous behaviour? (I'm using latest version of Preview in Yosemite on a 24" iMac).

    I always find that Preview can garble certain graphic elements or even slightly alter the over-all color of the PDF. However, I also find it is a lot quicker to deal with PDFs, especially when it comes to printing. Sometimes I get a PDF that I send to print on our Canon copier and I end up canceling the print job after 10-15 minutes because it's still processing. I open that same PDF in Preview and it prints in less than a minute. The same can be said of InDesign so on certain jobs I end up exporting as a PDF and printing from Preview. This might say a lot about Adobe's Printing Engine... (sorry, off-topic)

  • Oracle 9i OEM fails using RMAN but RMAN Okay from DOS Prompt

    I am using Oracle 9i Enterprise on Windows NT 4 with dual 400 MHZ Pentiums with 1GB of ram. I am able to run RMAN from the DOS prompt and the backup file is created fine. When I run either by a job or by using the Backup wizard from the OEM, the job fails with a TNS:protocol adapter error from the target database.
    Error Message that I get is as follow:
    Recovery Manager: Release 9.0.1.1.1 - Production
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    RMAN> connect target jungle/gonzo@(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=ORACLE)(ARGV0=ORACLEDEV)
    (ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))
    2> connect catalog RMAN/rman@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
    (HOST=testhost.crane.navy.mil)(PORT=1521)))(CONNECT_DATA=(SID=TestOEM)(SERVER=DEDICATED)))
    3> @E:/oracle/ora90/work/706143955.21
    4> run{allocate channel c1 type disk;
    5> backup database format 'F:\OracleDumps\%u';
    6> release channel c1;
    7> }
    8> **end-of-file**
    9>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00579: the following error occurred at 06/21/2002 14:39:57
    RMAN-04005: error from target database: ORA-12560: TNS:protocol adapter error
    Recovery Manager complete.
    child process exited abnormally
    nms-915: The Job failed, error code=
    My TNSnames.ora contents are as follows:
    # TNSNAMES.ORA Network Configuration File: c:\oracle\ora90\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    Test.CRANE.NAVY.MIL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = testhost.crane.navy.mil)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Test)
    TESTOEM.CRANE.NAVY.MIL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Testhost.crane.navy.mil)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTOEM)
    My Listener.ora file is as follows:
    # LISTENER.ORA Network Configuration File: c:\oracle\ora90\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 164.227.54.52)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = Test)
    (ORACLE_HOME = E:\oracle\ora90)
    (SID_NAME = Dev)
    (SID_DESC =
    (GLOBAL_DBNAME = TestOEM)
    (ORACLE_HOME = E:\oracle\ora90)
    (SID_NAME = DEVOEM)
    (SID_DESC =
    (PROGRAM = extproc)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\ora90)
    (SID_DESC =
    (GLOBAL_DBNAME = SQLSRV_testhost.crane.navy.mil)
    (PROGRAM = tg4msql)
    (SID_NAME = test1)
    (ORACLE_HOME = E:\oracle\ora90)
    I believe the problem is with the TNSNames file not having BEQ set up in it. I tried to set up using the Oracle Net Manager and could not find BEQ as an available protocol. Anyone know where to direct me to look in the documentation or can give me some help.
    I am a newbie on the Oracle DBA scene and any help would be appreciated. Just been trying to do this since January.

    Gordon,
    Considering that this is a military server I would not post the logon information and server address on a public forum such as this :)
    If you are getting the TNS error when submitting the job via OEM, then check that your local tnsnames.ora file on the OEM machine has the tnsnames alias to connect to the target database. When issuing RMAN backups via DOS on the target server you are using BEQ. However, when issuing commands via OEM, you will be using the tnsnames.ora file on the monitoring machine that you've installed OEM on. You will need the tnsnames alias for the RMAN catalog on the target server.
    try the following:
    set up a tnsnames alias for the target database on the OEM server
    open up DOS on the OEM server and type:
    rman target jungle/gonzo@<target_database> connect catalog RMAN/[email protected]
    Is the target database,catalog and OEM server all on different machines?

  • Multiple idocs in Single Job behaves differently (RBDAPP01)

    Hi,
    How to debug the background Job for Program RBDAPP01 which already posted the Idocs in 53 status from 64.
    I wanted to analyze why multiple idocs in same job behave differently than the single idoc in a job. In case of multiple idocs in a single job i put packet size 1, but no help.
    Thanks,
    Asit Purbey.

    I found the solution, so closing this Post.

  • Running java command from DOS prompt

    Hi,
    When I run java from the DOS prompt (NT) in any other location than the JDK bin directory, I get the following error:
    Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
    My understanding is to be able to run this from anywhere you need to add the tools.jar file to the CLASSPATH, which I have done.
    There is no entry in the Registry for Software\JavaSoft...etc, has anyone any idea what my problem is and how I can solve it?
    Thanks in advance

    Hi,
    I am running Java 2 SDK, Standard Edition Version 1.2.2 running on NT. It was installed as part of Oracles JDeveloper IDE and is running on NT.
    All I want to be able to do is run java from the command line e.g. 'java myclass', to run a standalone Java program. I can run 'javac myclass.java' to compile the program without any problems, but my understanding is that to do this all I need is to have the '.../java1.2/bin' directory included in the 'PATH' variable, whereas to run the java runtime you need to include the tools.jar in the CLASSPATH variable.
    As I said previously I can run the 'java myclass' command from the '../java1.2/bin' directory, just not from anywhere else. As for whats in the code, does not matter you should be able to type just java on the command line and it will come back with an error prompting for the class name. Here is an example of what happens:
    I:\>java
    Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
    However if I change to the correct directory, I get:
    D:\oracle\JDev32\java1.2\bin>java
    Usage: java [-options] class [args...]
    (to execute a class)
    or java -jar [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by ;>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version
    -? -help print this help message
    -X print help on non-standard options
    The contents of my PATH and CLASSPATH variable are shown below, Thanks again.
    I:\>PATH
    PATH=D:\oracle\BIN;D:\oracle\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\b
    in;D:\oracle\ora8i\bin;C:\DMINT40\Win32\Bin;C:\WINNT\system32;C:\WINNT;C:\Program Files\Symantec\pcA
    nywhere;d:\oracle\jdev32\java1.2\bin;d:\downloads\oraxml\bin;d:\oracle\jdev32\java1.2\lib\tools.jar
    I:\>echo %CLASSPATH%
    d:\oracle\jdev32\java1.2\lib\tools.jar;d:\oracle\apache\apache\htdocs\web-inf\classes;d:\oracle\apac
    he\jserv\servlets

Maybe you are looking for

  • Office 2010 vs. 2013 - migrating from XP to W7

    I have a client with >200 PCs, and about 50 already run W7 with Office 2010. The remaining 150+ XP PCs are currently being migrated to W7, and the client wants to stay with Office 2010, as they have already purchased 50 or so licenses for their exist

  • Hp pavilion slimline

     tried to clean out pc and accidentally erased the nvidia i tried to use a system mechanic cd  but all we get is an invalid format message we have tried everything they told us it needed a software system restore does anyone know how 

  • How can I Edit Podcast Description?

    How can I Edit Podcast Description? Please help.

  • Creating web services from session beans

    Hi everybody, I want to know how to generate web services using session beans in Weblogic Worshop. I need this urgently!!! Any help will be very much appreciated. Can anybody please help me...... Thanks, Neelima

  • SCVMM Default Virtual Machine Path - CSV

    I am having an issue where SCVMM is dropping the default virtual machine path from the host leaving a blank setting (none). Below is my setup: 3 Win2K8R2SP1 host clustered CSV used mapped to C:\ClusterStorage\<lunname>\ I add in the default path C:\C