TIPS(20) : MAKE A MAP OF YOUR ORACLE FILES

제품 : SQL*PLUS
작성날짜 : 1996-11-12
TIPS(20) : Make a Map of Your Oracle Files
==========================================
The script below generates a report on all the Oracle files
(database, redo log, and control) in an Oracle UNIX system.
It's like a map of your Oracle files. Moreover, it also makes available other
information (size and physical I/Os, if applicable) related to the files.
THE SCRIPT
rem
rem File: filemap.sql
rem
rem This script provides information on the location/path, file name,
rem size and physical I/Os (if applicable) of all the Oracle files
rem (database, control and redo log) in an Oracle/UNIX platform.
rem
rem
set pages 999
col path format a20 heading 'Path'
col fname format a15 heading 'File Name'
col fsize format 999b heading 'M bytes'
col pr format 999999b heading 'Phy. Reads'
col pw format 999999b heading 'Phy. Writes'
break on path skip 1
spool zzfilemap.rep
select substr(name,1,instr(name, '/', -1)-1 ) path,
substr(name,instr(name, '/', -1)+1 ) fname,
bytes/1048576 fsize,
phyrds pr,
phywrts pw
from v$datafile df, v$filestat fs
where df.file# = fs.file#
UNION
select substr(name,1,instr(name, '/', -1)-1 ) path,
substr(name,instr(name, '/', -1)+1 ) fname,
0 fsize,
0 pr,
0 pw
from v$controlfile
UNION
select substr(lgf.member,1,instr(lgf.member,'/', -1)-1) path,
substr(lgf.member,instr(lgf.member, '/', -1)+1 ) fname,
lg.bytes/1048576 fsize,
0 pr,
0 pw
from v$logfile lgf, v$log lg
where lgf.group# = lg.group#
order by 1,2
spool off
exit
--------------------------Sample Output----------------------------------
Path File Name M bytes Phy. Reads Phy. Writes
/u01/oradata/PDB7 control3.ctl
rdmxf1.dbf 50 694 2781
redo1b.log 10
redo2b.log 10
redo3b.log 10
tempf1.dbf 30
/u02/oradata/PDB7 control1.ctl
rbsf1.dbf 40 6 2813
redo1a.log 10
redo2a.log 10
redo3a.log 10
/u03/oradata/PDB7 control2.ctl
genf1.dbf 50 1551 396
rdmf1.dbf 100 4403 2335
systemf1.dbf 50 5905 1116
toolsf1.dbf 15 2979
16 rows selected.

Thanks for your reply, but I'm not sure if you understood my point correctly.
I didn't exactly mean to use my iPod as a USB memory stick.
What I meant was that if I copied the contents of my iPod to a DVD and if something weird happened to my music player and I would have to format it...
Could I then just copy the files (I had burned on the DVD) back to my iPod and it would be the same as before? My music would be saved?

Similar Messages

  • How to make a mapping (transfer rules) when implement cProjects 4.0 BW 3.5

    Hello all, i am implementing BW business content 3.5  with cProject 4.0 and i still solve question regarding mapping in transfer rules. First i didnt know which datasource belongs to which infosource, this issue i solved but now i am not sure how to make a mapping in transfer rules . It is not so easy to make a mapping because of nothing saying infoobject GUID. Can you please provide exact mapping of fields in transfer rules for cProjets datasource-infosource. Screen shoots of your transfer rules will be helpfull. Or if you have any documentation or scenarios for BW and cProjects implementation it will be appreciate.
    Thanks.

    OK

  • Load maps in database - oracle map viewer

    Hi,
    In my project we are trying to use maps to display it on webpage for this we are using oracle map viewer. We’ve got maps from third party in the form of tif format. Could you please tell me how to load these maps in databse table? I’m newbie to oracle map viewer, your help will be deeply valued.

    Hi Paul, you said "We’ve got maps from third party in the form of tif format." they must be rasters. The best approach is to use MapBuilder to load such data into Spatial as GeoRaster objects and then define them as themes to display in MapViewer. All can be done using MapBuilder. you can also use the client-side java GeoRasterTools (a viewer) to load, display and export those tiff files. For that you can start with the GeoRaster user's guide.
    regards,
    Jeffrey

  • How to check your oracle is 32 bit or 64 bit?

    How to check your oracle is 32 bit or 64 bit on windows?

    SQL*Plus has it's own banner that gives the same information
    >
    SQL*Plus: Release 11.1.0.6.0 - Production on Thu Jun 7 11:19:06 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter user-name:
    >
    Just make sure that you run the right version if there are multiple versions installed on the machine.

  • How to make data base link from oracle 11g r2 to microsoft sql 2008 express

    I need to make data base link from oracle 11g r2 to microsoft sql 2008 express to make replication between then
    please help me !
    I didn't know what is the user and password in the command which create database link

    To replicate data you can ude Database Gateway for ODBC or Database Gatewy for MS SQl Server. Please use the search engine of this forum if you ant to get more details about each product.
    Some SQl Servers are set up to use Windows authentication only. In this case you won't be able to connect to the SQL Server as Windows authentication isn't supported with the gateways. You have to make sure your SQL server is supporting username and password authentication - a common user is the "sa" user. Regarding the username/password, please get in touch with your SQL Server Admin.

  • How do I consistently make Google maps voice activate with my Sync Bluetooth sustem

    I can not consistently make Google maps voice activation  and my Sync system to work. I have tried several of the suggestest solutions but there doesn't seem to be one that works all the time - maybe its me

    when airport express lights up yellow it means it dont have connection to the internet
    your laptop, your ipad and your airport express all have a female 3.5mm minijack connector which they can play audio out of
    if you need to buy anything really comes down to the bose device you own if it does not have any type of audio input connectors there really is nothing you can do
    if it have a female 3.5mm minijack connector then it's just connecting a cable with a male 3.5mm minijack connector in each end to the bose and whatever device you want audio from as in ipad, laptop or airport express
    this is such a cable
    http://www.cables2u.co.uk/images/3.5MM_mini_jack_to_3.5MM_cable.jpg
    if it have a female RCA connectors like AUX or CD (typically red and white)or whatever those would be labeled then getting a  cable with male RCA  in one end and a male 3.5mm minijack in the other would fix it
    this is such a cable
    http://bluecowcables.com/img/p/86-248-large.jpg
    non of this is really apple related so if you know somebody who dabble a bit with stereos in general then maybe they can set it up for you as it don't have anything to do with apple stuff or even computers and tablets
    it's just about connecting an analogue input source to a stereo which support analogue input (if yours does that)

  • Can I make a map in Lightroom?

    I have multiple aerial images of my farm.  I would like to splice these photographs together to make a map of trails for visiting friends and family.  Any clue as to how I would complete this task?
    Thanks for your insight friends!

    You can't "Photomerge" multiple images into one with Lightroom. That is a task for Photoshop.

  • Mapping datatype in oracle goldengate

    Hi
    Is it possible to map datatype in oracle goldengate? Suppose we have same table name on both source & target database but column widths are different.

    Hi again,
    It might be possible to code a mapping post processor that transforms eg. a column definition: my_column_clob varchar2(4000) => my_column clob
    but I have no clue on how the runtime platform would react to this, eg. when reporting detailed errors. Implementing on your own means that you will lose some standard OWB functionality also - eg. upgrade/import table.
    Regards, Hans Henrik

  • TimeZone.getDefault().getID() does not exist in your Oracle database table V$TIMEZONE_NAMES???

    Hi Everyone,
    My Jdev version is 11.1.2.3.0.
    I have developed many ADF applications in this version itself by setting time zone as -Duser.timezone="+05:30" and all were running fine.
    But Jdeveloper got crashed so i reinstalled the same version but now none of the applications are running.
    Its showing error as below:
    oracle.jbo.JboException: JBO-29112: The time zone 'GMT+05:30' defined in adf-config.xml or TimeZone.getDefault().getID() does not exist in your Oracle database table V$TIMEZONE_NAMES. Please set an available time zone in your TZ environment variable or user.timezone Java system property.
    What to do now?
    how will i know wat time zone should be set?
    please help the needful...
    Thanks.

    Check if www.jobinesh.com/2010/12/why-do-i-get-oraclejbojboexception-jbo.html helps.
    Timo

  • Error while running code template mapping between two oracle tables

    Hello All
    Iam getting the following error while running code template mapping between two oracle tables. Using OWB 11gR2 and oracle 11gR2 DB.
    java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    c: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4                                        
    Job 51 error: java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4
    Quick help is highly appreciated.

    Dera Dallan
    its only a target user for the workspace where you are deploying the mapping from.
    I have two repositories for two different projects. each repositary has its own workspace.
    ex:-
    Project 1
    Work space bpms_rep_owner
    Repositary owner bpms_rep_owner
    Repositary user bpms_rep_user
    Project 2
    Work space dem_rep_owner
    Repositary owner dem_rep_owner
    Repositary user dem_rep_user
    Reg
    S.Gyazuddin

  • Description required on DOC Planning Your Oracle E-Business Suite Upgrade..

    Hi All
    Im planing to upgrade Oracle Applications from 11i to 12 i. while reading white paper "Planning Your Oracle E-Business Suite Upgrade from Release 11i to Release 12.1" i want some description on following lines
    How can we "Develop robust testing strategy." during oracle Applications Upgradation from 11i to 12i
    What possable "oracle support resource available."
    Which tools can we use that can improve upgrade and maintenance experience.
    How to become Planning Your Oracle E-Business Suite Upgrade from Release 11i to Release 12.1 familiar r with oracle information available.
    steps to minimize downtime.
    Regards,
    MuhammadSalahuddinManzoor

    Hi,
    Please see these threads for a similar discussion.
    How can we reduced the patch time for u6394500.drv
    How can we reduced the patch time for u6394500.drv
    Oracle Applications upgradation from 11.5.10.2 to 12.1.1 Parallel Upgrade
    Re: Oracle Applications upgradation from 11.5.10.2 to 12.1.1 Parallel Upgrade
    Thanks,
    Hussein

  • When trying to delete files, I get the following message, 'Finder Wants to make changes. Type your password to allow this.'

    I'm running Mac OS X Version 10.7.4 on my iMac and am suddenly unable to simply move files to the trash.
    Instead, I get the following message: 'Finder wants to make changes. Type your password to allow this.'
    When I do enter my password, the file does not enter the Trash but seems to disappear.
    I tried to find ways to revert to previous settings that allowed me to move files to the trash, but had trouble doing so.
    How can I get my iMac to run normally?
    Cheers!

  • XSU Problem:Error-- Cannot map Unicode to Oracle character

    Hi, I am using XSU to get the resultset from database(oracle 9.2.0.6.0) as XML.When I query data from some columns and get the XMLString, they give me error -"Cannot map Unicode to Oracle character". The database charset is "US7ASCII" .
    One column is storing Chinese with ''US7ASCII".When xmlString Result contianer
    the column,there is "oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character".But If xmlString Result don't container that column,it run very good.
    The program container these libs: ojdbc14.jar,xmlparserv2.jar,xdb.jar,nls_charset12.jar,xsu12.jar.
    The program code:
    public class OracleXmlParse {
    public static void main(String[] args) {
    try{
    DriverManagerDataSource dataSource = new DriverManagerDataSource("oracle.jdbc.driver.OracleDriver",
                        "jdbc:oracle:thin:@168.1.1.136:1521:imis","ims","ims");
    String selectSQL = "select AREA_CODE,AREA_NAME,REGION_CODE,AREA_NAME_CN from CDM_AREA";
    OracleXMLQuery query = new OracleXMLQuery(conn,selectSQL);
    query.setEncoding("UTF-8");
    String str = query.getXMLString();
    System.out.println(str);
    conn.close();
    }catch(SQLException e){
                   e.printStackTrace();
    Exception:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: Cannot map Unicode to Oracle character.
         at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:1015)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:267)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:221)
         at oracle.xml.sql.query.OracleXMLQuery.getXMLString(OracleXMLQuery.java:198)
         at procedure.OracleXmlParse.main(OracleXmlParse.java:34)
    The column that store chinese is AREA_NAME_CN .When "selectSQL " is equal to "select AREA_CODE,AREA_NAME,REGION_CODE from CDM_AREA",the program is ok.
    Please help.
    Message was edited by:
    user542404
    Message was edited by:
    user542404

    So, What is the solution ? Is there something I can do in my code ? My program gives the exception and stops. I am not even interested to fetch the data, which are giving this error.

  • How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    you need to "Get Info" on the file first. Select it, right click and select 'Get Info' in the menu.
    In the window that pops up, near the bottom, the "Open With" drop down menu needs changed. If the drop down menu does not present the one you want, select "Other" and find it.

  • SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

    Hi all,
    In windiws 2008 server i have installed 11g wtih 11g Client for Pro*c . so there is two Oracle_Home resides. In the same machine i have installed 11g Forms and reports with weblogic server.
    Now i am not able to connect with the Database in SQL Prompt.more over if i issue SQLPLUS i am getting this below error
    "+Error 6 initializing SQL*Plus+"
    "*Message file sp1<lang>.msb not found*"
    "*SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory*"
    Here my Question and doubt is how i have to solve this issue.i want to use this 11g Database and 11g Forms and reports in single server. how to do this ?
    Kindly share your Advice.
    Regards
    Hamid

    Hameed wrote:
    "+Error 6 initializing SQL*Plus+"
    "*Message file sp1<lang>.msb not found*"
    "*SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory*"
    Here my Question and doubt is how i have to solve this issueIt is clearly said - set ORACLE_HOME prior to runing sqlplus.

Maybe you are looking for

  • Lumia 1020 Owners - What is your iPhoto Workflow

    I really want to start using iPhoto fully to manage my photos. I have my images from my past two phones in iPhoto already and that's all fine. They were the Lumia 800, and then Lumia 520 as a cheap stop-gap when my 800 broke whilst waiting for my nex

  • How do I get Siri to recognize me?

    I've created an iCloud account using my gmail address which has at least 100 contacts in it however, only one contact appears under my info and it's not me. How is this possible? The contact is one from my account but, it's not me and really random.

  • Installing creative cloud isn't working

    I start to install the creative cloud on my MacBook but it just stops randomly and cancels.

  • Buttons doesnt show on the applet

    I wrote a code which takes coordinates of buttons from another class and set it to buttons bounds and then add it to contentpane but the problem is buttons doesnt show on the applet. Here is my code any help would be usefull package applet; import ja

  • Using WS control

    Hi, is it possible to somehow use web service control generated from WSDL (embedded in custom java control) within JSR 168 portlet ? Tomas