Who can help to solve this question on MATERIALIZED VIEW and table?thanks

Hi,dear all.
If there is a MV with the same name as a table and they both exist in the same schema .
e.g: MV : test123 and table : test123 (they have same name) exist in schema : schema123.
when I run a sql : select * from schema123.test123; , what's the result of the execution?? MV or table which of them's data are populated???
thanks in advance!

solved.

Similar Messages

  • Error Message:"Cannot find or create the font 'WP-MathA'. Some characters may not display or print correctly."  Who can help me solve this problem?

    Some of the pdf files I work with (receive) come up with a comment: “Cannot find or create the font ‘WP-MathA’. Some characters may not display or print correctly.”  Who can help me solve this problem?
    Thank you in advance for  your time.
    Marlen

    Hello Anubha,
    I am having a similar problem on my machine.  I was using Word 2008 and I created a PDF inside Word.
    I am opening the file on the system itself and I am running Windows 8.1.  I am using Version 11 of Reader.
    When the PDF I created (my resume) attempts to open, it says:  cannot find or create the file Times, Bold.  Some characters may not display or print correctly. 
    However, the entire Reader keeps freezing and will not allow me to open or test print the document.  Also, it is not displaying any of the Bold Times New Roman Print.  Can you please help?  Thanks.

  • Since Ios 7 Update of my iPhone 5 I can not log into any WLAN any more - who can help to solve this major problem

    Hi all,
    I updated my iPhone 5 recently to IOS 7 - Since then I do not get any access to my home WLAN / WIFI with the iphone 5.
    At same time the iphone 3S and IPAD 1 of my wife (both IOS 5.x) still work fine in our homes WLAN / WIFI.
    Who can help to get my Iphone 5 with IOS 7 back to work in the home WIFI ?
    Thanks in advance for any possible solution.
    Best regards
    Dirk from Hamburg Germany

    Try this first.
    On the iPhone go to Settings > General > Reset and select Reset Network Settings.
    This will erase all saved wi-fi networks and settings.
    If no change after this, try resetting your modem and wireless router. Disconnect the router from the power source followed by disconnecting the modem from the power source. Wait a few minutes followed by powering your modem back on allowing it to completely reset before powering your wireless router back on allowing it to completely reset with the modem.

  • Is there any one who can help me solve this?

    Hi.
    I'm taking AP Computer Scinece AB in high school now.
    I've been assigned many programs so far. But.. I can't figure them out.
    There are two programs I need your help. So..Please!!!!!! Help Me!!!!
    Please!! Enjoy helping me!
    <Program #1>
    It's divided into three small programs and I've figured out one of them, which was the easiest one..You will be able to see the programs if you click on the link below.
    (page1)
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=2&page=1
    (page2)
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=3&page=1
    <Program #2>
    http://iboard3.superboard.dreamwiz.com/board.cgi?db=90_darkoo&idx=4&page=1
    The way I figured out first part of program #1 was like this :
    public class ThreeX1
    public static void main ( string[] org )
    system.out.println ();
    int startValue = 21;
    int count = 0;
    while (startValue >1)
    count ++;
    if (startValue % 2 == 0)
    startValue = startValue/2;
    else
    startValue = 3*startValue +1;
    system.out.println ( count );
    ===================================================
    From there, for the second and third programs of program #1, I tried to figure it out by using 'for' statement instead of 'while', but I couldn't.
    So..Please help me out.. Thank you
    or you can e-mail me too. It would be great too.
    add. : [email protected]

    I probably shouldn't be doing your homework but here it is:
    public class ThreeX2{
         public static void main ( String[] org ){
              int startValue = 2;
              while(startValue<100){
                   System.out.print(startValue);
                   System.out.print("\t");
                   System.out.println(timesToGetToOne(startValue));
                   startValue++;
         private static int timesToGetToOne(int intForValue){
              int count = 0;
              while (intForValue!=1){
                   count ++;
                   if (intForValue % 2 == 0)
                        intForValue = intForValue/2;
                   else
                        intForValue = 3*intForValue +1;
              return count;
    public class ThreeX3{
         public static void main ( String[] input ){
              int maximumTries = 1000000;
              int numberOfitterations = 10;
              try{
                   numberOfitterations = new Integer(input[0]).intValue();
              }catch(Exception e){
              try{
                   maximumTries = new Integer(input[1]).intValue();
              }catch(Exception e){
              int startValue = 2;
              while(startValue<maximumTries){
                   if(timesToGetToOne(startValue)==numberOfitterations){
                        System.out.print("When startvalue is: ");
                        System.out.print(startValue);
                        System.out.print(" it will take exatly ");
                        System.out.print(timesToGetToOne(startValue));
                        System.out.println(" iterations to get to 1.");
                        // remove the next line and it will show all values that
                        // takes numberOfitterations amount of times to get to 1
                        break;
                   startValue++;
         private static int timesToGetToOne(int intForValue){
              int count = 0;
              while (intForValue!=1){
                   count ++;
                   if (intForValue % 2 == 0)
                        intForValue = intForValue/2;
                   else
                        intForValue = 3*intForValue +1;
              return count;
    }Problem 3 is diffucult, since the input is one date I assume that the current reading is for this date. I don't
    know the date of the previous reading so I cannot calculate if the consumption is between June through
    Ocober.
    your Main method shoud have 4 inputs date accountNumber currentReading previousReading
    Your main function would look like this:
         public static void main ( String[] input ){
              Calendar date=null;
              int accountNumber = 0;
              int currentReading = 0;
              try{
                   String[] s = input[0].split("/");
                   date = Calendar.getInstance();
                   date.set(Calendar.YEAR,new Integer(s[2]).intValue());
                   date.set(Calendar.MONTH,new Integer(s[0]).intValue()-1);
                   date.set(Calendar.DAY_OF_MONTH,new Integer(s[1]).intValue());
              }catch(Exception e){
                   System.out.println("cannot get date, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   accountNumber = new Integer(input[1]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get account number, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   currentReading = new Integer(input[2]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get current reading, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
              try{
                   previousReading = new Integer(input[3]).intValue();
              }catch(Exception e){
                   System.out.println("cannot get previous reading, please start this program the following way: ");
                   System.out.println("programName date(format mm/dd/yyyy) accountNumber currentReading previousReading");
    // check the date between june and oct:
    // (5>date.get(Calendar.MONTH))&&(9<date.get(Calendar.MONTH))

  • Question on MATERIALIZED VIEW and table

    HI
    there are table (name is test123) and MATERIALIZED VIEW (name also is test123) stored in the same schema (name is schema123).
    If I run sql : select from schema123.test123;*
    I wanna know the result data I get is data of table test123 or MATERIALIZED VIEW test123, which one of them?
    Thanks in advance!

    What is your database version?
    How did you even manage to create two objects with the same name?
    As I know, it is impossible, oracle will throw errors like below:
    SQL> create table FOO (str varchar2(5), num number(3,0));
    Table created.
    SQL> CREATE MATERIALIZED VIEW FOO
      2  BUILD DEFERRED
      3  REFRESH COMPLETE ON DEMAND
      4  enable query rewrite as
      5  select SUM(NUM)
      6  from FOO GROUP BY STR;
    from FOO GROUP BY STR
    ERROR at line 6:
    ORA-00955: name is already used by an existing object
    SQL>

  • I will pay for who can help me with this applet

    Hi!, sorry for my english, im spanish.
    I have a big problem with an applet:
    I�ve make an applet that sends files to a FTP Server with a progress bar.
    Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
    I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
    My email: [email protected]
    thanks in advance.
    adios!

    thaks for yours anwswers..
    harmmeijer: the applet is signed ok, I dont think that is the problem...
    itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
    The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
    (I test too with apache commons-net, and the same effect...)
    The ftp is Filezilla in localhost.
    This is the code, I explain a little:
    The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
    Basicaly its this.
    The HTML code is:
    <applet
           codebase = "."
           code     = "revelado.Upload.class"
           archive  = "revelado.jar"
           name     = "Revelado"
           width    = "750"
           height   = "415"
           hspace   = "0"
           vspace   = "0"
           align    = "middle"
         >
         <PARAM NAME="usern" VALUE="username">
         </applet>
    package revelado;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.net.*;
    import ftp.*;
    public class Upload
        extends Applet {
      private boolean isStandalone = false;
      JPanel jPanel1 = new JPanel();
      JLabel jLabel1 = new JLabel();
      JLabel jlmensaje = new JLabel();
      JLabel jlarchivo = new JLabel();
      TitledBorder titledBorder1;
      TitledBorder titledBorder2;
      //mis variables
      String DIRECTORIOHOME = System.getProperty("user.home");
      String[] fotos_sel = new String[1000]; //array of selected images
      int[] indice_tamano = new int[1000]; //array of sizes
      int[] indice_cantidad = new int[1000]; //array of quantitys
      int num_fotos_sel = 0; //number of selected images
      double importe = 0; //total prize
      double[] precios_tam = {
          0.12, 0.39, 0.60, 1.50};
      //prizes
      String server = "localhost";
      String username = "pepe";
      String password = "pepe01";
      String nombreusuario = null;
      JProgressBar jProgreso = new JProgressBar();
      //Obtener el valor de un par�metro
      public String getParameter(String key, String def) {
        return isStandalone ? System.getProperty(key, def) :
            (getParameter(key) != null ? getParameter(key) : def);
      //Construir el applet
      public Upload() {
      //Inicializar el applet
      public void init() {
        try {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
      //Inicializaci�n de componentes
      private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder("");
        titledBorder2 = new TitledBorder("");
        this.setLayout(null);
        jPanel1.setBackground(Color.lightGray);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
        jPanel1.setLayout(null);
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
        jLabel1.setText("Subiendo archivos al servidor");
        jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
        jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
        jlmensaje.setForeground(Color.red);
        jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
        jlmensaje.setText(
            "Por favor, no cierre esta ventana hasta que termine de subir todas " +
            "las fotos");
        jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
        jlarchivo.setBackground(Color.white);
        jlarchivo.setBorder(titledBorder2);
        jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
        jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
        jProgreso.setForeground(new Color(49, 226, 197));
        jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
        jPanel1.add(jlmensaje, null);
        jPanel1.add(jlarchivo, null);
        jPanel1.add(jProgreso, null);
        jPanel1.add(jLabel1, null);
        this.add(jPanel1, null);
        nombreusuario = getParameter("usern");
      //Iniciar el applet
      public void start() {
        jlarchivo.setText("Start() method...");
        iniciar();
      public void iniciar() {
        //init images selected array
        fotos_sel[0] = "C:/fotos/05160009.JPG";
        fotos_sel[1] = "C:/fotos/05160010.JPG";
        fotos_sel[2] = "C:/fotos/05160011.JPG";
         // etc...
         num_fotos_sel=3; //number of selected images
        //conectar al ftp (instanciar clase FtpExample)
        FtpExample miftp = new FtpExample();
        miftp.connect();
        //make the directory
         subirpedido(miftp); 
        jProgreso.setMinimum(0);
        jProgreso.setMaximum(num_fotos_sel);
        for (int i = 0; i < num_fotos_sel; i++) {
          jlarchivo.setText(fotos_sel);
    jProgreso.setValue(i);
    subirFichero(miftp, fotos_sel[i]);
    try {
    Thread.sleep(1000);
    catch (InterruptedException ex) {
    //salida(ex.toString());
    jlarchivo.setText("Proceso finalizado correctamente");
    jProgreso.setValue(num_fotos_sel);
    miftp.close();
    //Detener el applet
    public void stop() {
    //Destruir el applet
    public void destroy() {
    //Obtener informaci�n del applet
    public String getAppletInfo() {
    return "Subir ficheros al server";
    //Obtener informaci�n del par�metro
    public String[][] getParameterInfo() {
    return null;
    //sube al ftp (a la carpeta del usuario) el archivo
    //pedido.txt que tiene las lineas del pedido
    public void subirpedido(FtpExample miftp) {
    jlarchivo.setText("Iniciando la conexi�n...");
    //make folder of user
    miftp.directorio("www/usuarios/" + nombreusuario);
    //uploads a file
    public void subirFichero(FtpExample miftp, String nombre) {
    //remote name:
    String nremoto = "";
    int lr = nombre.lastIndexOf("\\");
    if (lr<0){
    lr = nombre.lastIndexOf("/");
    nremoto = nombre.substring(lr + 1);
    String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
    //upload file
    miftp.subir(nombre, archivoremoto);
    class FtpExample
    implements FtpObserver {
    FtpBean ftp;
    long num_of_bytes = 0;
    public FtpExample() {
    // Create a new FtpBean object.
    ftp = new FtpBean();
    // Connect to a ftp server.
    public void connect() {
    try {
    ftp.ftpConnect("localhost", "pepe", "pepe01");
    catch (Exception e) {
    System.out.println(e);
    // Close connection
    public void close() {
    try {
    ftp.close();
    catch (Exception e) {
    System.out.println(e);
    // Go to directory pub and list its content.
    public void listDirectory() {
    FtpListResult ftplrs = null;
    try {
    // Go to directory
    ftp.setDirectory("/");
    // Get its directory content.
    ftplrs = ftp.getDirectoryContent();
    catch (Exception e) {
    System.out.println(e);
    // Print out the type and file name of each row.
    while (ftplrs.next()) {
    int type = ftplrs.getType();
    if (type == FtpListResult.DIRECTORY) {
    System.out.print("DIR\t");
    else if (type == FtpListResult.FILE) {
    System.out.print("FILE\t");
    else if (type == FtpListResult.LINK) {
    System.out.print("LINK\t");
    else if (type == FtpListResult.OTHERS) {
    System.out.print("OTHER\t");
    System.out.println(ftplrs.getName());
    // Implemented for FtpObserver interface.
    // To monitor download progress.
    public void byteRead(int bytes) {
    num_of_bytes += bytes;
    System.out.println(num_of_bytes + " of bytes read already.");
    // Needed to implements by FtpObserver interface.
    public void byteWrite(int bytes) {
    //crea un directorio
    public void directorio(String nombre) {
    try {
    ftp.makeDirectory(nombre);
    catch (Exception e) {
    System.out.println(e);
    public void subir(String local, String remoto) {
    try {
    ftp.putBinaryFile(local, remoto);
    catch (Exception e) {
    System.out.println(e);
    // Main
    public static void main(String[] args) {
    FtpExample example = new FtpExample();
    example.connect();
    example.directorio("raul");
    example.listDirectory();
    example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
    //example.getFile();
    example.close();

  • I need to download ferefox 9.0 but I cannot find it anywhere. Who can help me with this?

    I need to download ferefox 9.0 but I cannot find it anywhere. Who can help me with this?

    Please note that running out of date versions of Firefox is not recommended, as you will open yourself up to known security issues, alongside bugs and other issues. Is there a specific problem you are having with Firefox that I can help you with?
    You can download Firefox 9 at [http://ftp://ftp.mozilla.org/pub/firefox/releases/9.0.1/win32/en-US/ ftp://ftp.mozilla.org/pub/firefox/releases/9.0.1/win32/en-US/]

  • HT201066 I have problem with recently with playing DVDs on my iMac. the problem only with DVDs, please anybody can help me solve this problem?

    I have problem with recently with playing DVDs on my iMac. the problem only with DVDs, please anybody can help me solve this problem?

    Get a lens cleaner disc. One with brushes and try that. CDs and DVDs use different lenses, so since CDs load and play, I strongly suspect a dirty lens.

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Is there really no one who can help me with my question postet 3 days ago!?

    I have a problem with blurry images after publishing -Am I really the only one who thinks this is a big problem -I tried to get some help 3 days ago? Is there other forums that can help me on this topic?
    It looks fine in iweb, but not in the browser after publishing... I'ts only with small logo images with hard graphichs in jpeg, its not my compression, it looks fine before publishing...

    dear wyodor, I thought that I explained my problem all right in my post? well,
    when I put a logo in the corner of my site -in my case a jpg file with some text, it looks good in iweb, but after publishing its not possible to read the small text because of the way iweb compress photos - my question is -can I do anything to keep the jpeg-compression i made i photoshop? Is there no way in iweb to control the compression? Its really frustrating -and the only really problem I have with iweb
    se how my logo looks im my site:
    http://web.mac.com/pierrienevoldsen/24x36.dk/om_24x36.dk.html
    I have the same logo twice now just to check different advises, but still its impossible to read the small lettes -but not in iweb

  • Actually i don't  know where to post this, but I'm MBA student and have to do a project about the HR functions in a famous company. and I'd like to talk about Apple inc, so how can i get some information about that, and who can help me in this?

    Can anyone help me in this?

    Sara ~ Apple's mission statement is HERE. But the following statement from Apple's now-CEO Tim Cook during a quarterly earnings conference call on 21 January 2009 may give more insight:
    "There is an extraordinary breadth and depth and tenure among the Apple executive team, and these executives lead over 35,000 employees that I would call "all wicked smart". And that's in all areas of the company, from engineering to marketing to operations and sales and all the rest. And the values of our company are extremely well entrenched.
    We believe that we're on the face of the Earth to make great products, and that's not changing. We're constantly focusing on innovating. We believe in the simple, not the complex. We believe that we need to own and control the primary technologies behind the products we make, and participate only in markets where we can make a significant contribution.
    We believe in saying no to thousands of projects so that we can really focus on the few that are truly important and meaningful to us. We believe in deep collaboration and cross-pollination of our groups, which allow us to innovate in a way that others cannot.
    And frankly, we don't settle for anything less than excellence in every group in the company, and we have the self-honesty to admit when we're wrong and the courage to change. And I think, regardless of who is in what job, those values are so embedded in this company that Apple will do extremely well."

  • Who can help me with this form?

    Having some problems with the form ive placed on my site.
    I cant find the problem. Is there someone who can tell me what i have done wrong.
    you can see the form on.
    http://www.salontouche.nl/explorers.htm
    and the error i get is..
    Oops! This page appears broken. DNS Error - Server cannot be found.
    hope to get some advice..
    this is the contactscript..
    <?php error_reporting(0);
        // VALUES FROM THE FORM
        $name        = $_POST['name'];
        $email        = $_POST['email'];
        $message    = $_POST['msg'];
        // ERROR & SECURITY CHECKS
        if ( ( !$email ) ||
             ( strlen($_POST['email']) > 200 ) ||
             ( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)* )\.([A-Za-z]{2,})$#", $email) )
            print "Error: Invalid E-Mail Address";
            exit;
        if ( ( !$name ) ||
             ( strlen($name) > 100 ) ||
             ( preg_match("/[:=@\<\>]/", $name) )
            print "Error: Invalid Name";
            exit;
        if ( preg_match("#cc:#i", $message, $matches) )
            print "Error: Found Invalid Header Field";
            exit;
        if ( !$message )
            print "Error: No Message";
            exit;
    if ( strpos($email,"\r") !== false || strpos($email,"\n") !== false ){ 
            print "Error: Invalid E-Mail Address";
            exit;
        if (FALSE) {
            print "Error: You cannot send to an email address on the same domain.";
            exit;
        // CREATE THE EMAIL
        $headers    = "Content-Type: text/plain; charset=iso-8859-1\n";
        $headers    .= "From: $name <$email>\n";
        $recipient    = "[email protected]";
        $subject    = "Reactie van uw Website";
        $message    = wordwrap($message, 1024);
        // SEND THE EMAIL TO YOU
        mail($recipient, $subject, $message, $headers);
        // REDIRECT TO THE THANKS PAGE
        header("Location: http://www.salontouche.nl/thanks.php");
    ?>
    regards

    Having some problems with the form ive placed on my site.
    I cant find the problem. Is there someone who can tell me what i have done wrong.
    you can see the form on.
    http://www.salontouche.nl/explorers.htm
    and the error i get is..
    Oops! This page appears broken. DNS Error - Server cannot be found.
    hope to get some advice..
    this is the contactscript..
    <?php error_reporting(0);
        // VALUES FROM THE FORM
        $name        = $_POST['name'];
        $email        = $_POST['email'];
        $message    = $_POST['msg'];
        // ERROR & SECURITY CHECKS
        if ( ( !$email ) ||
             ( strlen($_POST['email']) > 200 ) ||
             ( !preg_match("#^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)* )\.([A-Za-z]{2,})$#", $email) )
            print "Error: Invalid E-Mail Address";
            exit;
        if ( ( !$name ) ||
             ( strlen($name) > 100 ) ||
             ( preg_match("/[:=@\<\>]/", $name) )
            print "Error: Invalid Name";
            exit;
        if ( preg_match("#cc:#i", $message, $matches) )
            print "Error: Found Invalid Header Field";
            exit;
        if ( !$message )
            print "Error: No Message";
            exit;
    if ( strpos($email,"\r") !== false || strpos($email,"\n") !== false ){ 
            print "Error: Invalid E-Mail Address";
            exit;
        if (FALSE) {
            print "Error: You cannot send to an email address on the same domain.";
            exit;
        // CREATE THE EMAIL
        $headers    = "Content-Type: text/plain; charset=iso-8859-1\n";
        $headers    .= "From: $name <$email>\n";
        $recipient    = "[email protected]";
        $subject    = "Reactie van uw Website";
        $message    = wordwrap($message, 1024);
        // SEND THE EMAIL TO YOU
        mail($recipient, $subject, $message, $headers);
        // REDIRECT TO THE THANKS PAGE
        header("Location: http://www.salontouche.nl/thanks.php");
    ?>
    regards

  • Questions on Materialized Views and MV Log tables

    Hello all,
    Have a few questions with regards to Materialized View.
    1) Once the Materialized View reads the records from the MLOG table the MLOG's records get purged. correct? or is it not the case? In some cases I still see (old) records in the MLOG table even after the MV refresh.
    2) How does the MLOG table distinguish between a read that comes from an MV and a read that comes from a user? If I manually execute
    "select * from <MLOG table>" would the MLOG table's record get purged just the same way as it does after an MV refresh?
    3) One of our MV refreshes hangs intermittently. Based on the wait events I noticed that it was doing a "db file sequential read" against the master table. Finally I had to terminate the refresh. I'm not sure why it was doing sequential read on the master table when it should be reading from the MLOG table. Any ideas?
    4) I've seen "db file scattered read" (full table scan) in general against tables but I was surprised to see "db file sequential read" against the table. I thought sequential read normally happens against indexes. Has anyone noticed this behaviour?
    Thanks for your time.

    1) Once all registered materialized views have read a particular row from a materialized view log, it is removed, yes. If there are multiple materialized views that depend on the same log, they would all need to refresh before it would be safe to remove the MV log entry. If one of the materialized views does a non-incremental refresh, there may be cases where the log doesn't get purged automatically.
    2) No, your query wouldn't cause anything to be purged (though you wouldn't see anything interesting unless you happen to implement lots of code to parse the change vectors stored in the log). I don't know that the exact mechanism that Oracle uses has been published, though you could go through and trace a session to get an idea of the moving pieces. From a practical standpoint, you just need to know that when you create a fast-refreshable materialized view, it's going to register itself as being interested in particular MV logs.
    3) It would depend on what is stored in the MV log. The refresh process may need to grab particular columns from the table if your log is just storing the fact that data for a particular key changed. You can specify when you create a materialized view log that you want to store particular columns or to include new values (with the INCLUDING NEW VALUES) clause. That may be beneficial (or necessary) to the fast refresh process but it would tend to increase the storage space for the materialized view log and to increase the cost of maintianing the materialized view log.
    4) Sequential reads against a table are perfectly normal-- it just implies that someone is looking at a particular block in the table (i.e. looking up a row in the table by ROWID based on the ROWID in an index or in a materialized view log).
    Justin

  • Question on Materialized View Log Table

    Hello,
    One of our MLOG table keeps growing without the records getting flushed out ...The Materiazed view gets refreshed successfully though...The master/mlog tables are remote..
    There is only one MV attached to the master table as evident from the results below...
    //On the Master site
    select owner,name, mview_site, mview_id from all_registered_mviews where owner='SSP' and name='TRANS_STATUS'
    Owner Name MVIEW_SITE MVIEW_ID
    SSP TRANS_STATUS SSPRD     12864
    The above output is expected and good but I was surprised to see the output below...
    select owner,master,to_char(mview_last_refresh_time,'MM-DD-YYYY HH:MI:SSAM'), mview_id from all_base_table_mviews where owner='SSP' and master='TRANS_STATUS'
    Owner Master MVIEW_LAST_REFRESH_TIME MVIEW_ID
    SSP TRANS_STATUS     01-27-2011 06:32:05PM     12724
    SSP TRANS_STATUS     01-29-2011 12:03:06PM     12844
    SSP TRANS_STATUS     06-18-2011 07:32:55AM     12864
    I'm not sure why I see differnt MVIEW_IDs...We refresh this MV every day....
    On 01-27-2011 it was a regular normal refresh using dbms_mview.refresh
    On 01-29-2011 we had to drop and recreate our MV and then refresh it using dbms_mview.refresh
    On 06-18-2011 it was a regular normal refresh using dbms_mview.refresh
    Why are there different MVIEW_IDs when there is only one MV that is attached to the master table. Could this be the reason why the logs are not getting flushed out?
    Thanks for your time...

    What is your database version?
    How did you even manage to create two objects with the same name?
    As I know, it is impossible, oracle will throw errors like below:
    SQL> create table FOO (str varchar2(5), num number(3,0));
    Table created.
    SQL> CREATE MATERIALIZED VIEW FOO
      2  BUILD DEFERRED
      3  REFRESH COMPLETE ON DEMAND
      4  enable query rewrite as
      5  select SUM(NUM)
      6  from FOO GROUP BY STR;
    from FOO GROUP BY STR
    ERROR at line 6:
    ORA-00955: name is already used by an existing object
    SQL>

  • Who can help me with this query???

    I have a table looks like:
    Group_id, Individual_id, field1, field2, field3...
    For individuals in this table who shares the same group id, they have exact same, filed1, 2, 3, 4 but different individual_id.
    How can I comebine them so I can creat a table that looks like:
    group_id, (Individual_id1, individual_id2, 3...), field1, field2, field3....
    Please Help!

    Use the WM_CONCAT function.
    http://www.psoug.org/reference/undocumented.html#uwmc

Maybe you are looking for