Avoiding an apostrophe

Hi,
in 11.2.0.3
I ran the following :
SQL> select 'alter database rename file '''||name||''' to ''C:\data\test\log\'''||substr(name,instr(name,'\',-1)+1)||''';' from v$tempfile
alter database rename file 'C:\DATA\TEST\LOG\TEMP01.DBF' to 'C:\data\test\log\'TEMP01.DBF';
But it is not good because there is an apostrophe before TEMP01 in  to 'C:\data\test\log\'TEMP01.DBF';
I tried again but some error :
SQL> select 'alter database rename file '''||name||''' to ''C:\data\test\log\''||substr(name,instr(name,'\',-1)+1)||'';' from v$tempfile;
select 'alter database rename file '''||name||''' to ''C:\data\test\log\''||substr(name,instr(name,'\',-1)+1)||'';' from v$tempfile
Error in line 1 :
ORA-00911:
Thanks for help.

Try:
select 'alter database rename file '''||name||''' to ''C:\data\test\log\'||substr(name,instr(name,'\',-1)+1)||''';' from v$tempfile;

Similar Messages

  • Cannot record audio since moving to Win 7 64 bit

    I have just changed my PC to a refurbished Dell Optiplex 755 running Win7 Pro 64bit with 8Gb RAM and 1 Tb hdd. This was what I felt was the most cost effective option moving from XP as it came with the Windows disc/licence.
    I used Laplink PC Mover to make the transition.
    The move went reasonably well, but for one thing (which I feel is just a setting that I don

    Originally Posted by keithklivideo
    I have just changed my PC to a refurbished Dell Optiplex 755 running Win7 Pro 64bit with 8Gb RAM and 1 Tb hdd. This was what I felt was the most cost effective option moving from XP as it came with the Windows disc/licence.
    I used Laplink PC Mover to make the transition.
    The move went reasonably well, but for one thing (which I feel is just a setting that I don
    Hi keithklivideo,
    Which Creative product are you using??
    The message you have posted here in the forums seems to be incomplete
    Can you try to avoid using apostrophe once you post again? I noticed that excerpts that have apostrophes are somehow cutting off the rest of the message in this forum platform..
    Cheers!

  • Escape character for apostrophe ' in JDBC receiver channel

    Hi all,
    We have Proxy to JDBC scenario in our project. This interface is working fine with unicode data but when there is an apostrophe( ' ) coming in any of the field values ( ex: DOWTHERM 'J' MODEL19QAGB1G ) , the message is failing in receiver JDBC channel.
    can anyone please tell us how to handle single quote in JDBC receiver channel.
    I have read in SAP help documentation that apostrophe is a reserved character in SQL syntax and is therefore replaced by an escape character if it occurs within value strings. There is a option to JDBC receiver communication channel under "SQL SYNTAX PARAMETER"  to specify the escape character for apostrophe.
    Can any please tell us which value needs to be maintained in the channel to avoid this error.
    Regards
    Jagruthi

    Hi Prateek,
    Thanks a lot for you inputs.
    This issue is solved now. We have replaced single quote with two single quotes and then did the hasQuote mapping as described in the blog.
    /people/prateek.srivastava3/blog/2009/04/02/unicode-handling-for-ms-sql-server
    No value needs to be maintained in channel(SQL SYNTAX PARAMETER ).
    But just want to understand  the difference between replacing the ' with '' in mapping and using SQL SYNTAX PARAMETER option in communication channel.
    Both should ideally result in same  output. But it didnu2019t work when we tried with two single quotes in SQL SYNTAX PARAMETER (Escape Symbol for Apostrophe) in communication channel without doing anything in mapping.
    Regards
    Jagruthi

  • My keyboard appears to be in French only on Firefox. IE and Word are okay. The apostrophe shows as è and the bar shows as à etc.

    My keyboard appears to be in French only on Firefox. IE and Word are okay. The apostrophe shows as è and the bar shows as à etc.
    Last week I had a problem with the special characters but that is resolved since I closed and reopened but I havenèt tried that yet but will as well. Very frustrating though - why is this happeningÉ

    See:
    * http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview)
    It is possible that you have switched the keyboard layout by accident.
    * Make sure that you have the Language bar visible on the Windows Taskbar.
    * You can do that via the right-click context menu of the Taskbar: Toolbars > Language Bar.
    * Check the keyboard language (keyboard layout) setting for the application that has focus via the icon on the Language bar.
    * You need to do that while Firefox has focus because Windows remembers the keyboard layout setting per application.
    * The default keys to rotate the layout is a combination (Ctrl+Shift or Alt+Shift) that can easily be used in Firefox to activate a menu item.
    * To avoid an unintentional switch assign a specific key sequence (Alt/Ctrl+Shift+number) to select keyboard layouts and remove the key combination to rotate layouts (Alt+Shift or Ctr+Shift)
    * Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence

  • PDF "Author" metadata in apostrophes

    I use Dublin Core properties to specify the company name as author for our PDF files, for example:
    <dc:creator>My Company, Inc.</dc:creator>
    When I open the PDF in Acrobat Reader and view the document properties, however, the "Author" is displayed in apostrophes: "My Company, Inc."
    It should be displayed without the apostrophes: My Company, Inc.
    Is there any way to avoid having the apostrophes display in the document properties? The company name cannot be rewritten, it should be written exactly as above.

    What quote character should I use?
    If I use left and right double quotation marks:
    <dc:creator>&#x201C;My Company, Inc.&#x201D;</dc:creator>
    the Author field displays as:
    "“My Company, Inc.”"
    If I use quotation mark:
    <dc:creator>&#x0022;My Company, Inc.&#x0022;</dc:creator>
    the Author field displays as:
    """My Company, Inc."""
    The Author field should just display as:
    My Company, Inc.
    I view the PDF in Adobe Reader 9.

  • DDL and Apostrophe

    Shouldn't it be possible to use the apostrophe everywhere in a ddl-Statement?
    Using SQL Developer 2.1.1.64 and Ora 11g:
    Create Table t(Id Number(10,0));
    Insert Into t(Id) VALUES (1);
    Insert Into t(Id) VALUES (2);
    Create View v_t as select Id as "bingo" from t;
    This sql works fine surprisingly (returns 2 Records):
    Select "bingo" From v_t;
    But this does not, although I believe it should:
    Select bingo From v_t;
    It returns an error (partially in german)
    ORA-00904: "BINGO": ungültiger Bezeichner
    00904. 00000 -  "%s: invalid identifier"
    Where am I wrong?
    Thanks fpo help!

    Hi,
    In Oracle, identifiers, including table- and column names, are case sensitive.  This may be surprising, since you can refer to the same table EMP, emp, Emp, or, if you're feeling really wild, emP. The reason is that (normally) all your code that is not enclosed in quotes (either single-quotes or double-quotes) gets capitalized before it is compiled.  So if you say
    Create Table Emp  (empid, ...
    what actually gets run is
    CREATE TABLE EMP (EMPID, ...
    and the name of the table created is EMP (all capital letters), and it has a column called EMPID (all capital letters)
    If you create a view like this
    Create View v_t as select Id as "bingo" from t;
    then what actually gets compiled is
    CREATE VIEW V_T AS SELECT ID AS "bingo" FROM T;
    Then the view is called V_T (all capital letters) but the column is called bingo (all small letters).
    If you then execute a query like this:
    Select bingo From v_t;
    then what gets compiled is
    SELECT BINGO FROM V_T;
    which causes an error; there is a view called V_T (all capital letters), but it doesn't have a column called BINGO (all capital letters); the column is called bingo (all small letters).
    Avoid double-quotes when you have a choice; they cause wrong results, confusion and unnecessary work.

  • Javascript Parameters containing Apostrophes

    Hi,
    Hoping someone can assist, within a report column link attribute, I have the following information set-up:
    Target: URL
    URL: javascript:performDelApr('#First Name#','#Last Name#','#Login#');
    Obviously, these are my report columns that I want to pass their values to my performDelApr javascript function.
    Now my problem is, one of my records has a person's last name that consists of a apostrophe, that is: D'Marco. So when I hover over the link that will call this js function on an onclick event, the call looks like this:
    javascript:performDelApr('Ron','D'Marco','GUEST');
    When I click, I receive an error on page b/c of the apostrophe in D'Marco, which is also enclosed with the single quotes.
    How can I escape or get passed this problem as I need to pass in the person's name details?
    Thanks.
    Tony.

    Hello Tony,
    >> How can I escape or get passed this problem as I need to pass in the person's name details?
    You have two major options to solve your problem. The first option is to avoid it altogether, by passing a PK of the record (assuming that is not the problematic column) and use that to fetch the record on your target page. The second option is to deal with the apostrophe problem; however, the JavaScript phase is too late for that. You need to do it in the Query phase.
    The following post includes a possible solution, offered by Denes. The original example deals with the “colon problem” but can be adapted to deal with the “apostrophe problem” - Re: how to pass a colon as part of a value in the URL? .
    Regards,
    Arie.

  • Capture whole word in GREP to include apostrophes

    Hi
    I want to run a GREP search on a paragraph to find whole words. But that search needs to include apostrophes before, in the middle, or after the word.
    For example the GREP search should capture the following words that involve various uses of apostrophes:
    - wasn't
    - goin'
    - rock 'n' roll.
    - 'cause.
    I tried the following GREP:
    \<\w+('??)\w+\>
    But it only captures captures words with apostrophes inbetween (wasn't, don't) but avoids words with apostrophes at the end (goin').
    Thanks
    -Tushar

    Hello Tushar,
    you could split the expressions:
    ('\w+')|(\w+'\w+)|(\w+')|('\w+)
    Roland

  • Apostrophe (') in blog titles = broken links in '08

    Don't know if I'm the only one, but my non .mac web page is now crashing on access to any entry that has an apostrophe (') in the blog entry's title... which is over half my entires.
    For example if I create an entry named "A day's hard work", it will crash if you click on it to read more, while "A days hard work" will not.
    Unfortunately, once the page has been made, unless you delete and re-make every entry that has apostrophes in them, the page names are set the first time you save, so it'll always crash.
    '07 didn't have this problem at all.
    Anyone know of a workaround?

    I have found a workaround to this issue. When creating a blog entry that will have an apostrophe in the title, create that title without the apostrophe. For instance, instead of "Fred's Thoughts" type "Freds Thought". After you have finished typing the entry, save and publish to a folder. After the site has completed publishing, go back to that entry and put the apostrophe back into the title. Save and publish again.
    For some reason, iWeb '08 does not change the title of the Folder when you put the apostrophe back into the title. Therefore, any changes you make will be in the folder titled "Freds_Thoughts" and be able to avoid any issues on the web.
    You might be able with not having to do the first publish, but I have not attempted it yet.
    Hope this works for you

  • Apostrophe in chapter wording nulls complete entry?

    I thought I'd start here rather than in the FCE forum as I can actually see the apostrophe in the FCE 'canvas'
    Anyway, in an FCE project I have a number of Chapter markers and a couple have apostrophes as part of the text, you know, the one in the middle of it's
    However, it seems that the presence of an apostrophe anywhere in the chapter text just prevents any of the text from appearing so, typically, I end up with a box or two on the 'scene selection' page with nothing underneath it.
    I've searched for apostrophe both here and in the iDVD manual but nothing of relevance has come up.
    Did everyone know about this problem except me?
    Is there a workaround? As on old programmer I tried using one apostrophe after another (NOT inverted commas) but that had the same undesired effect.
    For now I've resorted to using an inverted comma but we all know that's not right and my intended clients will taunt me without mercy.
    Please help me with this problem. Thanks in advance.

    Hi
    It's even worse !
    Use of characters other than a to z and 0 to 9 in Chapter title can and will very often
    result in Multiplex Error in iDVD.
    So rule is to avoid all other letters !
    Yours Bengt W

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

  • How to set text resources avoiding automatic page update with c:set tag

    Hello everyone,
    I'm developing my web application with JDeveloper 11.1.2.3.0 in order to support two language locales (en and de). Following this guide I've performed the following steps:
    Creation of two property files (Resources.properties and Resources_de.properties) with the key-value entries;
    Modify of faces-config.xml file adding these lines:
    <locale-config>
            <default-locale>en</default-locale>
            <supported-locale>de</supported-locale>
      </locale-config>
      <resource-bundle>
          <base-name>view.Resources</base-name>
          <var>res</var>
       </resource-bundle>
    In the project properties > Resources Bundle I've checked:
    Automatically Synchronize Bundle;
    Warn about Hard-coed Translatable Strings;
    Always Prompt for Description.
    In the same place I've set the default project bundle name to view.Resources.
    In a test JSP page I've a outputText with the value #{res['HELLOWORLD']} where HELLOWORLD is the key in the property files. All works fine, and the correct string is shown based on locale browser settings.
    Anyway, when I use the "Select Text Resources..." menu in any text value choosing a value from the default property file, JDev automatically adds the following tag:
    <c:set var="customuiBundle" value="#{adfBundle['view.ViewControllerBundle']}"/>
    setting the value of the text in #{ViewControllerBundle.HELLOWORLD}.
    There is a way to avoid this behavior? Can I manage the resources in a different way? I would to choose a value from the list in order to get the res.KEY value instead of ViewControllerBundle.KEY value.
    Thanks in advance for your help.
    Manuel

    don't select from menu - go to source and write it . The problem with the tools is they have a certain way of doing things and don't think we should spend time customizing jdeveloper rather concentrate on the work in hand.

  • Can a BIG form be served up one page at a time to avoid long load time?

    Tricks I have read for optimizing the load time of large forms are not helping. Linearization causes the first page to render quickly, but you can't interact with the fields until the whole form finishes loading -- no help there. Is there a way to break the form into pages (without creating entirely separate forms) so the user can fill out a page, hit a Next Page button, fill out that page, etc.? Understood that this is an old school idea, but until Reader can download a 1+ MB form in less time than it takes an average user to get ticked off, old school might do the trick.
    Alternatively, is there a way to construct a form so you can start interacting with it without having to wait for it all to load? This question comes from the (uninformed) assumption that maybe there are forward references that can't be satisfied until all the bits have come over the wire. If that's right, can a multipage form be architected so as to avoid this problem?

    No that technology does not exist yet. There are form level events that need to have the entire document there before they can fire. Also you would have to keep track of where you are so that would mean some sort of session information for each user.

  • To avoid writing database code in the front end

    Hello,
    I am working on a database application using 10g database as backend and dotnet as front end. I wish to execute only oracle stored procedure for all the select (to avoid hard parse and use of bind variable), DDL and DML operations; just to avoid writing database code in the front end. Can anyone please give me a little examples of :
    1.Select query's output to be return as resultset by stored procedure.
    2.DML example by stored procedure.
    3.Any DDL example by stored procedure.
    using scott.emp, so that i would just call the stored procedure, rather than giving select,DML and/or DDL commands in the front end. Even though i have read in the documentation, but a clear cut examples will help me to get into clear concept as well.
    Thanks & Regards
    Girish Sharma

    Hi...
    -->Select example
    create or replace procedure get_emp(rc out sys_refcursor)
    is
    begin
    open rc for select * from emp;
    end;
    -->DML example
    create or replace procedure do_dml_emp(pempid in number,
    pempname varchar2,
    result out number)
    is
    begin
    insert into emp(empid,empname) values(pempid,pempname) returning empid into result;
    exception
    when others then
    result:=-1;
    end;
    -->DDL example
    create or replace procedure ddl_emp(colname varchar2,
    coltype varchar2,
    result out number)
    is
    begin
    result:=-1;
    execute immediate 'alter table emp add column ' || colname || ' ' || coltype ;
    result:=1;
    end;

  • Query to populate an alert message to avoid the duplication of Reference no

    Hi Experts,
    SUB:Query to populate an alert message to avoid the duplication of BP reference no.
    In A/R invoice, BP reference (numAtcard) is used to enter sales Order no as the reference number. As human error, double A/R invoice is created to that particular Sales Order no.
    So,I want a formatted search query in that BP reference field, so that when i type the sales order number and give tab, it should populate the alert message if it already exists.
    Moreover i do not want to block it through store procedure method, only warning is required to my scenario.
    Kindly, help me on this ground.
    Regards,
    Dwarak

    Hi there, i think this could work, maybe you'll only need to configure the Formated search to work with the document total, each time it changes
    declare @numatcard varchar(15)
    declare @count int
    set @numatcard=(select $[oinv.numatcard])
    set @count= (select count(numatcard) from oinv where numatcard=@numatcard)
    if @count>1
    select 'There is a duplicated reference'
    select @numatcard
    hope it works

Maybe you are looking for

  • After installing iOS 6 update my ipod touch 5G doesn't work anymore

    after installing iOS 6 update my ipod touch 5G doesn't work anymore. Can anybody help me? Please!

  • Can I create an interactive page w/ CS4?

    I have Creative Suite 4 Design Premium and am currently learning via Lynda.com and using the programs - I have fair to pretty good knowledge of all of them but Flash. I've been asked to create a 3d interactive page for a friend, in which the viewer c

  • Setting the Font in Mail

    I'd like to set the font for outgoing mail to be Georgia. I'd like to have Mail format the message so when the recipient reads it, it is also formatted in Georgia. I would not like to do this for each message individually, I'd like to have this defau

  • I have my music loaded in Real Player and iTunes won't read it?

    Hi, I'm new to ipods... I have a library of 87g of music on a external hard drive. I'm trying to convert all my music so I can play it on my Ipod and I can't. does it means that I have to re load all my CD to the compter read by itunes or there is a

  • What is GAP ANALYSIS

    dear all can u plz give a brief description on GAP anallysis