Queries on ASM

Hi All,
I have certain queries on ASM:
1)
create diskgroup DATA normal redundancy
failgroup fg1 disk '/dev/rhdisk5' name a1
failgroup fg2 disk '/dev/rhdisk6' name b2;
if i issue above command and after that i add one datafile to above diskgroup
i want to know how the datafile is distributed in the above DATA diskgroup
i want to know whether 50 % will be stored in failgroup fg1 and another 50% will stored in failgroup fg2(please correct if i am wrong in the statement marked in bold)
2)
if the failgroup fg1 becomes unavailable due to disk corruption or if i have dropped failgroup fg1
i want to know if the data in fg1 will be moved to fg2
3)
create diskgroup DATA normal redundancy
failgroup fg1 disk '/dev/rhdisk5','/dev/rhdisk6'
failgroup fg2 disk '/dev/rhdisk7' ,'/dev/rhdisk8';
i want to know if i add one datafile in above statement how that the data will be stored in the data
i want to know whether 50 % will be stored in failgroup fg1 and another 50% will stored in failgroup fg2(please correct if i am wrong in the statement marked in bold)
if the above statement is correct then how the data is distributed between '/dev/rhdisk5','/dev/rhdisk6' in the failgroup fg1
I want to know if disk '/dev/rhdisk5' becomes unavailable then what will be happen?
Thanks

Since you didn't tell us your version, please read this following guide completely. All the answers are there,
http://download.oracle.com/docs/cd/E11882_01/server.112/e10500/toc.htm
And get this book,
http://www.amazon.com/Oracle-Automatic-Storage-Management-Under/dp/0071496076
HTH
Aman....

Similar Messages

  • ASM Queries

    Hi All,
    i am using 10.2.0.4 version and os aix 5.3
    I am testing ASM in my test environment.
    i have created diskgroup data1 high redunacy
    CREATE DISKGROUP data1 high REDUNDANCY
    FAILGROUP failure_group_1 DISK
    '/dev/rhdisk1' NAME diska1,
    FAILGROUP failure_group_2 DISK
    '/dev/rhdisk2' NAME diskb1,
    FAILGROUP failure_group_3 DISK
    '/dev/rhdisk3' NAME diskc1,
    For testing i corrupted disk by running dd command
    dd if=/dev/random bs=512 count=1 of=/dev/rhdisk1 seek=nnnn
    after that i restarted my database which was using that diskgroup
    i was not able to open database
    i recieved error oracle instance terminated and object did not exist in alert log.
    after that in asm instance i ran below statement
    1) alter diskgroup data1 drop
    2) diskgroup rebalance
    3) startup of rdbms database .it got started
    I dropped the disk because i knew the corrupted disk
    In the real scenario,how i will come to know the corrupted disk?
    if my disk gets corrupted in normal or high or external redunacy i should always follow the above steps
    Thanks

    if my disk gets corrupted in normal or high or external redunacy i should always follow the above steps
    if your diskgroup redunacy is
    high - then database database live time corrupted two disks(two fail group) then database will continue its own operation.More than two then diskgroup will automatically dismount and database shutdown abort
    normal - if only one fail group was corrupted then database will continue its own operation.if two then diskgroup will automatically dismount and database shutdown abort
    external - This case diskgroup will automatically dismount and database shutdown abort.
    All these you know from ASM instances , database instances alert.log and OS logs.

  • How to get the ASM to OS device name mapping

    Hi all,
    This seems to be an often answered question, but usually the answers specify what to do on the OS (e.g. run oracleasm etc) and/or in the ASM database running on the ASM Host (select * from V$...).
    In our situation have plug-ins collecting data from Agents. Plugins collect data from Oracle db/ASM targets and from storage arrays.
    Back on the OMS we want to be able to report on the ASM to OS device name mapping. To report, we use either the default metadata UI (i.e. data from the sysman.mgmt_emx_... tables) or we have a BI Publisher report that queries the OEM Repository Database (and can join the ECM tables from the different plug-ins).
    The link between the ASM path and the OS device name does not seem to be collected by either the Oracle DB/ASM plug-in, nor by any other plug-in (Host/Storage/...).
    It would be easy to go to Linux and run a few commands, but we need to support multiple platforms, like AIX, Solaris x86, Windows as well.
    A complicating factor is that ASM can be installed in different configurations, e.g. using ASMlib or using udev...
    I really suspect this wheel has been invented before?! Or is it really a matter of having multiple OS-specific low-level scripts and adding a bunch of instance parameters for allowing the user to specify all OS-specific path/utility names etc?
    Any suggestions welcome... :-)
    Many thanks,
    Ed

    Google is your best friend ;-)
    Those are standard CGI variables, must be available in PHP/ASP(X)/JSP/your-favorite.
    Anyway, try this:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    /** Creates a table showing the values of all the CGI variables.
    * Part of tutorial on servlets and JSP that appears at * http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ * 1999 Marty Hall; may be freely used or adapted. */ public class ShowCGIVariables extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String[][] variables = { { "AUTH_TYPE", request.getAuthType() }, { "CONTENT_LENGTH", String.valueOf(request.getContentLength()) }, { "CONTENT_TYPE", request.getContentType() }, { "DOCUMENT_ROOT", getServletContext().getRealPath("/") }, { "PATH_INFO", request.getPathInfo() }, { "PATH_TRANSLATED", request.getPathTranslated() }, { "QUERY_STRING", request.getQueryString() }, { "REMOTE_ADDR", request.getRemoteAddr() }, { "REMOTE_HOST", request.getRemoteHost() }, { "REMOTE_USER", request.getRemoteUser() }, { "REQUEST_METHOD", request.getMethod() }, { "SCRIPT_NAME", request.getServletPath() }, { "SERVER_NAME", request.getServerName() }, { "SERVER_PORT", String.valueOf(request.getServerPort()) }, { "SERVER_PROTOCOL", request.getProtocol() }, { "SERVER_SOFTWARE", getServletContext().getServerInfo() } }; String title = "Servlet Example: Showing CGI Variables"; out.println(ServletUtilities.headWithTitle(title) + "\n" + "
    " + title + "\n" + "\n" + "\n" + "CGI Variable Name
    Value"); for(int i=0; iNot specified"; out.println("
    " + varName + "
    " + varValue); } out.println("
    "); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } }

  • Database creation with ASM using dbca

    hi all,
    i found the steps to create the database using ASM diskgroup.
    but i received errors when configuring the FRA(flash recovery area), DBF(normal), +ARCH(archival dest),
    i tried atleast 2 to 3 times from scratch but found the same error....................
    ORA: 19624
    ORA: 19870
    here are the steps can somebody correct these steps..................
    Create Virtual Disks from VM Ware software when server is down.
    Choose Edit Virtual Machine Settings.
    Click on Add button
    Press Next and Highlight Hard Disk, then click Next
    Check ‘Create a New Virtual Disk’
    Choose SCSI as type
    Select Size as 2 GB
    Name the virtual disk as ‘ASMDBF1.vmdk’
    Create additional disks as:
    ASMDBF1.vmdk for DBF files
    ASMDBF2.vmdk Failover group
    ASMFRA.vmdk Flash Back Recovery Area
    ASMREDO.vmdk Redo Log Area
    ASMARCH.vmdk Archived Logs
    •     Start up the server OraWorld1
    •     Go to Disk Management and you will be prompted with a screen which should display all five disks with a check mark. Accept defaults and Click next.
    •     On second script all five will be unchecked, click Next
    •     Press Finish to complete and you should see all 5 disks as Type Basic Unallocated. For each of the disk perform:
    1.     Right click, New Partition, Extended Partition and Finish
    2.     Right click, New Logical drive, Do not assign drive letter nor partition it.
    3.     From command prompt type Diskpart and enter Automount enable.
    4.     From command prompt, configure basic CRS services as
    5.     C:\oracle\product\10.2.0\db_1>localconfig add
    6.     C:\oracle\product\10.2.0\db_1>localconfig add
    7.     Step 1: creating new OCR repository
    8.     Successfully accumulated necessary OCR keys.
    9.     Creating OCR keys for user 'administrator', privgrp ''..
    10.     Operation successful.
    11.     Step 2: creating new CSS service
    12.     successfully created local CSS service
    13.     successfully added CSS to home
    •     Launch DBCA and choose Configure Storage Management.
    •     Select Create New group, choose stamp disks which will show you all of your five disks. Configure ASM links to all these disks as:
    1.     ORCLDISKASMDBF1 \Device\Harddisk1\Partition1
    2.     ORCLDISKASMDBF2 \Device\Harddisk2\Partition1
    3.     ORCLDISKASMFRA \Device\Harddisk3\Partition1
    4.     ORCLDISKASMREDO \Device\Harddisk4\Partition1
    5.     ORCLDISKASMARCH \Device\Harddisk5\Partition1
    Now make Change Disk Discovery Path as Null and you should see all disks.
    Now create Disk groups as :
    ARCH \\.\ORCLDISKASMARCH External 1GB
    REDO \\.\ORCLDISKASMREDO External 1GB
    FRA \\.\ORCLDISKASMFRA External 2GB
    DBF (MAIN GROUP WITH 2 SUB-GROUPS) Must create as Normal Redundancy
    DBFP \\.\ORCLDISKASMDBF1 External 2GB
    DBFS \\.\ORCLDISKASMDBF2 External 2GB
    You now have a running ASM instance on the server.
    •     Checking ASM instance
    You can always use DBCA to check settings of ASM.
    Alternatively, go to command prompt:
    Set ORACLE_SID=+ASM
    Sqlplus /nolog
    Connect sys/password as sysdba
    Show sga (80MB)
    Total System Global Area 83886080 bytes
    Fixed Size 1247420 bytes
    Variable Size 57472836 bytes
    ASM Cache 25165824 bytes
    SQL>desc You can then check C:\oracle\product\10.2.0\db_1\database for these files. You can also view v$parameter for all possible values for ASM instance.
    +asm.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'#Manual Mount
    *.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'
    *.asm_diskstring=''
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\bdump'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\cdump'
    *.instance_type='asm'
    *.large_pool_size=12M
    *.remote_login_passwordfile='SHARED'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\udump'
    You can change some of the values like large pool and even db cache size. You can also manually create the disk group as:
    Create diskgroup DBF NORMAL redundancy
    Failgroup flgrp1 disk ‘\\.\ORCLDISKDATA0’, ‘\\.\ORCLDISKDATA1’
    Failgroup flgrp2 disk ‘\\.\ORCLDISKDATA2’, ‘\\.\ORCLDISKDATA3’;
    Check Candidate disks:
    select group_number, disk_number, mount_status, header_status, state, path from v$asm_disk;
    Other useful queries:
    Select group_number, name, total_mb, free_mb, state, type
    From v$asm_diskgroup;
    Select group_number, disk_number, mount_status, header_status, state, path, failgroup
    From v$asm_disk;
    You can use sql commands to perform most of the ASM tasks, however EM console can also be used here
    Oracle Database Installation
    •     Launch DBCA
    •     Choose Create Database and select OLTP type
    •     Name it as ORCL2, choose ASM as file system, select all disk groups to be used.
    •     Use oracle managed files as:+DBF press Next
    *•     Specify Flash Recovery Area as +FRA*
    *•     Enable archiving at +ARCH*
    *•     Choose Auto SGA as 55% of memory*
    *•     Leave else default and complete DB creation.*
    *•     Launch NetConfig and define Listener with default settings.* here i received the errors,.................
    Database ORCL2 is created with the following attributes:
    NAME: ORCL2
    SPFILE: +ARCH/ORCL2/spfileORCL2.ora
    URL: http://oraworld1:1158/em

    Strange, those messages are RMAN backup errors -- are you trying to backup the database?
    Or...if you selected "create starter database" it may be that dbca is not finding the backup files from the "demo" database.
    :p

  • Deployment error - Errors in named queries in weblogic 10

    Hi, All.
    I got the error message when I tried to deploy my webapp to weblogic 10 & 10.1(10M1).
    Stacktrace:
    <May 19, 2008 11:51:14 AM EDT> <Error> <Console> <BEA-240003> <Console encounter
    ed the following error weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:314)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
    oduleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:56)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:46)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja
    va:615)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:26)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.j
    ava:191)
    at weblogic.application.internal.DeploymentStateChecker.prepare(Deployme
    ntStateChecker.java:147)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App
    ContainerInvoker.java:61)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.cr
    eateAndPrepareContainer(ActivateOperation.java:189)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do
    Prepare(ActivateOperation.java:87)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr
    epare(AbstractOperation.java:217)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym
    entPrepare(DeploymentManager.java:719)
    at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy
    mentList(DeploymentManager.java:1186)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare
    (DeploymentManager.java:248)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre
    pare(DeploymentServiceDispatcher.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb
    ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.lang.Throwable: Substituted for missing class org.hibernate.Hibe
    rnateException - Errors in named queries: SpotType.findById, Spot.findByTopic, T
    argetAudience.findById, SpotOrder.findById, SpotAuditDetails.findById, ProjectOf
    ficer.findById, SpotOrderAvailable.findById, ProjectOfficer.findByStatus, SpotOr
    derTopic.findById, Topic.findById, findAllSpots, SpotOrderDetails.findById, find
    AllCategory, SME.findById, SpotAudit.findById, ContactInfo.findById, SpotCategor
    y.findById, SpotOrderTopicSpot.findById, ProjectTopic.findById, NetworkType.find
    ById, Source.findById, NetworkType.findByStatus, RecordStatus.findById, SpotType
    .findByStatus, findAllClient, Spot.findByTitle, findAllRecordStatus, SMETopicCom
    ments.findById, ContractInfo.findById, Channel.findById, Client.findById, findAl
    lSource, SMETopic.findById, Project.findById, SpotComments.findById, SpotOrderCo
    mments.findById, ContactInfoComments.findById, Spot.findById
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
    365)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
    a:1300)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
    ionConfiguration.java:859)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
    figuration.java:669)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
    ctory(HibernatePersistence.java:132)
    at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactor
    y(PersistenceUnitInfoImpl.java:264)
    at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInf
    oImpl.java:110)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(
    AbstractPersistenceUnitRegistry.java:316)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDe
    scriptors(AbstractPersistenceUnitRegistry.java:96)
    at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersis
    tenceUnitRegistry.java:53)
    at weblogic.servlet.internal.WebAppModule.initPURegistry(WebAppModule.ja
    va:1151)
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:304)
    >
    I included named queries on orm.xml file and also in each entities using annotations like following.
    orm.xml>
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
         version="1.0">
         <!-- WE PLACE LARGER AND JOIN QUERIES STATEMENTS HERE -->
         <named-query name="findAllClient">
    <query><![CDATA[SELECT e FROM Client e ORDER BY e.clientName]]></query>
    </named-query>
    <named-query name="findAllSource">
    <query><![CDATA[SELECT e FROM Source e ORDER BY e.sourceDesc]]></query>
    </named-query>
    <named-query name="findAllCategory">
    <query><![CDATA[SELECT e FROM SpotCategory e ORDER BY e.spotCategoryDesc]]></query>
    </named-query>
    <named-query name="findAllRecordStatus">
    <query><![CDATA[SELECT e FROM RecordStatus e ORDER BY e.id]]></query>
    </named-query>
    <named-query name="findAllSpots">
    <query><![CDATA[SELECT e FROM Spot e ORDER BY e.id]]></query>
    </named-query>
    </entity-mappings>
    entity example:
    @Entity
    @Table(name = "SPOTTYPE")
    @NamedQueries( { @NamedQuery(name = "SpotType.findById", query = "SELECT e FROM SpotType e WHERE e.id = :id"),
         @NamedQuery(name = "SpotType.findByStatus", query = "SELECT e FROM SpotType e WHERE e.recordStatus.id = :status") })
    public class SpotType implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(generator = "spotTypeSeq")
    @SequenceGenerator(name = "spotTypeSeq", sequenceName = "SEQ_SPOTTYPE", allocationSize = 1)
    @Column(name = "SPOTTYPEID", nullable = false, length = 2)
    private Long id;
    @Column(name = "SPOTTYPESHRTNM", nullable = false, length = 2)
    private String spotTypeShortName;
    @Column(name = "SPOTTYPELONGNM", nullable = false, length = 35)
    everything works until I clicked the activate the change button. I tried to override libs by putting libs I'm using in my domain, still I have the same error message.
    Libs that I have:
    Name 5 Size Type Date Modified
    antlr-2.7.6.jar 434 KB ALZip jar File 2/13/2008 5:28 PM
    asm.jar 26 KB ALZip jar File 2/13/2008 5:28 PM
    asm-attrs.jar 17 KB ALZip jar File 3/17/2005 4:05 PM
    cglib-2.1.3.jar 276 KB ALZip jar File 2/13/2008 5:28 PM
    commons-beanutils-1.7.0.jar 185 KB ALZip jar File 12/15/2007 7:12 PM
    commons-codec-1.3.jar 46 KB ALZip jar File 12/15/2007 7:12 PM
    commons-collections-3.1.jar 547 KB ALZip jar File 4/24/2008 10:28 AM
    commons-digester-1.8.jar 141 KB ALZip jar File 12/15/2007 7:13 PM
    commons-discovery-0.4.jar 75 KB ALZip jar File 12/15/2007 9:08 PM
    commons-el-1.0.jar 110 KB ALZip jar File 5/15/2008 1:11 PM
    commons-logging-1.0.4.jar 38 KB ALZip jar File 7/4/2004 4:49 AM
    dom4j-1.6.1.jar 307 KB ALZip jar File 2/13/2008 5:28 PM
    ehcache-1.2.jar 116 KB ALZip jar File 2/13/2008 5:28 PM
    ejb3-persistence.jar 52 KB ALZip jar File 3/14/2008 4:45 PM
    hibernate3.jar 2,222 KB ALZip jar File 2/6/2008 9:31 PM
    hibernate-annotations.jar 274 KB ALZip jar File 3/14/2008 4:44 PM
    hibernate-commons-annotatio... 65 KB ALZip jar File 3/14/2008 4:45 PM
    hibernate-entitymanager.jar 116 KB ALZip jar File 3/14/2008 8:07 PM
    jaas.jar 102 KB ALZip jar File 6/3/2004 11:31 AM
    javassist.jar 449 KB ALZip jar File 2/13/2008 5:28 PM
    jaxen-1.1-beta-7.jar 222 KB ALZip jar File 8/16/2005 2:04 PM
    jboss-archive-browsing.jar 13 KB ALZip jar File 2/13/2008 5:28 PM
    jhighlight-1.0.jar 92 KB ALZip jar File 12/20/2007 4:51 PM
    jsf-facelets.jar 294 KB ALZip jar File 9/27/2007 12:20 PM
    jstl-1.2.jar 405 KB ALZip jar File 5/15/2008 1:12 PM
    jta.jar 9 KB ALZip jar File 6/3/2004 11:31 AM
    junit-4.4.jar 158 KB ALZip jar File 5/15/2008 1:12 PM
    log4j-1.2.11.jar 343 KB ALZip jar File 8/13/2005 3:28 PM
    myfaces-api-1.2.2.jar 319 KB ALZip jar File 1/22/2008 3:40 PM
    myfaces-impl-1.2.2.jar 739 KB ALZip jar File 1/22/2008 3:40 PM
    nekohtml-0.9.5.jar 104 KB ALZip jar File 12/20/2007 4:42 PM
    ojdbc14.jar 1,322 KB ALZip jar File 2/13/2008 5:30 PM
    readme.txt 1 KB Text Document 5/15/2008 3:58 PM
    richfaces-api-3.2.0.GA.jar 150 KB ALZip jar File 3/31/2008 4:23 PM
    richfaces-impl-3.2.0.GA.jar 1,372 KB ALZip jar File 3/31/2008 4:23 PM
    richfaces-ui-3.2.0.GA.jar 2,215 KB ALZip jar File 3/31/2008 4:50 PM
    spring.jar 2,604 KB ALZip jar File 5/15/2008 1:12 PM
    xerces-2.6.2.jar 988 KB ALZip jar File 12/19/2004 6:14 PM
    xml-apis.jar 121 KB ALZip jar File 6/3/2004 11:31 AM
    This can be deployed to tomcat 6 without any problems.
    Thank you in advance for reading and your help.
    Edited by gzson at 05/19/2008 9:07 AM

    Follow the below link:
    http://www.hibernate.org/250.html#A25

  • Required queries to start services when they are in offline

    two node rac
    10.2.0.4
    windows
    asm(to prepare document)
    when services went offline to start the services i got below command
    To start, stop and manage services
    srvctl status service -d dbname
    srvctl config service -d dbname
    srvctl start service -d dbname -s servicename
    srvctl stop service -d dbname -s servicename
    Check Oracle Listener on nodes
    $ srvctl config listener -n orarac1
    orarac1 LISTENER_ORARAC1
    $ lsnrctl start LISTENER_ORARAC1
    please let me know for other services
    to start other services with crsctl and also if any queries can you list out pls one by one
    thanks..............you can check the services belwo
    D:\oracle\product\10.2.0\crs_home\BIN>crs_stat
    NAME=ora.info-iww-com-06.ASM1.asm
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.info-iww-com-06.LISTENER_INFO-IWW-COM-06.lsnr
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.info-iww-com-06.gsd
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.info-iww-com-06.ons
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.info-iww-com-06.vip
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.info-iww-com-07.ASM2.asm
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.info-iww-com-07.LISTENER_INFO-IWW-COM-07.lsnr
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.info-iww-com-07.gsd
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.info-iww-com-07.ons
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.info-iww-com-07.vip
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.osondemand.OSOD.cs
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.OSOD.osondemand1.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.OSOD.osondemand2.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.osondemand.db
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osod_srv.cs
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osod_srv.osondemand1.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osod_srv.osondemand2.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.osondemand.osondemand1.inst
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osondemand2.inst
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07
    NAME=ora.osondemand.osservice.cs
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osservice.osondemand1.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-06
    NAME=ora.osondemand.osservice.osondemand2.srv
    TYPE=application
    TARGET=ONLINE
    STATE=ONLINE on info-iww-com-07

    aman before i had services offline
    i used some crs_start commands
    i am not familar which command for which service i am only familar with few ,which i have listed above
    to make document for safe side....................as oracle insited when services are offline please start manually
    to start manually i am preparing document
    can you please provide each srvctl command and crsctl command to make service online.
    just i need is for above services when they come offline to come online what commands to use(srvctl and crsctl)
    thanks for help

  • Slow Running Queries after IMPDP

    Hi Xperts
    I have been doing table data and sequences restore every day, because the user ask for it.
    The user works with the Data Base to test some applications and at the end of the day
    I do table data restore to return the information to some point.
    I truncate every table, disable Constraints, disable Triggers and then I do and IMPDP
    of table data and sequences, then I enable Triggers, Constraints and at the
    end I execute statistics. This procedure is Only for one Schema.
    The problem is that some days the queries work fine, but, others days the queries work slowly.
    The procedure is the same every day.
    This is a Test Data Base: 11g R2, ASM under Oracle Linux 5.8 64bits
    Any advice ? why do some days the queries work properly ? others days work Slowly ?
    I execute statistics like this:
    exec dbms_stats.gather_schema_stats('MYSCHEMA');
    exec dbms_stats.gather_database_stats;
    exec dbms_stats.gather_dictionary_stats;
    IMPDP:
    impdp system/oracle1 FULL=NO SCHEMAS=MYSCHEMA CONTENT=DATA_ONLY directory=IMPDP_DIR dumpfile=Full_MYSCHEMA.dmp logfile=IMPDP_Full_MYSCHEMA.log
    impdp system/oracle1 FULL=NO SCHEMAS=MYSCHEMA CONTENT=METADATA_ONLY INCLUDE=SEQUENCE directory=IMPDP_DIR dumpfile=Full_MYSCHEMA.dmp logfile=IMPDP_Full_MYSCHEMAseq.log
    Thank you in advance
    J.A.

    The problem could be statistics. A simple fix would be to lock the statistics at the end of a day when performance is OK, and don't try to gather them again.
    By the way, a much better way to do this (better in terms of work for you and repeatable behaviour for your client) would be to enable database flashback for this sort of thing rather than repeatedly importing. Flashback requires Enterprise Edition licences.
    John Watson
    Oracle Certified Master DBA
    http://skillbuilders.com

  • Ora-01219 database not open; only queries on fixed tables and views.

    Hi everyone
    There is another post stating this error, but since the source is different, I think is okay to make a different post as well.
    Our database was working fine until the other day, when suddenly power went off, UPS was damaged and didn't hold, and when we restarted the database this is what happens:
    Using Enterprise Manager Console, we can make a succesful connection in the same machine, but if we choose Schema, the following error appears:
    ora-01219 database not open; only queries on fixed tables and views.
    When accesing from a different machine:
    ORA-01033: ORACLE initialization or shutdown in progress
    Thanks in advance

    Here is the last entries of alert log
    Fatal NI connect error 12638, connecting to:
    (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 11.1.0.7.0 - Production
    Time: 20-JUL-2010 15:48:31
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12638
    TNS-12638: Fallo de recuperación de credenciales
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Tue Jul 20 15:50:50 2010
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 11.1.0.7.0.
    Using parameter settings in server-side spfile E:\ORACLE\CRIMINALISTICA\PRODUCT\11.1.0\DB_1\DATABASE\SPFILECRIM.ORA
    System parameters with non-default values:
    processes = 150
    memory_target = 816M
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL01.CTL"
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL02.CTL"
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL03.CTL"
    db_block_size = 8192
    compatible = "11.1.0.0.0"
    db_recovery_file_dest = "E:\Oracle\flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = ""
    dispatchers = "(PROTOCOL=TCP) (SERVICE=CRIMXDB)"
    audit_file_dest = "E:\ORACLE\ADMIN\CRIM\ADUMP"
    audit_trail = "DB"
    db_name = "CRIM"
    open_cursors = 300
    diagnostic_dest = "E:\ORACLE"
    Tue Jul 20 15:50:55 2010
    PMON started with pid=2, OS id=1688
    Tue Jul 20 15:50:55 2010
    VKTM started with pid=3, OS id=2236 at elevated priority
    Tue Jul 20 15:50:55 2010
    DIAG started with pid=4, OS id=2332
    Tue Jul 20 15:50:55 2010
    DBRM started with pid=5, OS id=2328
    Tue Jul 20 15:50:55 2010
    PSP0 started with pid=6, OS id=2432
    VKTM running at (20)ms precision
    Tue Jul 20 15:50:55 2010
    DIA0 started with pid=7, OS id=2160
    Tue Jul 20 15:50:55 2010
    MMAN started with pid=8, OS id=2156
    Tue Jul 20 15:50:55 2010
    DBW0 started with pid=9, OS id=2064
    Tue Jul 20 15:50:55 2010
    LGWR started with pid=10, OS id=3176
    Tue Jul 20 15:50:55 2010
    CKPT started with pid=11, OS id=3180
    Tue Jul 20 15:50:55 2010
    SMON started with pid=12, OS id=3184
    Tue Jul 20 15:50:55 2010
    RECO started with pid=13, OS id=3188
    Tue Jul 20 15:50:55 2010
    MMON started with pid=14, OS id=3192
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = E:\Oracle
    Tue Jul 20 15:50:55 2010
    MMNL started with pid=15, OS id=3196
    Tue Jul 20 15:50:56 2010
    alter database mount exclusive
    Setting recovery target incarnation to 2
    Successful mount of redo thread 1, with mount id 1304879008
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount exclusive
    alter database open
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
    ORA-01110: data file 9: 'E:\ORACLE\ORADATA\STOPCRIM5\STOPCRIM5TABLESPACE.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 16 - see DBWR trace file
    ORA-01110: data file 16: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSTABLESPACE.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 17 - see DBWR trace file
    ORA-01110: data file 17: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSINDEX.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    ORA-1157 signalled during: alter database open...
    Tue Jul 20 16:04:39 2010
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.

  • Poor performance after moving from hp to linux, oracle 11.2.0.1 to 11.2.0.3, filesystems to ASM

    We moved a database from HP/UX to linux, upgraded oracle from 11.2.0.1 to 11.2.0.3, and from filesystems to ASM.  The new server has 32 cores and 500gb of memory. the old server has less than half of that.  Queries take twice as long to run on the new server as on the old server.  We've tested to eliminate I/O as the issue by creating a local filesystem and creating the database there.  The performance was still double over the old database.  We also moved the database to a 3rd server, using ASM and 11.2.0.3 of oracle for testing to prove to the systems administrator that it wasn't a database problem.  The performance on the 3rd server is incredibly fast.  This points to something on the new server.  Does anyone have any ideas of what to look at next, keeping in mind that we've tested the heck out of I/O.
    Thanks for any assistance.

    Well, a few details about your configuration could help:
    What does /proc/meminfo on the server show?
    How is the storage connected?
    What does: "# /sbin/ifconfig -a" show?
    Are you using ASMLIB or straight ASM?
    Are you using multipath connections to storage?  If so, make sure that "/etc/multipath.conf" actually identifies the composite device and not one of the physical paths.
    Are there any entries in "/var/log/messages" while running the ASM testing?
    I'm sure these questions will stimulate others.

  • ASM Disk Group RAID Levels

    This is the scenario that I am currently working on. Just need some input on whether it is feasible or not.
    We have a 2 node RAC running Oracle 10.2.0.3 on AIX 5L. Database size is ~2TB. The database mostly performs OLTP but also stores some historical data.
    There are two main applications using the database - one performs high reads with some small updates & inserts, while the other is very write intensive but does some reads as well.
    Currently there are three disk groups one for the tablespaces (dg_data), another for system/sysaux/undo tablespaces (dg_system) and another for archived logs & redo log copies (dg_flash) - all using external redundancy. ASM best practises recommend no more than 2 disk groups. It also recommends disk groups with disks of similar characteristics including raid levels. However, the dg_data disk group has both RAID 5 and RAID 1+0 disks which house tablespaces for both applications. Seeing that the applications have different requirements (heavy reads vs heavy writes) does it make sense to create a separate disk group with 2 different RAID levels or would using RAID 5 in dg_data satisfy both requirements?

    I am attempting to generate some statistics on the ASM Disks I/O activity before implementing the disk group separation in order have some metrics for comparison purposes. Enterprise Manager Grid Control displays the performance of disk groups and individual disks by showing the Disk Group I/O Cumulative Statistics. When comparing the results with the asmiostat output I am unable to correlate the results. I know that the asmiostat queries the v$asm_disk_stat view. Where does EM GC pull it's information from?
    For example, I run the following query on the ASM instance:
    SQL> select group_number,disk_number,total_mb,free_mb,name,path,reads,writes,read_time,write_time,bytes_read,bytes_written
    2 from v$asm_disk_stat
    3 where group_number=
    4 (select group_number from v$asm_diskgroup
    5* where name = 'DG_FLASH')
    GROUP_NUMBER DISK_NUMBER TOTAL_MB FREE_MB NAME PATH READS WRITES READ_TIME WRITE_TIME BYTES_READ BYTES_WRITTEN
    1 0 8671 8432 DG_FLASH_0000 /dev/asm2 14379476 10338479 149205.75 19633.64 290,136,450,560.00 7.2165E+10
    1 1 8671 8431 DG_FLASH_0001 /dev/asm3 11470508 10278698 184597.5 19313.54 249,769,027,584.00 9.2911E+10
    1 2 8671 8432 DG_FLASH_0002 /dev/asm4 17274529 8743188 178547.56 38342.52 339,439,240,192.00 6.7165E+10
    The output from the same period on Grid Control is below
    MEMBER DISKS AVG RESPTIME AVG THROUGHPUT TOT I/O TOT RDS TOT WRTS RDERRS WRTERRS
    DG_FLASH_0000 5.58 2.58 33179503 21949607 11,229,896 0 0
    DG_FLASH_0001 8.26 1.83 25752100 13131695 12,620,405 0 0
    DG_FLASH_0002 8.11 1.86 28269693 18798823 9,470,870 0 0
    The statistics in the query are lower than those in the EM GC report. I also tried querying the fixed views (x$) but the results were even more confusing.
    What is the best method for comparing and gathering statistics on ASM activity?

  • Can DBA force queries to run in parallel without modifying sql's queries

    Hi,
    We have a latest SUN SPARC server and storage available with Oracle database 11.2.0.3.While running our application on this database we found that only 1 cpu is being utilized out of 16 physical CPU's.
    Even in our End of day / month process total time taken is same as it takes on old server. We are not getting any benefits of latest more efficient server.
    Can't we force sql queries to run in parallel and make a most of available resources,without changing sql scripts.
    We want to do something from DBA side,can not bear sql scripting.
    Please suggest.
    Rgds,
    Praveen

    Praveen Saxena wrote:
    Hi,
    We have a latest SUN SPARC server and storage available with Oracle database 11.2.0.3.While running our application on this database we found that only 1 cpu is being utilized out of 16 physical CPU's.
    Even in our End of day / month process total time taken is same as it takes on old server. We are not getting any benefits of latest more efficient server.
    Can't we force sql queries to run in parallel and make a most of available resources,without changing sql scripts.
    We want to do something from DBA side,can not bear sql scripting.
    Please suggest.
    Rgds,
    PraveenWhat is the subject of this forum?
    What does this question have to do with ASM?

  • Any 10.2.0.3 ASM experience for dwh?

    We want to test and use ASM on a single instance 10.2.0.3 database with solaris 10 and emc storage for our datawarehouse environment. So please if you have any experience can you advice on below questions;
    1. any kind of bugs you might have experienced on this release?
    2. any kind of test experience which you might advice to check for both performance and availability of ASM?
    3. Some init.ora parameter which may be critical for a dwh ASM?
    4. how ASM instance can be backup up, no export or rman seems to be available?
    5. what is the best method to migrate xxTB of data on tru64 filesystem emc source to solaris emc asm target environment?
    Thank you.

    1) We had bugs but with the DB and not with ASM. Others may have experienced bugs specific to ASM but I have not.
    2) I think you would want to look at your waits. See what your disk seek time is. Again, that goes back to doing what you would normally do whether it was asm or not. The difference is with ASM you need to run queries and even use Grid Control to see how it is performing. If you really want to do ASM, buy the new Oracle ASM book from Oracle Press.
    3) It's in the documentation. ASM has it's on init.ora file.
    4) ASM is basically disk groups of disks. You want your DB to be backed up. Obviously there are things you can do if you lose a disk, but that's just as if a disk went bad. Worse case scenario you recreate your ASM instance and readd your disks and then restore your DB.
    5) With 5 you may want to look at Transportable Tablespaces and RMAN. GC gives you a GUI but I don't think it will give you all the detail you need.
    I would recommend you read through the docs and buy that ASM book.

  • ASM IOstats versus Rebalance & Striping

    Hi,
    We recently have set up a 2 node RAC with ASM.
    The CRS and ASM are on 11.1.0.7
    The database is on 10.2.0.4
    All is on two AIX 5.3 TL10 nodes
    We are kind of struggling to understand the striping of ASM. The two diskgroups DB01 & FB01 exist both of multiple disks. DB01 has 6 LUNs, FB01 has three.
    These LUNs are virtual disks, assigned/configured by the VIO server of the systems and are logical disks somewhere on our SAN
    Using the ASM diskgroups now we see that some disks are used more than others, and especially that some disks have a more worse average access-time than others.
    Can anyone explain me if the below output tells me some of the disks behave better than others.
    Does anyone of you guru's have a similar system with comparable stats on the disks?
    (Unfortunately I can't format the out more readable)
    Out ASM_POWER_LIMIT is set to three (3)
    select inst_id, group_number gn, disk_number dn ,
    2 writes, write_time, write_time/writes avg_write_time
    3 from GV$ASM_DISK_IOSTAT order by inst_id, group_number, disk_number;
    INST_ID GN DN WRITES WRITE_TIME AVG_WRITE_TIME
    1 1 0 319 .000029 .000000090909
    1 1 1 334 .000242 .000000724551
    1 1 2 2,531 .000392 .000000154879
    1 1 3 2,579 .000397 .000000153936
    1 1 4 328 .000219 .000000667683
    1 1 5 398 .000039 .000000097990
    1 2 0 2,351 .000477 .000000202892
    1 2 1 42 .000111 *.000002642857*
    1 2 2 51 .000112 *.000002196078*
    2 1 0 8,728 .003417 .000000391499
    2 1 1 4,728 .001547 .000000327200
    2 1 2 157,582 .030946 .000000196380
    2 1 3 149,422 .030384 .000000203344
    2 1 4 6,427 .002109 .000000328147
    2 1 5 9,567 .002872 .000000300199
    2 2 0 145,576 .029803 .000000204725
    2 2 1 1,450 .001023 .000000705517
    2 2 2 4,820 .002475 *.000000513485*

    The output (tried to format it, but no luck ):
    INSTNAME   |GN   |DN   |READS   |WRITES   |RERRS   |WERRS   |BYTES_READ   |BYTES_WRITTEN   |READ_TIME/READS   |WRITE_TIME/WRITES
    WCSPRD1      |1   |0   |40,984   |2,559   |0   |0   |740,172,288   |19,907,072   |.000000143690      |.000000120750
    WCSPRD1      |1   |1   |2,245   |2,039   |0   |0   |89,171,456   |20,096,000   |.000000864588      |.000000377146
    WCSPRD1      |1   |2   |72,980   |36,721   |0   |0   |1,223,776,768   |584,610,816   |.000000119636      |.000000221780
    WCSPRD1      |1   |3   |7,296   |35,942   |0   |0   |124,814,336   |579,739,648   |.000000144874      |.000000222136
    WCSPRD1      |1   |4   |170,136|2,048   |0   |0   |2,858,811,392   |16,337,920   |.000000061316      |.000000474121
    WCSPRD1      |1   |5   |2,020   |4,768   |0   |0   |138,240,000   |35,438,592   |.000001297030      |.000000097525
    WCSPRD1      |2   |0   |6,453   |34,147   |0   |0   |106,086,400   |577,748,992   |.000000091430      |.000000230855
    WCSPRD1      |2   |1   |4   |42   |0   |0   |360,448   |18,938,880   |.000000250000      |.000002642857
    WCSPRD1      |2   |2   |2   |51   |0   |0   |262,144   |19,120,128   |.000001500000      |.000002196078
    WCSPRD2      |1   |0   |255,702|12,493   |0   |0   |5,329,231,872   |369,942,528   |.000000203569      |.000000584807
    WCSPRD2      |1   |1   |77,829   |8,913   |0   |0   |2,363,526,656   |303,967,232   |.000000556464      |.000000723999
    WCSPRD2      |1   |2   |445,364|196,013|0   |0   |8,289,651,200   |3,264,385,024   |.000000279183      |.000000233699
    WCSPRD2      |1   |3   |103,254|185,410|0   |0   |2,685,607,936   |3,189,159,936   |.000000249007      |.000000230128
    WCSPRD2      |1   |4   |972,911|11,013   |0   |0   |17,041,897,984   |307,239,424   |.000000090843      |.000000679833
    WCSPRD2      |1   |5   |73,327   |13,987   |0   |0   |2,422,184,960   |379,976,704   |.000001152986      |.000000622721
    WCSPRD2      |2   |0   |34,462   |177,479|0   |0   |564,985,856   |3,012,513,792   |.000000069265      |.000000215755
    WCSPRD2      |2   |1   |4   |1,530   |0   |0   |360,448   |127,465,984   |.000000500000      |.000000892157
    WCSPRD2      |2   |2   |2   |4,973   |0   |0   |262,144   |183,618,048   |.000002000000      |.000000577720
    Edit: There is 'No Imbalance' in the diskgroups according to the queries.

  • How to know the size of archived logs created under ASM

    I using Oracle 10g on Linux x86-64.
    I need to ship the archived logs(not the entire directory, only a few) from the Live database to the DR site, so I need an estimate of how much time it will take to ship them across the network ?
    Is there anyway I can know the size of a specific archived log file stored under ASM ?
    We can use du in ASM to know the size of directory but I dont find a command in ASM to get the size of a file ?

    No we are also switching logfiles manually , so the maximum size may not
    have reached.
    What I need is something like ls -l command in the Unix prompt which will
    help us to find the size of the file , a similar command to help us determine
    a size of file in ASM ?What is the objective?
    Anyways, you can get the size of an archived log file by quering V$ARCHIVED_LOG view.
    SQL> select sequence#, name, blocks*block_size from v$archived_log where sequence# > 180;
    SEQUENCE# NAME                                     BLOCKS*BLOCK_SIZE
           182 C:\MYDB\ARCH\ARC00182_0633314306.001             223053312
           181 C:\MYDB\ARCH\ARC00181_0633314306.001             264281600
           183 C:\MYDB\ARCH\ARC00183_0633314306.001              26209280
           184 C:\MYDB\ARCH\ARC00184_0633314306.001                  4096
           185 C:\MYDB\ARCH\ARC00185_0633314306.001                 16384
    SQL>

  • Study Link for ASM

    Hi,
    Anyone send me some link which explains the concepts of ASM, ASM related Views and queries used in ASM instance.
    thanks in advance.
    regards,
    prem

    Search on google, you will get tons of papers on OTN. search key : 'ASM Best practices'
    Oracle documentation :
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/storeman.htm#i1021337
    Nitin vengulkar has written a good document on ASM.
    ASM Views:
    v$asm_disk
    v$asm_diskgroup
    v$asm_file
    v$asm_operation
    v$asm_client
    v$asm_template
    v$asm_alias
    New in 10gR2
    v$ams_disk_stat
    v$asm_diskgroup_stat
    Jaffar

Maybe you are looking for

  • Downloads on iPhone no longer download to iTunes

    If I download an album on my iPhone it used to download to the iTunes on my mac. Since the (horrible) iTunes 11 came out it doesn't work any more. The songs are listed, I can play them and I can make them into playlists but I can't add the playlist t

  • Format over catalog file, tried to recover file but now corrupt?!

    I recently performed a format of my hard drive.  When doing this, I did not back up my catalog file from photoshop elements(I have pse 8.0).  I backed up everything else, and I do have all of the original full size photo files from my hard drive, ~11

  • Quicktime 7.5 Won't Play Movie Trailers!

    Hi: I'm new to this forum. I'm having trouble with my "Free" Quicktime player. When I go to the Quicktime movie trailer website and click on the HD movie trailer button nothing happens at all and when I click on the normal movie trailer buttons a win

  • Problem in Scheduling trace for other user

    Hi,   I scheduled SAT/SE30 trace for other user(From user X, I scheduled for user Y). I executed the corresponding program in background in Y Login. Then, if I see the traces in X as well as Y Login, Nowhere I am getting the trace. The status is "In

  • Enabling JHeadStart to Generate Automatically RollBack Button

    How to modify JHeadStart Templates so it generates automatically a Rollback Button in every Uix Page. Best regards