If the Replace function can be used

Hi all

I use 11 GR 2 and I love out to take the form of the below output in a row. rather than retrieve the output from "/ db/ptmtrain/data1/system01.dbf" is should be something like "/ db/rdstrain/data1/system01.dbf".

SQL > select name from v$ datafile where rownum < 6;

+++++++

NAME

-----------------------------------------------------------

/DB/ptmtrain/Data1/System01.dbf

/DB/ptmtrain/data2/sysaux01.dbf

/DB/ptmtrain/Data1/undotbs01.dbf

/DB/ptmtrain/Data3/tools01.dbf

/DB/ptmtrain/data24/users01.dbf

change as

SQL > select name from v$ datafile where rownum < 6;

NAME

-----------------------------------------------------------

/DB/rdstrain/Data1/System01.dbf

/DB/rdstrain/data2/sysaux01.dbf

/DB/rdstrain/Data1/undotbs01.dbf

/DB/rdstrain/Data3/tools01.dbf

/DB/rdstrain/data24/users01.dbf

++++++++

Concerning

Select Replace (name, 'ptmtrain', 'rdstrain') of v$ datafile where rownum<>

Tags: Database

Similar Questions

  • Using the Replace function

    Hi all

    I have a column called supplements and it has values such as

    1. the payment is > 90 days
    2. the payment is < = 10 days

    Now, I want to use the Replace function to replace > and < to "greaterthan".
    and 'lessthan' RESP, but the problem is that, in the function replace, I can give that one argument. So what I do is in the region of fx for the column

    Replace (supplements,' > ',' greaterthan')

    This replaces the > sign very well with string greaterthan and show me values such as

    1. the payment is greaterthan 90 days
    2. the payment is < = 10 days

    but I want to replace < "lessthen" also, how can I do? Can I undergo two replace statements? How can replace several string or special characters for a single column?

    Help, please.

    Thank you
    Ronny

    Try this
    CASE
    WHEN supplements LIKE ' % > %' THEN Replace(latepayment,'>','greaterthan')
    WHEN supplements LIKE ' %<=%' then=""><>
    END

  • If we then use the DML in function, this function can be used inside s

    If we use the DML statement in a function, then this function can be used within the select query or any DML query?
    select f from t2;
    

    I think that you wanted to interrogate t1.

    This works if the function is a stand-alone transaction:

    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    / 
    
    select f from t1
    

    But as Billy, why would you do this way DML. And it's not stand-alone procedures should be used.

    A response to an interview question, but nothing wrong with it.

  • In my laptop, when I open the itunes window there is an option 'Internet Radio' to listen to the different type of music. This "Internet radio" function can be used on my iphone5? And if so, how can I make it work?

    In my laptop, when I open the itunes window there is an option 'Internet Radio' to listen to the different type of music. This "Internet Radio" function can be used on my iphone 5? And if so, how can I make it work?

    No more. It merged with the Apple's music.

  • Any idea which function Essbase or a combination of function can be used to get the level zero members of a list of members.

    Any idea which function Essbase or a combination of function can be used to get the level zero members of a list of members. I know that @RELATIVE or @DESCENDANTS cannot be used.

    If you want to fix on all level 0 members in a member set, then maybe @ILDESCENDANTS will work for you.  Something like: @ILDESCENDANTS (@LIST (members), 0)

  • Case function can be used as a parameter when calling a procedure, please advise...

    Case function can be used as a parameter when calling a procedure, please notify

    The daily procedure is called with the parameter 3 following one of the parameters using a function box between them as shown below.

    Daily_Ins (c1.p_mtrid, c1.p_UOM CASE WHEN "KWH" THEN 1 ELSIF 'KW' THEN 2 END, v_dateHold);

    In my opinion, using decode is illegal, so I think that I cannot say something like :

    Daily_Ins (c1.p_mtrid, ( decode c1.p_UOM, "KWH", 1 'KW', 2), v_dateHold);

    I think I just found something on the net

    SQL > DECLARE

    2 wages NUMBER: = 20000;

    3 employee_id NUMBER: 36325 =;

    4

    5 PROCEDURE give_bonus (emp_id in NUMBER, bonus_amt number) IS

    6 BEGIN

    7 DBMS_OUTPUT. Put_line (emp_id);

    8 DBMS_OUTPUT. Put_line (bonus_amt);

    9 END;

    10

    BEGIN 11

    12 give_bonus (employe_id,

    13 CASES

    14 salary when > = 10000 AND salary<=20000 then="">

    15. WHAT salary > 20000 AND salary<= 40000="" then="">

    16. WHAT > 40000 salary THEN 500

    17 0 OTHERWISE

    18 END);

    END 19;

    20.

    PL/SQL procedure successfully completed.

  • A drive model DVD - RW HP AD - 7581A in dv2988nr specifications, this replacement discs can I use?

    A drive model DVD - RW AD - 7581A in dv2988nr specifications, this replacement discs can I use?  I just need a little coaching on what readers can be put in my dv2988nr. an I bought a LG drive, and even if it had a SATA connection, she was different from mine and that it did not work.  I'm looking for a player like the one I've got DVD +-RW DL w / lightscribe.  Prefferably I want another drive.  The one I have has gone wrong after a year in my and my brothers specifications.

    This is the forum of office.

  • I lost the disc to restore my phone and it is no longer supported by the manufacturer. Can I use the installation disc for my desktop with my laptop serial number?

    I lost my laptop computer restore disc and it is no longer supported by the manufacturer. Can I use the installation disc for my desktop with my laptop serial number?

    My title says it all. I have an old HP laptop that they do not send to restore the disc more (I don't know yet I had one; his old laptop from my brother) and I have an installation disc for my new PC. I have a Windows XP Home edition SP2 installation disc. However, as the hard drive of my laptop broke down, I don't know what version of windows it was. I think it should have been an OEM version and the sticker says it was Windows XP Home Edition.

    Now, anyway I tried to install my installation on laptop computer disc, offering series of laptop computer but now it asks me to activate. Will it work if I activate it?

    Thank you

    Unless you are lucky enough to know someone who has a generic OEM drive, which you can borrow, I don't see a practical solution for you.  I advise you to spend the money to buy one, even if you could find one to buy from a reliable source (not eBay!).  Although a generic OEM disc should work with your product key, there is no guarantee that it will work with your product key.

    If your laptop can be retrieved through a restore partition, and you can't borrow a disc that will work with your product key, then you have pretty much exhausted all reasonable or practical options.

    I finally did! I borrowed a copy of a generic OEM drive, through activation and it is!

    Thank you much for the help...

    Now I've done could you help me more? Say now, I returned the drive OEM back (don't want to make an illegal copy) and want to be able to use my current system installed to generate a system disk that will allow me to avoid all the problems I've had up to now. What would you recommend? I've read a few articles on other forums (I did some research!) but is a little confusing. I hope you could help.

    Thank you

    @Carey Frisch - positive Get... you want to help here not only your view of what I would do with my money!

  • The svchost.exe can be used by hackers to use my computer?

    * Original title: svchost.exe program

    The svchost.exe can be used by hackers to use my computer?

    Any program can be compromised by hackers if you do not follow good security practices and svchost is no exception.  Svchost is used to host the process for critical services on your computer.

  • I recorded annual plan and you paid every month since November 2015. But because of the pregnancy, I can't use adobe more at this time. Can I Cancel to pay after next month, or are there other ways? Please let me know.

    I recorded annual plan and you paid every month since November 2015. But because of the pregnancy, I can't use adobe more at this time. Can I Cancel to pay after next month, or are there other ways? Please let me know.

    Hello

    Please refer to cancel your Adobe Creative Cloud membership

    If you need to contact support technical assistance

    Contact the customer service

    Concerning

  • I installed CC2015 first on my desk. Now I'm on the road, I can't use the software of my laptop My ID is not recognized. Help.

    I installed CC2015 first on my desk. Now I'm on the road, I can't use the software of my laptop My ID is not recognized. Help.

    You can use the CC as desktop application for up to 90 days as long as the CC is active & has no problem billing. You must connect once within 90 days to maintain the activation.

    Let's get further this issue at our office in response https://helpx.adobe.com/contact.html .

    Concerning

    Stéphane

  • How can I do to install the second version, can I use Lightroom4.4 on my second computer? cordially Jean-Pierre

    How can I do to install the second version, can I use Lightroom4.4 on my second computer? cordially Jean-Pierre

    Hello

    You can download here https://helpx.adobe.com/lightroom/kb/lightroom-downloads.html bright room 4

    https://helpx.Adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

  • the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    While there is really no way to stop you using the trial for commercial purposes (and to be honest, it's probably the best way to know if it works for you, in any case) you need to keep in mind that, after the 30 day trial period you will not is no longer able to work the same day or any other project unless you register it.

  • '&amp;' in the Replace function

    Hi all


    I use the replcase function in generatig xml as below

    Select Replace ("Test & New", "&", "& amp ;')") Double;

    It asks me to enter the value (this is to be considered as subtitute value). How can I manipulate '&' in the function replcase to replace the respective value.

    Thanks in advance

    This can be useful
    Escape the sign & (and) in queries

  • Satellite L40 - 139 - after watching the video, I can't use the virtual scrolling

    Hello

    I own a Toshiba Satellite L40-139 under Windows Vista 32-bit. However, I think that this problem only applies to this model as other users are experiencing the same thing.

    I often watch videos online mode full screen (like on YouTube), but when I leave full-screen mode, I noticed that virtual scrolling stops working on the touchpad. This occurs in the latest versions of Internet Explorer and Firefox. I can still move the pointer, but cannot scroll. I also note that the icon in the taskbar freezes, because it does not meet all the movements on the touchpad. I have the latest version of the driver installed (10.0.3.0).

    Is it possible for Toshiba to issue an updated driver for the Synaptics pointing device which solves this problem?

    Thank you

    Hello

    It's the first time that someone has posted this question
    I checked this on my Satellite U400 and quest that; the touchpad works ok
    There may be a registry problem with your operating system who knows
    It would be interesting to know how the touchpad scroll function works by using the new OS installed

Maybe you are looking for

  • File server for Windows does not work after security update

    I just upgraded the security update that was released last week and all of a sudden the computers windows cannot access the server. I'm under 10.11.6 and everything was great until we started windows computers today. They can ping and access the inte

  • VGA P20 - 552 (vertical lines)

    Hi I need help I have a problem in my VGA when I start it shows vertical lines, and then when it starts to BONE, the screen goes black, that I had tried to use the system restore it was working after a reboot, then I rebooted the problem started agai

  • Horizon 2 - PC App Store apps does not not via Aura

    I have version 8.1 to win 2 Horizon. I bought this recently, just found out that the apps in the App Store PC is not working. He keeps asking to download the Adobe Reader which has been done a number of times and still no success. He also asked to up

  • Smart talkband is not an alarm sound for notifications and calls

    Dear friendsI have talkband2 of sony which I use with huawei mate7 phone. All options are ok but don't have audio for notifications and calls and have only vibrator.so I want to know what is happen when I press the volume keys?

  • What brand of glass is on Xperia Z3 Compact?

    As the title says, I would like to know what brand of glass based on the Xperia Z3 compact, for front and rear? Or is it just generic tempered glass?