How to replace one table with another?

I need to replace one table with another. Both tables have the same structure, primary keys, indexes, constraints, but different data (about 50 million records).
I would like to make this replacement in line, with no passage of database in offline mode.
There is no clause CREATE or REPLACE TABLE in Oracle unfortunely.
I could use just DROP and ALTER TABLE RENAME instructions, but it is necessary that a user receive message error "table or view does not exist. It may be possible to block incoming requests at the moment, while old and new droppping table rename are performed?

Thanks in advance.

Hi again!

You can detect normal users with session sessions $ v. A session of a normal user has a username (username of the column). Systemsessions PMON and SMON have no user name. So, you can use the following query to detect sessions, you need to kill:

SELECT sid, serial#, username
FROM   v$session
WHERE type NOT LIKE 'BACKGROUND';

concerning

Tags: Database

Similar Questions

  • How to replace one image with another

    I have a page that displays the results of a search for information about a club. One of the elements is the logo of the club. It is displayed by using the following code

    < img src = "<?" PHP echo $row_clubedit ["club_logo_url"];? ">" alt = "Logo of The Club" class = "logo" title = 'in the Club Logo">

    It works fine, except when no club has been selected, in which case it indicates the default polling point in a blue box.

    It would be nice if I could display the Logo of the Federation, to which all clubs belong, until a club is chosen.

    Y at - it a simple way to define a default image that would be replaced from a set of data.

    $row_clubedit ['club_logo_url'] contains the url in the log format http://www.Club.org/clublogo.PNG

    < img src = "<?" PHP echo ('federation_logo_url');? ">" alt = 'Logo of The Club' class = 'logo' title = ' The Club'c Logo ">

    The logic I guess would be

    If there is no such thing as club_logo_url

    then print the logo of the Federation,

    otherwise print the logo of the club.

    How you code that in php?

    I am only a beginner in PHP.

    "http://www.club.org/clublogo.png": $row_clubedit ['club_logo_url'];? "". ">" alt = "Logo of The Club" class = "logo" title = 'in the Club Logo">

    must be done

  • How to fill one shape with another shape, but not of models

    Hello

    How to fill one shape with another shape, but not of models. Example of this poster

    Screen Shot 2015-05-18 at 13.41.33.png

    put in a shape of the tree so that it looks like this:

    Heavy_type_tree.jpg

    Select your type with a vector path, which is the subject

    Object > envelope distort > make with top object.

  • How can I programaticaly replace one Enum with another within a cluster

    Hello

    You can do that running. This requires a change in data type, which in fact means the application tries to change its own code (i.e. itself) and which is not allowed. You can use the script to replace things, but that is an edit operation, not a runtime operation.

    You can either replace this enum with a string, or you can use several controls as you had alluded.

  • Why ps automatically replaces one font with another?

    I have a PSD with text block. any time I opened the file ps (5.5) replaces my police by another. I got this info 'some text layers may need to be updated before they can be used for vector output.  You want to update these layers now? »

    Two possibilities come to mind:

    1. the PSD file is a text layer that refers to a font that is not on your (most likely) system. If you are upgrading day and re - register (I recommend under a new name), the warning must away, but your text layers will have been activated using the substitute font. This could be allowed, or it might not, depending on your objectives and your needs. To dismiss the problem on the original file, you will need to find missing fonts and make sure that it is installed in your system. It's a good idea to restart Photoshop after the installation.

    2. one of the more fonts on your system are corrupt (less likely). There are procedures that you must follow in order to find, remove and replace or repair the corrupt police, depending on your operating system. A google search on "How do to find and fix corrupted fonts" should prove fruitful. I recommend you start by various Youtube videos.

  • Replace a pic with another pic / replace one image with another

    Hello

    I created a symbol with a photo and text. I duplicate my symbol and now I'll like to replace my pic duplicated using a new peak. Perhaps, it's simple, but I can't find the way :-(

    Hello

    I created a symbol with an image and text. Symbol of my I duplicated, and now I'd like to replace the image of my new symbol by another. Maybe it's simple, but I have not found how to do :-(

    If you want 2 symbols with different images, you need to duplicate the symbol in the library and then swap the image on them.

    or you can change the image in the code with attr or css.

  • How to replace one color with each other?

    Hello

    I use Photoshop Version: 2015.1.1 to change a single image.  (I use the color Mode indexed with a color table custom that I created with only 8 basic colors.)

    My bitmap has a black background and a border of a pixel wide red around its perimeter.  I want to erase that border (replacing the Red pixels with black).  I can do this with the Eraser tool, but I have to drag them all around.

    I was wondering if there is a faster way to do it.  If there is a tool that would allow me to click on the red border, they are automatically the Red pixels that form this border change to black, it would be great.  If someone can tell me that if such a tool exists, I would really appreciate it.

    I should mention that the inner part of my bitmap has red pixels I don't want to change, so I don't have to replace all the Red pixels across in your drawing.  I just replace the consecutive red pixels that form the border.

    Thanks in advance,
    Paul

    Set your foreground to black color. Select >, then edit > Stroke, 1 pixel inside, then uncheck the box.

  • replace one image with another

    I have two images of the same radial venn diagram, created in Powerpoint. I caught the with Jing and create png: ILM_model and ILM_Mod1 (see images below).

    I want an image to blend into one another, so it seems that I am just pointing out the Center and support node. I tried simply fade on while the other fades in, but I get this weird distortion of red and yellow on the edges in the cross-fading. In addition, the image quality is deteriorated. I took a screenshot to show you.

    http://screencast.com/t/nygksaVXTJ

    ILM_model.pngILM_Mod1.png

    Check the quality setting on the slide/s where you have this diagram and the value of high quality.  Your screencast looks like you could use only the low quality (8 bits) at the present time.

  • How to integrate a table with another table?

    Hi guys,.

    I have a problem that needs your help!

    I have two columns, the first column is time (x): 1, 1.2, 1.5, 1.7, 1.8... What is uneven table.

    The second column is O: 3, 5, 7, 8...

    X and have the same length, but the x is uneven. Now, I want to make the integration of Y on x. When I use the uneven digital integration, I found that the result of the integration is a single value rather than a table. But what I need is the third column which displays the results of integration C. I could draw C against x and know how the integration goes.

    Anyone have such experience, thanks a lot!

    Basically, what I need is just like the integration that the original Pro.

    Tao

    Or code more own little bit...

  • How to update one table from another table

    Hello

    I have two tables, t1 or t2, I wrote the below query, but got an error as ORA-00904 ' identifier Inavlid b.purchase_capturedate. The query is:

    Update t1 a
    Set a.docdate = b.purchase_capturedate
    where (a.docid))
    Select docid_request from t2 b where a.docid = b.docid_request and b.itemcategoryid = 6)



    Help, please.


    Kind regards

    Hello

    describe your tables t1 and t2

    Concerning
    Sankar MN

  • How to import a table with the renamed name

    If I want to import a table from a DMP on UNIX to my user where I already have a new version, but I don't want to give up this new version, because I only move files from one to the other, is an import option for importing the table with another name? I want to say I want to import it on the same user, where there is already the MYTABLE table, an older version of MYTABLE by impoting with the new name MYTABLE_OLD, if eventually I can update MYTABLE with some of the old files of the old version MYTABLE_OLD. Is this possible?

    You can't do it directly.

    You can import the Table into a different schema, and then rename the table.

    export and import in the required schema.

    Import DataPump: How to import Table data in a Table that has different name? [342314.1 ID]

    Concerning
    Rajesh

  • LOV cascading if I don't have only one table with the customer name and the name of the product in the ADF.

    Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.

    For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer

    so first of all, I need to set the variable of liaison on behalf of the selected customer.

    Can you please tell me how to set this variable binding in this case.

    After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.

    Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.

    Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ

    Kind regards

    Elias.

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • By mistake I replaced a photo with another file. The miniature shows always the original photo - is anyway I can get the original of this thumbnail image?

    By mistake I replaced a photo with another file.  The thumbnail still shows the original image.  Is there anyway I can retrieve the original of this thumbnail image?

    When a file overwrites (replaces) another... the original is gone.

    This happens usually when the replacement file has the same file name
    as a file exists and that you answer Yes when the dialog box asks you if you
    replace file a file b.

    What are the exact steps you used when the file has been replaced and
    This software has been involved?

  • How to replace the paragraph with a space mark

    Hello

    I received the contents of a manual in raster format, but each line of text ends with a paragraph mark. How to replace the paragraph with a mark space otherwise than by hand?

    In Word, this is pretty easy, but I don't see not any provision for it in the search box on 7.2 Frame.

    Yours,

    Michael F

    ========

    \p = end of paragraph

    \P = beginning of paragraph

    See: Help > keyboard shortcuts > keys for the search and replace

Maybe you are looking for