How to organize RAC database files on ASM

How to Organize RAC database files on ASM.
Say,
DISK Group = DATA
DISK Group= FLASH
Instance = prod1, prod2
'+DATA/PROD/datafiles/'
or
Need to Organize sepratly for each instance specific db files.
as
'+DATA/PROD1/datafiles'
'+DATA?PROD2/datafiles'
Thanks in Advance,
Regards
Satish

It would be just PROD - since that's the database name...and BTW, when you use DBCA to create a database using ASM, it organizes data files under PROD and it doesn't use instance names.
HTH
Thanks
Chandra

Similar Messages

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How to specify the database file path when create FDM application

    Dear All,
    How to specify the database file path (MSSQL) when create FDM application?
    Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
    Thanks.

    Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
    Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question.

  • How to configuare RAC database in single system?

    Hi,
    I have installed Linux in my system. Can i create RAC database in that system? if it is possible , how to create RAC database?..
    Thanks,

    RAC on a single machine? Can't think of any other method than virtual machines.
    Tim Hall has a good article for RAC using virtual machines on Linux here...
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php

  • How to use RAC database connection details in oc4j.xcfg files

    Hi all,
    we are using oc4j.xcfg files for the application module configuration for an ADF application. and one of the database has been configured on RAC. Any input on how to specify the RAC database details in the oc4j.xcfg file specially for the host name parameter.
    The example entry like in oc4j.xcfg is like
    ?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="AppModuleLocal">
    <AppModuleJndiName>dbta.model.AppModule</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>connectDB</JDBCName>
    <ApplicationName>dbta.model.AppModule</ApplicationName>
    <jbo.project>Model</jbo.project>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="connectDB">
    <ENTRY name="ConnectionName" value="connectDB"/>
    <ENTRY name="URL" value="jdbc:oracle:thin:<user>/<pass>@<server>:<Port>:<SID>"/>
    <ENTRY name="HOSTNAME" value="<server>"/>
    <ENTRY name="JDBC_PORT" value="<port>"/>
    <ENTRY name="SID" value="<SID>"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    <ENTRY name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    how to specify the failover nodes details in the above entry for host name etc.
    Thanks
    Navin

    Here you are; all you want at
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/OCIdriverTAFSample/OCIdriverTAFSample.java.html

  • How to query a database file on my hard drive?

    Hi,
    I have a filer called "server.dbs" on my hard drive. It is a database file. I use a simple program that allows you to view databases, and it loads up and I can traverse the database and see all the entries as any standard database.
    So I figured that Java's ability to handle SQL would allow me to make a standard SQL statement querying the database, and be able to get the results. The software stores servers in SID fields, and the value is the port the server runs on. I want to make a simple query to select a server by SID, and print the port in which that server is running on.
    So is there any way to, via my java application, load a database from a file (rather than a url) which has no authentication required, and simply make my queries directly to that file? If so, how?
    Thanks!
    -Josh

    Normal database access is via JDBC.
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    To use that JDBC driver is needed to access the database. Databases in wide usage all have one. It isn't clear from your posting that you have a common database though.

  • How to create a DataBase File like MDB or DBF to web

    Hi People,
    I'm a Delphi Developer and I'm new in Java.
    I need to make a DataBase File like MDB or DBF to work online.
    I will make a Form to sign users. All of user's information, for example: user name, address, mail, phone, will need to record in my database file.
    I think about it, because I don't have a DataBase Server Like SQL or Oracle.
    Any Idea?
    Thank's very much
    Jairo

    Take a look at hypersonic database for an open source solution.
    I know that Borland has something they call a JDataStore that keeps everything in one file, and is supposed to be pretty quick. You have to pay for it though.
    - K

  • How to attach sql database file to creating .exe setup in c#

    I create a Setup file and put data folder, in data folder i put database file , but the problem is i have to mannualy attach database file in sql server 2005. I have to automatically attach database file when installing setup file.

    Hi
    bhagvad,
    Welcome to MSDN Forums!
    We can implement auto attach database just use the connection string following.
    1)      
    Add a folder named ”DB” to the project, and copy the database file into it after you detach it from your sql server.
    2)      
    Change your connection string like this:
        <connectionStrings>
            <add name="WindowsFormsApplication1.Properties.Settings.BabakConnectionString"
                connectionString="Data Source=.;AttachDbFilename=|DataDirectory|\DB\Babak.mdf;Initial Catalog=test;Integrated Security=True"
                providerName="System.Data.SqlClient" />
        </connectionStrings>
    3)      
    After these, the database file will auto attach to the sql server when you run your application, and the database name is “test”, you can open the sql server
    management studio to find it.
    In addition, you can find the connection in the app.config file through the solution explorer in vs2010. And you also can find this file under your project. With
    these information, you can find it and modify it.
    If there’s anything unclear, please feel free to let me know.
    Best wishes,
    Mike
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually
    answer your question. This can be beneficial to the others community members reading the thread.
    when i try this i have an error from the computer. in my computer just microsoft server 2005 installed. and i need to setup my project. 
    <add name="TelekomEthernetApp.Properties.Settings.TelekomEthernetConnectionString" 
           connectionString="Data Source=.;AttachDbFilename=|DataDirectory|\DB\TelekomEthernet.mdf;Initial Catalog=test;Integrated security=true" providerName="System.Data.SqlClient"/>
    what is the problem?
    http://img31.imageshack.us/img31/2305/asdet.png

  • How to register RAC database to new listener manually in 10g?

    Hi Rac Experts,
    OS : Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
    Oracle 10.2.0.2.0 database
    I am working on to register my two node RAC database to the new listener which i have created manually, after listener creation when i start the listener it only handles local instance but not the remote instance. Please advice....
    Please note that netca is not working on this machine and i am working from remote location, so i don't have gui access from here.
    Following is my listener on node1:
    LISTENER_OR44D1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = virtual ip)(PORT = 1527)(IP = FIRST)))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = actual ip)(PORT = 1527)(IP = FIRST)))
    SID_LIST_LISTENER_OR44D1 =
    (SID_LIST =
    (SID_DESC = (ORACLE_HOME = /u01/app/oracle/product/oracle10/db)(SID_NAME = or44d1))
    -- PTLDBA.

    Hi,
    I did as per you advice but facing below error, i am i missing anything here. Please advice...
    SQL> show parameter liste
    NAME TYPE VALUE
    local_listener string LISTENER_or44d1
    remote_listener string LISTENERS_or44d
    SQL>
    SQL> show parameter service
    NAME TYPE VALUE
    service_names string or44d
    SQL>
    SQL> alter system set local_listener=or44d1 instance='or44d1';
    alter system set local_listener=or44d1 instance='or44d1'
    ERROR at line 1:
    ORA-02065: illegal option for ALTER SYSTEM
    SQL>
    SQL> alter system set local_listener='or44d1' instance='or44d1';
    alter system set local_listener='or44d1' instance='or44d1'
    ERROR at line 1:
    ORA-02065: illegal option for ALTER SYSTEM
    --PTLDBA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to remove archive log files from ASM managed 11g R2 database?

    Hi,
    I am planning to automate deletion of older archive log files from my 11g R2 Production instance which is ASM managed.
    Also want to remove the archive log files files from standby database.
    Please provide your inputs on how can I remove the older archive log files.
    Regards,
    Avinash

    Greetings
    Did you check RMAN,
    RMAN>show all;
    CONFIGURE RETENTION POLICY . . . .
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
    DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-10';
    This will be part of your RMAN Backup scripts/process
    Check the urls below:
    11gRel2:
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV90079
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV89634
    10g:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm#sthref45
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1008093
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/maint003.htm#sthref712
    Regards & Thanks
    BN

  • Question about how a RAC database connects to ASM

    I have recently installed Grid Clusterware 11.2.0.1 on an IBM PSeries server running AIX. Today, I installed the Oracle database software, version 11.2.0.1, but when I try to start the database, I get an error message: ORA-01031: insufficient privileges.
    I can log in to the ASM instance using "sys as sysdba" but when I try to log in to ASM as "sys as sysasm" then I get the same error message.
    Obviously I have configured something incorrectly. I would appreciate any help locating the proper documentation so I can correct my errors. All advice is greatly appreciated. Thank you.

    Hi,
    Regarding the AIX group "asmdba", we do not have separate administrators to handle the administration of ASM in 11g. I read in the documentation (Grid Infrastructure Installation Guide) that if separate administrators are not wanted for ASM and the database(s), then "asmdba" group is optional. Would you recommend creating this group anyway?I agree to create OS group asmdba it's mandatory only if you are using different user to GUI Install.
    But it's a question of organization of the environment. Each group will designate different kinds of permissions and different roles.
    So, Although the ASM come built into Oracle Database (actually 11.2 and higher Oracle has created a new layer called Grid Infrastructure), Clusterware, ASM and Database products are completely different for different purposes. With the evolution of these products believe that the tendency is they have their own installation and administration. Yet all will work together.
    Create a group asmdba will not impact the current environment, only will help keep the environment more organized to the future. Look on the bright side, if one day you need of group asmdba, you does not need to re-configure the environment.
    Correcting my previous post the group that has permission to access as SYSASM privilege is asmadmin instead of asmdba.
    Cheers,
    Levi Pereira

  • How to delete Archive log files in ASM?

    Hi,
    Env: Sun Solaris
    10.2.0.2.0 RAC with 2 node cluster
    using ASM
    I noticed that there are directories for ARCHIVELOG for every day.
    for example:
    2007_01_13/
    2007_01_29/
    ASMCMD> pwd
    +DG01/<<INSTANCENAME>>/ARCHIVELOG
    a) How to purge these files/directories automatically?
    b) We use RMAN for backup. Not sure if these directories are created by RMAN
    Thanks

    Natrajan,
    Since I don't remember what exactly I did which caused stopping those folder from being created, this is what I would try.
    You have mentioned that these folder are being created at
    "+DG01/<<INSTANCENAME>>/ARCHIVELOG" in your first post. Is this the same location what you set at init/spfile.ora ?
    "*.log_archive_dest_1='LOCATION=+<<DISKNAME?>/<<DBNAEM>>/'"
    If yes please change one of the nodes
    node1.log_arch_dest_1 to some where else which is not the current location. Then watch whether these directories being created at this location. If they are not created we have an answer what causing this folder creation.
    This is just a suggestion.
    Do you see the filename inside these foloder somewhat in this pattern
    "o1_mf_1_9403_2pxpr9dw_.arc"
    Let me know what you think? Again it is just a suggestion I really don't know the answer.
    Thanks
    Leo

  • How to organize variables for file saving and scalability?

    Hello,
    I have created several CVI applications that store production data for numerous machines.  To organize the data for file saving I have implemented structures.  This has worked well with one limitation, the inability to scale the structure at a later date without invalidating existing files.  I would like to consider alternative approaches that would allow scalability.
    Here's an example of my current method...
    // Definition of structure per machine.
    struct machine_1
       int  int_param_1, int_param_2, int_param_3;
       double  dbl_param_1, dbl_param2, dbl_param3;
    struct machine_2
       int int_param_1, int_param_2, int_param_3;
       double dbl_param_1, dbl_param2, dbl_param3;
    // Definition of inclusive structure. (Member name and structure tag name are the same.)
    struct
       struct machine_1   machine_1;
       struct machine_2   machine_2;
    } machine_parameters;
    To assign a value to a structure variable:
    // Assign value.
    machine_parameters.machine_1. dbl_param_2 = 77.47;
    Then when it comes time to save the populated structures:
    // Save structure.
    error = fwrite (&machine_parameters, sizeof(machine_parameters), 1, dest);
    The problem comes later when multiple files already exist and one of the machine structures needs an additional variable added.  For example, if I need to add int_param_4 to the machine_1 structure.  Adding this variable will invalidate the previously saved files because they were saved with a different structure and will not be able to be opened with a new structure containing one additional variable due to the structure definition mismatch.
    I have added spare variables per data type to the structures for each machine, but it's a losing game.  If I add 10 spare variables, I end up needing to store 11 more pieces of data.
    Is there a better approach?
    Thanks,
    Aaron T.

    One simple way is to output the data as ASCII comma separated values, with a newline character at the end of each row of data.
    I.E., the only structure to your file data is a "row" of CSV's, with the file containing some number of rows.
    Then, you load the data into Excel, and it will parse the CSV's for you and when it sees the newline, put the next set of CSV's on the next row of the worksheet.
    If you ever need to expand the number of items in a row, you just add them as you generate data, pushing the newline to the right, the extra data  extending the row.
    So you get an Excel worksheet filled with rows of (possibly varying length) data.   So long as you add data at the end of the row when you redefine what you're saving, anything reading the file should see the same stuff that was always there.
    You can write a macro to reformat or parse the CSV's once they're in the spreadsheet.  With Excel 2007 supporting very large worksheets, you can put a lot of data into one.  I think they expose a C interface for writing fast data manipulation of cell data now too - sort of a fast macro from the Excel viewpoint.  I think the number of columns is 16384 and 1 million rows in a "Big Grid". The Excel 2007 engine is multi-threaded and you can tell it how many cores to use on a multicore machine.
    So the only problem I see is the loss of local structure (your C structs get serialized and get concatenated to one another) but you could re-introduce the structure with a macro.
    Or, if you were to write out serialized binary values and then view the file data using a hex editor like Neo, you can tell Neo what your C structs were and it will pick up binary file data and put it back into the C structs for viewing.
    Or use MatLab to read the CSV's and reformat it.
    Or use the CVI SQL interface and write it out as database records.  I think the SQL toolkit costs extra, maybe it comes with the FDS. 
    Menchar

  • JPA: how to organize multiple databases having the same schema definition?

    Hi there,
    I'm new to Java EE but I could finish some test projects on GlassFish 3 / Java EE 6 platform.
    Now it's time to build the actual system and I need some help in that.
    So, I can't really tell you the exact purpose of this system but let's look at the following example which is very close to what I need.
    Say there is a database schema definition (DDL) for Oracle 11g and this schema is storing the inventory of a shop. So tables like product, category, price etc
    Say there are 50 shops, and I'm getting a new database for each shop every month holding their inventory.
    So every month I'm receiving a SQL file with INSERTs (DML) for every shop for the DDL I mentioned above.
    I'm getting 50 SQL files for the 50 shops every month, so in a year you're talking about 600 SQL files to import.
    If it was php/MySQL I could import them into a separate database each, call it shop1_May11, shop2_May11 etc reflecting the shop name and the month in the database name.
    This is my question how you guys think I should achieve this in Jave EE / Oracle.
    As the DDL is the same I thought to create an Entity for each table and use the Java Persistance API to create the databases and then I'd import the month/shop specific SQL files.
    But this means I'm gonna create 50 new schemas in Oracle every month?
    Or what's the best way to achieve this?
    Thanks in advance
    Edited by: 833519 on May 18, 2011 5:28 AM
    Edited by: 833519 on May 18, 2011 5:29 AM
    Edited by: 833519 on May 18, 2011 5:31 AM

    JPA helps a lot in persisting and retrieving data that has relationships without having to worry about the relationships at a sQL level.
    So you get a java programmer that builds relationships using Java classes (the entities) and a persistence provider worries about the sql required to materialize those relationships.
    You seem to be using SQL inserts for persisting the data and you want to generate the reports from SQL as well.
    You can use it but you won't be gaining much of its advantages for this project.
    Consider reporting applications like the jasperserver for the reports.
    Also, I have seen people get away with using one database for this type of thing and just adding a clientid (and optionally branchid) to each table.

  • How to locate SQL database files

    Over the years I've used and discarded any number of applications, many of which created SQL databases.  I'm trying to clean out various odds and ends and would like to know how to search for anything SQL.  I know, for instance, that mail.app uses SQL but I have no idea where to find the database (not that I want to delete Mail!). 
    I'm comfortable using Terminal if that's the way to go.
    Any tips on locating hidden SQL databases would really be appreciated.
    Thanks!

    Similar to when users delete mailbox content, moving user mailboxes doesn't reduce the size of the edb file.  Instead, the database simply gains "white space" which will be filled in before the edb grows any further.  Once your users
    are vacated, you can remove the databases from AD per the cmdlet mentioned above.  as a safety measure, that cmdlet doesn't delete the actual edb files, but once you've run it, yes, you just go and press the delete key on the files.  Obviously "ctrl+a"
    means all files, which isn't what we're talking about.  Just the database and associated log files.
    Mike Crowley | MVP
    My Blog --
    Baseline Technologies

Maybe you are looking for