Setting or drop the synonym of synonym for the new table access

Hello

Using oracle 11.2.0.3 and we have the suite requirement.

New, we build a summary table to replace an older.

Currently reports access a synonymn which in turn accesses the table of old_summary.

Once built, we would like to change the synonym to point to the new table, ideally with no interruption of service.

The only thing that could potentially access these synonyms when change is synonymous with points table select stattements.

Pu questions.

(1) can you change table points synonym of without deletion and recreation?


(2) what happens if have a sysnonym of race and drop of select statement to re-create.  It runs until the end sysnonym fact existed early in the race?

Thank you

1)  Can you change table synonym points to without dropping and recreating?

He has not ALTER statement for synonyms. As I said the other answering machine use CREATE or REPLACE.

2)  What happens if have a select statment running and drop sysnonym the recreate.  Does it run to completion fact sysnonym existed at start of running?

All object references are resolved BEFORE the implementation phase. Once a statement begins executing, it is immaterial that the same is a synonym.

Tags: Database

Similar Questions

  • How to create the new table by using the pertioned table

    Hello
    I use a partitioned table, now I want CPDR a new table with the same structure of my existing partitioned table.
    so can I use this syntax

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    If I use this syntax, he would do the same my existing partitioned table structure?

    and

    When
    We use a syntax such as

    create the table abc_new as
    Select * from my_partitioned_table
    where 1 = 2;

    so he would also make the indexing on the new table if old table exists? If this isn't the case, then how can we create this indexing too at the time of execution of this syntax?


    regards

    N °

    Although the command would create a new table with the same column names and data types, it is NOT a partitioned table. You must explicitly specify the PARTITION BY clause and definitions of Partition when creating the table.

    Similarly, index definitions are not automatically copied. You must explicitly run the CREATE INDEX statements (which you can generate source using DBMS_METADATA. GET_DDL or by using any other tools/utilities).

    (However, if you use Export-Import - for example import to another schema, or to another database, it would create a table partitoned bearing the same name and with the same index definitions).

    Hemant K Collette

  • Add constraint to the new table

    Hello

    can someone give me please an idea on this subject?
    I created a table to an existing table, how do I add the constraint imposed on the old table newly created table?








    Thank you.
    Madam.

    Hello

    If you create a new table using DEC, then he wouldn't copy the old table to the new table constraints.
    Some of these options, you can use.
    (1) using dbms_metadata for the ddl for all dependent objects on the old table and run against the new table after you change the name of the table name/object.
    (2) use imp/exp or impdp/expdp without data to copy the table and dependent objects such as constraints.

    Concerning
    Anurag Tibrewal.

  • How to extract 1 ASA and put them in the new table

    Hello

    Can someone tell me how to extract a table and put in the new table. (eg. I have a table with no 1 to 1000, I would extract only 1, 30, 60, 90,...)  ?

    Please advise me.

    Thank you

    concerning


  • Setting format to the new Premier Pro

    I recently downloaded the trial version of the first Pro CC and noticed to set up a project he never required input for the file size (1280 x 720, etc.).  Is it something 'new' or I missed a step?  Thank you.

    Mac

    Hello

    In the new premiere pro version you don't need to manually create a sequence. You can simply import the images and create the sequence of the clip.

    You can use drag and drop feature of the timeline or

    Right-click on the images after you import into the project, and then select new sequence of the clip.

    Thank you

    Mohd Naseem

  • 6980 HP wireless printer set up on the new network does not see printer IP URL

    I installed a new wireless router and the INVESTIGATION period on the new router is xxx.xxx.2.1 - access web URL for the printer (connected to router ethernet) is xxx.xxx.1.104 - I can't get the printer to connect to the new network IP address so I can set it up on the network.  I don't have a USB cable to the printer.  Is it possible to reset the printer so that he can put up with the new wireless router?

    Any suggestions would be helpful.

    dleew

    Hello

    I see that the IP address of the router is xxx.xxx.2.1 while the printer IP address if xxx.xxx.1.104 that are not in the same range, the printer should have an IP ending in xxx.xxx.2.xxx, proceed as follows.

    Printer has been set to an IP address manually for router previous? If so, unplug the ethernet cable select network Menu > restore default network settings and reconnect the cable.

  • Can I re - set tabs in the "New Tab Page"? I deleted all bookmarks in two of the nine "tabs". Can I re - define these?

    This new tab page allows to store the new bookmarks, right? But I was hoping to return to a bookmark that I jumped, so I pressed on remove again and again until the screen on two of the nine just went completely blank, and now I can't drag a bookmark for them. If I drag a bookmark to one of them, or anywhere else on the page, nothing is saved to the "new tab page", it opens just this bookmark. I don't know what I'm doing wrong. I have the window "Show all bookmarks" open. I'm puzzled.

    Hello

    Please try this: open a bookmark and drag its icon site (on the left side of the address bar (address)), hold it on the newtab tab and when it opens, release it on a blank thumbnail.

    New tab Page

    Troubleshooting

    If the problem persists, you can also reset Firefox and start over.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • MAXL set out in the export table Alias

    I'm having a hard time finding the correct MaxL to export and table alias - basically, I need to export the default table, shift some periods and years and then recharge it in a table different aliases. Any help is appreciated!

    [email protected]!

    Interseting suddenly to look I can find the command to load the alias table, but not to extract it

    Change the load database table_alias table_alias form name data_file file_name

    OK, I found it but not where I expected, it
    Try
    database query 'Sample'.' Basic ' list of alias_names in "default" table_alias

  • Create a Trigger - what is the name of the new table?

    Hello

    I want to implement a new trigger (CREATE TABLE) on my database only for specific tables in a table space.
    As far as I know, I have to set the trigger for the entire database and filter tables in the trigger to
    that I want to do any action.

    It's my first try:

    CREATE OR REPLACE TRIGGER compress_new_tables
    AFTER CREATE ON THE DATABASE
    BEGIN
    dbms_output.put_line ("' new Table name");
    END;
    /

    Unfortunately I do not know how to determine the user as well as the name of the table that was created.
    Could someone help please?

    Py wrote:
    Hello

    I want to implement a new trigger (CREATE TABLE) on my database only for specific tables in a table space.
    As far as I know, I have to set the trigger for the entire database and filter tables in the trigger to
    that I want to do any action.

    It's my first try:

    CREATE OR REPLACE TRIGGER compress_new_tables
    AFTER CREATE ON THE DATABASE
    BEGIN
    dbms_output.put_line ("' new Table name");
    END;
    /

    Unfortunately I do not know how to determine the user as well as the name of the table that was created.
    Could someone help please?

    http://www.morganslibrary.org/reference/ddl_trigger.html

  • Insert in the new table if the row update SQL

    Guy
    If I have an update statement that I would like to keep track of wich ranks where actually updates how could I do? Here is what im tryin to acomplishe, I want to update a table column and if this line is put on day of my update statement I would like to insert a new table. Is this possible to do with plain ol' sql? or should I use plsql.

    an example would be great if someone would guide me on this one.
    CREATE TABLE "TEMPLE_FINANCE"."FWICNCL"
      (
        "FWICNCL_INVOICE"     VARCHAR2(10 CHAR) NOT NULL ENABLE,
        "FWICNCL_CANCEL_USER" VARCHAR2(60 CHAR) NOT NULL ENABLE
      )
    Insert into FWICNCL (FWICNCL_INVOICE,FWICNCL_CANCEL_USER) values ('I0003711','L_BANNER');
    Insert into FWICNCL (FWICNCL_INVOICE,FWICNCL_CANCEL_USER) values ('I0003710','L_BANNER');
    -My update statement wich I have in a procedure. Note that at this point I would insert each record in fobappd anything. I just want to insert the fwicncl records that actually fit and updated fabinvh.


    UPDATE FABINVH 
    SET FABINVH_CANCEL_IND = 'N',
    FABINVH_CANCEL_DATE = TRUNC(SYSDATE),
    FABINVH_CANCEL_USER = (SELECT fwicncl_cancel_user FROM FWICNCL WHERE FABINVH_CODE = fwicncl_INVOICE),
    FABINVH_CANCEL_ACTIVITY_DATE = trunc(SYSDATE)
    WHERE EXISTS 
    (SELECT fwicncl_INVOICE
          FROM FWICNCL 
          WHERE FABINVH_CODE = fwicncl_INVOICE);
    COMMIT;
    
    
        INSERT INTO FOBAPPD (FOBAPPD_SEQ_CODE,
                         FOBAPPD_DOC_NUM,
                         FOBAPPD_ACTIVITY_DATE)
        (SELECT '3', fwicncl_INVOICE, TRUNC(SYSDATE) FROM  FWICNCL);
          COMMIT;
    Thank you for your help in advance.

    Well, you can use the RETURN clause IN the UPDATE statement to get all of the values that must be returned to a collection.

    Refer to the RETURN clause IN the PL/SQL user's Guide

    http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14261/returninginto_clause.htm

    The bottom of the page has links to examples that show how to do this. This is one of the examples.

    Example 7-6 Dynamic SQL Inside FORALL Statement
    
    DECLARE
       TYPE NumList IS TABLE OF NUMBER;
       TYPE NameList IS TABLE OF VARCHAR2(15);
       empids NumList;
       enames NameList;
    BEGIN
       empids := NumList(101,102,103,104,105);
       FORALL i IN 1..5
          EXECUTE IMMEDIATE
            'UPDATE employees SET salary = salary * 1.04 WHERE employee_id = :1
             RETURNING last_name INTO :2'
             USING empids(i) RETURNING BULK COLLECT INTO enames;
    END;
    /
    
  • Former running and the new table in the same group?

    We have a ps4000 (sata, 16x1tb), which is short for maintenance in may without possibility of renewal.

    The ps4000 is a target for the replication of windows/hyper-v a ps6100x volumes and runs some volumes of hyper-v with virtual developer/test machines.

    We bought a new ps4210x to replace the old. Must be run on 1gbit for at least the next year.

    The best way to move data is to update the firmware on the ps4000 to even x 4210 a and then join the x 4210 to the ps4000 group?

    Is there a checklist of exactly what to do to move the data from one to the other?

    We do not know what to do with the old system. We think to buy one or two replacement disks ahead of time and use it for some time yet. Use it as a replication target and some virtual machines hosting not important.

    Suggest two systems running in the same group?

    Should we use two pools for the placement of volume or just leave the firmware balance data? Both systems have raid6.

    What is supported, if we run the two systems in the same group? We always have software support for the whole group or Dell would say a member has no more support, and we cannot help you at all?

    If I understand the firmware release notes, the 7.x will be the last major version for ps5xxx. Our 2010 ps4000 will have more time with the firmware updates?

    Hello

    You can not have supported and no load/EOL paintings in the same group.   Or you want to use it for replication.  Because if you had a problem, support is limited in what they can do with this HW unsupported.

    Re: migration of the PS4000.  I suggest that you create a new pool put the 4210 in this pool.  Create the RAIDset and ensure that both interfaces are active.   Then move the PS4210 to the same pool as the PS4000.   This will cause space to be redistributed into the new array.     If you want to minimize any impact of performance possible, wait until the space is rebalanced.   Then move the PS4000 to the temp pool.   This will leave all the data on the PS4210.   Once it is in the temporary pool, you can use the option "Delete" to delete the group.

    There will be future updates to the PS4000.

    Kind regards

  • Oracle9i Exim - user ID are different in the new table dba_users

    We did an export to a new database. Users in the base of the 'new' got assigned to different ID in the dba users table. We have an application that depends on the user ID, so when he did a search, the user ID has pointed out various user names. Is it possible to have import assign the same user ID as the original db IIN? If this is not the case, the user ID can be changed manually so they correspond to the "correct" the original users? Thank you.

    The value of user_id is used internally by Oracle to manage information in the data dictionary in the same way that object_id is. It should not be invoked by the activity of the application that you do not control the way in which it is created - you may not use the object_id to refer to a table, so why would you want to do with a user. Apart from anything else, if you are using this for an audit trail, what happens when the user is deleted?

    An import works normal syntax of create user and the user_id is not specified - Oracle will be chosen the value because it creates the folder.

    The only way to ensure the same ID values is to clone the source database, rather than using export/import. However, a better solution would be to create user data in a table separate app as well using id values of a table that you can control.

  • Additional logging for a new table existing replication flow

    Jin

    The configuration is a replication of schema of one-way between databases flow and relief. the configuration is oracle 10.2 on the solaris operating system.

    for this configuration, I'll have to add a few tables in the near future.

    My query is, how can I make sure the additional logging for new tables.

    Your comments and ideas on what would be useful


    Thank you
    Isaac

    If additional logging is not enabled at the database level, you must change the table to enable additional logging at the level of the table.

    alter table  add supplemental log data (all) columns;
    alter table  add supplemental log data (PRIMARY KEY) columns;
    etc...
    
  • Create the new table entry by moving the corresponding items from another table

    I have an application where employers create permit applications. Once all the information collected and verified, this request is approved, removed from the 'application' table and added to the table, "license". I have a button called "approve this request. Is it possible to copy the data corresponding table elements 'request' to the 'table of permit"after selecting the button approve?

    This should be relatively simple to implement.
    You can create a process of pl/sql page ' on submit ' which puts the fire on the "Approve" button The code for the process would be something like

    insert into permit_table(col1,col2,col3...)
    select 
    

    CITY

  • Create the new table with the new calculated entries

    Hello
    I had a little problem.
    I have a table which includes the employee vacation time. Vacation time was periodic, so I divide them into days. Now, I want to calculate the exact days. Sometimes ago weekends included I need to subtract. I have flaged everyday, I know exactly what day is a business day and that one is not. Is it possible that I have only the sum of the days without weekends?

    Table Vacation_Times:

    EMPL - V_Start_D - V_End_D - Date-day - D_Name
    Mr.A---01.05.11---06.05.11---01.05.11---6---mercredi
    M.-a---01.05.11---06.06.11---02.05.11---6---jeudi
    Mr.A---01.05.11---06.05.11---03.05.11---6---vendredi
    M.-a---01.05.11---06.06.11---04.05.11---6---Samedi
    Mr.A---01.05.11---06.05.11---05.05.11---6---dimanche
    M.-a---01.05.11---06.06.11---06.05.11---6---Lundi

    NEW table:

    EMPL - V_Start_D - V_End_D - Date-day - D_Name - Actual_Days
    Mr.A---01.05.11---06.05.11---01.05.11---6---mercredi---4
    M.-a---01.05.11---06.06.11---02.05.11---6---jeudi---4
    Mr.A---01.05.11---06.05.11---03.05.11---6---vendredi---4
    M.-a---01.05.11---06.06.11---04.05.11---6---Samedi---4
    Mr.A---01.05.11---06.05.11---05.05.11---6---dimanche---4
    M.-a---01.05.11---06.06.11---06.05.11---6---Lundi---4


    THX

    Hello

    VR;

    SELECT Empl ,V_Start_D ,V_End_D ,Date ,Days ,D_Name , count(*) as Actual_Days
    FROM vacation v
    JOIN datelist d ON d.day between  V_Start_D and V_End_D and d.is_working_day='Y'
    GROUP BY Empl ,V_Start_D ,V_End_D ,Date ,Days ,D_Name 
    

    Kind regards
    Carsten.

Maybe you are looking for