Creating Oracle 11g Database Manually on ASM on 11g R2 Grid

Hi:
Earlier added this issue alongwith Grid installation. Only Jorg replied to me but could not find a complete solution. So thought of starting a new thread.
Wanted to know if any one of you have successfully created Oracle Database Manually on ASM on Oracle 11g R2 Grid.
I have installed Oracle 11g R2 grid (grid user) and Oracle 11g R2 DB software succesfully (oracle user).
Now trying to create a database manually on ASM as Oracle user.
First I create an pfile in $ORACLE_HOME/dbs
then I started by db on nomount stage. when I create a spfile on to my ASM diskgroup I get
I have created 2 diskgroups '+DGASMSPFILE' (ASM Spfile) and '+DGDBDATA' (for database)
Grid is up and running.
From Oracle user:
Have created a sample initDBRAC.ora
Now I want to create Oracle Database Global Spfile into '+DGASMSPFILE'
export ORACLE_SID=DBRAC
$ sqlplus / as sysdba
SQL> create spfile='+DGASMSPFILE/spfileDBRAC.ora' from pfile;
ORA-17502:ksfdcre:4 failed to create file +DGASMSPFILE/spfileDBRAC.ora
ORA-12547: TNS lost contact
"Oracle user" should have privileges to access ASM diskgroup right? What is the permission set for /dev/sdc* (earlier it was root:oinstall I changed it to grid:oinstall even then no difference.
Trace output:
ASM_DISKSTRING= /dev/sdc*
***********************************************************************1st trace file
Fatal NI connect error 12547, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/crs/11.2.0/grid/bin/oracle)(ARGV0=oracle+ASM1_o000_dbrac)(ENVS='ORACLE_HOME=/crs/11.2.0/grid,ORACLE_SID=+ASM1')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(enable=setuser)(CONNECT_DATA=(CID=(PROGRAM=oracle@skyit6)(HOST=skyit6)(USER=oracle))))
VERSION INFORMATION:
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
Time: 01-JUN-2011 01:27:07
Tracing not turned on.
Tns error struct:
ns main err code: 12547
TNS for Linux: Version 11.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.1.0 - Production
Time: 01-JUN-2011 01:27:07
Tracing not turned on.
Tns error struct:
ns main err code: 12547
TNS-12547: TNS:lost contact
ns secondary err code: 12560
nt main err code: 517
TNS-00517: Lost contact
nt secondary err code: 32
nt OS err code: 0
ERROR: Failed to connect with connect string: (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/crs/11.2.0/grid/bin/oracle)(ARGV0=oracle+ASM1_o000_dbrac)(ENVS='ORACLE_HOME=/crs/11.2.0/grid,ORACLE_SID=+ASM1')(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(enable=setuser))
Wed Jun 01 01:27:07 2011
ERROR: slave communication error with ASM; terminating process 16772
Errors in file /oraeng/app/oracle/product/diag/rdbms/dbrac/DBRAC/trace/DBRAC_ora_16772.trc:
Regards
Dinesh

Hi Sebastian:
When I installed grid software, oracle db software and created oracle db manually things worked fine.
When I restart the RAC environment I found the following issues:
1) all the resources does not come up automatically, once i issue crs_start -all all the services comes up. (most of the resources related to node1 comes up but cluster resources related to node2 does not come up) crsctl check crs shows that things are online.
2) wanted to recreate a database manually after restarting the RAC enviroment. To start of as usual tried to create a spfile in ASM disk "Create spfile='+DGDBSPFILE' from pfile'
I get ORA-17502:ksfdcre:4 failed to create file +DGDBSPFILE'
12547: TNS: lost contact
looks like permission problem.
The same command worked before restarting the RAC environment. Pls let me know if I am missing out anything.
Is it because i am unable to access ASM instance.
3) As you had mentioned tried to set the sbit by executing the following statement:
$ /opt/grid/bin/setasmgidwrap o=/opt/oracle/product/11.2.0/db/bin/oracle
should this be put into "rc" folder in linux so that it gets set everytime linux starts up. because once i restart the permission get changed.
I should execute it from grid user to change the permission of 'oracle' binary in 'oracle user' right?
Can you explain me why is this required (sbit).
Thanks.
Regards
Dinesh

Similar Messages

  • How we can create Oracle 9i Database through Commands.

    How we can create Oracle 9i Database through Commands.
    We need step by step process and all the scripts.

    CREATE DATABASE
    Caution:
    This statement prepares a database for initial use and erases any data currently in the specified files. Use this statement only when you understand its ramifications.
    Note Regarding Security Enhancements:
    In this release of Oracle and in subsequent releases, several enhancements are being made to ensure the security of default database user accounts.
    To provide guidance for configuring Oracle9i in a secure manner, Oracle Corporation provides a security checklist. Oracle Corporation recommends that you read this checklist and configure your database accordingly. The security checklist can be found at the following URL:
    http://otn.oracle.com/deploy/security/oracle9i/pdf/9iR2_checklist.pdf
    Examples
    Creating a Database: Example
    The following statement creates a database and fully specifies each argument:
    CREATE DATABASE sample
    CONTROLFILE REUSE
    LOGFILE
    GROUP 1 ('diskx:log1.log', 'disky:log1.log') SIZE 50K,
    GROUP 2 ('diskx:log2.log', 'disky:log2.log') SIZE 50K
    MAXLOGFILES 5
    MAXLOGHISTORY 100
    MAXDATAFILES 10
    MAXINSTANCES 2
    ARCHIVELOG
    CHARACTER SET AL32UTF8
    NATIONAL CHARACTER SET AL16UTF16
    DATAFILE
    'disk1:df1.dbf' AUTOEXTEND ON,
    'disk2:df2.dbf' AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
    DEFAULT TEMPORARY TABLESPACE temp_ts
    UNDO TABLESPACE undo_ts
    SET TIME_ZONE = '+02:00';
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_55a.htm#SQLRF01204
    Joel P�rez

  • Help required of creating Oracle RAC database having multiple instances

    Hello Guys!
    I want to create one database having 2 instances on Oracle 11g R1
    I have 2 nodes in this Oracle RAC
    Database name will be Val
    and instance name on node 1 will be val1 and instance name on node 2 will be val2
    Raw storage will be used, that is, without using automatic storage management or an Oracle Cluster File System
    Can anyone help how to do that ?
    Thanks

    Hi,
    Wonderful example thanks for the link.You're welcome :)
    I'm little confused which option to choose in shared storage option of DBCA
    i.e. Cluster File System or Raw devices?I suggest you to use ASM for you database storage requirement and select raw devices. oracle recommends to use ASM storage for sahred database.
    thanks,
    X A H E E R

  • Which is better to install Oracle 11g database based on ASM or Filesystem

    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    Who can provide some advices? Thanks very much in advance.

    user5969983 wrote:
    We will install 2 sets of Oracle 11.2.0.3 on Redhat Linix 5.6 and configure Data Guard for them further -- one will be a primary DB server, the other will be a physical standby DB server. The Oracle DB stoage is based on SAN Array Disk with 6TB size. Now there are two options to manage the DB datafiles:
    1. Install Oracle ASM
    2. Create the tranditional OS filesystem
    Which is better? in the past, our 10g data guard environment is not based on Oracle ASM. ASM provides a host of new features ito data management, and performance - to the extent that you can rip out the entire existing storage system, replace it with a brand new storage system, without a single second of database downtime.
    Someone think if we adopt the oracle ASM, the shortcomings are :
    1. as there is one more instance that will consume more memory and resource.Not really relevant on 64bit h/w architecture that removes limitations such a 4GB of addressable memory. On the CPU side... heck, my game PC at home has a 8 core 64bit CPU. Single die and dual core CPUs belong to the distant past.
    Arguing that an ASM instance has overheads would be silly. And totally ignores the wide range of real and tangible benefits that ASM provides.
    2. as the ASM file system cannot be shown out on the OS level directly such as "df" command, the disk utilization monitor job will be more difficult. at least it cannot be supervised at OS level.That is a A Very Good Thing (tm). Managing database storage from o/s level is flawed in many ways.
    3. as the DB bshoule be done the daily incremental backup (Mon-Sat) to Local Backup Drive. the bakup job must be done by RMAN rather than user-managed script.
    rman supports ASM fully.
    I have stopped using cooked file systems for Oracle - I prefer ASM first and foremost. The only exceptions are tiny servers with a single root disk that needs to be used for kernel, database s/w, and database datafiles. (currently these are mostly Oracle XE systems in my case, and configured that way as XE does not support ASM and is used as a pure cost decision).

  • Oracle 11gr2 database installation using ASM on standalone Server.

    Hello Guys,
    Environment is as below:
    Oracle 11gr2
    ASM
    Enterprise Linux Server release 5.5 (Carthage)
    I never did oracle 11gr2 installation using ASM and I need to install Oracle software on standalone server and then create database 11g Release 2.
    I have following doubts:
    1. Do we need to install Grid infrastructure software for standalone server as well ?
    2. Does Grid Infrastructure software comes separately or alongwith DB software ?
    3.Is Grid software same for RAC and standalone server setup ?
    4.Do we need to create user Grid for installation of Grid for standalone server as well ?
    can anyone give me full steps from scratch ?
    Regards,
    Edited by: LazyDBA11g on Apr 10, 2011 12:44 AM
    Edited by: LazyDBA11g on Apr 10, 2011 12:47 AM

    Hello sb,
    Please find below the output of desired commands:
    [oracle@yyy ~]$ id
    uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba)
    [oracle@yyy ~]$ env | sort
    _=/bin/env
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=yyy.in
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=:/u01/app/oracle/product/11.2.0/db_1/lib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;0 1:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.b tm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31: *.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:* .bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    PATH=/u01/app/oracle/product/11.2.0/db_1/bin:/usr/kerberos/bin:/usr/local/bin:/b in:/usr/bin:/home/oracle/bin
    PWD=/home/oracle
    SHELL=/bin/bash
    SHLVL=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_CLIENT=172.20.1.139 4320 22
    SSH_CONNECTION=172.20.1.139 4320 172.20.1.11 22
    SSH_TTY=/dev/pts/1
    TERM=xterm
    USER=oracle
    Regards,

  • Errors in manual creation of oracle 10g database

    I created oracle 10g database manually and i am getting post installation errors.. could you please help out?
    I executed @?/sqlplus/admin/pupbld.sql but it still shows
    Error accessing PRODUCT_USER_PROFILE
    Warning: Product user profile information not loaded!
    You may need to run PUPBLD.SQL as SYSTEM
    i tried to see
    SQL> desc product_user_profile;
    ERROR:
    ORA-04043: object "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" does not exist
    not there?? any other scripts to be run ? please guide me.
    2. I can not able login sys@sid as sysdba
    SQL> select * from v$pwfile_users;
    no rows selected
    i changed
    remote_login_passwordfile string EXCLUSIVE
    re-started db but no help...
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    I re-created
    $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwmydb.ora password=xxxx entries=5 force=y
    but no help..
    Could one please help out... ! great thanks in advance..

    thanks for prompt reply .. but still one issue remain..
    oracle DEVS $ sqlplus sys@sid sysdba
    SQL*Plus: Release 10.1.0.4.0 - Production on Thu Jan 7 10:51:44 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-01031: insufficient privileges
    but i can able to login as sqlplus sys as sysdba
    SQL> select * From v$pwfile_users;
    no rows selected
    i tired to do
    SQL> grant sysdba to sys;
    grant sysdba to sys
    ERROR at line 1:
    ORA-01990: error opening password file
    '/u02/app/oracle/product/10.1.0/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    there is already one password file with orapwsid.ora.. how this should be solved ? please help. thanks

  • Can Grid Control 10gR2 create a standby database when primary db uses ASM?

    Does anyone know if Grid Control 10gR2 will be able to create a standby database when the primary database uses ASM for data files, redo log files, and archive log files but the standby database will use mounted disks? If it can, would it matter that the primary db will be a RAC cluster and the standby will be a single instance db?

    I appreciate your reply and hope you are correct. Have you had a look at the 10gR2 Grid Control to confirm this or are you only going on published statements? The reason I ask is because previous versions of Grid Control claimed to support ASM but they would only allow you to work with them AFTER you had created a standby database manually but you couldn't actually use Grid Control to create a standby database from a primary database that had its log files on ASM disks.

  • ORA-30014 When creating new database manually

    Greetings!
    OS : Windows XP
    Oracle Version : 10g
    I'm trying to install Peopelsoft Database into a newly created Oracle seed database, I have tested my seed database looging into SYS user.. it works with no issues.
    Im going through the Step by step instructions from the people soft installation document.
    Step #1
    Create Ini.ora for new DB. I named it as HDMO
    DB_NAME = HDMO
    DB_FILES = 1021
    OPEN_CURSORS = 1000
    db_block_size = 8192
    And placed it into database folder. C:\oracle\product\10.2.0\db_1\database
    Step #2
    Created ORACLE_SID Environemnt Variable. ORACLE_SID = HDMO
    Step #3
    Created Windows Service...
    oradim -new -sid HDMO -intpwd manager -startmode auto -pfile C:\oracle\product\10.2.0\db_1\database\inithdmo.ora
    Database service created succefully, and im able to start & stop activites without issues.
    Step #4
    Then manual creation of database as mentioned....
    REMARK startup nomount pfile=%ORACLE_HOME%\database\inithdmo.ora
    CREATE DATABASE HDMO
    maxdatafiles 1021
    maxinstances 1
    maxlogfiles 8
    maxlogmembers 4
    CHARACTER SET WE8ISO8859P15
    NATIONAL CHARACTER SET UTF8
    DATAFILE 'C:\oracle\product\10.2.0\oradata\hdmo\system01.dbf' SIZE 2000M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SYSAUX DATAFILE 'C:\oracle\product\10.2.0\oradata\hdmo\sysaux01.dbf' SIZE 120M REUSE AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'C:\oracle\product\10.2.0\oradata\hdmo\temp01.dbf' SIZE 20M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED UNDO TABLESPACE "PSUNDOTS" DATAFILE 'C:\oracle\product\10.2.0\oradata\hdmo\psundots01.dbf' SIZE 300M REUSE
    AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED LOGFILE GROUP 1 ('C:\oracle\product\10.2.0\oradata\hdmo\redo01.log') SIZE 100M, GROUP 2 ('C:\oracle\product\10.2.0\oradata\hdmo\redo02.log') SIZE 100M,
    GROUP 3 ('C:\oracle\product\10.2.0\oradata\hdmo\redo03.log') SIZE 100M;
    Entered into SQLPLUS ' as / sysdba' from Command prompt...
    ran above script...
    Encountered the following error....
    ORA-30014 Operation only supported in Automatic Undo Management Mode
    I read some where found that I can get around with it, by adding... UNDO_MANAGEMENT = AUTO in my Inithdmo.ora file.. I did it..
    then it yield to diffrent error...
    After i login into SQL prompt.. first it says.. "*CONNECTED TO AN IDLE Instance*" then i ran my create database
    script... but it says...
    ORA-01034  ORacle Not available
    Can someone help me here....
    Thanks in advance....

    I tried with the following... Uncommented... (Previosuly it was REMARK ed)
    startup nomount pfile=%ORACLE_HOME%\database\inithdmo.ora
    there was an error message ORA-01081 Cannot start already running Oracle - shut it down first.
    I stop the service and ran the script.. it says NOT CONNECTED to ORACLE.
    Is shutdown means stopping the service?

  • Importing a few Oracle 10g schemas into oracle 11g database

    Hi,
    I have the task to import a few schemas that are on oracle 10g database (10.2.0.4) into oracle 11gR2 database (11.2.0.2). Now I have only oracle 10g export and import utility (the 11g server is in not where I am given the import rights).
    Can I do the export of the 10g schemas using the 10g export utility and then import into 11g database using the 10g import utility? I ran a test to do that and found it works but would also like to have expert opinion on it.
    Also another question is: if the source schema is 11g - suppose- in that case can the 10g export/import utility still work? I mean export the schema from say db1 (which is 11g) using 10g export utility and import them into 11g database db2 (which is again 11g) using 10g import? I am asking because I don't have access to 11g server and trying to find what I can do with the 10g utilities.
    Thanks,

    set up a database link to the 10gR2 version database in the 11gR2 database.
    Now using the 11gR2 client impdp utility use
    impdp network_link=<link to 10gR2 database>
    Done.
    Your 'objection' you don't have access to 11gR2 doesn't count as you can install a 11gR2 client.
    Also generally speaking you should not use a lower version imp to imp to a higher version database
    Also exp and imp are deprecated in 10g and higher.
    Sybrand Bakker
    Senior Oracle DBA

  • Problem creating physical Standby database with RMAN

    Hi All
    I am trying to learn oracle dataguard and as part of the process learning creating standby database.
    Platform : Sun-Fire-V250 Sparc, Solaris 10
    Database Version - Oracle 11R2
    I am creating standby database on same server, so directory structure is different.
    Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
    1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
    2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
    On Primary Database:
    *.FAL_CLIENT='orcl11020' #Primary database unique name
    *.FAL_SERVER='stdby_11' #Standby database unique name
    db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
    log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
    standby_file_management=auto
    *.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
    *.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
    *.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Copied same pfile for standby database and modified following-
    *.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
    *.db_name='orcl1102'
    *.db_unique_name='stdby_11'
    *.FAL_CLIENT='stdby_11'
    *.FAL_SERVER='orcl11020'
    db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
    log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
    standby_file_management=auto
    *.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
    *.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    db_unique_name=orcl11020'
    3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
    3. Created password file with same credential as primary database.
    4.Up-to-date RMAN backup of primary database available.
    5.Create standby controlfile with rman
    While primary database s open (I tried with primary database in mount mode as well)-
    $>rman catalog rman/paswd@rman target /
    RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
    6. Open a new terminal and startup standby database in nomount mode using parameter file created -
    $>ORACLE_SID=stdby_11
    $>export ORACLE_SID
    $>sqlplus / as sysdba
    SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
    SQL>quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
    RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
    Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    So on both primary and standby I confirmed
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11
    Can someone guide me where thisngs are going wrong here please.

    Not sure if I understood it clearly.
    SELECT * FROM V$ARCHIVE_GAP;
    returns no rows so there is no gap.
    But could you please explain me the result of the previous query. To catch up again, on standby when I check
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    SEQUENCE# APPLIED
    75 NO
    74 NO
    76 NO
    77 NO
    I understand that though archive files have been copied across but they are not applied yet.
    On primary when I give your query -
    SELECT name as STANDBY,SEQUENCE#,applied, completion_time
    2 FROM v$archived_log
    3 where dest_id=2
    4 and sequence# BETWEEN 74 and 80;
    I get -
    STANDBY SEQUENCE# APPLIED COMPLETIO
    stdby_11 74 YES 28-JUN-11
    stdby_11 75 YES 28-JUN-11
    stdby_11 76 YES 29-JUN-11
    stdby_11 77 YES 29-JUN-11
    stdby_11 78 YES 29-JUN-11
    stdby_11 79 YES 29-JUN-11
    stdby_11 80 YES 29-JUN-11
    stdby_11 75 NO 07-JUL-11
    stdby_11 74 NO 07-JUL-11
    stdby_11 76 NO 07-JUL-11
    stdby_11 77 NO 07-JUL-11
    stdby_11 78 NO 07-JUL-11
    I have intentionally given
    sequence# BETWEEN 74 and 80
    because I know in the current incarnaion of the database, max sequence is 78.
    So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
    Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
    Then my final question is, when will these archives be applied to standby database?
    I am sorry to ask too many questions but I am just trying to understand how it all works.
    Thanks for your help again

  • Oracle 10g database creation in windows2003 server

    hi,
    i need the step by step procedure to create oracle 10g database in windows 2003 server.
    with regards
    velu

    asifkabirdba wrote:
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15681/toc.htm
    Asif,
    IMO, the OP wanted to have steps given to him for the database creation , not the installation of the software.Not sure though since the wording chosen by him is not very clear.
    @OP,
    If you are looking for the database creation steps , the best would be to use DBCA! Other than that, you may want to look at the manual way of doing the same, given over here.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#i1017640
    That said, if you were looking for the installation instructions, please look at the link given by Asif.
    HTH
    Aman....

  • Starting and stop Oracle 9i database

    Hello;
    Can anybody tell me how to start and stop an Oracle 9i database manually with Window NT 4 ?
    thanks a lot !

    - start/settings/configuration pannel/services
    - select the oracle service
    - press start or stop button
    Hello;
    Can anybody tell me how to start and stop an Oracle 9i database manually with Window NT 4 ?
    thanks a lot !

  • Native/StandAlone OEM  for 9i, 10g, 11g Databases for EBS

    hi hussein/helios,
    How do I install the standalone OEM web, for EBS with 9i, 10g, 11g database? I just can not stall GRID coz
    its so complicated.
    I have seen it here in a forum before , which is done thru a patch, but I can not find that link anymore :(
    Hussein give me that patch link before :), Can you help me find the link again please....
    It is so hard to search key words in the forum.
    Thanks a lot
    MsK

    Hi,
    By the way, If I use OEM GRID... Let's say we have 10 branches having each own distributed database on Linux, with
    different database version (like 8i, 9i, 10g, 11g). And we are located at the Main Office. Is the ff. steps the way
    to manage them?ff steps means?
    1. Install OEM Grid at the Main Office (10.2.0.5). My Main Office version in on Windows XP PC. Is it ok? to manage
    Linux servers using central Grid on Windows?Refer to the certification matrix in My Oracle Support website to find out if OEM is certified on XP or not (most probably not).
    2. Install OEM linux control agent at the 10 branchces which are on Linux.
    3. Each branches connect to Main Office via VPN like once a week, just to get/send updates.The above should be OK.
    Regards,
    Hussein

  • Create a databse link to oracle 11g database

    Hi All,
    I have installed oracle 10g express edition n Apex 4.0.2 verion.
    Now i want to connect 11g database to Apex. When i try to connect,
    it prompts me an error saying;
    Error Testing Database Link.
    ORA-01017: invalid username/password; logon denied ORA-02063: preceding line from PRODSTDBY
    And at the same time i can connect a 10g database successfully.. is this because of oracle db versioning issue ???
    if yes, how can i able to overcome from this issue...????
    please somebody help me to solve this......
    Thanks in Advance,
    Max

    Telnet is not running on the server, I tried starting it, but it failed. When trying to connecting from my local machine through telnet, it is giving the following error:*Could not open connection to the host, on port 23: Connect failed*.
    I am able to connect to the machine through SSH(putty).
    Is there any other way to test if port 1521 is accepting connections?
    Thanks,
    Rajesh.

  • I have created TM lock in oracle 9i and 11g databases. by using same query

    here is the query uesd for finding a lock in database.
    select /*+ RULE */ 'DATAPOINT # ' bpb,
    l.sid, ' # ',
    s.username, ' # ',
    s.sql_address, ' # ',
    x.sid, ' # ',
    y.username, ' # ',
    l.type, ' # ',
    l.id1, ' # ',
    l.id2, ' # ',
    decode(X.LMODE,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    decode(L.REQUEST,
    0, 'None',
    1, 'Null',
    2, 'Row Share',
    3, 'Row Excl',
    4, 'Share',
    5, 'Shr Row Excl',
    6, 'Exclusive',
    from v$session s, v$lock l, v$lock x, v$session y
    where l.ctime > 120
    and s.lockwait = l.kaddr
    and l.type in ('TM', 'TX', 'UL')
    and l.id1 = x.id1
    and l.id2 = x.id2
    and x.sid != l.sid
    and x.sid = y.sid
    and x.lmode >0;
    after doing further investigation i found that for 11g condition s.lockwait = l.kaddr not satisfied where as for 9i it's gives correct results
    here are the lockwait and kaddr values for 9i and 11g databases.
    for oracle 9i
    SQL> select lockwait from v$session where sid in (10,12);
    LOCKWAIT
    67B4E10C
    SQL> select kaddr from v$lock where sid in (10,12);
    KADDR
    67B4E088
    67B4E10C
    for oracle 11g
    SQL> select lockwait from v$session where sid in (70,134);
    LOCKWAIT
    070000002FA080D8
    SQL> select kaddr from v$lock where sid in (70,134);
    KADDR
    0700000030C595C0
    0700000030C59830
    00000001108E3E58
    00000001108E3E58
    070000002FA6CB30
    SQL>
    please advise if there is any change for calculations for lockwait,kaddr for 11g.

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

Maybe you are looking for

  • Disappearing hard drive....but it's still there!

    Hi all, I've got a weird bug on my Mirrored Doors G4 since installing the latest security updated (20th April, 2007-2004). Although I can still access my applications, home folder, the mac appears to work normally etc...I can't access the Mac System

  • Null pointer exception in jserv.log

    Genius, I am facing weired exception "Null pointer exception" in jserv.log. Apps Login is showing "internal server error" I tried enabled debug log level in jserv.conf, httpd.conf, all logs are having Null pointer exception message. not able to trace

  • IPhoto 8 freezes on startup, possibly due to Library data

    I can't get iPhoto 8 to open any more on my iMac running Snow Leopard.  The program starts up, shows an empty iPhoto window, and then the spinning wheel just spins and spins until I force quit. I suspect that this is because something has gone wrong

  • Swapping Hard Drive to SSD

    Hi Everyone, My macbook 13" 5,5 hard drive recently went out, and it would freeze and give me the wheel everytime i use it for more than 15 minutes. I went out and bought a samsung SSD and replaced it. When it came to installing the OS, I didn't have

  • ¿Cómo habilitar el botón Guardar en Reader 10?

    Hola buenas. Acabo de actualizar a la versión 10.0.1 del Acrobat Reader y ahora el botón Guardar sale en gris deshabilitado. En la versión 9 salía activo, pero ahora no sé porqué sale deshabilitado. ¿Cómo se puede volver a habilitar dicho botón?