Shutdown ASM instance with database up???

While reading through the Apex installation guide I ran across this statement:
If Automatic Storage Management (ASM) is running, shut down all databases that
use ASM except for the database where you will install Oracle Application
Express, and then shut down the ASM instance.
.... uh, leaving the one ASM based database up .. with the ASM instance itself shut down?
Am I mis-reading? Or do I have a fundamental flaw in my understanding of the relationship of the ASM instance with the database instances?

EdStevens wrote:
Included .. but upgrades of Apex?
Ed, upgrading Apex is fairly safe.
However, do not merely rely on a datapump/export of the current Apex schema as backup, prior to installing the upgrade (creating a new schema). Reason: there are objects installed as SYS which will be overwritten by the upgrade, and not exported by the backup. [have an outstanding feature request filed with Apex team to fix this - there are no reasons for using SYS for app objects]
Which is why I prefer a logical backup instead - an Apex export of apps and workspaces. This can be done via the command line. There is a Java program/jar for Apex that supports CLI access to automatically export all apps in all workspaces. I have a cron job that does this every night on all our databases as Apex apps are not made of the type of code one can checkout and edit from a traditional source code repository,
What is not exported, is extra content such as images, custom style sheets and so on (static contents). But is it a better idea to have static contents served by the web server, rather than via a db server session.
Apex is pretty kewl - one of the better web frameworks for Oracle that we've been using since Marvel/HTMLDB days. Some niggles. But overall an excellent product.

Similar Messages

  • Move ASM disks with database from one server to another?

    I have a 11.2.0 ASM with a 11.2.0 database on two internal disks on server1. The disks are not in any raid or volume manager configuration, i.e. they are just two disks. The disks were physically removed from server1 and installed on server2, which is the same hardware, OS, patch level etc, in the same target position. Installed the 11.2.0 rdbms and grid infrastructure binaries on server2; changed the raw disk partition ownership to oracle and started asmca. asmca does not see the disks.
    My question, is this possible and if so, what am I missing?

    I did not manually create an ASM instance and try to add the diskgoup. My understanding is, if you use asmca then it starts an ASM instance, if one is not already running, and lets you configure your diskgroup. This is what I am trying to do, with no luck (asmca does not see the disks)I may be totally wrong here but afaik dbca creates the ASM instance. ASMCA is just for adding disks or diskgroups......
    Did you try to create an ASM instance with dbca? When doing so do not put your disks in there - this will create a new disk group.....
    Ronny Egner
    My Blog: http://blog.ronnyegner-consulting.de

  • Create a new user for oracle 10G ASM instance with sysdba system privilege

    Hi,
    In our Golden Gate Project, we require the SYS user credential to connect to the Oracle 10g  ASM instance to read the database transaction logs.But our client is not providing the SYS user credential to  connnect to ASM instance.
    I'm getting the error message "ORA-01109:  database not open",When I tried to create a new user using the  below the steps in oracle 10g ASM instance
    1. Login using "sqlplus / as sysdba"
    2. Create user <username> identified by <password>;
    But in oracle 11g ASM instance, I'm able to create new  user  by connecting the ASM instance with SYSASM role without issues.
    Is there is any workaround to create a new user with sysdba system privilege in oracle 10g ASM instance?.
    Thanks in advance .

    Hi,
    Recreate the password file for the ASM instance as follows:
    Unix:
    orapwd file=<ORACLE_HOME>/dbs/PWD<SID> password=<sys_password>
    Windows:
    orapwd file=<ORACLE_HOME>/database/PWD<SID>.ora password=<sys_password>
    Now sys password is reset, we are ready to use sys for ASM management. I decided to create another user ASMDBA as I tried above.
    SQL> create user ASMDBA identified by test01;
    User created.
    SQL> grant SYSASM, SYSOPER to ASMDBA;
    Grant succeeded.
    SQL> select * from v$pwfile_users;
    USERNAME SYSDBA SYSOPE SYSASM
    SYS TRUE TRUE TRUE
    ASMDBA FALSE TRUE TRUE
    Please see this link : http://orachat.com/how-to-change-asm-sys-password-creating-sysasm-user-11g/
    Thank you

  • Shutdown ASM instance

    as oracle says regarding shutdown ASM instance normal and immediate options:
    ASM waits for any in progress SQL to complete before performing an orderly dismount of all the disk groups and shutting down the ASM instance, if any database instance are connected to the ASM instance , the Shutdown command returns error and leaves the ASM instance running.
    i have just got confused , which sql would asm instance waits to complete if it is going to return an error if any database instance is connected?

    You can use sqlplus and connect to the ASM instance as sysasm to configure diskgroups, perform maintenance or upgrades, for example. ASM does not know about transactions in databases that are connected to the ASM instance. Databases are simply connected or not.

  • Creating ASM instance with dbca

    Hi All
    I have 3 questions
    1 - Is the file needed to install ASM software is the same as the file need to install regular oracle software or they are 2 different installation files ?
    2 - Do I need to create 2 oracle homes , one for ASM and one for regular oracle software or only one ORACLE_HOME is needed ?
    3 - Do I need to run dbca once or twice to create the asm instance and database instance ?
    Thanks
    Edited by: user12302159 on Sep 25, 2010 12:58 PM

    Hello,
    1 - Is the file needed to install ASM software is the same as the file need to install regular oracle software or they are 2 different installation files ?
    Answer:The regular database uses normal file system but asm uses Raw devices which is not a file system at all it is just an empty disk.
    2 - Do I need to create 2 oracle homes , one for ASM and one for regular oracle software or only one ORACLE_HOME is needed ?
    actually you will need oracle home and asm home yes in 11g release 2 they added something being called grid infra structure and they made the cluster home and the asm home and the grid home combined in one home but it is not being called oracle home because oracle home is just for the oracle software.
    3 - Do I need to run dbca once or twice to create the asm instance and database instance ?
    In 10g yes 2 times you will do that and you can run it once and after you install ASM it asks you if you want to do anything else so you can do it once or twice.in 11g release 2 you dont use the dbca anymore to isntall asm you just use the grid software.
    Kind regards
    Mohamed

  • Install Instr. Says "Shutdown ASM Instance" Before Installing ApEx. Why?

    We have installed 11gR2 database. Now we are looking at chapter 4 of the ApEx 3.2 installation guide. One of the pre-install requirements says to shut down the ASM instance. Is it referring to the ASM Instance for the database that we are installing ApEx? It seems quite unclear because the database where we are installing ApEx is supposed to be running.
    Why is it necessary to shut down the ASM instance?
    Thanks,
    Gregory

    Gregory:
    That step is no longer mentioned in the 4.0 installation guide.
    In 11gR2, Application Express 3.2 is included in the database, unless you explicitly deselelcted that option when creating the database. After backing up the database, I would start with "4.3 Choosing an HTTP Server" in the installation guide and go from there.
    Regards,
    Jason

  • ASM Instance registeration with LISTENER

    Hi,
    For the purpose of Oracle Security change, I wanted to add SECURE_REGISTER_LISTENER = (TCP) to the listener.ora file. Then, I need to stop and start the listener, and to get the database register with the listener, I am supposed to do ALTER SYSTEM REGISTER;
    My question is:
    How will I register the ASM instance with the listener, please?
    is it same like registering database,i.e., ALTER SYSTEM REGISTER; while connecting with sys / as sysasm? will the ASM INSTANCE register dynamically?
    DB=10.2.0.4 OS=RHL
    [oracle@db ~]$ sqlplus / as sysasm
    SQL*Plus: Release 11.2.0.1.0 Production on Mon May 7 14:58:37 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Automatic Storage Management option
    SQL> show parameter local_listener
    NAME                         TYPE
    VALUE
    local_listener                    stringThank you.
    Regards,

    Hi,
    Thanks.
    After a change to listener.ora, when I start listener and register, will I be able to see the same as below (regarding +ASM)? Because all the services should be running after the change, rite?
    LSNRCTL> services
    Service "+ASM" has 1 instance(s).
      Instance "+ASM", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service
    - - - Regards
    Edited by: John-M on May 7, 2012 6:45 AM
    Edited by: John-M on May 7, 2012 11:22 AM

  • How to add one more database to an ASM instance

    Dear Gurus,
    I Created an ASM Instance and Database. Now I would like to install one more database and use the ASM instance to manage my disks.
    I tried using DBCA, It is not detecting ASM instance not sure why it is giving the problem.
    Thanks in advance.

    adchanana : I refered thread written by adchanana, I was able to fix my problem
    thanks

  • Rebooting the server with ASM instance............

    Hi folks
    I have to go for reboot of the server as I am adding a RAW device for having one more mount and also will be adding a disk to disk group.
    1) alter diskgroup diskgroupname add disk '/u09'; Is this correct to add a new disk to the diskgroup of ASM instance?
    2) I will have to shutdown all the six instances within the ASM instance and shutdown the ASM instance? Is this correct
    After a successfull Rebbot is done
    3) I will have to startup the ASM instance first and one by one startup the other six instances? Is it the right sequence.
    Please reply at the earliest.
    Thanks
    Shiva

    Hi
    If you want to shutdown the server to add the RAW device then:
    1. Shutdown all instances but shutdown ASM instance in the end.
    2. Shutdown server and add the RAW device.
    3. Startup server
    4 Add the diskgruop and also you can increase the value of rebalance parameter.
    5. Start all the instances that are using this ASM instance.
    Hope this Help
    Regards

  • Correct steps to reload ASM disks into a running ASM instance on Linux RHEL

    Hi guys,
    i hope this is the correct forum, awfully i did not found any document specifically talking abou this.
    first of all let me explain quickly my goal: in my server (it contains the same data of 3 production RACs for reporting purposes) i would like to shutdown a single instance (i have 3) and realod his disks to refresh the data or because for some reason its mount into ASM is failed.
    this is a mix of Oracle ASM and Linux stuff...
    on this server there is a shell script that perform the following steps:
    1) shutdown 3 instances of 11g (11.2.0.2.0 with patch for asm already installed for bug... dont remember)
    2) shutdown ASM instance
    3) stop ASMLIB
    4) stop multipathd
    5) remove all disks devices from linux
    6) take a snapshot on the 3 production RACs
    7) remap the disks to this server (SAN stuff)
    8) rescan the disks
    9) start ASMLIB
    10) start ASM instance
    11) mount the DiskGroups
    12) start 3 oracle instances
    this works fine... my problem is when i try to refresh the disks of just 1 of the 3 instances, i perform the following steps:
    1) stop instance ABC
    2) dismount ABC diskgroups related to ABC instance
    3) wait 5 seconds (dont ask... if idid it without ASM still have the disks locked)
    4) delete the ASMLIB disks (oracleasm deletedisk XYZ) relate to such diskgroups
    5) remove mpaths related to the disks that need to be refreshed or correctly mounted oneagain
    6) remove devices
    7) unmap disks on SAN
    8) take snapshot (clone disks)
    9) map disks from SAN
    10) delete bindings file
    11) rescan devices
    12) execute multipath command (to rebuild bindings file)
    13) execute oracleasm scandisks
    14) mount DiskGroups
    15) start instance ABC
    actually i dont understand why the OS (or specifically ASMLIB) do not recognize me anymore one of the ASMLIB disk
    do you have any idea ? or im completly crazy doing that ?
    best regards,
    Luca

    Hi,
    well this step
    4) delete the ASMLIB disks (oracleasm deletedisk XYZ) relate to such diskgroups
    is not good. Because it will clear the ASM Header and as a result ASM will never again be able to detect the disks.
    So it is clear that "scnadisks" later will not see the disks, because you wiped them.
    Worse: You did the snapshot after deleting them... this gets tricky to get them "repaired" again.
    However there is the possibility to relabel a dropped ASM disks. You need to open an SR for this, since the procedure to restore the lost ASM header is not that simple..
    Regards
    Sebastian

  • Shutting down ASM instance in 11.2 RAC

    DB version : 11.2.0.2
    Platform : Solaris 10 / AIX 6.1
    2-node RAC
    Since OCR and Voting Disks are stored in ASM Diskgroups (11.2) , is it OK to shutdown ASM instance in any or both of the nodes ? ie.
    Will CRS in a node go down if you shutdown ASM instance in that Node ?

    greeny wrote:
    DB version : 11.2.0.2
    Platform : Solaris 10 / AIX 6.1
    2-node RAC
    Since OCR and Voting Disks are stored in ASM Diskgroups (11.2) , is it OK to shutdown ASM instance in any or both of the nodes ? ie.
    Will CRS in a node go down if you shutdown ASM instance in that Node ?Yes. You will have to first stop the Oracle Clusterware stack on the node on which you need to stop the Oracle ASM instance.
    Either use "crsctl stop cluster -n node_name" or "crsctl stop crs" for this purpose.
    Since you are using OCR and VOTING DISK on ASM, it's not possible stop only ASM and keep cluster running.
    Regards,
    Levi Pereira

  • Diagnosing an ASM space issue for a primary and a standby database instance with external redundancy.

    I've received an alert from Enterprise manager saying "Disk Group DATA_SID requires rebalance because at least one disk
    is low on space". My colleague who I would go to with this question is unavailable, so this is a learning opportunity
    for me. So far google and Oracle documentation have provided lots of information, but nothing that answers my questions.
    I've run the following query on both the primary and standby databases ASM instances:
    select name, disk_number, sector_size,os_mb, total_mb, free_mb, redundancy from v$asm_disk;
    On the primary I get 4810M Free space and 18431M Total Space
    on the standby I get 1248M Free space and 18431M Total Space -- this is the one that complained via OEM
    When I run the following query in the database instance:
    select sum(bytes)/1024/1024 MB from dba_segments;
    I get 3736.75M as a result.
    My questions are:
    1. Will OEM's suggestion to rebalance the disk actually help in this situation since the instance is set up with external redundancy?
    2. If I've got 18G of space and only 3.7G of data, why is OEM complaining?
    3. How can I reclaim what I presume is allocated but unused space in my problem disk group?
    4. How can I determine what extra data the standby has that the primary doesn't since both have the same total space allocation, but different amounts of free space?

    Thank you for the reply. That link is very good.
    We are an 11.1 version of our database. Linus is OEL 5.6.
    So, looking at the portion of the link that refers to 'Add Standby database and Instances to the OCR' - If we use SRVCTL to give the STANDBY the role of ‘physical_standby’ and the start option of ‘mount’, what effect will that have if the STANDBY becomes our PRIMARY?
    Would these database settings need to be modified manually with SRVCTL each time?
    We understand why the instance is not starting when the node is rebooted, we are looking for a best practice of how this is implemented.
    Thank you.

  • Trouble using asm instance for new database

    I have an asm instance and am trying to create a new database that will use the asm storage. I'm using dbca to create the new database. This is a test system on windows so I'm using the asmtool -create flatfiles for disks with the asmallow_only_raw_disks parameter set to false.
    If I have #SQLNET.AUTHENTICATION_SERVICES = (NTS) commented out in my sqlnet.ora, then I can't get into asmcmd:
    ORA-01031: insufficient privileges (DBD ERROR: OCISessionBegin)
    and dbca won't create the new database that uses asm because the dbca gets the same 01031 error when trying to create the control files for that database.
    If I have SQLNET.AUTHENTICATION_SERVICES = (NTS) NOT commented out, the I can get into asmcmd, but I can't startup the databases using sys, even though I am sitting at the server,
    AND, dbca won't create the new database that uses asm becuase the dbca can't start the instance
    credential retrieval failure.
    I'm in a catch 22. Something is not right with my system but I just can't seem to figure out what it is.
    The asm instance does have a password file.

    I let the dbca create scripts and am currently walking through the scripts. I think it's my asm database that is actually creating the problem. I did the orapwd and oradim manually and can startup nomount the instance just fine. The create database statement fails on creating the controlfile but it's saying it already exists. I suspected the dbca form wasn't giving me all the errors like it should.
    Thanks for your suggestion on the password file.

  • 10g ASM instance and 11g database

    Hello,
    does anybody ever connected ASM instance10.2 and database 11.1? Is there any sense in it? When I have two databases: 10.2 and 11.1 running on the same host, should they both use separate ASM instances or is it possible to connect them to the common one?
    Thanks,
    Aliq

    Yes, such combination is supported with asm 10.2 and database 11.1.
    You can check metalink note 337737.1 as well.

  • ASM instance shutdown abort automatic on 10gr2 RAC

    Hi all, I have a oracle 10gR2 RAC on solaris9 with three nodes.the node2 and node3 work right,but the ASM instance on node1 often shutdown abort automatic and no any erros in alertlog file.
    why ?
    Fri Nov 3 10:17:39 2006
    Shutting down instance (abort)
    License high water mark = 6
    Instance terminated by USER, pid = 15327

    Does anyone know ?

Maybe you are looking for

  • Error while creating Generic Extractor via Function Module

    Hello Guys I have created a Generic Extractor through a Function Module. I took the Standard FM: RSAX_BIW_GET_DATA_SIMPLE, gave it a new name and activated it. I made a few changes in it, like giving my structure name for E_T_DATA and giving the list

  • How can I include controlfile in FRA without recreating it?

    Hi everyone, We have a DB Oracle 10.2.0.3.0 with our controlfiles outside the FRA. Is there any way to multiplex the contolfile, and put one copy of it inside the FRA without recreating it? I can change the spfile and include the path of a copy of th

  • How can I get a Norwegian dictionary into InDesign (Creative Cloud)?

    I use InDesign (Creative Cloud) and the English version of the software. This seems to only contain an English dictionary, but I need a Norwegian dictionary. Does Adobe have one to import? When I change dictionary to Norwegian in  preferences, nothin

  • How to canceel excise jv

    Dear All For cenvat utilization ,our key user has passed jv for tranferring amt from PLA on hold to  PLA BED,ECES,SECS. But he did mistake and given worng amount .So passed one more jv. Now in PLA register the balance showing are wrong.The utilizatio

  • Clob or XML

    Hello, I need to store product specifications and definitions to display on the internet. These definitions are very long and detailed. Moreover, they include imagery. I need to develop queries on these products, too. Should I store all the descripti