How does oracle accesses v$ tables or views in mount state

Hi All,
I want to know how oracle accesses fixed tables/views while the database is in mount state.
I did the following:
1. Started the database in mount state.
2. Query v$database ,v$datafile--Successful
3. Queried dba_data_files.---ERROR
SQL> select * from dba_data_files;
select * from dba_data_files
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only
As per my understanding goes,all these tables are a part of Data Dictionary which is stored physically on system tablespace.
Now since the database is mounted ,it cannot access any part of system tablespace's data.Am I right??
So how does it queries v$ tables and other fixed database tables in mount state???
Thanks in advance
Saket Bansal

the v$(dynamic) view comes from instance
the dba(static) views comes from dictionary
but there is only one view can be look while instance is in nomount mode
and that is
v$instance ,,,
BUT ONLY THING I DON KNOW IS WHY WE CAN STILL DESCRIBE THE V$ VIEWS WHILE INSTANCE IS IN NOMOUNT MODE,,,
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1248576 bytes
Variable Size 75498176 bytes
Database Buffers 205520896 bytes
Redo Buffers 2945024 bytes
SQL> desc v$datafile;
Name Null? Type
FILE# NUMBER
CREATION_CHANGE# NUMBER
CREATION_TIME DATE
TS# NUMBER
RFILE# NUMBER
STATUS VARCHAR2(7)
ENABLED VARCHAR2(10)
CHECKPOINT_CHANGE# NUMBER
CHECKPOINT_TIME DATE
UNRECOVERABLE_CHANGE# NUMBER
UNRECOVERABLE_TIME DATE
LAST_CHANGE# NUMBER
LAST_TIME DATE
OFFLINE_CHANGE# NUMBER
ONLINE_CHANGE# NUMBER
ONLINE_TIME DATE
BYTES NUMBER
BLOCKS NUMBER
CREATE_BYTES NUMBER
BLOCK_SIZE NUMBER
NAME VARCHAR2(513)
PLUGGED_IN NUMBER
BLOCK1_OFFSET NUMBER
AUX_NAME VARCHAR2(513)
FIRST_NONLOGGED_SCN NUMBER
FIRST_NONLOGGED_TIME DATE
SQL> desc v$tablespace;
Name Null? Type
TS# NUMBER
NAME VARCHAR2(30)
INCLUDED_IN_DATABASE_BACKUP VARCHAR2(3)
BIGFILE VARCHAR2(3)
FLASHBACK_ON VARCHAR2(3)
ENCRYPT_IN_BACKUP VARCHAR2(3)
HOW DOES THIS COME FROM ????
Edited by: jignesh kankrecha on Jul 6, 2009 8:12 AM

Similar Messages

  • How does Oracle determine a table as key-preserved or not?

    I tried joining employees and departments in HR schema. Normally, departments is not key-preserved in the join operation. But I've arranged in the view so that each department has exactly one employee, so that dept_no may become the key for the join. But still, it said "cannot modify non key-preserved table". Any hints? does the joining type (left or right or inner or outer) affect the mechanism on how Oracle determine which are key-preserved and which are not? thanks.

    Hi,
    You can achive in many ways... demo
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Users\Pavan>sqlplus scott/tiger@orcl
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Dec 19 14:19:36 2010
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table t_parent(
      2  code varchar2(10)
      3  ,description varchar2(50)
      4  )
      5  ;
    Table created.
    SQL> create table t_detail(
      2  the_code varchar2(10)
      3  ,the_date date
      4  );
    Table created.
    SQL> insert into t_parent values('a','first letter');
    1 row created.
    SQL> insert into t_detail values ('a',sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t_parent;
    CODE       DESCRIPTION
    a          first letter
    SQL> select * from t_detail;
    THE_CODE   THE_DATE
    a          19-DEC-10
    SQL> select * from t_parent join t_detail on the_code=code;
    CODE       DESCRIPTION                                        THE_CODE
    THE_DATE
    a          first letter                                       a
    19-DEC-10
    SQL> create or replace view test_v
      2  as
      3  select *
      4  from t_parent join t_detail on the_code=code;
    View created.
    SQL> select * from test_v;
    CODE       DESCRIPTION                                        THE_CODE
    THE_DATE
    a          first letter                                       a
    19-DEC-10
    SQL> update test_v set description='x';
    update test_v set description='x'
    ERROR at line 1:
    ORA-01779: cannot modify a column which maps to a non key-preserved table
    SQL> create or replace trigger trig1
      2   instead of update on test_v
      3      for each row
      4      begin
      5      if :old.description <> :new.description then
      6      update t_parent
      7      set description = :new.description;
      8    end if;
      9   end;
    10  /
    Trigger created.
    SQL> update test_v set description='x';
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from test_v;
    CODE       DESCRIPTION                                        THE_CODE
    THE_DATE
    a          x                                                  a
    19-DEC-10- Pavan Kumar N

  • How does Oracle manage to query a view?

    Hello,
    We are using an Oracle 9i database.
    We are using Discoverer, but I experience some difficulties understanding a query built by Discoverer.
    I think this is a basic explanation that I want. That's the reason why I decided to post my message under this forum.
    The query I would like an explanation is such as this :
    SELECT C.colB, count(C.col1), count(C.col2)
    FROM (select b.colA, b.colB, a.col1, MAX(a.col2)
    FROM tableA, tableB
    WHERE a.joinB = b.joinA
    GROUP BY b.colA, b.colB, a.col1) C
    WHERE C.colA = 'blabla'
    GROUP BY C.colB;
    So, my question is :
    Is the sub-select, (maybe it's not the right name!), executed regardless the condition "C.colA = 'blabla'", basically does it build the full view regardless the "external" condition ?
    or, is the sub-select aware of the condition when it is built into memory ?
    Is there a web-site, or documentation about such question?
    In advance, thanks a lot for your help.
    Olivier

    Check if the following helps. In your case subquery will be executed first because of 'MAX'.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/opt_ops.htm#1005152
    /*****Extract from above link**********/
    Mergeable and Nonmergeable Views
    The optimizer can merge a view into a referencing query block when the view has one or more base tables, provided the view does not contain any of the following:
    Set operators (UNION, UNION ALL, INTERSECT, MINUS)
    A CONNECT BY clause
    A ROWNUM pseudocolumn
    Aggregate functions (AVG, COUNT, MAX, MIN, SUM) in the select list
    When a view contains one of the following structures, it can be merged into a referencing query block only if Complex View Merging is enabled:
    A GROUP BY clause
    A DISTINCT operator in the select list
    /*********************************************/

  • In Photo 1.0, how does one access the map showing where all photos were taken, as could be done previously in iPhoto?

    In Photo 1.0, how does one access the map showing where all photos were taken, as could be done previously in iPhoto?

    Hi JohnDory,
    The information side-bar from iPhoto has been removed in Photos App, and so it's been converted into a pop-up window showing both the exposure, aperture and so technical photo parameters, as well as the comments, faces and LOCATION for that photo.
    This small floating window is shown whenever you click the button in the app title bar, right clicking a specific photo or pressing ⌘i
    If you open the albums view (clicking in the name of the album list, NOT an album name, you can see in your left sidebar - which can be shown or hidden) and press ⌘i without selecting a specific photo the Info pop-up will show the map for your whole library (as well as the total amount of photos, videos, GB used, etc)
    So, I'm afraid the "Locations" view (which I really loved) from iPhoto has been ripped off... and we can only get "some sort of locations view" by this method.
    As for locations... there is no option for manual geotagging (so, setting location to a specific photography which doesn't have it yet)... that really ****** me off 
    Regards,
    braincasualties.

  • How does oracle write to datafiles in a tablespace?

    hi all
    Suppose I have a tablespace consisting of two datafiles. When I need to wirte data onto it,how does ORACLE
    write ? Does it initially write to the first datafile and then write to the second datafile when the first datafile getting full or write to two datafiles in an random manner?
    Thanks for your reply.

    hi all
    I have read reply in reponse to thread "tablespaces or datafile " and testcase in that thread shows that ORACLE will write to datafiles in round-robin manner.
    But my test show totally different result:
    SQL>
    SQL> create tablespace ts_maoxl
    2 datafile '/crash/oradata/TESTDB/datafile/1.bdf' size 5m,
    3 '/crash/oradata/TESTDB/datafile/2.bdf' size 5m
    4 EXTENT MANAGEMENT LOCAL;
    Tablespace created
    SQL>
    SQL> create table maoxl(id char(2000),id3 char(2000),id2 char(2000)) tablespace ts_maoxl;
    Table created
    SQL>
    SQL> declare
    2 begin
    3 for i in 0..99 loop
    4 insert into maoxl values('x','y','z');
    5 end loop;
    6 commit;
    7 end;
    8 /
    PL/SQL procedure successfully completed
    SQL> select count(*) from maoxl;
    COUNT(*)
    100
    SQL> select t.file_id,t.extent_id,bytes from dba_extents t where tablespace_name='TS_MAOXL';
    FILE_ID EXTENT_ID BYTES
    5 0 65536
    5 1 65536
    5 2 65536
    5 3 65536
    5 4 65536
    5 5 65536
    5 6 65536
    5 7 65536
    5 8 65536
    5 9 65536
    5 10 65536
    5 11 65536
    5 12 65536
    5 13 65536
    14 rows selectedAll extents are allocated from datafile 5,none from datafile 6. My result is different from yours.
    BTW,The result of my testcase was from a 10.2.0.4 database running on HP-UNIX
    What could be the problem?
    thanks

  • How does Oracle hanlde I/O error

    I've setup an Oracle RAC using four Linux RH hosts connected with fiber channel to a DS4700 disk array.
    In case of a failover between the FC paths it could happen that a disk I/O request return error. How does Oracle handle that, will Oracle retry the error ?

    There are several possibilities to stripe a tablespace.
    You can create
    a) an ORACLE Tablespace with several datafiles
    b) an OS mountpoint which has striped several disks
    If you've an existing tablespace and want to stripe this tablespace with ORACLE than you can create an additional tablespace wtih several datafiles which are on different disks. After this you can use
    - imp/exp
    - CTAS
    - online redifinition
    to copy the tables to the tablespace.
    You should also consider that you've a less safe system if you have several disks which are not mirrored or on a RAID 5 system.

  • How does oracle execute a correlated subquery .... some confusion

    How does oracle 10g execute a correlated subquery?
    I read some articles online & i am a little confused.
    example:
    select * from emp e
    where e.deptno in (select d.deptno from dept d
    where e.deptno = d.deptno);
    My questions .......
    1.In the above example, does oracle read the entire outer table first and then run the inner query using the rows returned by the outer query?
    I read in some articles that they execute simultaneously.
    How does this work?
    2.Should the inner query have lesser amount of rows compared to the outer query for a good performance?
    3.Can every correlated subquery be converted to a join and if so which one to use?
    Truly appreciate any inputs on how oracle executes it at the backend.
    Thanks in advance.

    user10541890 wrote:
    How does oracle 10g execute a correlated subquery?
    I read some articles online & i am a little confused.
    example:
    select * from emp e
    where e.deptno in (select d.deptno from dept d
    where e.deptno = d.deptno);
    My questions .......
    1.In the above example, does oracle read the entire outer table first and then run the inner query using the rows returned by the outer query?
    I read in some articles that they execute simultaneously.
    How does this work?SQL is not a procedural language. SQL code specifies what the system sill do, not how the system wlll do it; that's entirely up to the system.
    What does it matter to you whether the two are done together, or if one is completed before the other begins?
    The system will probably choose to run ucorellated subqueiris only once, and correlated queries multiple times as needed.
    2.Should the inner query have lesser amount of rows compared to the outer query for a good performance?That usually doesn't matter.
    It some cases, you may want to consider whether the subquery is correlated or not. If the subquery is very costly, and produces, say, 1 million rows, but you know the main query will only produce about 5 rows, then you may want to do a correlated subquery rather than an uncorrelated one.
    3.Can every correlated subquery be converted to a join and if so which one to use?I believe so.
    Use whichever is easier to code and debug. That will change depnding on the data and the requirements.
    If performance is an issue, try different ways. Usually, where I've noticed a big difference, join was fastest.
    By the way, it's unusual to have a correlated IN-subquery.
    Usually IN-subqueris are uncorrelated, like this:
    select  *
    from      emp     e
    where     e.deptno     in ( select  d.deptno
                        from    dept     d
                      );(This and the queries below produce the same resutls as your original query.)
    Correlated subqueries are usually used for scalar subqueries or EXISTS subqueries, like this:
    select  *
    from      emp     e
    where     EXISTS ( select  d.deptno
               from    dept     d
                    where   e.deptno = d.deptno
                );To do the same thing with a join:
    select  e.*
    from      emp     e
    join     dept     d     on     e.deptno     = d.deptno
    ;assuming dept.deptno is unique.

  • How does impdp handles external tables

    I am just done with schema import and one of the package is invalid because it is referring the External Table. I am getting the error " Table or View does not exist".
    How does impdp handles external tables ?
    Do we need to replicate the directories and files from the source to imported destination ?
    Thanks

    Hi,
    Yes...
    external table directory not available on imported destination operating system
    You need to create the directories and files from the source to imported destination
    Recompile the invalid package
    Thanks

  • How does oracle i officially /i define b Database /b

    <h1>How does oracle <i>officially</i> define <b>Database</b></h1>
    There are many definitions I have found on google ( by searching define: database )
    how does oracle <i>officially</i> define <b>Database</b>.

    From
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref11
    An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information. A database server is the key to solving the problems of information management. In general, a server reliably manages a large amount of data in a multiuser environment so that many users can concurrently access the same data. All this is accomplished while delivering high performance. A database server also prevents unauthorized access and provides efficient solutions for failure recovery.

  • How does oracle text differentiate between various document formats?

    how does oracle text differentiate between text documents of various formats. does it read binary headers or a file extension is necessary?
    please comment..

    Oracle uses the inso_filter for document filtering as desribed in the documentation:
    http://download-west.oracle.com/docs/cd/B10501_01/text.920/a96518/afilsupt.htm#625110
    I did a little test (included below) where I copied a .pdf file to a file with a .test extension and it was still able to index it and search it, so apparently it does not need the file extensions and must read the header.
    scott@10gXE> BEGIN
      2   CTX_DDL.CREATE_PREFERENCE ('test_datastore', 'FILE_DATASTORE');
      3   CTX_DDL.SET_ATTRIBUTE ('test_datastore', 'PATH', 'c:\oracle');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    scott@10gXE> CREATE TABLE test_tab
      2    (id        NUMBER,
      3       docs        VARCHAR2 (2000),
      4       CONSTRAINT test_tab_id_pk PRIMARY KEY (id))
      5  /
    Table created.
    scott@10gXE> INSERT INTO test_tab VALUES (1, 'master~1.pdf')
      2  /
    1 row created.
    scott@10gXE> CREATE INDEX test_tab_idx ON test_tab (docs)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE test_datastore
      5        FILTER    CTXSYS.INSO_FILTER')
      6  /
    Index created.
    scott@10gXE> SELECT id FROM test_tab
      2  WHERE CONTAINS (docs, 'meat') > 0
      3  /
            ID                                                                     
             1                                                                     
    scott@10gXE>
    scott@10gXE> DROP INDEX test_tab_idx
      2  /
    Index dropped.
    scott@10gXE> HOST COPY c:\oracle\master~1.pdf c:\oracle\master.test
    scott@10gXE> INSERT INTO test_tab VALUES (2, 'master.test')
      2  /
    1 row created.
    scott@10gXE> CREATE INDEX test_tab_idx ON test_tab (docs)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE test_datastore
      5        FILTER    CTXSYS.INSO_FILTER')
      6  /
    Index created.
    scott@10gXE> SELECT id FROM test_tab
      2  WHERE CONTAINS (docs, 'meat') > 0
      3  /
            ID                                                                     
             1                                                                     
             2                                                                     
    scott@10gXE>

  • How does one access "footers" in Dreamweaver cs6?

    How does one access "footers" in Dreamweaver cs6?

    How does one access "footers" in Dreamweaver cs6?
    Depends on your code.  If your site uses Server-side Includes, it's quite possible the footers are in a separate file in your site folder such as footer.php or footer.incl, or footer.html.
    If that's the case here, you need a local testing server to see them in your parent page.
    Nancy O.

  • How does oracle know which AO Framework page or process to execute.

    Hi,
    How does oracle know which AO Framework page or process to execute. I use to think this was defined in the Function definition. But looking through some Function definition in HRMS setup I noticed some of them simply calling the same first page, such as the one below used in many managers menus. This initial page is the page that allows managers to choose the employee they want to work on.
    OA.jsp?akRegionCode=HR_PERSON_TREE_TOP_SS&akRegionApplicationId=800.
    My question is, after executing this initial page, how does Oracle then varies the OA page by the diffferent functions?

    Hi;
    Thanks for sharing
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding*
    Regard
    Helios

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

  • On ipad 2 ps touch just keeps crashing it appears from reviews this is a common problem, how does one access a refund

    On ipad 2 ps touch just keeps crashing it appears from reviews this is a common problem, how does one access a refund

    As stated, completely exit pst (don't just leave the app) and then activate airplane mode. Then open PST and change your cloud sync option to "off". Once you deactivate airplane mode, you should be able to open PST again without the crash. Iirc, I had to work at opening PST and accessing my settings very quickly or it would still crash before opening the settings page. Unfortunately, we have to completely forget about cloud sync until the bug is fixed. Save any image files back to the ios camera roll to share with other apps or upload elsewhere.

  • How does Oracle client communicate with a database server

    Looking to idenify how Oracle Database Client for OpenVMS communicates with database server and whether the protocol used is secure. Realize that it is using whatever the configured network protocol is (ie. tcpip) but is languauge it uses ( ie. SQL, etc..)  secured/encrypted and if not what steps can be taken to encypt

    Arizuddin wrote:
    I have installed oracle client 10g on client pc for getting connection to Oracle databse 10g (runng on windows server) usng ODBC through SAGE ACC PAC (ERP). Working fine earlier. Now all of a suddent user starts complaining about database connection. When checked his pc registry values. Two values of ODBC keys are reset to null. Those are DSN and DRIVER values. How come this values reset to null? What is causing this to reset?Nothing in this has anything to do with the sever. You need to check what the client did on his machine that caused registry to get modified?
    How does oracle ODBC works with Oracle database? Need to know all the steps involved?The connectoin from any client is initiated by a client process. This client process is supposed to get a server process to do his work. So if this is done, the client can work now with oracle . Please see the concepts guide for the gory details of the entire process.
    HTH
    Aman....

Maybe you are looking for

  • Help on Deleting Node in Tree?

    I'm trying to delete a node on a tree and some weird stuff is occurring. Here is my code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" initialize="init();" layout="absolute"> <mx:Script> <![CDATA[

  • How to Locate "Query View u2013 Selection" web item in WAD

    Hi,    Where/How can i find the "Query View u2013 Selection" web item in Blank Templete of a WAD or From where i can install it from Business Content Thanks

  • Best way to use .mpg in FCE?

    Hi everyone, I have a bunch of video files in .mpg format that I'd like to import into Final Cut Express. I'm told that DV format is the best format to use with FCE. Thoughts on this? Also, what is the best way to convert my .mpgs to the best format

  • How to add image numbers to image

    I  need to send some jpegs to the lab to be printed as proofs. Is there any way to add the image numbers to each print? Note: I am not talking about printing from photoshop to my printer. I know how to do that. I want to add the image numbers into th

  • Input Help H_T001W

    Hi, We are using H_T001W input help for our customer field PLANT. It brigs back the plant descrition instead of the plant id which is the one we want (and as it is done for example in transaction ME21). How can we make change this?. Rgds, jose