THREAD# = 0 in RAC

Hi,
I am getting THREAD# as 0. That other node is down in RAC environment.
Can you please tell me why i am getting THREAD# as 0?
==========================================================
select THREAD#, STATUS, ENABLED from v$thread;
THREAD# STATUS ENABLED
1 OPEN PUBLIC
2 CLOSED PUBLIC
SQL> SELECT THREAD#, INSTANCE_NAME, HOST_NAME FROM GV$INSTANCE;
THREAD# INSTANCE_NAME HOST_NAME
1 sg01sb6t1 D100STUL203
*0 sg01sb6t2 D100STUL703*
==========================================================

Duplicate thread
Re: Unexpected Output from gv$instance                                                                                                                                                                                                           

Similar Messages

  • Disable Intel CPU Hyper threading in Oracle RAC environment

    Dear Expert,
    Does disable CPU hyper threading will have direct impact or maybe unexpected behavior to Oracle RAC database?
    Actually the background of this question is we have many received packet queuing on the network layer waiting to be processed. Investigation leads to the processor utilization which shows that many processor are still in idle state or not used when the other processors are busy processing incoming request.
    I have visited some oracle note like
    CPU Count Consideration for Oracle Parameter Setting When Using Hyper-Threading Technology (Doc ID 289870.1)
    Oracle and Hyper-Threading (Doc ID 205089.1)
    Using PROCESSOR_GROUP_NAME to bind a database instance to CPUs or NUMA nodes (Doc ID 1585184.1)
    These document already give useful information but i wonder if there is any possibilities risk or another consideration of disabling cpu hyper threading.
    Please let me know if any other information required.
    Thanks.
    Best Regards,
    Jolly

    As far as I know it is set as cpu architecture and mobile chips don't have the option. Not 100% as I've never needed to do it.
    Better bet would be to check Intel ark and forums with them I expect.

  • Unable to delete the Redolog of Thread 2 in RAC

    Hi,
    Oracle 10gR2 ( 10.2.0.4), Rac Environment, Instance name orcl1, orcl2
    Recently the orcl2 got crashed so we rebuilt the machine and orcl2 node and added the node again back to cluster
    There was a failed attempt in DBCA (Addition instance part) where the redolog05 & 06 got created in ASM.
    We created instance orcl02 as thread 3 instead of thread 2 and successfully added the node to cluster.
    The redolog of thread 2 (redo05, redo06) created due to the failed DBCA add instance activity in unable to delete from the v$log entries.
    GROUP# THREAD# MEMBER ARCHIVED STATUS Size (MB)
    1 1 +ORCLDG3/orcl/redo01.log YES ACTIVE 50
    2 1 +ORCLDG3/orcl/redo02.log NO CURRENT 50
    5 2 +ORCLDG3/orcl/redo05.log YES UNUSED 50
    6 2 +ORCLDG3/orcl/redo06.log NO CURRENT 50
    8 3 +ORCLDG3/orcl/redo08.log NO CURRENT 50
    9 3 +ORCLDG3/orcl/redo09.log YES INACTIVE 50
    When i tried to disable the thread 2 i am getting the below errors, as the redo log 05, 06 are not physically present in the ASM
    SQL> alter database disable thread 2;
    alter database disable thread 2
    ERROR at line 1:
    ORA-00313: open failed for members of log group 6 of thread 2
    ORA-00312: online log 6 thread 2: '+ORCLDG3/orcl/redo06.log'
    ORA-17503: ksfdopn:2 Failed to open file +ORCLDG3/orcl/redo06.log
    ORA-15173: entry 'redo06.log' does not exist in directory 'orcl'
    Please help in removing the Thread 2 redo log files as this warning are getting written in the alert log every second and fills the mount point.
    Regards

    The method suggested in the thread is not working, please find the below errors,
    SQL> alter database clear logfile group 5;
    SQL> alter database clear logfile group 6;
    alter database clear logfile group 6
    ERROR at line 1:
    ORA-00350: log 6 of instance orcl2 (thread 2) needs to be archived
    ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
    SQL> alter database drop logfile group 5;
    alter database drop logfile group 5
    ERROR at line 1:
    ORA-01567: dropping log 5 would leave less than 2 log files for instance orcl2 (thread 2)
    ORA-00312: online log 5 thread 2: '+orclDG3/orcl/redo05.log'
    SQL> alter database drop logfile group 6;
    alter database drop logfile group 6
    ERROR at line 1:
    ORA-01623: log 6 is current log for instance orcl2 (thread 2) - cannot drop
    ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
    SQL> alter database disable thread 2;
    alter database disable thread 2
    ERROR at line 1:
    ORA-00313: open failed for members of log group 6 of thread 2
    ORA-00312: online log 6 thread 2: '+orclDG3/orcl/redo06.log'
    ORA-17503: ksfdopn:2 Failed to open file +orclDG3/orcl/redo06.log
    ORA-15173: entry 'redo06.log' does not exist in directory 'orcl'
    Any ideas,

  • # of threads required between RAC Primary and RAC Standby

    Oracle 11.1.0.7
    Primary 3 Node RAC
    Standby 2 Node RAC
    Our primary (3 nodes) has 4 groups on each node, with the thread# relating to the instance number. For example, we have thread 1, 2, 3 each with 4 multiplexed groups.
    Our standby was created with RMAN Duplicate and it also has 3 threads, but there are only 2 nodes.
    The purpose of this Data Guard implementation is to migrate our development and acceptance environments to another data center with different hardware.
    The new site has been running well and we started migrating development, where we did a switchover to the new environment; our standby databases are now our primary databases. We are going to keep the Data Guard implementation for awhile just to be sure all of the developers and applications are good.
    I was going to drop the 3rd thread from the new primary (old standby) because there are only 2 nodes. I can take it down to 2 groups and then receive the error:
    ORA-01567: dropping log 9 would leave less than 2 log files for instance play3 (thread 3)
    ORA-00312: online log 9 thread 3: '+ASM_FRA_DA/dgplay/onlinelog/group_9.28331.811864225'
    This group’s status is:
    THREAD# GROUP# MEMBER SEQ STATUS
    3 5 +ASM_FRA_DA/dgplay/onlinelog/group_5.8108.813676681             0 UNUSED
    6 +ASM_FRA_DA/dgplay/onlinelog/group_6.8109.813676687             0 UNUSED
    9 +ASM_FRA_DA/dgplay/onlinelog/group_9.28331.811864225            0 UNUSED
    22 +ASM_FRA_DA/dgplay/onlinelog/group_22.18321.811184283           0 UNUSED
    Plans are to un-Data Guard these environments to decommission the hardware. At that time I’m sure I can remove thread# because it’s not needed.
    My question has to do with the logs needed between primary and standby. What I’m seeing is that the greatest number of threads are needed on each side, but not quite sure why if they are UNUSED. Can anyone elaborate on this? I can find no documentation that talks about this.
    Sherrie

    Hi,
    You could do:
    ALTER DATABASE DISABLE THREAD 3;
    check status of the groups in the thread, if any of them <> UNUSED, then archive them:
    ALTER SYSTEM ARCHIVE LOG GROUP x;
    Then drop the groups.
    My question has to do with the logs needed between primary and standby. What I’m seeing is that the greatest number of threads are needed on each side, but not quite sure why if they are UNUSED. Can anyone elaborate on this? I can find no documentation that talks about this. Actually a RAC standby can work with just 1 instance started, because the MRP process runs only on 1 instance. Opening the standby is another story.
    But of course you should have enough standby redo logs on the standby site to receive redo from the primary site.

  • Problems debugging multiple threads to test race conditions

    I was trying to use JDeveloper 10.1.3 to debug race conditions (in the Embedded OCJ4 Container) and was not able to get the degree of control over multiple threads that I had hoped. I was able to trap a break point where I see two active request threads in the Threads window, and I am able to select each thread individually and see the current line of code that each is currently on. However, if I use the debugger controls to step a line of execution on one of the threads, the execution point also seems to change on the other thread.
    In some other IDEs I have used concepts like "freezing" and "thawing" threads which provide fine grain control over debugging race conditions. Is anyone aware of a similar concept in JDeveloper that I might just not be aware of? Instead it just seems that debugger has either paused the JVM or else plays all threads while only bounding particular thread you have focus on to the number of execution steps you specified (step into, step over, step out of, ...).
    Thanks.

    There are some developers that have mentioned this to me also.
    It appears to be possible in eclipse however, but not JDeveloper. Can anyone verify this, and hopefully give us a work around?
    Thanks,
    Tony

  • 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

  • Problem Getting Thread to Stop

    Hello,
    I am simulating a race. When the winner has been determined, I need to stop the other threads since the race is over. Here is the code that I have with regards to stopping the threads:
    public void simulateTravelTime() {
    try {
    Thread.sleep((int)(Math.random() * distance * 10));
    //Terminate thread execution if the thread is interrupted.
    catch (InterruptedException e) {
    requestStop();
    public void requestStop() {
    stopThread = true;
    public void run() {
    while (!stopThread && (waterInBucket < fullBucket)) {
    //Code to simulate the race and determine if there is a winner.
    //If there's a winner, stop all threads.
    if (winner == true) {
    int n = group.activeCount();
    Thread[] activeThreads = new Thread[n];
    group.enumerate(activeThreads);
    for(int i=0; i<n; i++)
    activeThreads.requestStop();
    //Interrupt the other threads in case they're sleeping.
    group.interrupt();
    It doesn't like the activeThreads[i].requestStop(); line. Anyone know how to alter my code to fix the problem?
    Thx.

    Ahh, I see. Didn't notice that before.
    Okay, I gotta run, but off the top of my head, I think one of the following should work. I prefer the first:
    * When you create the threads, give each one a name that matches it up to your class. Your clas needs to have a name field to match on, or else a separate map maps the name to the Runnable (your class).
    OR
    * Have your class extend Thread.

  • Need to shutdown GG process if 1 node of the RAC is shutdown?

    if only 1 node of the 2-node RAC cluster is shutdown, Does GG have to come down as well or can it run against the 1 node that is up.
    Thanks

    Apologize for wrong answer to this post, due to site network issues wrong page was opened, hence wrong answer was posted earlier.
    Hi,
    If one of the node is down, OGG Extract also breaks down as it is unable to process that particular redo thread. As you are aware, in a RAC environment, the Extract process uses threads, one for each redo thread in the RAC cluster.
    Hence the only way to restart the Extract is to exclude the node(redo thread) by using THREADOPTIONS PROCESSTHREADS EXCEPT <thread spec>.
    Example: THREADOPTIONS PROCESSTHREADS EXCEPT 2
    Extract threads are mapped to redo threads, so while excluding the thread please verify the mapping correctly and exclude the right thread.
    SQL> select distinct THREAD# from gv$log;
    Caution: Excluding any of the Extract threads from being processed excludes that data from being synchronized with the target tables.
    Once the node is back online, you could comment out the above parameter in the Extract parameter file and restart the Extract to process all the redo threads in RAC.
    Hope this information helps.
    Thanks & Regards
    SK
    Edited by: Santhosh on Aug 2, 2011 9:51 AM

  • Standby creation with rac

    My system is solaris 10, Oracle database v. 10g.
    I'm creating a physical standby database on a remote host.
    As there is 2 different sequence number for the 2 thread in the RAC,
    select max(sequence#) from gv$archived_log;
    thread1 = 76
    thread2 = 433
    what is the sequence number I have to user for the recover operation.
    Thanks for your help
    Fabrice

    Better than the sequence numbers are the SCNs, check first_change# and next_change# (also in v$archived_log).
    Werner

  • Adding bigger size Redo log groups In RAC , ASM

    Hi Folks,
    Database version - 10.1.0.4.0
    OS version - AIX 5.3
    RAC node 2 and ASM
    We had 4 redo log groups of lesser size on both nodes.yesterday I added 4 new groups of bigger size using pl/sql developer tool and deleted 2 old redolog groups. But I m not able to delete remaining 2 old groups.
    ORA-01567 dropping log2 would have less than 2 log files for instance 1.
    Our redolog files are on SAN and both node points to same storage. when I fired this query from command prompt
    SELECT v$logfile.member, v$logfile.group#, v$log.status, v$log.bytes
         FROM v$log, v$logfile
    WHERE v$log.group# = v$logfile.group#;
    I got same result for both nodes.
    The problem I suspect is that All the 4 new log groups are added to instance 2 and its 2 old grouips are are also deleted.
    Now my ques is that :
    1. shouild I have added redo log groups separately on both nodes even storage is same for both nodes ?
    2. redologs groups are defined separately for each node ?
    How should I assign 2 new redo log groups to instance 1 ?
    Regards,

    Please check:
    SQL> select instance_number, instance_name, thread# from gv$instance;
    Show Instance with thread ID
    SQL> select group#, thread#, members ,status from v$log;
    Check number groups in each of thread.
    On RAC, you have to add redo log Group each of node (each of thread )
    SQL> select group#, thread#, members ,status from v$log;
    From your environment ,I think you have 2 nodes = 2 thread
    If these're thread 1, 2
    So, add redo group should:
    Example:
    ALTER DATABASE ADD LOGFILE THREAD 1 GROUP 11 ( '+DATA') SIZE 500M;
    ALTER DATABASE ADD LOGFILE THREAD 1 GROUP 12 ( '+DATA') SIZE 500M;
    ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 13 ( '+DATA') SIZE 500M;
    ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 14 ( '+DATA') SIZE 500M;
    You should check each thread has >= 2 groups and that group had "INACTIVE" status before drop:
    SQL> select group#, thread#, members ,status from v$log;
    My Idea, you should have 3 redo log groups for each node(thread)
    Good Luck

  • Threads controling movement of picture

    I think that the problem is something simple. Its a runtime error about a null pointer exception when I call the paint method of the Applet from the Thread.
    Here is the paint method and the thread.
         public void paint(Graphics gr) {
              /* Drawing the Track*/
         /*this resizes the applet if the size of the applet has changed*/
         g = gr;
         if ((getSize().height != size) || (getSize().width != size))
              setSize(size,size);          //Resizes the applet                
              g.drawImage(pod1left,pod1x,pod1y,this);
              typingArea.requestFocus();
         }//end paint
         class pod1 extends Thread {
              Applet a;          
              public pod1 (Applet a) {}
              public void run(){
                   long currentTime;
                   long wait;
                   do {
                   currentTime = System.currentTimeMillis();
                   wait = currentTime + pod1delay-pod1Speed;                         
                        //this loop waits until it repaints moving the pod
                        do {
                             currentTime = System.currentTimeMillis();
                        } while (currentTime < wait);
                        pod1x += 10;          
                        if ((g != null) || (a != null))a.paint(g);          //calls the paint method
                   }while (pod1racing == true);                              //the loop will end terminating the thread
                                                                                    //when the racer finishes racing
              }//end run
         }//end pod1

    From the code that you show, it might have something to do with the fact that you are passing the paint method an undeclared graphics variable. You pass it g but i don't see g declared anywhere in your code. Graphics is an abstract class so you can not instantiate it. Maybee try using the getGraphics() method, probably something like this
    Applet a;
    Graphics g;
    public pod1(Applet a)
         g = a.getGraphics();
    also you might want to use the update() method instead of calling paint().
    try catching the exception and see what happens

  • 2 Node RAC with Single Node Standby Help

    Hello Everyone -
    I'm preparing to set up a 2 node RAC and use a single-node standby database.
    I'm a bit confused on how to set up the Standby Redo Logs on the standby to use the LGWR functionality from the RAC instances.
    Should I just create a set of standby redo logs (alter database add standby logfile...) like on a single-instance environment or do I need to create standby logfile threads (alter database add standby logfile thread. . . ) one for each cooresponding thread on the RAC?
    It just seems odd that 2 RAC redo threads are able to write to one standby redo logfile at the same time (or maybe each RAC redo thread picks the first available standby redo log and writes to it??)
    If anyone has some advice or insight, I'd appreciate it.
    Andy

    Hello Andy,
    Did you get answer to your question about RAC with single standby?
    Could you please share with me your experience if you have done so.
    Thanks
    Amit

  • Can OSB XE run on a server other than the database system?

    I have a 2 node 10GR2 Standard Edition RAC using an EMC SAN and ASM. However, I can't attach a tape drive directly to the database servers because they have no available slots for SCSI controllers. Is it possible to use OSB XE installed on a separate system (which would act as the administrative and media server) with a tape drive to back up the RAC database, or does XE only permit backing up a system which contains both the database and the tape drive? (I'm not too concerned with backing up the OS). If so, would the backup contain archive log threads for both RAC nodes?

    OSB-XE may be used for a single-server environment only. You describe 3 hosts in the environment. The only way you could use OSB-XE would be to have one host configured as your admin. server, client and media server and only back data on that server. If you are backing up the database, then OSB-XE must be installed on the database server which also must then be configured as your admin server and media server....it must be direct attached via SCSI to tape drive.

  • Checking  Whether Physical Standby is in Sync with the Primary

    I writing script to alert dba if primary and standby database are not in sync. I use article - How To Check Whether Physical Standby is in Sync with the Primary? ID 861595.1      
    It suggests comparing Last Sequence Generated on primary and Last Sequence Received on standby for each thread. And if they are not equal - NOT in sync.
    My assumption is that if there are multiple threads we running RAC. Is it correct ?
    And if we running RAC as far as I am aware it's sufficient to have one thread in sync.
    Please comment on this
    Thanks in advance
    Edited by: user613441 on Jan 6, 2010 9:16 PM
    Edited by: user613441 on Jan 6, 2010 9:17 PM

    deleted

  • Exadata + Physical Standby (non-exadata) + Backups

    Some folks are asking me for my opinion on a backup strategy - I don't think its possible/feasible, but I will put it out here for comments..
    Proposal:
    Create physical dg db (non exadata) with netapp storage of an Exadata (full rac v2).
    Create rman backups of the physical dg using netapp snapshot technologies.
    I cant see how this would work. Sure we can take the snaps on the pdg and restore the pdg, but ..
    a) what if we lose a datafile on the exadata?
    Its asm - what rman command would you run to restore the datafile? a simple restore datafile? I would think it would be more complicated.
    b) what if we lost all of the exadata - corruption, physical,logical whatever..
    rman restore database wouldn't work would it? Would it know to restore from the backups done on the pdg?
    EIther way - it seems that you are inevitably restoring upwards of ~100tb from the pdg back to the Exadata via some pipe (nic/Ib).
    I see one comment that says you can use pdg backups if they went to tape, but not if they went to disk. I assume the netapp snaps would be considered disk backups.
    Thoughts?

    Objectives -- quick restore times (< 8hrs) - not to rely on tapes - full backups - reduce impact on source db
    Size being upwards of 50-100Tb
    The vendor has outlined the product which "seems" like a great thing - but will it work with Exadata
    See this thread on the RAC-RMAN with snapshot on NetApp

Maybe you are looking for

  • WARNING: Adjust Date & Time doesn't work

    I bought Aperture 2.0 because I was thrilled they finally have an adjust date/time feature. The interface is great, but it simply doesn't work. I was trying to adjust a batch of images by 30 seconds to get it in sync with another camera, however, it

  • Opening & Closing Stock in P&L Statement

    Dear All, My client is using Tally software preior to SAP B1 Implementation. In Tally the P/L satatment shows  Opening Stock , purchases and  Closing Stock ledgers.We are not using Purchase Accounts posting system. How to map the existing SAP Ledgers

  • ITunes 10.6.3 freezes

    For whatever reason, this problem does not seem to affect iTunes on my Macbook Pro, but it's made iTunes on my iMac effectively inoperable: Listening to a podcast, or moving the scrubber on a podcast while listening to it, frequently causes the entir

  • Win10: 7.5.0.102 crashes after changing language v...

    Windows 10 build 10130 @ English MUI Skype 7.5.0.102 Language changing is set up to use Alt+Shift+(1\2\3) to switch to English\Russian\Ukrainian accordingly. After pressing Alt+Shift+2 or Alt+Shift+3 in any chat Skype stops responding. Bug existed si

  • Plan order text in CM29 screen

        How to display plan order text in CM29 screen? Reply appreciated.