How to [ASM + GRID + DATABASE]

hello Experts ... I need some help
My plan this month is Learn how to installing grid infrastructure 11g then creating ASM disks group then installing oracle Database 11g R2 on Oracle Enterprise Linux 5 (not VM) for learning purpose
In fact I have taken those steps but many problem ouccer
In fact I tried to install OEL and GRID and Database 4 times in case not success the format the hole system and again install OEL and repeat the process
this what I do
- Network preparation (host, static ip)
- Environment preparation (required packages, edit some files, create groups, create users, make directories, change permissions)
- ASM preparation (create ASM volums using ASMLib, permissions, raw device ...)
-> in fact I have two Hard disks first one I partitioned into 4 partitions fist part for /boot second for / and third for swap area then I keep free space to use it as ASM volume
-> Second hard disk I partitioned into 4 parts to use it as ASM volumes
- Then start the Installer for grid (install and configure grid infrastructure for a Standalone Server)
- Start Installer for Database
Any one help me ?!! is these steps the right steps?!!!
are these steps the right steps?!!

i solved the problem ;)

Similar Messages

  • 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

  • How to configure automatical startup of both ASM and Database

    I created a ASM and a database that uses this ASM for file storage management. I also edit the /etc/oratab file as followings:
    +ASM:/u01/app/oracle/product/10.2.0/asm:Y
    orcl:/u01/app/oracle/product/10.2.0/db_1:Y
    However, when I reboot the system, both ASM and database instances cannot be started up automatically.
    How can I configure automatical startup of both ASM and Database at system reboot?
    Thanks in advance!

    try the following
    Create file called startdb.sh in $ORACLE_HOME/bin and put following line into startdb.sh and
    change the permission of the file with following command.
    $vi $ORACLE_HOME/bin/startdb.sh
    su - oracle -c 'sh /oracle/product/10.2.0/db_1/bin/dbstart'
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME
    $chmod 777 $ORACLE_HOME/bin/startdb.sh
    Open /etc/inittab file and append following two lines in /etc/inittab.
    h2:35:once:/etc/init.d/init.cssd start >/dev/null 2>&1 </dev/null
    h3:35:wait:/oracle/product/10.2.0/db_1/bin/startdb.sh >/tmp/stdb.out 2>&1
    If you have h2,h3 in the inittab file please feel free to change it to h4,h5 or whatever is unique, but it has to be unique name
    Please replace /oracle/product/10.2.0/db_1/ with your ORACLE_HOME.
    Reboot machine and check out whether both instances are getting started or not.Please check $ORACLE_HOME/startup.log for more information.
    rgds
    alan

  • 11g (11.2.0.3) : steps to take after reboot of system (asm grid ...)

    Hi all,
    I'm fairly new to oracle installation and the likes.
    I have a setup in which Oracle 11g is installed on a virtual machine (vagrant - virtualbox) where i can succesfully install :
    Grid software
    Db software
    Asm disks
    database installation
    After these steps, i can succesfully create & connect to databases.
    Then, we package the virtual machine. This serves as a templates for a new virtual machine i bring up...
    Here it begins...
    I'm trying to find out what steps i should take so that eventually i can again connect to the database/users I created in previous step.
    Already i found out that i need to :
    * init oracleasm (/usr/sbin/oracleasm init)
    * scan for my asm-disks (/usr/sbin/oracleasm scandisks)
    which services should be started next (and how?), so that eventually my listener will be able to see again the databases/users I created ?
    Thanks in advance,
    kevin

    f7846272-d770-4f7f-af48-a9cdd344da3b wrote:
    Hi all,
    I'm fairly new to oracle installation and the likes.
    I have a setup in which Oracle 11g is installed on a virtual machine (vagrant - virtualbox) where i can succesfully install :
    Grid software
    Db software
    Asm disks
    database installation
    After these steps, i can succesfully create & connect to databases.
    Then, we package the virtual machine. This serves as a templates for a new virtual machine i bring up...
    Here it begins...
    I'm trying to find out what steps i should take so that eventually i can again connect to the database/users I created in previous step.
    Already i found out that i need to :
    * init oracleasm (/usr/sbin/oracleasm init)
    * scan for my asm-disks (/usr/sbin/oracleasm scandisks)
    which services should be started next (and how?), so that eventually my listener will be able to see again the databases/users I created ?
    Thanks in advance,
    kevin
    In your scenario, I'd expect oracle restart to take care of that for you.  See the chapter "Configure Automatic Restart of an Oracle Database" in the Database Administrator's Guide.  Configuring Automatic Restart of an Oracle Database

  • DBCA can not use ASM for database storage due to following reason: Could no

    Hi
    I've a recently installed RAC11gR2(11.2.0.3) on HP-UX
    I installed Grid Infrastructure with grid user:
    Node1: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    Node2: # id grid
    uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba)
    I installed the Oracle Server with oracle user:
    Node1: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    Node2: # id oracle
    uid=1101(oracle) gid=1000(oinstall) groups=1031(dba),1021(asmdba),1033(oper)
    All related Grid Infrastructure is functioning well in both nodes:
    $ crs_stat -t
    Name Type Target State Host
    ora.DATA.dg ora....up.type ONLINE ONLINE node03
    ora.FRA.dg ora....up.type ONLINE ONLINE node03
    ora....ER.lsnr ora....er.type ONLINE ONLINE node03
    ora....N1.lsnr ora....er.type ONLINE ONLINE node04
    ora.asm ora.asm.type ONLINE ONLINE node03
    ora.cvu ora.cvu.type ONLINE ONLINE node04
    ora.gsd ora.gsd.type OFFLINE OFFLINE
    ora....network ora....rk.type ONLINE ONLINE node03
    ora.oc4j ora.oc4j.type OFFLINE OFFLINE
    ora.ons ora.ons.type ONLINE ONLINE node03
    ora.scan1.vip ora....ip.type ONLINE ONLINE node04
    ora....SM1.asm application ONLINE ONLINE node03
    ora....03.lsnr application ONLINE ONLINE node03
    ora....d03.gsd application OFFLINE OFFLINE
    ora....d03.ons application ONLINE ONLINE node03
    ora....d03.vip ora....t1.type ONLINE ONLINE node03
    ora....SM2.asm application ONLINE ONLINE node04
    ora....04.lsnr application ONLINE ONLINE node04
    ora....d04.gsd application OFFLINE OFFLINE
    ora....d04.ons application ONLINE ONLINE node04
    ora....d04.vip ora....t1.type ONLINE ONLINE node04
    $
    The ASM instance are running well in both nodes
    Connected with oracle user, the listener has registered perfectly the ASM instance in each node:
    $
    $ lsnrctl status
    LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 16-MAY-2012 15:41:06
    Copyright (c) 1991, 2011, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
    Start Date 16-MAY-2012 15:24:19
    Uptime 0 days 0 hr. 16 min. 47 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
    Listener Log File /u01/app/grid/diag/tnslsnr/node03/listener/alert/log .xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.133)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=16.0.0.136)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    $
    $
    DATA & FRA disk group are created:
    $
    $ echo $ORACLE_SID
    +ASM1
    $
    $ asmcmd
    ASMCMD>
    ASMCMD> ls -lt
    State Type Rebal Name
    MOUNTED EXTERN N DATA/
    MOUNTED EXTERN N FRA/
    ASMCMD>
    ASMCMD>
    The big issue is... that the DBCA can not see the diskgroups. When I choose ASM Storage it can not see them. It shows the chart in blank and if i try to write the disk group, so the following message appears: can not use ASM for database storage due to following reason: Could not connect to ASM due to following error: ORA-01034 ORACLE not available
    What can be passing in this case... ?
    Thanks in advance

    Thanks both
    Really the problem initially was because of this:
    [INS-06006] Passwordless SSH connectivity not set up between the following node(s): [node1, node2]. CVU may reports "PRVF-4007 : User equivalence check failed for user "user"" for same error
    and I had to install node1 first and after node2 manually and perhaps for this the product was not well linked.
    I resolved the problem establishing the keys with the wizard and after copying the following files from node1 to node2
    /home/grid/.ssh -------> /home/grid/.ssh
    authorized_keys
    known_hosts
    This is the procedure if you run the wizard at the node1.
    The problem is that the wizard creates the keys incompletely...
    Thanks

  • How to create standby database by using duplicate

    Dear all,
    How to create standby database by using duplicate,is there some doc to read?

    Hi;
    You can use
    Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN [ID 838828.1]
    Creating Physical Standby using RMAN Duplicate Without Shutting down The Primary [ID 789370.1]
    Also use goole, there are many blog-site-dogs mention that topic. From googling:
    Creating a Standby Database with Recovery Manager
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmdupdb.htm
    http://www.pythian.com/news/248/recipes-for-creating-a-managed-standby-with-rman/
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/rcmbackp.htm
    Regard
    Helios

  • How large can a database be?

    Hi,
    just out of curiosity that came in my mind . . .
    10 of 10 largest database in the world user Oracle :)
    How large are these databases?

    Exactly. My largest db is 5TB.
    The actual limitations is o/s and h/w based - if the o/s for example only support 128 (or whatever) file devices (via HBA to a SAN), then you are limited to the max device size that the SAN can support.
    From an Oracle and ASM perspective, it can use whatever file systems and devices you assign to it for use.
    Again, there are o/s file system limits. Cooked file systems have a max size. There is a limit on the number of file handles a single o/s process can allocate. Oracle is subject to these - but Oracle itself does not really impose any limitation in this regard.

  • HI all,How to backup 1TB database

    hi all,
    Can naybody suggest me how to backup 1tb database in oracle 10g RAC database using ASM.waht are the all the backup stategies that one has to keep in mind while backing up more than1TB database.

    user13389425 wrote:
    I know rman since rman is taking lot of time more thant 36 hrs.And user also facing problem I/O related issues.SO is there any tech which can be used to backup.
    Punjab National bank is having more than 3-4 TB of DB.They have a server one is primary and another is backup server.And there backup server is synch with the main server.Every midnight they down their main DB and they up the backup server and capture the image of primary server using NETVERTIAS some tool.And then theyu mount it and open the DB.
    But i am not able to understanb how the backup server synch with the primary server, here i am not talkig about the Standby database.
    So is there any utility which can be used to backup.You have to read Backup recovery guide.Did you enable BLOCK CHANGE TRACKING? .Need troubleshooting rman backup process.Using RMAN is good and best way.Do you use optimization?.Also you can update standby database with incremental backups. Please refer below doc and investigate your problems.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm

  • Cloning the asm configured database

    Hi all DBA Guys, Have a Nice Day For all
    How to cloning the asm configured database?
    Regards
    S.Azar

    Hi,
    How to cloning the asm configured database?
    The same way which you going to use for without ASM instance.
    Nice day to you too. :)

  • Installing Clusterware/ASM Grid 11.2.0.1, errored out when running root.sh

    Working through the installation of Clusterware/ASM Grid using 11.2.0.1.
    After running the first root.sh script, no problems. On the second one, getting this error:
    Adding daemon to inittab
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start: Inappropriate ioctl for device at /u01/app/grid/1120/grid/crs/install/roothas.pl line 413.
    Any ideas of how to get this running?

    Hi guys,
    I'm having this problem on the second node and in the /var/log files I'm getting these errors.
    Can any one help?
    Regards,
    Ahmed
    May 26 16:05:37 node su(pam_unix)[7567]: session closed for user oracle
    May 26 16:05:37 node logger: Failure in CSS initialization opening OCR.
    May 26 16:05:37 node su(pam_unix)[7571]: session closed for user oracle
    May 26 16:05:37 node logger: Failure in CSS initialization opening OCR.
    May 26 16:05:37 node su(pam_unix)[7570]: session closed for user oracle
    May 26 16:05:37 node logger: Failure in CSS initialization opening OCR.
    May 26 16:05:37 node su(pam_unix)[7583]: session closed for user oracle
    May 26 16:05:37 node logger: Failure in CSS initialization opening OCR.

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to determine logical database in a program?

    Hello guys!
    How to determine logical database in a program on Eclipse?
    I have not found any options:
    Thanks!

    Welcome to SDN
    Check the table RSOSFIELDMAP
    Assign points if useful
    Regards
    N Ganesh

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • Upgrade ASM instance database 10g to 11g

    Hi,
    In my environment, I have ASM instance database 10.2.0.3 running on solaris 10 (64-bit), I need to upgrade to ASM instance 11.1.0.6 database. please guide me an overview of steps...
    thanks in advance

    Thanks for the response,
    Sorry, In my environment I know database (10.2.0.3) is mounted in ASM diskgroups, now i have a concern
    1) If database is mounted in ASM diskgroups, could it be a database instance or it has to be only ASM instance connected to the database?
    2) As in my upgrade from ASM instance (10.2.0.3) to ASM instance (11.1.0.6), do we need to upgrade asm instance as well as database? i mean to invoke DBUA twice for upgrading ASM instance then for upgrading database as well?
    Sorry for some silly questions...please make me clear...
    Regards

  • How to create a database in ORACLE 8i

    How to create a database in ORACLE 8i

    hello ...
    enter in
    http://www.oracle.com/pls/db102/portal.portal_db?selected=2 between demand and type in "create database"
    or read others docs ORACLE.
    AF

Maybe you are looking for