SQL Script working differently with 8i and 9i

Hi
I am facing strange problem with my simple SQL script called from a shell script. It bahaves differently with ORACLE 8.1.7.4 and 9.2.0.1. The machine is same.
sqlplus -s / @Tech.sql WKC625 11 11 '11 22' ""
This is working with 9i but it does't work with ORACLE 8.
Actually what happens is that the argument in single quotes (') is taken as 2 separate argument.
The Tech.sql is :
spool add
insert into TECH values ('&1','&2','&3','&4','&5','');
commit;
quit
I tried putting double quotes also. Is something got changes between ORACLE 8 and 9i.
Please help
Surendra

Are you sure it works in 9?
If you are using UNIX, then the O/S will strip the quotes while processing the arguments. You need to use 2 single quotes around 11 22, just as you have around the empty string at the end.
I believe that Windows does the same, but I do not use windows.
John

Similar Messages

  • Running  sql scripts from different directory

    Hi
    I have sql scripts in different directories as follows:
    D:\myapp\sql
    - load.sql
    - init.sql
    D:\myapp\sql\schema
    -users.sql
    -structure.sql
    D:\myapp\sql\populate\
    - data1.sql
    - data2/sql
    load.sql call all the other scripts as below:
    @init.sql
    @schema\users.sql
    @schema\structure.sql
    @populate\data1.sql
    @populate\data2.sql
    All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
    I need a way to run this script from a different directory say D:\ or C:\
    I am writing a installer which will execute from a different directory.
    Right now I get a file not found error for scripts within schema an populate folder.
    Please let me know how can I make this work from a different directory.
    Thanks
    kelvin

    Hi peter. i think you cannot run files spread across different locations.
    --the method which u specified always looks to the defined path                                                                                                                                                                                                                                                                                       

  • I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with

    I had an iphone 4s and it worked nice with facetime and imessage using my phone number but  it was stolen on December so I buy a new iphone 4s using the same cellphone number  but now imessage and facetime does not work with my number, it only works with my apple ID.   Please Help me I speak Spanish so  if my English is not ok  I´m sorry about it.
    Do you think that apple has to   reset in their database of the old serial number attached with my phone number and that’s why I can´t activate imessage and facetime with my number in the new iphone 4s?? 

    I understand all of this Meg; that is why I bought an Iphone; but never expected my phone not even give a at least a 24 or even 12 hours....I work 12 hour shifts and also would expect to have to charge each night but not twice a day or more.  I am not always somewhere I can charge my phone.
    Your points are true; however it doesn't help me......

  • Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar

    Working alternating with iPhoto and FCE tgrying to import pictures from iPhoto into FCE suddenly all my 22300 pictures disappeared leaving empty frames. Does somebody know where the pictures could have gone and how can I get them back into iPhoto? Lothar

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Why won't some photos or videos sync to my iPad when they work fine with iPhoto and iTunes?

    Why won't some photos or videos sync to my iPad when they work fine with iPhoto and iTunes? Other photos taken with same camera sync fine from iPhoto while certain events are inexplicably incompatible. I've recently foundvthecsame occurrence with certain mp3s and videos from iTunes.

    For photos try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314
    Not all video formats that work in iTunes are compatible with the iPad - the supported formats are (from http://www.apple.com/ipad/specs/) :
    Video formats supported: H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    Have you tried Advanced > Create iPad Version and then sync those versions to the iPad
    The iPad's supported audio formats are :
    HE-AAC (V1 and V2), AAC (8 to 320 Kbps), Protected AAC (from iTunes Store), MP3 (8 to 320 Kbps), MP3 VBR, Audible (formats 2, 3, and 4, Audible Enhanced Audio, AAX, and AAX+), Apple Lossless, AIFF, and WAV

  • The Back arrow does not always work, particularly with Amazon and eBay sites.Even the on-page Back arrows do not work either.

    I am using version 15.0.1. Since I updated to this version, the Back arrow does NOT always work particularly with Amazon and eBay. This is particularly evident when I go from a list the result of a search to an item on the lis. I cannot get back to the list even using the On-page Back arrow. I usually have to repeat the search to get back to the list again.

    Hi MorrellMurphy
    probably problem with [http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox Locked or damaged places.sqlite] file
    thank you

  • Hi! is it possible that Logic X has upgrades that work only with mavericks and does t work in mountain lion....since in my macbook pro with mavericks i have new views of the equalizer, etc and in my mac pro with mountain lion it still the old view...

    Hi! is it possible that Logic X has upgrades that work only with mavericks and does t work in mountain lion....since in my macbook pro with mavericks i have new views of the equalizer, etc and in my mac pro with mountain lion it still the old view...

    Any OS version of 10.8.4 or later has all features that are not OS depended. The plugins are one example. You probably haven't updated all versions of Logic Pro X to the latest one.

  • My apple TV dosent work anymore with youtube and netflix?

    my apple TV dosent work anymore with youtube and netflix? Use to work but not anymore, the rest of the apple tv works fine... I reboot everything....

    Allfilms,
    Try logging out of your Netflix and YouTube accounts and see if that will work.  If not, a common reset should solve the problem.
    Depending on the generation, you should be able to restart the Apple TV through the ,"General" option on your menu.
    http://support.apple.com/kb/ht3180  --> see this link in regards to reset. 
    Let us know how it turns out.

  • Are any new AEBSn working reliably with internet and HD?

    Are any new AEBSn working reliably with internet and HD?
    Just wondering. Thinking of getting one.
    Thanks ... Ken

    Perfect from day 1. Easy to set up but I made sure to glance through the DesigningAirPortExtreme802.11nNetworks.pdf that is available online so I had an idea of what to expect before I got started.
    I don't have a hard drive hooked up but I did hook up a 512 MB Flash thumb drive to see how it would work. To the base station it is just another drive so it's the same thing as hooking up a regular hard drive. I tested it both formatted as an HFS drive and a FAT drive to see the difference in how it presented the drive.
    I also tested the network connectivity in Windows XP using Bootcamp. I tried it both with the default drivers that get installed as part of Bootcamp and with the drivers from the D-Link DWA-645 which uses the same Atheros AR5008 chip set as my MacBook Pro.

  • Embed + compiler define works different with air 3.7+ comparing to 3.5

    Hello.
    I've noticed that new compiler works differently when using construct Embed with conditional compilation (comoiler define option).
    It looks like new compiler always embeds files in output swf even if Embed construct is used in dead code. Here is full example:
    package {
      import flash.display.MovieClip;
      public class Main extends MovieClip {
        CONFIG::FOO {
          [Embed(source="foo.mp3")]
          public static var MusicTrack: Class;
        CONFIG::BAR {
          [Embed(source="bar.mp3")]
          public static var MusicTrack: Class;
    I have 2 files: foo.mp3 (~2MB) and bar.mp3 (~2.3MB). I want to embed only one of them defining CONFIG::FOO as true and CONFIG::BAR as false.
    When I compile it using AIR 3.5 with following command I get (as expected) file with size ~2.0MB:
    /opt/adobe_sdks/flex_sdk_4.6_AIR_3.5/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    /private/tmp/bug/Main.swf (2030814 bytes)
    But when I use newer AIR sdk (I tried with 3.7, 3.8 and 4.0 beta) I'm getting file with size ~4.3MB.
    /opt/adobe_sdks/AIR_4.0/bin/mxmlc -compiler.source-path . -swf-version 14 -define=CONFIG::FOO,true -define=CONFIG::BAR,false -o Main.swf -- Main.as
    4328386 bytes written to /private/tmp/bug/Main.swf in 9,634 seconds
    Is it expected behaviour? Is there any chance that new compiler will work in this case the same as older one?

    Another difference I encountered is that using compiler definition directly in Embed construction doesn't work. Here is example:
    public class Assets {
      [Embed(source=CONFIG::MUSIC_MP3_PATH)]
      public static var MusicTrack: Class;
    Then I pass option to the compiler:
    -define=CONFIG::MUSIC_MP3_PATH,"'sfx/music.mp3'"
    With AIR 3.5 SDK it works fine. With AIR 3.7, 3.8 and 4.0 beta I'm getting file which is smaller in size (by mp3 file size) and when running I get error: TypeError: Error #1007: Instantiation attempted on a non-constructor. (when it tries to create new instance of MusicTrack).

  • Failure to open links using window.open (applies to FF17 and FF18, works ok with FF16 and below)

    Hello,
    As mentioned, this only started happening with FF17, and repplicated with FF18. FF16 tested ok, and below.
    This is the HTML code involved:
    <pre><nowiki><a target="resource11" onclick="this.target='resource11'; return openpopup('/mod/resource/view.php?inpopup=true&amp;id=43','resource11','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,width=620,height=450');" href="http://myschool.education.loc/lms/mod/resource/view.php?id=43"></nowiki></pre>
    Notice the call to openpopup() function, which has this code:
    <pre><nowiki>function openpopup(url,name,options,fullscreen) {
    fullurl = "http://myschool.education.loc/lms" + url;
    windowobj = window.open(fullurl,name,options);
    if (fullscreen) {
    windowobj.moveTo(0,0);
    windowobj.resizeTo(screen.availWidth,screen.availHeight);
    windowobj.focus();
    return false;
    }</nowiki></pre>
    When clicking on the link on FF 17/18, I get this error and the popup does not open:
    Error: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]
    Seems like a bug?
    Thanks

    Do you have a real working page with this code?
    I do get a pop-up/tab opening with your code, get a server not found error.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    <pre><nowiki><a target="resource11" onclick="this.target='resource11'; return openpopup('/mod/resource/view.php?inpopup=true&amp;id=43','resource11','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,width=620,height=450');" href="http://myschool.education.loc/lms/mod/resource/view.php?id=43">click this link</a>
    <script>
    function openpopup(url,name,options,fullscreen) {
    fullurl = "http://myschool.education.loc/lms" + url;
    windowobj = window.open(fullurl,name,options);
    if (fullscreen) {
    windowobj.moveTo(0,0);
    windowobj.resizeTo(screen.availWidth,screen.availHeight);
    windowobj.focus();
    return false;
    </script></nowiki></pre>
    <pre><nowiki>data:text/html;charset=utf-8;base64,PCFET0NUWVBFIGh0bWw+CjxhIHRhcmdldD0icmVzb3VyY2UxMSIgb25jbGljaz0idGhpcy50YXJnZXQ9J3Jlc291cmNlMTEnOyByZXR1cm4gb3BlbnBvcHVwKCcvbW9kL3Jlc291cmNlL3ZpZXcucGhwP2lucG9wdXA9dHJ1ZSZhbXA7aWQ9NDMnLCdyZXNvdXJjZTExJywncmVzaXphYmxlPTEsc2Nyb2xsYmFycz0xLGRpcmVjdG9yaWVzPTEsbG9jYXRpb249MSxtZW51YmFyPTEsdG9vbGJhcj0xLHN0YXR1cz0xLHdpZHRoPTYyMCxoZWlnaHQ9NDUwJyk7IiBocmVmPSJodHRwOi8vbXlzY2hvb2wuZWR1Y2F0aW9uLmxvYy9sbXMvbW9kL3Jlc291cmNlL3ZpZXcucGhwP2lkPTQzIj5jbGljayB0aGlzIGxpbms8L2E+CjxzY3JpcHQ+CmZ1bmN0aW9uIG9wZW5wb3B1cCh1cmwsbmFtZSxvcHRpb25zLGZ1bGxzY3JlZW4pIHsKICBmdWxsdXJsID0gImh0dHA6Ly9teXNjaG9vbC5lZHVjYXRpb24ubG9jL2xtcyIgKyB1cmw7CiAgd2luZG93b2JqID0gd2luZG93Lm9wZW4oZnVsbHVybCxuYW1lLG9wdGlvbnMpOwogIGlmIChmdWxsc2NyZWVuKSB7CiAgICAgd2luZG93b2JqLm1vdmVUbygwLDApOwogICAgIHdpbmRvd29iai5yZXNpemVUbyhzY3JlZW4uYXZhaWxXaWR0aCxzY3JlZW4uYXZhaWxIZWlnaHQpOwogIH0KICB3aW5kb3dvYmouZm9jdXMoKTsKICByZXR1cm4gZmFsc2U7Cn0KPC9zY3JpcHQ+</nowiki></pre>

  • Script runs differently from ESTK and Scripts panel

    Recently I was reported about a problem with one of my scripts, that packages ID documents: a guy wrote me that when he runs it from ESTK, script works fine, but when run from Scripts panel — creates empty folders, does nothing more but generates an error (there's an error handler in the script that logs errors into a text file):
    Error: Invalid value for parameter 'versionComments' of event 'packageForPrint'. Expected String, but received TRUE.
    It's strange, because I don't use this optional parameter in the script.
    BTW, on my computers it works ok, both in ID and ESTK.
    Does anybody encountered this problem? Any ideas on why this happens?
    Kasyan

    He probably has his scriptPreferences version set to 5. To make your script foolproof, you should probably set the scriptPreferences yourself (and restore them when you are don to be nice...)
    BTW, kAppVersion = parseFloat(app.version) is a more readable form for getting the version number...
    Harbs

  • How do I get sync to work again with Typekit and Creative Cloud?

    I have been using my CC apps with Typekit and it was syncing fine. Now for that last few days I am getting a sync error message. More info is useless—blames lack of an internet connection which is not accurate.  I've turned sync off and on, remove and readied the fonts from type kit. Closed out and logged back in to CC app. Nothing is working. I have two DSL lines both of which are working and have tried it connected to each in turn. Still cannot sync.
    I am now online with Adobe phone support after a 2-hr wait for the call back. Just told my story again. On hold. Now they tell me Adobe can't do anything other than read the same troubleshooting docs that Typekit has on their site (which I've already done). This alliance only works if Adobe and Typekit work together. I've already emailed twice and tweeted to Typekit and gotten ZERO response. I was pretty emphatic with the guy in Adobe tech support and he said he would escalate it to the India "Dream Team." Hopefully they will be more dream than nightmare.

    Hello,
    I'm sorry that you ran into trouble with this. Typekit Support did not recieve your email, and didn't realize you were waiting for a reply. I do apologize for that.
    Would you please send your recent log files to [email protected] so that we can take a look?  I've included the instructions below. It sounds like there may be a problem with your computer reaching the Creative Cloud servers, and the logs will have more information. 
    Please let me know when you have sent that email, so that we can watch for it.  Thank you,
    -- liz
    On OS X:
    * Open the Finder
    * under the Go menu, select "Go To Folder"
    * in the window that opens, type:  /Users/(username)/Library/Application Support/Adobe/CoreSync/
    Or if you are comfortable working from the Terminal:
    cd $HOME/Library/Application Support/Adobe/CoreSync/
    On Windows:
    C:\Users\(username)\AppData\Roaming\Adobe\CoreSync\
    Attach the recent CoreSync-yyyy-MM-dd.log files to an email. Please don't send a zip file, as they often get flagged as spam.

  • I am using window.print() to print the data of my webpage, it prints only first page and left the remaining while it works fine with IE and Google Chrome, ie print all the pages.

    My Page has data more than one page, it has verticle scroll bar to view all data .
    I used window.print() to print the data of webpage, but it prints only first page and left the remaining information.
    This works fine with Internet Explorer 6+ and Google Chrome.

    Does the entire webpage appear in Print Preview? <br />
    File > Print Preview

  • I have an iPad mini and a 2nd gen Apple tv -which works fine with Airplay--and whilst i can get BBC Iplayer and 4OD , it only works with audio for ITV player and Demand 5. What am I doing wrong

    I have a new iPad mini and can successfully use airplay with my 2nd generation Apple tv . BBC Iplayer is fine --as is 4OD, but ITV player only works in audio format--and Demand 5 does not work at all. I am pretty sure both the latter are compatible--so what can i do to fix this and  what am i currently doing wrong?

    Someone recently noted a problem staying logged on the Huffington Post since it became connected with AOL. The workaround for that is to change your connection setting here:
    orange Firefox button (or Tools menu) > Options > Advanced > Network
    Click the "Settings" button and choose either "No Proxy" or "Use System Settings" option, and OK the change.
    Not sure whether Washington Post could be affected by that same setting.
    In reviewing your extensions, I'm puzzled that you have both DoNotTrackMe and SavvyConnect. The first one seems to aggressively block certain communications with websites (potentially affecting functionality) while the second one seems to report on your browsing habits (they better pay well is all I can say). Have you tried disabling both of those to see whether that has any effect?
    orange Firefox button (or Tools menu) > Add-ons > Extensions category

Maybe you are looking for

  • Flat file content conversion repeating fields

    Hello,    I have a flat file where the first three fields are fixed; the rest of the file line is made up of 1 .. n analysis characteristic results. The name of the field (Result) is always the same, but I never know how many results I will have on o

  • Several import issues

    Win XP, LR3.2 I'm a experience user and usually work from my Desktop... and it's been one year but in the last few days have done 2 jobs on my laptop... and something is wrong when I import. I hope someone can tell me what's going on.   I've never ha

  • HT4296 What does this mean "remains disabled by default in this update"? Does that mean I don't have Java any more because of this update?

    What does this mean (referring to the Java update on the Mac OS X 10.5.8) "remains disabled by default in this update"? Does that mean I don't have Java any more because of this update?

  • IPad 2 keeps rebooting, Apple has no answers

    My iPad 2 (3G, wifi, 64 gb) never been JB and was working fine with IOS 6.1.2......until I updated to IOS 6.1.3. After upgrading IOS the iPad started to reboot randomly. I followed all the suggestions but none worked: tried restart a few times, tried

  • Subcontracting cycle with excise

    HI All, I am sending an exciseable material to a subcontracting vendor for repairs via mvmt type 541 on 54FC challan. Now i am receiving the same material back via MIGO. Kindly explain how to configure this entire scenario for an exciseable material