Cannot get literal amerpsand to display in SQL output

Gurus,
Thanks so much for your help, in advance.
I'm outputting a literal string value to an output file, however, Linux isn't playing by SQL's rules. The ampersand character which I'm trying to disply as a knowledge base link is screwing up the output. Typically, the "&&" is the escape for displaying "&" in SQL output, however, this doesn't work inside a shell script.
Does anyone know the escape characters to disply the ampersand properly for the following?
I've include double ampersand, as per SQL's rules...
col Instructions3 heading "KNOWLEDGE BASE SUPPORT LINK" format a4000
select 'http://vr05a2.us.com:86/viewtopic.php?f=141&&t=2057&&p=2334&&hilit=over+pick&&sid=56b38c52bf3b36f1d17b854b29a41a3b#p2334' Instructions3
from dual;
Thanks,
Scott
Edited by: sreese on Jul 11, 2012 9:39 AM
Edited by: sreese on Jul 11, 2012 9:43 AM

The usual escape character is the backslash (\), but depending on your shell script it may be a matter of quoting the output.
For instance:
<pre>
echo "$0&&"
-bash&&
echo '$0&&'
$0&&
echo \"
echo "'"
echo \&\&
<pre>

Similar Messages

  • Cannot get the db adapter connected to sql server proc

    I cannot get the db adapter to connect to my sql server proc. I understand it is a 3rd party db and that I need to create some "artifacts" using the Oracle BPEL Process Manager 10.1.2 > Developer Prompt and run the sample files which I have received from Oracle. However, I am on a linux platform and the procedures are written for windows platform. Has anyone done this artifact generation in linux and if so, what do I need to do to get these built so that I can get my db adapter hooked into my sql server proc?

    Same problem with me.. Couldnot call a stored procedure or function with SQL Server db service.. Some other threads say we need to use a command line utility since there are some comaptibility issue with JDeveloper 10g and com.microsoft.sqlserver.jdbc.SQLServerDriver..
    Please help anyone. What is the workaround?? Please post it here.. Nowhere I could find the solution.
    Thanks,
    Susmit Dey

  • Cannot get Month and Year display off screen

    In Iphoto 6 I have photos that I imported. I cannot get the middle dark oval in the center of the screen to stop displaying on the photos.
    It makes it very difficult to edit the photos when I cannot see the center of the photo.
    How do I stop the display of the month and date

    In iPhoto Preferences, Appearance, uncheck "Show scrolling information."

  • Cannot get Excel Report to display on Internet Explorer

    Hi,
    We have an issue with displaying Excel reports on IE on some client machines. A window just pops up and closes. The reports run fine on Firefox and I was able to run it on IE earlier. I had this report working before on all application servers. Now I cannot get output on browser from dev. and test app servers after a small fix in the report. But I can still run the production version.
    Note that I can get the Excel output when I use 'getjobid' from an url :
    http://server:port/reports/rwservlet/getjobid1887?server=xxx&mimetype=application/vnd.ms-excel
    This is the code to output the report:
    SHOWDOCINFO :='/reports/rwservlet/getjobid'||JOBID||'?server='||REPORTSERVER||'&mimetype=application/vnd.ms-excel';
    The funny thing is my colleague can run the report on his pc without any problem. Is there some issue with the browser setting ?

    Yes. I use WEB.SHOW_DOCUMENT in the calling form. The window that pops up is an IE window. Yes we both use IE 7.0.
    I noticed today that if I uncheck the 'always ask before opening this type of file' on the File Download window, I can get it to work. How do I change this setting?

  • Cannot get certain applications to display via projector

    I was trying to display a movie on YouTube to my class (MacBook Pro connected to LCD projector), but Safari would not display, nor would QuickTIme Player. Understand: I  DO get my screen to display, but only certain applications will display via projector. In fact, I was able to get the YouTube movie to display on the projector by inserting it into a PowerPoint slide, as PowerPoint can be displayed.
    How do I solve this problem in the future?

    Hi b,
    Always best to start with basics. Is the projector turned on? Have you tried different input options on the projector (usually on a menu accessed with a button called Source or Input)?

  • Cannot get APEX_ITEM.POPUP_FROM_LOV to display correct values

    Hello.
    I am using APEX 2.2.x. I created a report region in which the underlying report query looks like:
    SELECT
    APEX_ITEM.HIDDEN(1,X.TN_ID),
    APEX_ITEM.HIDDEN(2,X.PHONE_ID),
    APEX_ITEM.HIDDEN(3,X.KEY_ID),
    APEX_ITEM.CHECKBOX(4,NULL) AS REMOVE,
    APEX_ITEM.TEXT(5,X.KEY) AS KEY,
    APEX_ITEM.POPUP_FROM_LOV(6,PHONE_ID,'DN') AS DN
    FROM
    MY_TABLE X
    WHERE
    X.TN_ID = :P10_TN_ID
    Here, the LOV 'DN' is defined as:
    SELECT PHONE_NUMBER, PHONE_ID FROM PHONE_NUMBERS
    ORDER BY 1
    This report renders correctly. After setting my three ID columns from the query
    to "No Show", the results display as 3 columns:
    Remove Key Dn
    "Remove" is a checkbox, "Key" is a simple input text field, and "Dn" is a popup
    field.
    My problem is that, when the selecting from the "Dn" popup, I get the "phone_id" value instead of the "phone_number".
    Does anyone know why this is happening?
    Thank you.
    Elie

    Thanks, Scott.
    I'm facing a deadline at work, and so, am burning the midnight oil to get my APEX project done. I'll try to post my issue on apex.oracle.com - just can't right now.
    I'm going to try a different tack.
    The problem I reported in this post stems from my using the APEX_ITEM API to
    create text items, checkboxes, and a single popup field in a report region.
    However, what I'm ultimately trying to accomplish is a form (not a report) in which users can edit multiple rows and then submit their multiple row edits
    with one click of the APPLY button.
    So, you might be thinking, why did I not just create a form based on a table.
    The reason is that I did not have a table to work with. I needed to have a
    form in which EXACTLY 10 rows (no more, no less) appear. Of these,
    there might be up 10 rows that actually have data whereas the remaining
    rows consist of all NULL columns.
    And so, I created a "pivot" table function that generates "missing rows".
    This works fine in a report query. But I could not find a way to use this
    pivot table function as part of an Oracle view against which I could point
    the APEX "Create Form On Table/View" option. This is why I tried to
    create a report region rather than a form and then use the APEX_ITEM API
    to create the text, checkbox, and popup fields I mentioned above. It's just
    the popup field that's giving me all the trouble.
    I'm going to try to create a different method of generating "missing rows" so as
    to get an Oracle view that consists of exactly 10 rows (of which up to 10 have
    actual data and the remaining rows consist of all NULL columns). I'll then make
    a view out this (as mentioned, I was unable to create this view using the pivot
    table function) and then try to create a form via APEX. Hopefully, this will
    eliminate the popup problem I'm having.
    Thanks very much for your help.
    Elie

  • Cannot get my 30" cinema display to come on after power outage

    I have a 30" cinema display running with my 2010 mac pro...all was fine, then we had a power outage last night. When I started the computer the next morning, computer came on but no monitor. So I took the display to apple store and they started on a mac book pro , no problem. When I went home and hooked everything back up to my mac pro, the 30" display will not work but a 20" cinema display I have did. Very confusing
    Please help if anyone can
    thanks

    The 30" cinema display has a cable that accepts inputs from its custom power brick, a Dual-Link DVI, a USB-2, and a FireWire-400.
    For a Silver Tower Mac Pro, you must connect the power and Dual-Link DVI.
    USB is needed by the display (for Brightness and possibly other controls from the Mac), and to run the convenience USB ports if desired.
    NB> Keyboards connected through the USB hub on the display cannot generate "snag key" codes early enough to be used at Startup. If you need to Option-Boot, you will need to plug your keyboard directly into a USB on the chassis.
    You need not connect FireWire unless you wish to use the hub and convenience ports on the display. It may require a FireWire 800 to 400 cable or adapter. (The adapter is good to place permanently, and its length (short) is good. For any other use, these adapters seem to "grow legs and walk away", so an adapter cable is superior.

  • I installed Firefox 5 on a new computer and transferred my bookmarks from my old one. I cannot get my bookmark folders displayed on the bookmark toolbar. How do I add them to the toolbar? I can see the bookmarks have been downloaded.

    I tried to follow the help directions and do not see Mozilla at the top of the page as directed in the help instructions.

    You're welcome.
    Please click the '''Solved It''' button next to the answer that solved your Firefox support issue, '''''it appears when you are logged in''''', so this thread gets marked as '''Solved''' to help other users who may have this same problem.

  • When setting up my igoogle page, I cannot get the themes to display and when I select one, it won't show up on the igoogle page so can you assist me?

    I have used IE and Chome and both I get my igoogle page with the theme I have selected. I use to get Firefox with my theme on it. Then it changed and I could not. I contacted you, I went per instructions and deleted cookies, cache etc. and followed directions. Something I did worked. Now it is gone again. I followed some other question answers and put setup for Firefox 4.0.1 and then deleted Mozilla and then re-installed. That did not work. Now I am reading about Avast Webrep and all these other brainy people's answers which worked for them but I don't even know where to find these and I have not Firefox button or ability to go to extensions. I am so tired of this that I went back, downloaded IE 9 and Google Chrome. I got the theme on both again, even though I had completely uninstalled them as I was going to be a Mozilla person. Well now I just don't know and it has happened twice and I don't know how I fixed it to begin with.

    I suggest you to upgrade Firefox to version 7 and post back to us
    * getfirefox.com

  • Cannot get my website to display properly on Iphone...what gives?

    This mild annoyance has now become a huge problem lately.  My supporting pages on my website do render properly on the browsers in my iphone.  The background repeats itself and when I add the "no-repeat" code, one side of the screen is gray.
    Also, my "ol" is not lining up properly with the image.  I've checked the website on Chrome, Firefox, Safari and Internet Explorer on Desktops and everything is uniform, however, on my mobile phone, I am experiencing these render issues.  I have attached a screen shot of how one of my pages looks on my iphone and have also provided a link to show how it usually looks (provided it is being viewed from a desktop).
    Any assistance would be greatly appreciated.  Thanks so much!
    www.tricksmovie.com/Buy_Now.html - (viewed in browser on Desktop)
    The image below is how it is showing up on my iphone under Chrome and Safari (with the "no-repeat" code added)
    FYI: I also talked to a friend of mine who has a Samsung Galaxy 3 and he says it displays on his phone normally, the way it displays on desktops.

    Thank you so much Bregent!  I was corrected my "ol" and it fixed the layout
    error.  The  remaing 12 errors are coming from my email code that came from
    Icontact.  I'm not quite sure what I can do about that.
    I'm still trying to determine why the background photo is cutting off on my
    iphone and what I can do to resolve it.

  • Arrays- Cannot get card game to display a straight or full house

    Been trying to get this card game to tell the user if he/she's card hand contains a straight or a full house. Please e-mail me ASAP at [email protected] if you have an answer or idea. Thanks
    This is what i have so far:
    public void aStraight(Card[] hand)
    boolean haveAStraight = false;
    for(int i=0;i < hand.length;i++)
    for(int j=i+1;j < hand.length;j++)
    {  if(hand[i].getFace().equals(hand[j].getFace()))
    haveAStraight = true;
    else
    haveAStraight = false;
    i=5;j=5;
    if(haveAStraight)
    System.out.println("Your hand contains a Straight!!!");
    public void fullHouse(Card[] hand)
    boolean haveFullHouse = false;
    for(int i = 0; i < 2; i++)
    for(int j = i+1; j < 3; j++)
    if(hand.getFace().equals(hand[j].getFace()))
    haveFullHouse = true;
    else{
    haveFullHouse = false;
    i=2;j=3;
    if(haveFullHouse)
    System.out.println("Your hand contains a Full House!!!");

    Don't crosspost!
    Please answer in the other thread, because the other thread has slightly better formatting:
    http://forum.java.sun.com/thread.jspa?threadID=689861

  • I cannot get my iTunes to display new Radio feature...only Internet Radio option still.  I'm on 10.6.8.  Is that an issue?

    My iTunes still only shows Internet Radio (not allowing me to use the new Radio feature). 
    I have the latest version of iTunes and 10.6.8 which is the latest version for my MacBook.
    Any thoughts?  Is there a way to update this?

    yup, thats an issue. apple states that it requires lion os x v10.7 and above.
    http://support.apple.com/kb/HT5848

  • Cannot get sidebar to close and cannot get bookmarks toolbar to display.

    I was on a website and clicked on "Create Bookmark" on the page.
    Ever since then, I've encountered the problems mentioned in my question. I've re-installed Firefox, restarted, and rebooted... no luck.

    I've reached a point where all offered alternatives seem exhausted, and I must now do a complete system rebuild. CleanSweep doesn't even do a thorough job.
    I'm on record, from my purchasing history, of being a solid Adobe citizen.  However, this circumstance is, quite possibly, one of the most unacceptable that I've ever encountered.  For one, no 'app' should ever require a rebuild.  For two, no later version of another app should ever disallow reinstalling the earlier app (because I upgrade to PhotoShop CS4 I can't reinstall DreamWeaver CS3?).  Also, while this might be a 'known' problem, as a user, I don't see that highlighted in Adobe advertising as it absolutely should be.  Maybe there should be a banner on all products that says, "You MUST buy complete Suite upgrades!"
    Sorry, but as someone with a fair history in software development and deployment, this is not proper.  But then I'm 'past my prime' on such matters perhaps.

  • Cannot get .wmv videos to play in HTMLHelp output

    I successfully uploaded five .wmv videos and they display and play properly in the WebHelp output. However, I'm trying to generate the HTMLHelp output and the videos will not play. Any ideas?

    I'm having the same problem, too. I'm using RoboHelp 9. I'm trying to add a simple screen capture of selecting an item on a window.
    I created a simple .avi file using SnagIt.
    I tried to follow the instructions in the RH9 help at http://help.adobe.com/en_US/robohelp/robohtml/WS2D897D61-581A-447e-836F-50A19A2EFC12.html, but I didn't see anywhere to set options.
    When I select the topic that contains this .avi file, the video plays automatically. When I look at the underlying HTML, though, it says that autoplay is off:
    <object data="videos/MarkSelected.avi" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
                 codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
                 type="application/x-oleobject" style="border: none;" width="672"
                 height="604">
    <param name="filename" value="videos/MarkSelected.avi"  />
    <param name="autoplay" value="false"  />
    <param name="autostart" value="false"  />
    <param name="ShowControls" value="1"  />
    <param name="controller" value="true"  />
    <param name="WindowlessVideo" value="0"  />
    </object>
    So I tried a different method that I found on the RoboHTML forum. I used Input > Help Controls > Shortcut and made a shortcut to wmplayer.exe with the filename as the argument. When I click that link, though, it brings up the library for Windows media player.
    I added it to baggage.
    Didn't help.
    Does anyone have any other suggestions? The output is HTMLHelp (.chm) and currently I'm working on my local machine, on my C drive.

  • I cannot get my Mini to start up?

    Also cannot get the Apple Cinema Display to start up.  Yesterday I hooked up the Cinema Display to my MacBook and used the large screen with that.  Then today when I hooked up the Mac Mini and Cinema Display by themselves they will not start up.  

    Didn't have the mini hooked up correctly.  The power cord was not in the power port on the rear of the Mini.  Then I had to reset the PMU.  Now all is fine.  It never pays to be in a hurry.  But it does pay to search for the correct answer in the Apple Support Communities.  Have a great day!   

Maybe you are looking for

  • IMac Screen Malfunction

    I have a 24" iMac which I bought in late 2008 and tonight the screen malfunctioned... has anyone seen this before and is there a solution?

  • Error 532

    Anyone ever had an error 532 on their curve? what does this mean and how do i fix it?

  • How do I play GIF format in PRE12?

    I have brought into PRE12 some video clips in GIF format. They will not play. What can I do?

  • How to change user lock time

    Hi all:     We are running ESS/MSS.     When user use tasks like maintenance personal data, family data. the infotype data is locked, then user exit the ESS abnormally. Then the infotype data is locked.     My question is how long this infotype data

  • Nooooooo (Nomad Zen Xtra 30GB Emerge

    Right, I tend to be a little clumsy, and have dropped my Zen before, nothing ever happened until a week or so ago when it bumped itself on the head and wiped the memory. I managed to reboot, and all was well again, but for the fact although there wer