How to replace a name of schema referenced in large number of objects.

I have the following scenario:

A TEST schema is updated with the PRODUCTION schema. All the objects in the TEST schema now contains reference to the schema (V247) production.

For ex: V247. TABLE instead of V247TEST. TABLE. (Now I want change V247 to V247TEST).

It has more than 1000 objects in the schema, and each object is reference on behalf of schema repeatedly.

I tried manually, but as the schema contains objects ' 1000 ', thus, it becomes tedious work to do.

We use ORACLE 10 g on Windows.


Any solution to this problem as soon as POSSIBLE will be really appreciated.

Thank you.

889075 wrote:
I just need to replace each occurrence of "V247" to "V247TEST" in all objects in the schema.

Published by: 889075 on October 4, 2011 09:01

what you need is a separate test database if you do not have to deal with this at all. Having the same PB when the test of the host and prod scheme is a disaster time. Just one simple step bad to destroy your customer accounts whole. (or anything that is essential to the survival of your organization.)

Tags: Database

Similar Questions

  • How to replace the name of the column with variable

    Hello

    I have a PLSQL problem please.

    I have a table like this:

    IDENT LIBL_1 MONT_1 LIBL_2 MONT_2 LIBL_3 MONT_3 LIBL_4 MONT_4

    1               A          10               B               10          C               30               VIDE          0

    2               A          30               C               12          VIDE          0                 VIDE          0

    3               B          11               C               41          D               63               E               15

    ...

    I have a code like this:

    DECLARE

    x number;

    varchar2 column (20);

    CURSOR c_DPLT_TT_ICARE_FILL IS

    SELECT IDENT,

    LIBL_1,

    MONT_1,

    LIBL_2,

    MONT_2,

    LIBL_3,

    MONT_3,

    LIBL_4,

    MONT_4

    FROM MyTable;

    --

    l_mylist c_mycursor % ROWTYPE;

    BEGIN

    FOR l_mylist in c_mycursor LOOP

    x: = 1;

    the following: = "LIBL_" | x;

    WHILE ((l_mylist.colonne <>'EMPTY') OR (x < = 4)) LOOP

    -CODE-

    ...

    -CODE-

    x: = x + 1;

    the following: = "LIBL_" | x;

    END LOOP;

    END LOOP;

    The thing I want to do is to replace the name of column LIBL_1, LIBL_2... with a variable like this: = "LIBL_1" then value: = l_mylist.colonne to get the value of the LIBL_1.

    I tried manyu command but I can't find the solution. I even try an immediate execution but it seems that the list of cursor is unknown in the statement immediately execute.

    Anyone has a solution please?

    Thank you very much.

    user6390927 wrote:

    Hello

    I have a PLSQL problem please.

    I have a table like this:

    IDENT LIBL_1 MONT_1 LIBL_2 MONT_2 LIBL_3 MONT_3 LIBL_4 MONT_4

    1               A          10               B               10          C               30               VIDE          0

    2               A          30               C               12          VIDE          0                 VIDE          0

    3               B          11               C               41          D               63               E               15

    ...

    I have a code like this:

    DECLARE

    x number;

    varchar2 column (20);

    result mytable.libl_1%type;

    CURSOR c_DPLT_TT_ICARE_FILL IS

    SELECT IDENT,

    LIBL_1,

    MONT_1,

    LIBL_2,

    MONT_2,

    LIBL_3,

    MONT_3,

    LIBL_4,

    MONT_4

    FROM MyTable;

    --

    l_mylist c_mycursor % ROWTYPE;

    BEGIN

    FOR l_mylist in c_mycursor LOOP

    x: = 1;

    the following: = "LIBL_" | x;

    run immediately 'select'. the following: ' from mytable where ident =: b ' as a result using l_mylist.ident;

    WHILE ((result <> 'EMPTY') OR (x)<= 4)="" )="">

    -CODE-

    ...

    -CODE-

    x: = x + 1;

    the following: = "LIBL_" | x;

    END LOOP;

    END LOOP;

    The thing I want to do is to replace the name of column LIBL_1, LIBL_2... with a variable like this: = "LIBL_1" then value: = l_mylist.colonne to get the value of the LIBL_1.

    I tried manyu command but I can't find the solution. I even try an immediate execution but it seems that the list of cursor is unknown in the statement immediately execute.

    Anyone has a solution please?

    Thank you very much.

    Asuming LIBL_x columns have the same type or a base at least type

    then the changes above can help you.

    In addition, you can write your cursor loop in a loop "for i in (select...)."

    you don't need to write that match the code, but it is cosmetic.

    See you soon

    Karlheinz

  • How to get the name of the month of week number

    Hi gurus,

    I have week a year numbers.
    I want to get the name of the month using the number of the week.

    Is it possible to do this by using SQL.
    Help, please.
    Thank you
    Dominic
    SQL> var week number
    SQL> var year number
    SQL>
    SQL> begin
      2   :year := 2007;
      3   :week := 30;
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select to_char(trunc(to_date(:year,'yyyy'),'iyyy') +  :week * 7, 'Month') month from dual
      2  /
    
    MONTH
    ---------
    July
    
    SQL>
    
  • How to display the name of my refnum on the front?

    I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.

    How to display the name of the file (including the path) on the front panel once the user has entered it?

    Michael

    Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.

  • How to replace the motherboard on the Pavilion p6550z

    How to replace the motherboard on the Pavilion p6550z

    Depending on where you have acquired your replacement Board Aloe, it may be 'tattooed' with the name of the model, product number and the serial number of your computer.

    Use these HP guides as needed.

    (1) unplug the computer and hold power in 5 to 10 seconds.

    (2) on the side of the cover (see guides above)

    (3) place the case on the closed side with the open side facing upwards

    (4) take a photograph detailed inside your computer... take more if necessary

    (5) unscrew the restraint of external expansion card (see guides above)

    (6) disconnect the power supply connections to the motherboard and all devices... tag and/or take more pictures

    (7) remove the... rock expansion cards cards gently just pulling up

    (8) unplug data cables from the motherboard and readers... tag and/or take more pictures

    (9) disconnect remaining USB switch, connections etc... once again, the label or take more pictures

    (10) remove all motherboard screws on the case and remove the motherboard

    (11) reverse the steps, starting with #10 and working #1

    Good luck

  • How to replace the SWAP file. SYS that bulky and bulky?

    Hello

    My question is how to replace the SWAP file. SYS that is bulky and bulky?

    Is it possible to "BRING" different "restore points" as separate files and reduce in size for the management and portability?:

    The simple answer to your question is no!

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download to your OneDrive (formerly Sky Drive), share with everyone and post a link here. Normal mode preferred report. Please say if the report was obtained in safe mode.

    For assistance OneDrive see paragraph 9.3:
    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • How to get the name and number of the procedure parameter list or a function?

    I stated the procedure described in the package

    If I want to get the number and the name of the parameter list, so how do I it

    I don't have I her name with the package.

    create or replace package demoApp is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2);

    end demoApp;

    create or replace package demoApp body is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2) IS

    EmpID number;

    BEGIN

    Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;

    INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20001,' insert the problem ' |) SQLERRM);

    END;

    end demoApp;

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

    I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "

    Select *.

    of all_arguments

    where package_name = 'DEMOAPP.

    and object_name = 'INSERT_DATA.

  • How to replace column values

    Hello

    I have the table as below, I need to replace the name column value b with X.how to get it.

    Table

    IDname
    1one
    2b
    3c
    4d
    5e

    Output

    IDname
    1one
    2X
    3c
    4d
    5e

    Hello

    Maybe a little decode?

    select id, decode( name, 'b', 'X', name) from ...
    

    concerning

    Kay

  • How to import in different Oracle schemas using the same model? Physical schema is different every time, so, how is this a handles that?

    Experts of the ODI,

    I use ODI 11.1.1.7.0 and transfer data to an Oracle database. So far, everything is OK, but...

    I want to reuse my current interfaces for import into different schemas in the same database.

    At the moment all the table data were imported into a single scheme under topology/Physical Architecture / Oracle / Data Server / physical schema I chose the pattern and check the "default."

    If I import now to other patterns (300 different ones), how should I configure the physical schema values for:

    Schema (schema)

    Scheme (scheme of work)

    Default checkbox? (I assume must be deselected)

    On a quick test, I left schema & schema of blank and disabled by default check box. Two interfaces work (one per table), but the third failed (my guess is the way in which the model was reverse engineering has to do with it, but don't know how to fight against it) I know how to debone a model, but if I use a pattern to do the other schemes do not work because ODI will give me a table not found. How do I work around this problem. Here is an example of the error I get after removing the default schema of the physical schema definition.

    ODI-1226: step CON_TY fails after 1 attempt.

    ODI-1240: Flow CON_TY fails during an operation of integration. This flow of charge table target CON_TY.

    ODI-1228: task failed CON_TY (integration) on the ORACLE connection signal target.

    Caused by: java.sql.BatchUpdateException: ORA-00942: table or view does not exist

    Your help is appreciated. Thank you.

    Here's how, to work around the problem of schema change the mask object Local of the physical schema on the server target %SCHEMA.%O OBJECT to % OBJECT in this way the schema is not part of the SQL at all.

    And these are the values that I use in the physical schema definition

    Schema (schema) - undefined

    Scheme (scheme of work) - undefined

    Check box default - select

    Given each user has permissions for objects it is clean and it doesn't have the schema name to reference the object, it works very well.

  • How to replace a hard drive as a whole in a desktop computer

    How to replace a hard drive, installed new disk and bios doewsn can't see it.  other computers see reader and are able to access by car. What give3s with lt32e sony

    What is the model name of your VAIO computer? Please also provide the brand and model of hard drive you have installed.

  • How to replace text in a table

    Hello guys,.

    I have a user to say table columns with the following data:

    user_name | user_email
    User1 [email protected]
    User2 [email protected]
    util_3 [email protected]

    There are two users with an old e-mail domain but need to change to the new domain, I try the function replace but can't make it work.
    How can I achieve this?

    Best regards.

    Published by: Cristian Orellana, April 16, 2009 11:37

    If your question is how to replace the text directly in the table, then this can be useful.

    insert into test values ('user1', '[email protected]');
    insert into test values ('User2', '[email protected]');
    insert into test values ('user3', '[email protected]');

    Select * from test

    Name Email

    User1 [email protected]
    User2 [email protected]
    util_3 [email protected]

    Now, run the update query to replace the values.

    Update kali_test
    the value email = replace (email, 'A', 'B')

    Commit

    Now

    Select * from test

    Name Email

    User1 [email protected]
    User2 [email protected]
    util_3 [email protected]

    Security (avoid unwanted characters are replaced) you can use the query like this

    Update kali_test
    the value email = replace (email,' company ','companyB ')

    Commit

  • How to change the name of iWatch

    For some reason when I bought the new iPhone 7 and complete matching, it has the wrong name.  I must say my name and my husband.  I have looked at everything in the watch/phone and may not know how to solve this problem.  Anyone has any ideas on how to get my name back?

    Thank you

    J

    Hello

    On your iPhone, in the application of the watch, go to: Watch My > General > topic > name - change the name as desired.

  • My e-mail name was changed (by mistake) and now it shows me as an independent company.  How to restore my name on the emails I send?

    My e-mail name was changed (by mistake) and now it shows me as an independent company.  How to restore my name on the emails I send?

    Hey there FulanodeTal!

    Welcome to Apple Support communities. Email signatures are an important element to send effective emails. This edition is simple and you can follow along on your Mac.

    1. Open the Mail Application.
    2. Choose "Mail" in the menu bar in the upper left corner.
    3. Open "Preferences".
    4. In the 'Preferences' window, select the icon "Signatures".
    5. Here, you will be able to modify and manage signatures different, used while composing emails.

    See you soon.

  • How I discovered the name of the theme is currently installed in my browser?

    How I discovered the name of the theme is currently installed in my browser?

    See Firefox/tools > Modules > appearance

    Are you you're talking about a complete theme or a light theme (Persona), which provides only a background for the area of UI?

  • How to replace the contents of the settings/passwords backup server / current browser bookmarks?

    Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.

    Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.

    It is not recommended to go back to the old version of Sync

    The old version is removed he'll stop being available soon, it takes getting used to using the new version.

    IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.

    Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.

    It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.

Maybe you are looking for

  • Windows is unclear, said program to open the saved favorites

    I've saved my favorites (saved) according to your instructions on desktop as a .json file. When I tried to open to check, Windows says that it cannot open the file cos he needs to know what program I want to use to open it and gave options to use the

  • Formula for the due invoice weekends out of date

    HI - I want to be able to follow when a Bill is due. I have a column of dates have charged customers but I want to work when the 30 days is up off weekends. I would also like it show when it is received, and if it is still ongoing when I change the b

  • Why my VAIO VGN-FZ31S with Windows 7/Vista will only open in safe mode?

    I've been having a lot of trouble recently and think that it was caused by a virus.  However my Vaio only now starts in safe mode, and I have warnings that firewall is not on, and Microsoft Security databases are not executed.  However, I can't downl

  • 6500 a apple iphone 5 s eprint

    I have an officejet 6500 a and an iphone5s - what can I do to be able to print from pc that I have now to do it via usb, and print from iphone can I buy an adapter-firmware - software update - or eprint ePrint says im not connected to a network - how

  • Create folder option on desktop and in the sub directory folder on windows vista__

    One day after running a secure deletion of files program, I tried to create a new file on my desktop using the standard approach right of the mouse. However, the possibility of creating a new folder was missing. I still have the options to make a com