determine if the table is use rowid and urowid

Database: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

How can we determine whether a table is with rowid and urowid?

Thank you.

>
How can we determine whether a table is with rowid and urowid?
>
Oracle uses a type of ROWID data for all tables; Physical ROWID logical ROWID for the tables organized by index and ordinary tables.

You, the user can also use a ROWID data type and you can use a data UROWID type.

Even if you do not use a real Oracle data type provides a virtual ROWID that you can query. The virtual only takes place in the table but is built on the fly if you use it in a query.
ROWID values are actually stored in the index, but not stored in the tables unless the user sets a ROWID column.

There is no virtual UROWID. If you try to add a query, you will get an exception

select rowid, urowid, e.* from emp e

ORA-00904: "UROWID": invalid identifier

Refer to the 'presentation of ROWID and UROWID Datatypes' and "The virtual ROWID" in database Concepts
http://docs.Oracle.com/CD/B28359_01/server.111/b28318/datatype.htm#i6732

This article has a detailed explanation of the ROWID, UROWID. data types, the virtual and how Oracle uses.

Tags: Database

Similar Questions

  • POC: How to clean the tables dbo. ActivityInstance and dbo. ActivityInstance

    Hello

    I am looking for a procedure to clean the tables dbo. ActivityInstance and dbo. ActivityInstance in the OrchestratorProcess of Cisco Process Orchestrator 3.0 database

    Is there a parameter must be equal to the CPO database to automatically activate an own? Y at - it a parameter setting in the order?

    Concerning

    Hello!

    I think you are looking for to empty ActivityInstance and ActivitiyInstanceArchive in the process of the CPO DB. Have you noticed they are very rich in number of lines or?

    The works of CPO way are like that...

    (1) process run and store this data in the * Instance tables (ActivityInstance, ProcessInstance, etc.)

    (2) once they reach a terminal State (successful, failed, etc.), they are migrated on to the * InstanceArchive tables (ActivitiyInstanceArchive, ProcessInstanceArchive, etc.)

    (3) the GROOMS server process DB every night (by default at 23:00 server time) and deletes the old processes off based on your settings

    So a few things here to watch...

    (1) what are your settings of cleaning? You can check under Administration-> database settings. Right-click on the DB process-> properties. Click on Configuration. You want to watch the 'grooming of process Instances. By default, it's 15 days worth of data, but they may not be aggressive enough for you... so you can change out there. You can also click on the button 'Groom Now' and force a groom to arrive just here and or wait for the server is doing during the night. This will remove things from the * archive tables * ONLY * however.

    (2) make sure that you check not a ton of custom process. You should always consider what you and aren't archiving in your system. If you need help determining / looking at this TAC case would be a good start and they can help or contact me and I can watch as well.

    There might be a chance of grooming fails for some reason any, however, if this would be the case (and you could see to the title of operations-> audit, then you will need to open a TAC case and submit journals so support can view them and see what happens.

    Finally, if you are just looking to delete all lines through SQL in these tables and understand the possible problems that come with, (again), you open a TAC case and they could provide you with queries SQL to do such. The preference would be to not to post such things here, as it's supposed to be a Cisco support activity and not something we want to people all the time. It's really something of type resort last and normally means that you have a larger ongoing problem to take a look at TAC.

    -Shaun Roberts

    Technical leader, Services

    [email protected] / * /.

  • Insert data into the table without using the insert or select the command

    Hello

    Is there anyway to insert data from one table to another table, without using insert, and then select the command in the same pattern.
    Note: the two tables have the same structure.

    ALTER table... Swap partition...

  • Variables in the table of contents, glossary and Index

    RoboHelp can use variables in the table of contents, glossary and Index.
    My project needs variables both in terms and definitions (glossary and Index).

    Hi OLH

    That is right. But who knows what will happen in the next version. Currently you can use conditional tags for the table of contents and Index, but not of variables. From a development perspective, there are a lot of problems with the help of the variables of table of contents, glossary and Index, it is not as simple as adding variables to the content of the main .htm file. But it would be a great improvement for the next version.

    Don't forget to submit an enhancement request and play your part by Adobe to aware of these issues.

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Kind regards
    Craig

  • When a photo has for example a bright sky beside the dark object, using lights and shadows can cause a 'halo' or double edge to appear. How can I avoid this?

    When a photo for example has a bright sky next to the dark object, using lights and shadows to reduce high contrast can cause a 'halo' or double-edge to appear. How can I avoid this?

    From my experience, this isn't a problem that has a simple solution, such as moving a slider or a combination of the sliders in LR. It requires rather a major change in the technique, at the unit or in office. Some pros (I am not one) tire ALWAYS support HDR or this reason - better transition from highlights to shadows, then tweak the image with much less "heavy" necessary. Another popular technique is the luminosity masking and blending in PS. There is a ton of information on this topic (just do a search on Youtube), but it's not easy to learn or do, but it can eliminate this problem.

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • Questions on the tables of materialized views and MV newspaper

    Hi all

    Have some questions about Materialized View.

    (1) once the materialized view reads the records from the table MLOG, reviews the MLOG get purged. fix? or is that not the case? In some cases, I see still (old) records in the MLOG table even after updating MV.

    (2) how the table MLOG distinguishes between a reading which comes from a MV and a reading that comes from a user? If I execute manually
    "Select * < table MLOG > ' could get record of the table MLOG redacted all the same way as it does after a refresh of MV?

    (3) one of our MV updates crashes intermittently. Based on the events of waiting I noticed that it was a 'db file sequential read' against the main table. Finally I had to put an end to the update. I don't know why it was sequential reading on the main table when she should be reading the table MLOG. Any ideas?

    (4) I saw 'file db scattered read' (full table scan) usually on tables, but I was surprised to see 'db file sequential read' against the table. I thought sequential read occurs normally against the index. All the world has noticed this behavior?

    Thanks for your time.

    (1) once all the registered materialized views have read a particular line in a trunk of materialized view, it is removed, Yes. If there are multiple materialized views that are based on the same newspaper, they would all need to refresh before it would be safe to delete the log entry for MV. If one of the materialized views is no incremental updating, there may be cases where the log purge automatically.

    (2) No, your query does not cause anything be served (although you wouldn't see something interesting unless you get to implement a lot of code to analyze change vectors stored in the journal). I don't know the exact mechanism used by Oracle has been published, if you could go through and draw a session to get an idea of the moving parts. From a practical point of view, you just need to know that when you create an updatable materialized view fast, it will register as interested especially newspapers MV.

    (3) it depends on what is stored in the log of MV. The update process may need to recover specific table columns if your log stores just the fact that the data for a particular key changed. You can specify when you create a materialized view that you want to store specific columns or include the new clause values (with the NEW VALUES INCLUDING). It is perhaps beneficial (or necessary) for the refreshment quick process, but it would tend to increase the storage space for the materialized view log and increase the cost of the maintianing the materialized view log.

    (4) sequential reads on a table are perfectly normal - it just means that someone looking for a block of data in the table (i.e. looking a line in the table of ROWID based on the ROWID in an index or a materialized view log).

    Justin

  • To access the Oracle Postgres using DG4ODBC and very slow psqlodbc

    I've set up DG4ODBC a base of Oracle 11 g Windows 2003 32-bit to access a Windows 2008 64 bit 9.1 database Postgres, you use the psqlodbc (32-bit) driver.

    I can't do it because of the queries, but they are very slow. The reason is that the place where clause of the query is deleted somewhere along the line (I've seen actual queries run by Postgres using pgAdmin server status screen) and all the rows of the table are extracted from Postgres. Naturally with tables bigger than the few lines which means do a full table in Postgres scan, so that transfer a lot of bytes through the network.

    "For example, if I mark from Oracle like this: select * of" dps_user"@pg where 'id' = '2423', run the sql in Postgres is: select * from dps_user, which retrieves all the rows of the table! When I get the result of the query in Oracle, I get only the row with id 2423, so I guess that Oracle Gets the entire table and that he not filtering at its end.

    In a separate 32-bit Windows XP machine I have implemented the same psqlodbc driver, and ran the same query by using Microsoft Query. In this case, the query to run in Postgres contains a where clause and, therefore, it is much faster because a unique index scan is performed in Postgres, and that a line is transferred to Microsoft Query.

    Could you help me, please?

    Thank you very much

    Carlos

    Hi Carlos,
    Yes - he manipulated me the SR ;-)
    Sometimes they have a little more time and information to study can throw up the answer.

    Kind regards
    Mike

  • Disable the image in the table advanced using SPEL

    Hi all
    I'm trying to render the image in the table advanced conditionally using SPEL in a custom page.
    In the properties of the grain of the Image, I added SPEL to make the Image under certain conditions.
    When the user clicks on the image, you'll see a window.
    This works well up to this point, I am able to make the Image for certain lines.
    But the images that are rendered conditionally are disabled.
    When I click on the image it does not popup.

    Please help me solve this problem

    Thank you

    Why not add the switch with images on and off under certain conditions.

  • How to update the table by using the value of a column in a table field

    Hi all
    use APEX4.1,
    I have a tabular presentation based on the HOLIDAY table, it contains the following fields,
    Leave_id
    Employee_name
    No_of_days
    Status
    Here's the column LOV updateable status.
    Lov includes 2 values IE APPROVE and REJECT

    and I have another Table called LEAVE_HISTORY, it contains the following fields.
    Emp_name
    status
    Here whenever the ststus is updated (click the button SUBMIT) in tabular form should also be updated in the LEAVE_HISTORY of the SITUATION of the table column.

    I tried the following in the process of "WE SUBMIT AFTER CALCULATIONS AND VALIDATIONS,"
    begin
    update LEAVE_HISTORY set status= status where upper(employee_name)=upper(emp_name);
    end;
    but it is not kept up-to-date,
    When we updated through forms we can use something like this,
    update LEAVE_HISTORY set status= :P200_status where upper(employee_name)=upper(:P_200_emp_name);  <----here we are referring page item i.e (:P_200_emp_name)
    as the code above, how to run the columns in a table?
    Thank you.

    Hi Gurujothi,

    Try this,

    begin
    update LEAVE_HISTORY
    set status= :STATUS
    where upper(Emp_name)=upper(:EMPLOYEE_NAME);
    end;
    

    Brgds,
    Max

  • How to set current row in the table after use the button tab on inputText

    Hi all
    My first post.., I am beginner in ADF and I'll try to explain my problem.

    For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
    On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
    So far, everything works fine.

    When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

    My question: How can I change the current line after the tab key in this case?

    I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
    Thanks in advance.

    Hello

    My question: How can I change the current line after the tab key in this case?

    Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

    See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    to learn more on how to use the client listener and the receiving server

    Frank

  • get the table script using dbms_metadata.get_ddl but with clob field

    Thus, Oracle 11g R2...
    I use dbms_metadata.get_ddl for table scripts and it works fine...

    now, I have a table with clob field, and it does not work... I got an error "missing a closing parenthesis (ora-0907) '...
    I could paste a script I had, but I don't think that it makes no sense...

    does anyone have an experience on the use of this package on clob tables?


    TNX

    See this code.

    DECLARE
      myddl clob;
      PROCEDURE print_clob(p_clob in clob) as
        l_offset number default 1;
      BEGIN
        loop
          exit when l_offset > dbms_lob.getlength(p_clob);
          dbms_output.put_line(dbms_lob.substr(p_clob, 255, l_offset));
          l_offset := l_offset + 255;
        end loop;
      END print_clob;
      FUNCTION get_metadata return clob is
        h   number;
        th  number;
        doc clob;
      BEGIN
        h := dbms_metadata.open('TABLE');
        dbms_metadata.set_filter(h, 'SCHEMA', 'HR');
        dbms_metadata.set_filter(h, 'NAME', 'EMPLOYEES');
        th := dbms_metadata.add_transform(h, 'MODIFY');
        th := dbms_metadata.add_transform(h, 'DDL');
        --dbms_metadata.set_transform_param(th,'SEGMENT_ATTRIBUTES',false);
        doc := dbms_metadata.fetch_clob(h);
        dbms_metadata.CLOSE(h);
        return doc;
      END get_metadata;
    BEGIN
      myddl := get_metadata;
      print_clob(myddl);
    END;
    

    This procedure of print_ddl I took of the documentation.
    Use of the long VALUE. See, in the first example out put is truncated.

    SQL> SELECT dbms_metadata.get_ddl('TABLE','EMP','SCOTT') FROM dual;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
    
    SQL> set long 10000
    SQL> /
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL> SET LINESIZE 132
    SQL> SET pagesize 0
    SQL> SET LONG 1000000
    SQL> /
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    
    SQL>
    
  • Problem with the table of contents pages and books

    I use 8 HR and generate Webhelp.

    I created a project and had to change a few pages of table of contents and create TOC books instead. I deleted the pages and added books, with the same name. HR, it looks fine, but when I generate the table of contents for the page instead of the book. I tried to clear my cache in Internet Explorer, and the deletion of the page again. Still no help. I rebooted and even rebooted and still have the same thing. Can someone tell me how to solve this problem?

    Thank you.

    Indeed if a book has nothing in it, it will not appear in the table of contents. When you think about it, it is very logical. Why would you want a book to appear if nothing was inside?

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • You can scan from the feeder automactic using capture and scanning hp

    You can scan from the ADF using capture and analysis?

    Hello

    Welcome to the Microsoft Community and thanks for posting the question.

    According to the description, it seems you are trying to use the scan from ADF.

    It would be great if you can provide some clarification on this issue, so that I can help you, or move you to the right team.

    What is the model number of the printer/scanner

    Consult the manual of the scanner and follow the instructions on how to scan from the ADF

    Suggestions for a question on help forums: http://support.microsoft.com/kb/555375

    Please come back with more information on the issue so that we can help you better.

    For any help about Windows, you can still post on the Microsoft Community Forums and we will be happy to help you.

  • the new DW uses HTML5 and CCS3

    I use a very old version of Dreamweaver, but learn HTML5 and CCS3. My version of Dreamweaver uses HTML4. The new DW uses CCS3 HTML5?

    Yes, DW has now the HTML5 doctype as well as support for CSS3. Although most css3 still does not display in Design view, Live View is supported for most (some pieces still require the prefix-webkit-).

Maybe you are looking for