Viewing actual data in a .dbf file

I'm completely new at Oracle, and so I'm not sure if I know exactly how to explain my situation, but, here it is. I am trying to import a .dmp file into Oracle. I have run the imp command and have the resultant .dbf datafile, and I have added it into a tablespace, but I have absolutely no idea how to view the actual data that is contained within the .dbf datafile. I've googled everything I can think of, but no cigar... please help! Thanks for your time!
Tyler

I use the following two sqls to determine the contents of a datafile. The first query will ask for the tablespace name, and the second for the file_id. The file_id can be gotten from dba_data_files (select file_id,file_name from dba_data_files;)
column meg format 999999999
column tablespace_name format a20
set wrap off
set lines 120
set heading on
set pages 50
select round(sum(a.bytes)/1024/1024) meg,
count(*) extents,a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
from dba_extents a
where a.tablespace_name=upper('&1')
group by a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
--having round(sum(a.bytes)/1024/1024)>0
order by round(sum(a.bytes)/1024/1024)
-- second sql:
column owner format a30
column object format a30
set lines 120
set wrap off
set trunc off
set pages 50
set feedback on
column file_id format 999
select     /*+ Rule */     'free space' owner     /*"owner" of free space*/
,          ' ' object          /*blank object name*/
,          file_id                    /*file id for the extent header*/
,          block_id               /*block id for the extent header*/
,          blocks                    /*length of the extent, in blocks*/
from          dba_free_space
where          file_id=&1
union
select     /*+ Rule */ substr(owner,1,20)||' '||substr(segment_type,1,9) /*owner name (first 20 chars)*/
,          substr(segment_name,1,32)||'.'||partition_name     /*segment name*/
,          file_id                    /*file id for the extent header*/
,          block_id               /*block id for the extent header*/
,          blocks                    /*length of the extent, in blocks*/
from           dba_extents
where          file_id=&1
order by     3,4
/

Similar Messages

  • How to View Meta Data for a .fm File?

    Running WinXP Pro, SP2 and FM 7.0.
    Would like to view items such as a document's Dictionary and default zoom level. How can I get to this data?
    Thanks,
    Dave

    Save as MIF and get Graham Wideman's Mifbrowse tool at: http://www.grahamwideman.com/gw/tech/framemaker/mifbrowse.htm

  • View actual data from an EXPORT statement in the debugger

    Attention ABAP pros, ninjas, and rock stars:
    I am trying to learn more about some standard SAP code that is having a runtime error.
    IF NOT gv_cluster_key IS INITIAL.
    * Get the combinations
      IMPORT it_combi TO <plobs_in_view>
          FROM DATABASE indx(dp) ID gv_cluster_key.
    ENDIF.
    There is a mismatch on what is being imported and bombs on the IMPORT statement.
    It would be great if there was a way to see what was being stored at the memory location, and then therefore get a hint as to where the mismatch is.
    In debug, I have used Special Tools/System Areas (Internal); Area - MEMORIES and don't see anything that makes sense.
    Is there a way to see what's in that memory location?
    Thank you in advance.
    G Allen
    @glenn_a_allen

    Hi Glenn,
    please check the SAP notes 1590418 and 1623389 for your issue
    http://service.sap.com/sap/support/notes/1590418
    http://service.sap.com/sap/support/notes/1623389
    Regards,
    Klaus

  • Fragementation of table data in the DB file

    Hi,
    I am working on an OLTP system where this OLTP is residing on an oracle 10G database[database name ORCL] now further it has got a user OLTP which contains about 50 tables and all these tables are residing physically on a single database file[dbf file] and tablespace OLTP is pointing to this dbf file which is OLTP.dbf, Now there are a certain applications that are front end applications and inserting/updating/deleting in these 50 tables, I am taking a case of inserts so that makes me believe that the individual table data stored in the OLTP dbf file is not getting stored by individual table, now I am facing a lot of performance issues and instead I am trying to fragment data by table, so my questions are:
    1) is there a way to fragment data in the physical dbf file such that during the weekend I could go on and fragement the data when the applications are not encountering heavy loads, this is ultimately going to help me with performance issues.
    2) is there any way to physically see data in the dbf file since using this information I can solve a lot of my performance issues.
    Many thanks
    Rahul

    Thanks BCV for the link it is very informative.
    However I am not concerned about weather some blocks are under utilized or not(the link is actually suggesting a manual way of bringing the data together and I can further pack it up in a plsql procedure with a cursor reading information about my concerned tables by setting up a table with concerned table names), my concern is to bring the reserved blocks for a table together(since inserts will happen on a daily basis on a table and that makes me believe that the blocks reserved will be scattered throughout the DBF file and since they are scattered every time oracle needs to refer a particular table and  its full table scan would take more IO on disk if the blocks are scattered throughout the database file as compared to contiguous blocks for a particular table(meaning defragmenting the table data))
    PS: I am trying to clear out a few doubts, may be I am not able to understand everything in the link, it would be great if some1 with experience with this kind of activity could throw more light on this topic.
    Many thanks
    Rahul

  • How to use .dbf files zipped into a .zip file from within a java program

    i have a .zip file containing several .dbf files.
    the zip file is automatically downloaded regularly and data from the .dbf files is inserted into the database.
    how do i facilitate automatic extraction of a zip file or how do i fetch data from the .dbf file? (this cannot be done manually)
    anu.

    you could write a little polling class checking the zip file. you can use the java.util.jar package to extract the zip file (http://java.sun.com/docs/books/tutorial/jar/api/index.html). you could also use Jakarta ant (http://ant.apache.org/manual/index.html) to do this job (core task "zip") and call ant's target file on a regular basis (dependend on the OS you use, you can set os tasks/schedules).

  • Any Mac software for opening DBF files?

    I have a mac that is not running Windows.
    I would like to at least view the contents of a dbf file. I have tried without success to find (google) such a program.
    Is there anything out there that will help me?
    Thanks.
    -- Jillaine

    Try V.K.'s suggestion first - NeoOffice is free and though its database section is extremely clunky you might be able to get it to work with your file.
    Apple's now unsupported office program AppleWorks can import DBF files: Apple no longer sell it but you might be able to find a copy; ask for advice in the AppleWorks Forum - you might even be able to find someone who will convert it for you if you ask nicely. (You would still have to open it yourself, so you would need to ask them to export it as text).
    FileMaker Pro can import XML and ODBC files but I can't see any evidence that it will import DBF files - you would need to contact their Support on this.
    You only other option would be to try to find someone with Windows and a suitable program who can open the file and convert it to text, either tab or comma delimited, and then open that in (for example) Bento which is art least cheap, or NeoOffice.

  • How to recover dbf file in dbf VFP database?

    How to recover dbf file in dbf VFP database?
    The platform writes that can't open dhXXXX.dbf.
      What to do?  Whether there are utilities where it is possible to bring into accord heading of the dbf-file and directly its contents manually? Where there is a good description of the structure .dbf?

    1 Delete the indexes.
    2. To determine to which document (its cap) belongs to this file.
    3. Try to look for this file in the archives
    4. DBF Viewer Tool  will help view and edit the contents .dbf file.
       http://www.dbf.viewertool.com/
    5. At a forum you can look at information on your problem
    http://www.filerepairforum.com/forum/databases/databases-aa/dbase-iv-clipper-foxpro/1355-help-to-repair-dbf-file

  • How to view plan data

    Helloo experts,
    I want to see the actuals and <b>plan</b> data for  given <b>costcenters/Internal</b> orders.
    I use T-code: KSB1 for viewing Actuals data. But, I dont know how to view Plan data. 
    What is the best way to look at it.

    Reddy,
    What do you mean by you want to check this data ? Well this is the data that was entered into SAP by some excel ( i am guessing) - So that's the data that was inputted into SAP.
    Do you have any other system where you do the planning and then load it into SAP ? If you want to compare with that - yes you can.
    If you are using BPS for planning, yes you can compare by preparing a report from the transactional infocube in BW ( which would hold the planning data) with this R/3 report.
    Hope that helps - Let me know if you need any other info.
    Thanks,
    Nandita

  • Restore tablespace using DBF file & structure export

    Hi,
    we've dropped our testing database - USER & TABLESPACE. We don't have any backup (nor control file), just .DBF file and older export (emty tables, same structure).
    Is any possibility to recover dropped data?

    Which .dbf files do you have and are they from a cold backup? If you have all the .dbf files, you could recreate the control file and recover your data.

  • Access 2013 - Unable to link or import DBF files

    2013 does NOT recognize DBF files, we are trying to find a solid work around to link to our DBF files. there are about 30 DBF files that get updated EVERY week. And there are about 60 employees that link to various DBF files.
    Does anyone know if a driver or some sort or some sort of solution for this? Any guidance is appreciated. thank you.

    Thanks so much for the information.
    The DBF files I am using are from Shapefiles that are being used in our mapping software, ArcMap, and are coming from vendors and constantly being updated.  Therefore, the need to import to Access nightly and use the data in the dbf files for other
    VBA routines.  Another problem is that the mapping software can only link to .mdb files, and .mdb files only import .xls data.  Even though Excel 2013 does not support importing dbf files using VBA, I could still open and save
    a dbf file as a .xls file using VBA as shown below:
    For i = 1 To 3
    'Open First DBF file and Save
      Workbooks.Open "H:\Dbf_Files\Dbf_File" & i & ".dbf"
      ActiveWorkbook.SaveAs "H:\Dbf_Files\Dbf_File" & i & ".xls"
      ActiveWorkbook.Close
    Next I
    I found methods on another website to create .vbs and .bat files to run this as a nightly Scheduled Task.  After I create the .xls files, another Scheduled Task imports them to Access. I can provide more details if anyone needs them.

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • Not able to view data and song folders/files in my ipod

    Hi All,
    I have a 30 GB Video iPod which I have been using since the past 6 odd months. Recently, my iPod was infected with a virus. I managed to clean up the virus but since then I am not able to view the data and song files or folders stored in the iPod. I can only view a hidden folder with the name 'astry' and when I double click on it nothing is visible. I tried some freewares available for data recovery but they just scan the iPod and tell that so many number of files are available. But for retrieving them I will have to buy the software.
    Has anyone faced similar project? Does anyone knows any solution to this problem?
    Thanks,
    Sameer

    Hi Aneesh,
    First be more clear about Aria Application. As Aria, is been related to an hrms part of an organization carrying the people infomation and it has some separate features too.
    But in your prespective i couldnt able to understand what do you want to do with that packeged application.
    Since you want to customize the aria application according to your organization needs means, First collect all your necessary organization information that is needed(like tables etc.). Then substitute those (i.e) your organization tables in the appropriate places in the form of query.
    Please dont use the same Aria people table, as the Oracle may framed according to their employee information. Nearly Aria application has 200 supporting objects. If you want to use the same objects means whether u r going to creating nearly 200 supporting objects..It is not worth at all.
    Please be more clear in your requirement that, what you are doing, and then raise the question. Be more prepared with your tables along with datas, and let give your reply once you were been prepared with your organization details table.
    As there are more peoples in the forums to help you other than me.
    Brgds,
    Mini
    Mark Answers Promptly

  • I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    I was told of an application that will allow the use of a second screen to view my data and files, but I forgot its name. I'd like to make the connection because my LCD is broken.

    You don't need an application, just plug a compaitble monitor into the display port of your MacBook Pro, set the screen up in System Preferences>Displays

  • How can I recover data from a USERS01.DBF file?

    So I had a Hard Drive die and that took out the OS and the Oracle RDBMS Installation (Oracle9i Enterprise Edition, 9.2.0.6.0 on WinXP). Fortunately most of the data in the database (9.5GB worth) was in the USERS01.DBF file which was on another drive and unharmed. I was also able to salvage the CONTROL01.CTL file, but everything else from the database is corrupted and irretrievable.
    I've just setup a new machine with the same version of Oracle and I created a brand new database with the same SID as before. I then tried to do:
    SQL> alter tablespace users offline temporary;
    Tablespace altered.
    (then I swapped the USERS01.DBF file with the original one and then tried to recover it)
    SQL> recover tablespace users;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
    ORA-01206: file is not part of this database - wrong database id
    Is it even possible to do what I'm trying to? I had no backup of the USERS01.DBF file, but there should be some way to get at the data that is inside it...
    any help or a pointer in the right direction is much appreciated.
    thanks
    -jeff

    Whilst this isn't a direct answer, running any form of "recovery" will require archive logs, and it doesn't appear that you have archive logs related to this data file.
    If you had your system.dbf file in addition to a control file and data file, I'd imagine might have enough to bring a database online using a "cold backup" type restore.
    The specific error you show references the DBID in your data file does not reference the DBID in your control file. You don't appear to have restored your control file backup. This would make your existing .dbf files now not load, though a number of them can be rebuilt, not all of them can.

  • Is it possible to view/get the table data from a dump file

    I have dmp files generated using expdp on oracle 11g..
    expdp_schemas_18MAY2013_1.dmp
    expdp_schemas_18MAY2013_2.dmp
    expdp_schemas_18MAY2013_3.dmp
    Can I use a parameter file given below to get the table data in to the sql file or impdp the only option to load the table data in to database.
    vi test1.par
    USERID="/ as sysdba"
    DIRECTORY=DATA
    dumpfile=expdp_schemas_18MAY2013%S.dmp
    SCHEMAS=USER1,USER2
    LOGFILE=user_dump_data.log
    SQLFILE=user_dump_data.sql
    and impdp parfile=test1.par.

    Hi,
    To explain more about my situation.
    Target database has the dump files, where as the source database (cloud) doesn't have access to the target database.
    However, I can request the target DB DBA team to run the par files and provide me the output like a SQL file which I can take and run it in my source database.
    I got the metadata the same way, but is there any way I could get the data from the dump files on the target DB without actually accessing it? My question might sound weird, but please let me know.
    <
    1. export from the source into a dumpfile. You can do this on the source database and then copy the file over to your local database or you can do this from a local database if you have a database link defined on the local database that points to the source database.  In the second case, your dumpfile will be created on your local database.
    >
    How can i access the dump using the database link?

Maybe you are looking for