Rac instance display in sql

Hi all expert,
We are in 2008R2 windows with Rac 4 instance running in two nodes. When i do sql plus and connect to SQL it shows the screen like below
sys@X>
eventhough it connected to either X1 in node 1 or X2 in node 2  instance in X database instance. I want to display below
if i connect like connect sys@X as sysdba and if the oracle rac  point to either X1 or X2 instance righty away after that  then it should
sys@X1 if it is connected to X1 and sys@X2 if it is connected to X2.

I can do this via the login.sql:
column instance_name new_value instnc_name;
select sys_context('userenv', 'instance_name') AS instance_name from dual;
column instance_name clear
set sqlprompt "_USER'@'instnc_name> "
The challenge doing this is that SET SQLPROMPT uses substitution variables, not SQL functions  SET System Variable Summary, so the script above has to run the SQL to retrieve the value, and the value will only change when this script runs again. Putting it in login.sql means it gets run every time you log in or do a CONNECT command in SQLPlus.

Similar Messages

  • Services of 2nd instance disappearded from SQL Server 2012 Configuration Manager but still running

    We recently configured multiple SQL Server 2012 R1 (two-node) clusters. Some with two instances. However, we discovered later that the Configuration Manager only lists the services of the 1st instance (the default MSSQLSERVER instance). The other named instance
    is still running and can be failed over from one node to the other using Cluster Failover Manager but the services are not showing up in Configuration Manager in any of the two nodes.
    Any thoughts as to why we see this odd behavior and how to fix it? We have done two instances before in SQL Server 2008 R2 but never saw this behavior.
    Thanks,
    Omer

    Please see my answer above about the SQLCM version. We use the highest.
    As I said before that this happens only when we have two instances running in a SQL2012 cluster. We configured 7 SQL 2012 clusters. three of them have two instances but only the services of one instance are displayed in CM. Services of the default instance
    are listed in two of these clusters while services of the named instance are listed in the 3rd one.
    One thing to note about these configurations is that the installer could not bring the services at the end of installation online because it did not have permission to create the computer objects in AD during setup thus we had to follow a known workaround
    that involves having the domain admin fix these permissions and then we were able to add the SQL Agent Service to the cluster and bring the services online after modifying the ConfigurationState key value of each instance in the registry.
    The installer account is setup as a local admin and we asked the domain admin to give it "Read All properties" and "create computer objects" in AD but for some reason it does not seem to have the ability to create these computer objects during installation
    and the objects are to be pre-created and their permissions reset afterward.
    I am giving this information and I am not sure if it has anything to do with the fact that SQLCM is listing the services of one instance and not the other.

  • RAC instance, trying to recover UNDO datafile, RMAN gives RMAN-06054

    Hello all,
    This has been a troublesome instance..a quick bit of background. This was created awhile back by someone else, I inherited this 3 mode RAC clusterof instance1.
    I'm exporting out of one database (10G) into this instance1 (11G). When I was about to start the import..I found this instance wouldn't start. Turned out no backup had been going on of this empty instance. I backed up the archive logs to tape to free up the FRA..and things fired up.
    I began the import, and found a bunch of errors...basically tellling me that I couldn't access one of the undo tablespaces...datafile problems.
    I went to look and saw:
    SQL> select a.file_name, a.file_id, b.status, a.tablespace_name
         2 from dba_data_files a, v$datafile b
         3 where a.file_id = b.file#
         4 order by a.file_name;
         FILE_NAME FILE_ID STATUS TABLESPACE_NAME
         +DATADG/instance1/datafile/sysaux.270.696702269              2 ONLINE                SYSAUX
         +DATADG/instance1/datafile/system.263.696702253              1 SYSTEM                SYSTEM
         +DATADG/instance1/datafile/undotbs1.257.696702279            3 ONLINE                UNDOTBS1
         +DATADG/instance1/datafile/undotbs2.266.696702305            4 ONLINE                UNDOTBS2
         +DATADG/instance1/datafile/undotbs3.269.696702313            5 RECOVER               UNDOTBS3
         +DATADG/instance1/datafile/users.268.696702321               6 ONLINE                USERS
         +DATADG/instance1/l_data_01_01                              11 ONLINE                L_DATA_01
         +DATADG/instance1/s_data_01_01                               7 ONLINE                S_DATA_01
         +DATADG/instance1/s_data_01_02                               8 ONLINE                S_DATA_01
         +INDEXDG/instance1/l_index_01_01                            12 ONLINE                L_INDEX_01
         +INDEXDG/instance1/s_index_01_01                             9 ONLINE                S_INDEX_01
         FILE_NAME FILE_ID STATUS TABLESPACE_NAME
         +INDEXDG/instance1/s_index_01_02                            10 ONLINE                S_INDEX_01
    There is is, file #5.
    So, I went into RMAN to try to restore/recover:
    RMAN> restore datafile 5;
    Starting restore at 06-APR-10
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=222 instance=instance1 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.5.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=222 instance=instance1 device type=DISK
    creating datafile file number=5 name=+DATADG/instance1/datafile/undotbs3.269.696702313
    restore not done; all files read only, offline, or already restored
    Finished restore at 06-APR-10
    RMAN> recover datafile 5;
    Starting recover at 06-APR-10
    using channel ORA_SBT_TAPE_1
    using channel ORA_DISK_1
    starting media recovery
    RMAN-06560: WARNING: backup set with key 343546 will be read 2 times
    available space of 8315779 kb needed to avoid reading the backup set multiple times
    unable to find archived log
    archived log thread=1 sequence=1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 04/06/2010 14:33:07
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 16016
    This is all on ASM, and am a bit of a newb with that. I bascially have no data I'm worried about losing, I just need to get everything 'on the air' so I can import successfully, and let users on this instance. I've set up the backups in GRID now....so, it will be backed up on the future, but what is the quickest, most efficient way to get this UNDO tablespace datafile recovered?
    Thank you,
    cayenne

    Hemant K Chitale wrote:
    SET UNTIL SEQUENCE 27wouldn't work if the Recovery requires Sequence 1 and it is missing.
    Hemant K ChitaleOops...meant to have start and set until both to "1"
    However, I see what you mean. It seems I cannot find the file on tape.
    Since the RAC instance hasn't yet had any data put into it, I'm thinking it might be best to just blow it away, and recreate everything.
    Trouble is, I'm a bit new at RAC and ASM. I was thinking the best route might be to use DBCA to remove the database...? Would this not take care of removing all the datafiles from all the ASM instances on the RAC..as well as all the other directories, etc on all 3x nodes?
    I've already used the dbca to create templates of this instance, so recreation shouldn't be too difficult (although it will be my first RAC creation)...
    Thank you in advance for the advice so far,
    cayenne

  • Max Connections to Oracle 10g RAC Instance

    Hi,
    We have IBM Websphere Application Server on one unix server which is connecting to a Oracle 10g RAC Instance which is on a different unix server through JDBC connection. They(Application Team) are doing stress tests, please tell me how many connections can a Oracle Database Allow simultaneously. They tested for 2000 connections simultaneously. It failed...This is urgent, they are on call please reply ASAP
    Thanks,

    Use Oracle Shared Server (the default is Dedicated Server),
    I've shown JBOSS app developers how a little Dell desktop (256MB RAM, 1.7Ghz P4) can accept a 1000 app server connections (using Shared Server). While a big HP-UX server failed to accept 200 connections (using Dedicated Server).
    Oracle RAC should easily be able to handle 100+ concurrent client OLTP connections per RAC node using Shared Server - assuming that each of the concurrent sessions are actually doing stuff and not just sitting there idle. (if 99.99% of the connections are idle, then even a little desktop Oracle database can handle well over a 1000)
    Bottomline - you must have your primary focus and expertise on Oracle. On the the data tier. Not the app tier. The data tier is what scales the app tier. Not vice versa. Adding an extra app tier server does not enable the data tier platform to suddenly be able to run more SQLs, The app tier does not scale the data tier.
    If you want performance and scalability, you must get the data tier right. App tier be damned as that is neither here nor there ito performance and scalability. This means Oracle expertise is required first and foremost.

  • One of RAC instance doesnt generate awr snapshot

    Hi,
    I have a problem about awr snapshots. One of RAC instance doesn t generate awr snapshot.
    When I look over alert.log. I couldn t see any error message
    is there anybody to have idea about this issue?
    OS Level HP-UX ITANIUM 11.23
    DB version Oracle RAC 10.2.0.4
    Regards,

    hi JohnWatson
    thanks for your reply
    I have run dbms_workload_respository.create_snapshot on both of two nodes.it has finished succesfully and I saw this record in the dba_hist_snapshot view
    I haven t seen any error record in alert log and there isn t any trace file occured.
    In other words, when I run this create snapshot command in working node, the snapshot of other node doesn t generate in the dba_hist_snapshot view
    but when I run this command broken node (so it doesn t generate awr snapshot) manually , other node isn t triggered to generate awr snapshot,
    SQL> exec dbms_workload_repository.create_snapshot ;
    PL/SQL procedure successfully completed.
    select instance_number,begin_interval_time,end_interval_time from dba_hist_snapshot where snap_id in(40274);
    INSTANCE_NUMBER BEGIN_INTERVAL_TIME END_INTERVAL_TIME
    1 16-JAN-13 01.00.54.450 AM 18-JAN-13 03.51.19.951 PM
    2 18-JAN-13 03.43.02.430 PM 18-JAN-13 03.51.20.103 PM
    regards,
    Edited by: dataseven on 18.Oca.2013 06:19

  • Rconfig: converting a single instance to RAC instance

    Hi,
    I am trying to use the "rconfig" utility to convert a single instance to a RAC instance in an existing RAC cluster.
    I have modified the .xml file, and am trying to run the conversion from the 1st node in the 2 node cluster (where the single instance resides).
    The only error message i seem to be getting is below:
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    ORCL_DATA_ORCLCLN The specified diskgroup is not mounted.
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC></RConfig>
    Now I dont really understand why I would be getting that message as the instance is up and running and ASM disk group is mounted on node1 at the time i run the rconfig command, though its not clear to me if I also need to somehow mount the ASM disk group on the second node prior to running the rconfig command??
    node1:
    bash-3.00$ asmcmd -p
    ASMCMD [+] > lsdg
    State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
    MOUNTED EXTERN N N 512 4096 1048576 10181 7442 0 7442 0 ORCL_DATA_ORCLCLN/
    node2:
    ASMCMD [+] > lsdg
    State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
    I have attached the output of the alert log during the rconfig conversion of the target database, but it all looks pretty standard to me (keep in mind i am an oracle novice!).
    alert.log
    Completed: ALTER DATABASE OPEN
    Thu Jul 23 13:51:55 2009
    Shutting down instance (abort)
    License high water mark = 2
    Instance terminated by USER, pid = 15030
    Thu Jul 23 13:51:57 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Interface type 1 e1000g1 10.128.113.0 configured from OCR for use as a cluster interconnect
    Interface type 1 e1000g0 10.128.113.0 configured from OCR for use as a public interface
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/app/oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.2.0.
    System parameters with non-default values:
    processes = 150
    __shared_pool_size = 121634816
    __large_pool_size = 4194304
    __java_pool_size = 4194304
    __streams_pool_size = 0
    sga_target = 440401920
    control_files = +ORCL_DATA_ORCLCLN/control01.ctl
    db_block_size = 8192
    __db_cache_size = 306184192
    compatible = 10.2.0.2.0
    log_archive_format = %t_%s_%r.dbf
    db_file_multiblock_read_count= 16
    cluster_database = FALSE
    cluster_database_instances= 1
    db_recovery_file_dest_size= 2147483648
    norecovery_through_resetlogs= TRUE
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain = netapp.com
    job_queue_processes = 10
    background_dump_dest = /u01/app/oracle/admin/orcldb/bdump/ORCLCLN
    user_dump_dest = /u01/app/oracle/admin/orcldb/udump/ORCLCLN
    core_dump_dest = /u01/app/oracle/admin/orcldb/cdump/ORCLCLN
    db_name = ORCLCLN
    open_cursors = 300
    pga_aggregate_target = 145752064
    Cluster communication is configured to use the following interface(s) for this instance
    10.128.113.200
    Thu Jul 23 13:51:59 2009
    cluster interconnect IPC version:Oracle UDP/IP (generic)
    IPC Vendor 1 proto 2
    PMON started with pid=2, OS id=15085
    DIAG started with pid=3, OS id=15091
    PSP0 started with pid=4, OS id=15094
    LMON started with pid=5, OS id=15097
    LMD0 started with pid=6, OS id=15102
    MMAN started with pid=7, OS id=15112
    DBW0 started with pid=8, OS id=15114
    LGWR started with pid=9, OS id=15116
    CKPT started with pid=10, OS id=15125
    SMON started with pid=11, OS id=15128
    RECO started with pid=12, OS id=15130
    CJQ0 started with pid=13, OS id=15134
    MMON started with pid=14, OS id=15143
    MMNL started with pid=15, OS id=15146
    Thu Jul 23 13:52:03 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Jul 23 13:52:04 2009
    Reconfiguration started (old inc 0, new inc 2)
    List of nodes:
    0
    Global Resource Directory frozen
    * allocate domain 0, invalid = TRUE
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Resources and enqueues cleaned out
    Resources remastered 0
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Post SMON to start 1st pass IR
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Reconfiguration complete
    Thu Jul 23 13:52:04 2009
    ALTER DATABASE MOUNT
    Thu Jul 23 13:52:04 2009
    Starting background process ASMB
    ASMB started with pid=17, OS id=15157
    Starting background process RBAL
    RBAL started with pid=18, OS id=15169
    Thu Jul 23 13:52:09 2009
    SUCCESS: diskgroup ORCL_DATA_ORCLCLN was mounted
    Thu Jul 23 13:52:13 2009
    Setting recovery target incarnation to 2
    Thu Jul 23 13:52:13 2009
    Successful mount of redo thread 1, with mount id 4437636
    Thu Jul 23 13:52:13 2009
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Thu Jul 23 13:52:14 2009
    ALTER DATABASE OPEN
    Thu Jul 23 13:52:14 2009
    Beginning crash recovery of 1 threads
    Thu Jul 23 13:52:14 2009
    Started redo scan
    Thu Jul 23 13:52:14 2009
    Completed redo scan
    105 redo blocks read, 32 data blocks need recovery
    Thu Jul 23 13:52:14 2009
    Started redo application at
    Thread 1: logseq 2, block 929
    Thu Jul 23 13:52:15 2009
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 2 Reading mem 0
    Mem# 0 errs 0: +ORCL_DATA_ORCLCLN/redo_2_1.log
    Mem# 1 errs 0: +ORCL_DATA_ORCLCLN/redo_2_0.log
    Thu Jul 23 13:52:15 2009
    Completed redo application
    Thu Jul 23 13:52:15 2009
    Completed crash recovery at
    Thread 1: logseq 2, block 1034, scn 613579
    32 data blocks read, 25 data blocks written, 105 redo blocks read
    Thu Jul 23 13:52:15 2009
    Thread 1 advanced to log sequence 3
    Thread 1 opened at log sequence 3
    Current log# 1 seq# 3 mem# 0: +ORCL_DATA_ORCLCLN/redo_1_1.log
    Current log# 1 seq# 3 mem# 1: +ORCL_DATA_ORCLCLN/redo_1_0.log
    Successful open of redo thread 1
    Thu Jul 23 13:52:15 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Thu Jul 23 13:52:15 2009
    SMON: enabling cache recovery
    Thu Jul 23 13:52:17 2009
    Successfully onlined Undo Tablespace 1.
    Thu Jul 23 13:52:17 2009
    SMON: enabling tx recovery
    Thu Jul 23 13:52:17 2009
    Database Characterset is WE8ISO8859P1
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=21, OS id=15328
    Thu Jul 23 13:52:23 2009
    Completed: ALTER DATABASE OPEN
    Any help would be greatly appreciated!!!!

    Ok,
    So I managed to get the disk group mounted on the second node, and re-ran the rconfig process.
    I got a little further, but encountered another error which is displayed below:
    -bash-3.00$ rconfig racconv.xml
    <?xml version="1.0" ?>
    <RConfig>
    <ConvertToRAC>
    <Convert>
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    /u01/app/oracle/product/10.2.0/db_1/dbs Data File is not shared across all nodes in the cluster
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC></RConfig>
    I am not using a shared oracle home, each node in the cluster has its own oracle installation residing on local disk. Is a shared oracle home a pre-requisite for usin rconfig?
    I have provided the .xml file I am using below:
    -bash-3.00$ cat racconv.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <n:RConfig xmlns:n="http://www.oracle.com/rconfig"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/rconfig">
    <n:ConvertToRAC>
    <!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY -->
    <n:Convert verify="YES">
    <!--Specify current OracleHome of non-rac database for SourceDBHome -->
    <n:SourceDBHome>/u01/app/oracle/product/10.2.0/db_1</n:SourceDBHome>
    <!--Specify OracleHome where the rac database should be configured. It can be same as SourceDBHome -->
    <n:TargetDBHome>/u01/app/oracle/product/10.2.0/db_1</n:TargetDBHome>
    <!--Specify SID of non-rac database and credential. User with sysdba role is required to perform conversion -->
    <n:SourceDBInfo SID="ORCLCLN">
    <n:Credentials>
    <n:User>oracle</n:User>
    <n:Password>password</n:Password>
    <n:Role>sysdba</n:Role>
    </n:Credentials>
    </n:SourceDBInfo>
    <!--ASMInfo element is required only if the current non-rac database uses ASM Storage -->
    <n:ASMInfo SID="+ASM1">
    <n:Credentials>
    <n:User>oracle</n:User>
    <n:Password>password</n:Password>
    <n:Role>sysdba</n:Role>
    </n:Credentials>
    </n:ASMInfo>
    <!--Specify the list of nodes that should have rac instances running. LocalNode should be the first node in this nodelist. -->
    <n:NodeList>
    <n:Node name="sol002"/>
    <n:Node name="sol003"/>
    </n:NodeList>
    <!--Specify prefix for rac instances. It can be same as the instance name for non-rac database or different. The instance number will be attached to this prefix. -->
    <n:InstancePrefix>ORCLCLN</n:InstancePrefix>
    <!--Specify port for the listener to be configured for rac database.If port="", alistener existing on localhost will be used for rac database.The listener will be extended to all nodes in the nodelist -->
    <n:Listener port=""/>
    <!--Specify the type of storage to be used by rac database. Allowable values are CFS|ASM. The non-rac database should have same storage type. -->
    <n:SharedStorage type="ASM">
    <!--Specify Database Area Location to be configured for rac database.If this field is left empty, current storage will be used for rac database. For CFS, this field will have directory path. -->
    <n:TargetDatabaseArea></n:TargetDatabaseArea>
    <!--Specify Flash Recovery Area to be configured for rac database. If this field is left empty, current recovery area of non-rac database will be configured for rac database. If current database is not using recovery Area, the resulting rac database will not have a recovery area. -->
    <n:TargetFlashRecoveryArea></n:TargetFlashRecoveryArea>
    </n:SharedStorage>
    </n:Convert>
    </n:ConvertToRAC>
    </n:RConfig>

  • Can I create another RAC instance on the machines already have one.

    Hi:
    I already have an 2 nodes RAC(10.2) ,I want to Know can I create another RAC instance on the same machines. if not why?
    thanks.

    913926 wrote:
    I already have an 2 nodes RAC(10.2) ,I want to Know can I create another RAC instance on the same machines. if not why? Yes - you can run into brick walls too. At high speeds. But heck, is that a good idea? Why would you want to?
    Oracle RAC scales how? By adding more servers (RAC cluster nodes) to the single RAC database.
    What do you want to do? Add more databases to a single server.
    How does that make sense ito performance, scalability, redundancy, availability, management and so on?
    Also consider that a SQL-Server/mySQL database in the Oracle context is a schema. An Oracle schema can be a logical database. Fully self-contained. Fully separated from other logical databases in that physical database. A second or third or one hundredth logical database in Oracle means a second or third or one hundredth new database schema. Not instance. Not physical database.

  • Can't we start a RAC instance without local pfile ?

    DB version : 11.1.0.7.0
    OS : Solaris 10 SPARC
    --Info about the cluster
    2 Node RAC
    Both instances using spfile stored in ASM Diskgroup
    Passwordless SSH configuration is not working currently (i gather ssh is not mandatory after installation)
    We have 7 RAC DBs running in our 11.1 CRS.
    After a reboot of our 2 Node RAC servers, in Node2, 4 instances didn't come up.
    None of these down instances have a local pfile. The ones that are up in Node2 have it.
    So, When i manually tried to bring up the ones that are down
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Mar 2 21:28:22 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/11.1/db_1/dbs/initorcl2.ora'
    SQL> exit
    Disconnected-- Tried directly with spfile (No such option in oracle, but still tried ! )
    SQL> startup spfile='+ORCL_DATA01/ORCL/spfileorcl.ora'
    SP2-0714: invalid combination of STARTUP options-- Tried from Node1
    -- This might have failed because ssh is not working currently. Not sure
    $ srvctl start instance -d orcl -i orcl2
    PRKP-1001 : Error starting instance orcl2 on node manhclust199
    CRS-0215: Could not start resource 'ora.orcl.orcl2.inst'.
    $ srvctl start database -d orcl
    PRKP-1001 : Error starting instance orcl2 on node manhclust199
    CRS-0215: Could not start resource 'ora.orcl.orcl2.inst'.Finally I had to create a local pfile on node2 for each instances in OH/dbs
    The content of each local pfile is like
    $ cat initorcl2.ora
    spfile='+ORCL_DATA01/orcl/spfileorcl.ora'Now the startup worked without any issue for all 4 instances
    SQL> startup
    ORACLE instance started.
    Total System Global Area 2137886720 bytes
    Fixed Size                  2155464 bytes
    Variable Size            1593838648 bytes
    Database Buffers          536870912 bytes
    Redo Buffers                5021696 bytes
    Database mounted.
    Database opened.So, local pfile is mandatory for all RAC instances ?

    Hi,
    My question is whether this instance specific local pfile must be there in OH/dbs directory ?YES
    Didn't get a clear answer yet.
    It seems that it is mandatory. And this is most probably the reason these instances didn't come up after the reboot of this node.Startup Sequence:
    Startup of Cluster:
    Using "srvctl" to start your database/instance:
    Srvctl read the OCR and check the parameter SPFILE from your database registration:
    If parameter SPFILE in OCR have a value the srvctl will use this value to start your database instance.
    If parameter SPFILE in OCR don't have a value (i.e null) Oracle will try find the file SPFILE<ORACLE_SID>.ora on $ORACLE_HOME/dbs
    If the file SPFILE<ORACLE_SID>.ora does not exists, Oracle will try use the file init<ORACLE_SID>.ora
    If init<ORACLE_SID>.ora does not exist... the startup will fail.
    From ORACLE_HOME of your database execute command above to get value of Spfile parameter on OCR:
    srvctl config database -d <DB_NAME> |grep SpfileStartup manually from SHELL using SQLPLUS:
    Using SQLPLUS to start a database Oracle always first use SPFILE<ORACLE_SID>.ora stored on $ORACLE_HOME/dbs/ if this file does not exist he will try use INIT<ORACLE_SID>.ora to start Database Instance.
    If your spfile is stored on ASM you must create a INITFILE pointing to SPFILE stored on ASM.
    e.g From instance 1
    cat /oracle/oracle/product/11.2.0/db_1/dbs/initorcl1.ora
    SPFILE='+DATA/ORCL/spfileorcl.ora'Regards,
    Levi Pereira

  • Cannot get literal amerpsand to display in SQL output

    Gurus,
    Thanks so much for your help, in advance.
    I'm outputting a literal string value to an output file, however, Linux isn't playing by SQL's rules. The ampersand character which I'm trying to disply as a knowledge base link is screwing up the output. Typically, the "&&" is the escape for displaying "&" in SQL output, however, this doesn't work inside a shell script.
    Does anyone know the escape characters to disply the ampersand properly for the following?
    I've include double ampersand, as per SQL's rules...
    col Instructions3 heading "KNOWLEDGE BASE SUPPORT LINK" format a4000
    select 'http://vr05a2.us.com:86/viewtopic.php?f=141&&t=2057&&p=2334&&hilit=over+pick&&sid=56b38c52bf3b36f1d17b854b29a41a3b#p2334' Instructions3
    from dual;
    Thanks,
    Scott
    Edited by: sreese on Jul 11, 2012 9:39 AM
    Edited by: sreese on Jul 11, 2012 9:43 AM

    The usual escape character is the backslash (\), but depending on your shell script it may be a matter of quoting the output.
    For instance:
    <pre>
    echo "$0&&"
    -bash&&
    echo '$0&&'
    $0&&
    echo \"
    echo "'"
    echo \&\&
    <pre>

  • Communication between RAC instances

    Hi,
    I see different answers for this Communication between RAC instances in google.
    1. UDP
    2.Distributed Lock Manager (DLM)
    which one of is correct?

    both of them are correct on different layers. The IP protocol used over the interconnect is udp and one of the protocols/mechanism implemented above that is DLM.

  • Communication between RAC instances in google.

    Hi,
    I see different answers for this Communication between RAC instances in google.
    1. UDP
    2.Distributed Lock Manager (DLM)
    which one of is correct?

    Pl do not post duplicate threads - Communication between RAC instances
    Srini

  • Oracle RAC instance related

    We have Oracle Databases 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production running on Linux x86 64-bit
    It is a two instance RAC running on servers, let's say - node1 and node2 . We are using ASM
    Node 1 has an ASM instance ASM1 and Node 2 has an ASM instance ASM2.
    There are 3 11g rdbms databases running on these nodes.
    Instances db11,db21,db31 are running on node 1 and corresponding RAC instances db12,db22,db32 are running on node 2
    The listeners are configured exactly the same on both nodes.
    On Node 2, when I do
    [oracle@node2 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 14:34:34
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                15-NOV-2010 13:33:49
    Uptime                    4 days 1 hr. 0 min. 44 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/oracle/product/11.2.0/grid/network/admin/listener.ora
    Listener Log File         /opt/app/oracle/diag/tnslsnr/node2/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.7.42)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.7.52)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM2", status READY, has 1 handler(s) for this service...
    Service "db1" has 2 instance(s).
      Instance "db11", status READY, has 1 handler(s) for this service...
      Instance "db12", status READY, has 2 handler(s) for this service...
    Service "db2" has 2 instance(s).
      Instance "db21", status READY, has 1 handler(s) for this service...
      Instance "db22", status READY, has 2 handler(s) for this service...
    Service "db3" has 2 instance(s).
      Instance "db31", status READY, has 1 handler(s) for this service...
      Instance "db32", status READY, has 2 handler(s) for this service...
    The command completed successfullyThe above looks good which is what should be the case.
    Now, if I try doing the same on node 1 (and this is where I am concerned)
    [oracle@node1 admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 14:41:45
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                19-NOV-2010 03:20:44
    Uptime                    0 days 11 hr. 21 min. 1 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/oracle/product/11.2.0/grid/network/admin/listener.ora
    Listener Log File         /opt/app/oracle/diag/tnslsnr/node1/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.7.41)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.7.51)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "db1" has 1 instance(s).
      Instance "db11", status READY, has 2 handler(s) for this service...
    Service "db2" has 1 instance(s).
      Instance "db21", status READY, has 2 handler(s) for this service...
    Service "db3" has 1 instance(s).
      Instance "db31", status READY, has 2 handler(s) for this service...
    The command completed successfullyThe node 1 does not seem to report the fact that each of these 3 databases have 2 instances and also does not list its other instances besides the ones running on it. Any ideas or suggestions as to where to look?

    One problem is here
    The listeners are configured exactly the same on both nodes.This is incorrect, as the listeners need to have different names.
    They need to have different names as listener_node1 is the remote_listener for node 2 and vice versa.
    The correct set up is:
    The listener name is node dependent.
    The listener definition
    listener_<node>=(host=)(protocol=)(port=)
    is included in tnsnames.ora
    the remote_listener parameter is set to the listener of the other node.
    Using hardcoded IPs in listener.ora and tnsnames.ora is a bad idea.
    Not sure why you don't ask this question in the RAC forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Rac Instance Crashes

    Dear all,
    My version is 11.2.0.2.5 one of my rac instance crashes with message ORA-00240: control file enqueue held for more than 120 seconds. Received an instance abort message from instance 1.
    here are the contents of alert log file
    IPC Send timeout detected. Receiver ospid 27423 [[email protected] (LMON)]
    2013-03-22 22:30:05.644000 -07:00
    Errors in file /u01/app/oracle/diag/rdbms/lfgoimdb/LFGoimdb2/trace/LFGoimdb2_lmon_27423.trc:
    2013-03-22 22:31:08.734000 -07:00
    Errors in file /u01/app/oracle/diag/rdbms/lfgoimdb/LFGoimdb2/trace/LFGoimdb2_arc2_27691.trc (incident=15905):
    ORA-00240: control file enqueue held for more than 120 seconds
    Incident details in: /u01/app/oracle/diag/rdbms/lfgoimdb/LFGoimdb2/incident/incdir_15905/LFGoimdb2_arc2_27691_i15905.trc
    2013-03-22 22:31:13.409000 -07:00
    Received an instance abort message from instance 1
    Please check instance 1 alert and LMON trace files for detail.
    LMS0 (ospid: 27427): terminating the instance due to error 481
    System state dump requested by (instance=2, osid=27427 (LMS0)), summary=[abnormal instance termination].
    System State dumped to trace file /u01/app/oracle/diag/rdbms/lfgoimdb/LFGoimdb2/trace/LFGoimdb2_diag_27413.trc
    2013-03-22 22:31:18.376000 -07:00
    Dumping diagnostic data in directory=[cdmp_20130322223113], requested by (instance=2, osid=27427 (LMS0)), summary=[abnormal instance termination].
    ORA-1092 : opitsk aborting process
    Instance terminated by LMS0, pid = 27427

    Thanks for reply,
    My redo logs size is default 50mb.There is currently no load on the system since we are not using this environment for time being.The log switches are averaged to be 8 per day.I think Increasing the size of redo will further cause the problems since the archiver may again hold lock for more time.
    Since there is no dedicated connection between the nodes and storage ,So increasing the hardware and network configuration is only solution to this? Or I am still missing something...
    As far as configuration is considered i cannot add more resources to this environment.How can I solve this issue?

  • RAC instance name - Can i choose my OWN?

    Can i choose RAC instance name rather than defined by DBCA?
    for example, i want to name my instance as <DBNAME>_1

    yes you can
    Cheers

  • How many 11gR2 RAC instance servers would be needed?

    On the shared SAN drive - there will be as many as 6 11gR2 databases. For 2 node RAC instance servers - how many instance servers would work fine - are two separate servers needed for each database?

    user7107816 wrote:
    On the shared SAN drive - there will be as many as 6 11gR2 databases. For 2 node RAC instance servers - how many instance servers would work fine - are two separate servers needed for each database???? That depends. Does each database require high availability? Your question seems to indicate a lack of understanding of what RAC provides and how it achieves that goal... High Availability.
    RAC can also be used to provide additional horsepower - on the fly. I have added a new node - start to finish in < 2hrs. (new hardware+install/configure OS+addnode to RAC and have it online and operational.) No other database solution offers this flexability.

Maybe you are looking for

  • Replacement price of iphone 5s with new one

    replacement price of iphone 5s with new one

  • Can my iTunes library be on more than 1 hard disk ?

    Hi, While having my music library on my computer, can I also store my movies files on the hard disk connected to my Airport Extreme Base Station (AEBS) ?  Regards.

  • Cant delete iCal calendar

    I subscribed to a calendar a couple years ago but it is no longer relevant and I want to delete it from my list of calendars in iCal. I keep trying to delete it, but after a couple of minutes it reappears. How can I really delete this calendar? Is th

  • Copying script for itunes database files?

    Hi, I stored my itunes music on another internal HD called Spitfire. The default storage folder for the itunes xml and library files is in my main internal HD /user/music/itunes folder ie. Master i use superduper to backup Spitfire, but i would like

  • Opinions about g5's

    So let me start by saying I love having the latest greatest. With that said, a few months ago I took the plunge and got the dual 2.7 g5 with lots of extras. Absoutly love the machine. However, the "need to have the latest" is in full fury because of