Oracle Rac 11GR2 + SQL

Hi,
I have a database 11gr2 in RAC and an IIS application.
This application insert data into database.
Sometimes i have a crazy case :
When the web page is display a package is launch : this package insert a row in a table with a sequence number and sysdate.
When the user validate this page this package is launch again.
Sometimes, i have those rows in the table :
1 07/06/2013 13:00:00
2 07/06/2013 12:59:56
How can i have a date anterior in the second insert ?
Do you have an idea ?
Thanks.

You connect for every statement and disconnect after every statement.
You use load balancing, or the database is configured for load balancing.
Both invocations of the package end up on different instances.
You don't use any mechanism to synchronize the system clocks of the server.
BINGO!
Sybrand Bakker
Senior Oracle DBA
'

Similar Messages

  • ASM pfile lost in Oracle RAC 11gr2

    Hello Gurus,
    I am new to Oracle RAC 11gr2 and facing some issues. our spfile/pfile for asm instance is lost and I am not able to startup the asm instance.
    Environment is as below:
    RAC 2 nodes
    Oracle RAC 11gr2
    Enterprise Linux Server release 5.5 (Carthage)
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/init+ASM1.ora'
    Is there any way to recover the spfile/pfile ?
    Also getting following error while try to connect " sqlplus / as sysasm"
    $ sqlplus / as sysasm
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Mar 27 11:26:02 2011
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name:
    Thanks and Regards,

    Hi,
    Do we need to Set variable ORACLE_HOME properly (Grid Home) while starting RDBMS instance?
    e.g ORACLE_HOME=/u01/app/11.2.0/grid*I recommend you set ORACLE_HOME properly for each Oracle Installation when you use SQLPLUS.
    i.e: cat /etc/oratab
    orcl:/u01/app/oracle/product/11.2.0/db_1
    db10g:/u01/app/oracle/product/10.2.0/db_1
    +ASM1:/u01/app/11.2.0/gridAlso you can startup/shutdown our database with SQLPLUS using ORACLE NET*, but it must be configured properly.
    My recommendation <s>is always</s> use SRVCTL and CRSCTL to manage to your environment. Track all the process of initialization processes through the logs using ADRCI utility (only 11.1 or later).
    When use SRVCTL or CRSCTL to manage I recomend you use (GRID HOME).
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-16038: log 3 sequence# 1067 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 3 thread 2: '+FRA/yyy/onlinelog/group_3.259.738489481'
    SQL>I give to you three options:
    1° - Add more asmdisk on Diskgroup +FRA
    2° - Make backup of all archivelog using RMAN and option delete input (i.e backup archivelog delete all input;)
    3° - If this database is for TEST ONLY and you not need backup or recovery of then you can delete all archivelog using RMAN (i.e delete archivelog all;)
    I recommend you create routine of backups of the database and archivelog to prevent this area becomes exhausted.
    If you need the database in archivelog but it is only to test then create routine to delete archivelogs periodically.
    If you dont need the database in archivelog, then just disable it.
    Regards,
    Levi Pereira

  • Using ZFS for Oracle RAC 11gR2 binaries

    Hi,
    We have following scenario,
    Two Node Cluster: Oracle RAC 11Gr2 with Clusterware on Solaris 10
    We want to keep Oracle & Clusterware binaries on ZFS mirror file system on each node locally and for Data files, FRA, Voting disks & OCR on shared SAN using ASM.
    My question, is the above scenario certified by Oracle or can we keep Oracle binaries on ZFS...?
    Will appreciate your input.
    Thanks

    Well my confusion started after reading this doc on oracle support:
    Certification of Zeta File System (Zfs) On Solaris 10 for Oracle RDBMS [ID 403202.1]
    "Oracle database 10gR2 (10.2.0.3 and higher patches), 11gR1 (11.1.0.6 and higher patches) and 11gR2 (11.2.0.1 and higher patches) are certified with Solaris 10 ZFS on Sparc 64-bit and Solaris x84-64. See Solaris ZFS_Best_Practices_Guide. This is for single instance ONLY. ZFS is currently not applicable to RAC and not Certified to use it as a shared filesystem."

  • Is OCFS2 certified with oracle RAC 11gR2 ?

    Hi,
    Is OCFS2 certified with oracle RAC 11gR2 ?
    Thanks..

    ocfs2 is certified for oracle 11gr2 but oracle recommends using asm. please see this for more information http://download.oracle.com/docs/cd/E11882_01/install.112/e10812/storage.htm#CWLIN262

  • Is it possible to install Oracle RAC (11gR2)on server having just one NIC ?

    Hi all,
    Please let me know if it is possible to install Oracle RAC (11gR2) on server having just one NIC card on linux (RHEL5.8).
    by creating a virtual NIC like the real ethernet is etho and we are creating eht0:1 as virtual NIC, and i want to use this as eth1, so please suggest me if this is the workaround for my issue or not.... if not please suggest me the best way to install RAC on physical linux box running with one NIC card.
    Thanks
    @ble

    Check if this thread is relevant
    Single NIC card and RAC ???
    Thanks,
    Ajay More
    http://www.moreajays.com

  • Oracle rac 11gr2 + sga

    Hi all,
    I have a 2 nodes rac 11GR2 on linux redhat with 12Go RAM each one.
    Since 15 days, a dba add more memory on each node (+ 24Go RAM) and modify SGA like :
    On each node :
    create a pfile from spfile, modify memory_max_target on pfile (from 7Go to 8Go), and restart each instance from this pfile.
    Now, the problem are :
    Each node consume 36Go of 36Go RAM,
    The parameter spfile is empty (show parameter spfile).
    Do you an idea why all RAM is consumed on each node ?
    Thanks.

    Problem 1: Why is that a problem? How did you establish 36 Gb is used. The Unix tools are notoriously for providing incorrect information as the SGA is accounted for in every process.
    Problem 2: Evidently the "DBA' used an incorrect procedure to change these parameters, and didn't convert the pfile to spfile again, and started using the 'startup pfile' command.
    The action plan for this twofold
    - educate the "DBA' or don't hire him anymore
    - use the create spfile from pfile command, and restart the database.
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle Rac 11GR2 installation issues;

    Hi fellows. I wonder if you could help me with an issue:
    I have this Oracle RAC with 2 nodes, using OS Oracle Linux 6.3 with architecture x86_64.
    The installation was doing ok, but on "Prerequisite Checks" i had a problem:
    "Device Checks for ASM"
    Device Checks for ASM - This is a pre-check to verify if the specified devices meet the requirements for configuration through the Oracle Universal Storage Manager Configuration Assistant.  Error:
    "/dev/oracleasm/disks/OCR1" is not shared  - Cause: Cause Of Problem Not Available  - Action: User Action Not Available
      Check Failed on Nodes: [cmsora02,  cmsora01] 
    Verification result of failed node: cmsora02
    Details:
    PRVF-5149 : WARNING: Storage "/dev/oracleasm/disks/OCR1" is not shared on all nodes  - Cause:   - Action: 
    Back to Top 
    Verification result of failed node: cmsora01
    Details:
    PRVF-5149 : WARNING: Storage "/dev/oracleasm/disks/OCR1" is not shared on all nodes  - Cause:   - Action: 
    Back to Top
    But, the thing is: They are Shareable.
    I will prove to you:
    [root@cmsora01:/root]$ oracleasm listdisks
    DAT1
    FRA1
    OCR1
    OCR2
    OCR3
    OCR4
    OCR5
    REDA1
    REDB1
    And
    [root@cmsora02:/root]$ oracleasm listdisks
    DAT1
    FRA1
    OCR1
    OCR2
    OCR3
    OCR4
    OCR5
    REDA1
    REDB1
    I don't know if this proves a thing, but the disks are readable for both nodes.
    Anyone has passed for this situation before ?
    Any hint would be helpful.
    Thanks in Advance.
    Regards.

    check the following links if it help's you out
    http://www.oracler.net/?p=66
    http://nnarimanov.blogspot.in/2012/11/asm-disk-permissions-in-rhel6.html

  • Error occured while executing root.sh in ORACLE RAC 11gR2 Grid

    Environment:
    NO of Node: 2
    OS Flavor: RHEL 5.3 Tikanga Release 64-Bit
    Oracle Grid Version: 11gR2 64-Bit with OCFS2 Configuration
    DB RAM: 64 GB
    H/W Vendor: CISCO
    Shared Partition: /ORASYS (1 TB)
    We are trying to install 11gR2 RAC on RHEL 5.3 (64-Bit) box. After successful installation of Gird Software from GUI, I am running oraInst.sh and root.sh from root user. oraInst.sh run fine but when we run root.sh following error encountered while checking the logs.
    2011-09-12 22:04:21.996: [ OCRCONF][3915558416]ocrconfig starts...
    2011-09-12 22:04:21.996: [ OCRCONF][3915558416]Upgrading OCR data
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 0
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 1
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 2
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 3
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 4
    2011-09-12 22:04:21.997: [  OCROSD][3915558416]utread:3: Problem reading buffer 11383000 buflen 4096 retval 0 phy_offset 102400 retry 5
    2011-09-12 22:04:21.997: [  OCRRAW][3915558416]propriogid:1_1: Failed to read the whole bootblock. Assumes invalid format.
    2011-09-12 22:04:21.997: [  OCRRAW][3915558416]proprioini: all disks are not OCR/OLR formatted
    2011-09-12 22:04:21.997: [  OCRRAW][3915558416]proprinit: Could not open raw device
    2011-09-12 22:04:21.997: [ default][3915558416]a_init:7!: Backend init unsuccessful : [26]
    2011-09-12 22:04:21.997: [ OCRCONF][3915558416]Exporting OCR data to [OCRUPGRADEFILE]
    2011-09-12 22:04:21.998: [  OCRAPI][3915558416]a_init:7!: Backend init unsuccessful : [33]
    ** Urgent help is required as my production environment setup/activity is halted due to this.
    Thanks in Adv.
    Yuvrajsinh Chauhan

    ./runcluvfy.sh comp ssa -n "vel-kol-db1","vel-kol-db2" -s /ORASYS -verbose
    ./runcluvfy.sh comp cfs -n "vel-kol-db1","vel-kol-db2" -f ocfs2 -verbose
    ./runcluvfy.sh comp ssa -n "vel-kol-db1","vel-kol-db2" -s /dev/mapper/360060e80102077c000090010077c000e -verbose
    ./runcluvfy.sh comp crs -n "vel-kol-db1","vel-kol-db2" -verbose
    ./runcluvfy.sh comp ocr -n "vel-kol-db1","vel-kol-db2" -verbose
    ./runcluvfy.sh comp voting -n "vel-kol-db1","vel-kol-db2" -verbose
    verify this

  • Oracle RAC and sql loader

    hi all,
    We have Oracle 10g RAC on IBM AIX
    Today i will be uploading data in a table through sql loader.
    I want that at the time of insertion only data which i am inserting goes into the table,As i am using sequence on particular column A.
    Problem is If i shutdown database then i will not to able to insert data and if i doesnt shutdown db value for that column A is generated automatically when application works.
    i have recommanded that we should stop connectivity of application with database then i will perform insertion but some people are saying no.Find other method
    What steps should i do?

    Ok i thing my question was not clear
    I have table XYZ
    A B C
    1 2 3
    4 4 5
    if application is connected to database value to Coulmn is incremented
    A B C
    1 2 3
    4 4 5
    5 6 7
    i have to insert into table XYZ using sql loader giving sequence (4,1) on column A.
    But if it is connected to application it will give me error of PK.
    as Value 5 is already inserted by application so how can i stop this.
    so that i can have the max value of coulmn and start sequence
    Hope this time make u clear.
    sorry for bad english

  • Cluster_resource not starting in oracle RAC 11gR2 after adding

    I am using a RAC of 2 nodes (rac1,rac2) on windows 2008 Server R2 with Oracle 11gr2 grid installed.
    I am trying to add a cluster resource using
    *> crsctl add resource check -type cluster_resource -attr "ACTION_SCRIPT=C:\app\agent.exe"*
    It is success and is shown using crs_stat -t
    C:\app\11.2.0>crs_stat -t
    Name Type Target State Host
    check clus...esource ONLINE UNKNOWN rac2
    Now I am trying to start this using
    *>crsctl start resource check*
    Its failing with following error:
    CRS-2672: Attempting to start 'check' on 'rac2'
    CRS-2674: Start of 'check' on 'rac2' failed
    CRS-2679: Attempting to clean 'check' on 'rac2'
    CRS-2678: 'check' on 'rac2' has experienced an unrecoverable failure
    CRS-0267: Human intervention required to resume its availability.
    CRS-5802: Unable to start the agent process
    CRS-4000: Command Start failed, or completed with errors.
    Please help me in solving this problem.

    Hi FZheng ,
    Thanks for your reply.
    agent.exe is a application containing start/stop/clean/check cases.Its a simple application through which we want to check cluster resource addition.
    Yes Grid user has privileges to rum agent.exe.
    One thing more I want to add,this problem is only coming for ORACLE 11gR2.
    All other versions (11gR1,10g) its working fine.
    If we check crsd.log in %GRID_HOME%/log/crsd directory ..the logs are as follows:
    *[ AGFW][3616] Starting the agent: C:\app\11.2.0\grid\bin\scriptagent.exe with user id: administrator and incarnation:9*
    *[ AGFW][3616]Created alert : (:CRSAGF00123:) : Failed to start the agent process: C:\app\11.2.0\grid\bin\scriptagent.exe Category: -2 Operation: OpenService Loc: getusrtok2 OS error: 1060 Other : OpenService Failed*
    *[ AGFW][3616]Created alert : (:CRSAGF00126:) : Agent start failed*
    I guess the problem is with scriptagent.exe which is used to start 3rd party cluster resources.
    Please comment.

  • Uninstalling Oracle RAC 11gR2 GI and Database Software

    I currently administer several 11gR2 RAC clusters, all hosted on IBM pSeries servers running AIX 6.1. I need to decommission one RAC cluster so that the hardware can be reused for a different purpose.
    I have been reading the "RAC Installation Guide for Linux and Unix", specifically chapter 8 in the documentation. This document mentions using the deinstall tool provided with the software, but I have never used this utility before.
    I would like to know what experience others have had usinging this tool, and whether or not I should use DBCA first to remove the database hosted by the cluster. Are there any "potholes" or known bugs when using this utility?
    Thanks in advance for any and all responses. I appreciate the help provided by this community.

    Hi Fiedi,
    Thank you for providing those 2 very helpful articles. I have one last question, which I should have asked in my original post. We have 2 separate Oracle software owners in our RAC installations: ORAGRID is owner of the Grid Infrastructure home and central inventory, and ORACLE is owner of the database home. Should the deinstall utility be run as the GI owner, or as the DB owner?
    Thanks!

  • Oracle RAC 11gR2 on Windows - Disk Storage Newbie question

    Hi all
    I have been reading through the Grid install guide in an effort to understand how to set up a RAC solution. I am new to Oracle so a lot of these concepts I am trying to understand but from what I am reading a typical install would be to have my cluster software installed on a particular shared storage type of either OCFS or ASM. These storage types then sit on top of a redundant option such as RAID, or logical volumes across disks or a kind of mirroring (SAME).
    I know what I have said is probably a rough attempt at understanding this but what I would like is if anyone has any diagrams that lay this out for me to aid my understanding that would be great.
    I am kind of at a stage where I am thinking about creating a RAC installation on some VMWare and want to know how best to configure the initial disks, and whether to add them to a RAID or carve them into partitions.
    Hope I have made sense.
    Thanks

    Hi;
    Please change thread status to answered here, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Configuring DNS for SCAN to Oracle RAC 11gR2

    Hello Oracle Linux experts
    I'm trying to install the DNS server on both nodes to RAC on my laboratory
    I'm following http://prutser.wordpress.com/2010/01/26/how-to-setup-a-private-dns-for-your-virtual-cluster/
    My named.conf file.
    -H hosts.dns
    -d spaulonci.com.br
    -n 192.168.50
    -n 192.168.25
    -u [email protected]
    -W /var/named
    -M
    -y
    +O forwarders { 192.168.50.2; };
    +O forward only;
    -s racnode1
    -s racnode2
    -z 192.168.50.10
    My hosts.dns
    192.168.25.10 racnode1-priv.spaulonci.com.br
    192.168.25.11 racnode2-priv.spaulonci.com.br
    192.168.50.10 racnode1.spaulonci.com.br
    192.168.50.12 racnode2.spaulonci.com.br
    192.168.50.11 racnode1-vip.spaulonci.com.br
    192.168.50.13 racnode2-vip.spaulonci.com.br
    192.168.50.20 openfiler1.spaulonci.com.br
    192.168.25.20 openfiler1-priv.spaulonci.com.br
    192.168.50.30 cluster-scan.spaulonci.com.br
    192.168.50.31 cluster-scan.spaulonci.com.br
    192.168.50.32 cluster-scan.spaulonci.com.br
    When a try start the service, I'm getting a erros.
    [root@racnode1 ~]# service named start
    Locating /var/named/chroot//etc/named.conf failed:
    [FAILED]
    My Linux é Red Hat 5.4 64bits
    Anyone have any idea ?
    Thanks very much
    Edited by: 816345 on 06/12/2010 15:34

    The author of the page uses the h2n tool to generate the DNS configuration files. The examples listed are not examples of the actual DNS configuration files like named.conf, etc., but samples of the configuration files to use with the h2n tool. Perhaps the instructions will work if followed more precisely.

  • Patch 12539000 on RAC 11gR2 HPUX base on releases?

    Hi, Friends
    I've got Oracle RAC 11gR2 on HPUX I64 so I´m going to apply patch 12539000, Do I need to know exactly the release installed on the system in order to donwload and apply the patch?
    How can I know which release must to download from MOS

    Law wrote:
    Hi, Friends
    I've got Oracle RAC 11gR2 on HPUX I64 so I´m going to apply patch 12539000, Do I need to know exactly the release installed on the system in order to donwload and apply the patch?
    How can I know which release must to download from MOSYes.
    Different patches available to download according to your recent Patch set Updated.
    post
    SQL> select * from v$version;
    $opatch lsinventory
    Check even from registry$history

  • Oracle rac templates 11g R2 buildcluster.sh error

    Hi All,
    am facing below error, while creating oracle rac templates. kindly let us know how to resolve below error.
    ===error=========================
    Oracle RAC 11gR2 OneCommand (v1.2) for Oracle VM - (c) 2010-2011 Oracle Corporation
       Cksum: [1170221909 255000 racovm.sh] at Sun Jan  5 04:15:14 EST 2014
       Kernel: 2.6.18-194.0.0.0.3.el5xen (i686) [1 processor(s)] 1700 MB
    2014-01-05 04:15:14:[printparams:Time :racnode1] Completed successfully in 4 seconds (0h:00m:04s)
    2014-01-05 04:15:14:[setsshora:Start:racnode1] SSH Setup for the Oracle user(s)...
    INFO (node:racnode1): Running as oracle: /u01/racovm/ssh/setssh-Linux.sh -s -x -c NO -h nodelist -p ***   (setup on 2 node(s): racnode1 racnode2)
    ERROR: Failed to create temporary file /tmp/setssh-cretmpQY3958 on localhost, can not proceed
    Exiting...
    ERROR (node:racnode1): Failed to configure passwordless SSH for the oracle user
    2014-01-05 04:15:17:[setsshora:Time :racnode1] Completed with errors in 3 seconds (0h:00m:03s), status: 1
    2014-01-05 04:15:17:[buildcluster:Time :racnode1] Completed with errors in 58 seconds (0h:00m:58s), status: 1
    thanks,
    Mike.

    Try this. It worked for me.
    Please keep in mind that you will need wait till each step finishes successfully before move to next one
    For Step1 and 2, you can skip node(s) on which you didn't execute root.sh yet.
    Step 1: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force" on all nodes, except the last one.
    Step 2: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode" on last node. This command will zero out OCR and VD disk also.
    Step 3: As root, run $GRID_HOME/root.sh on all node one by one

Maybe you are looking for

  • Ques: when I synch GB to Itunes, how can I make sure each song's volume...

    My wife and I perform live. To make a fuller sound, I recorded a number of bass-and-drum-track songs that I can run off the Ipod into our PA system to play while we're performing. Each song sounds great, but I have a question: I've got the 'songs' in

  • Can we open and close the cursor again and again

    hi all, with the help of cursor select statement i am writing some columns into the text file. while writing into the file in between i want to write something which belongs to others cursor. shall i close the first cursor and reopen it again.. is it

  • RFC & BAPI  with Visual Studio 2010 (C/ C++)

    Hello, I would to develop, into MS Visual Studio 2010 (c/ c+), a application that allows establishing a RFC connection to SAP (ECC6) and call a Z program, or call a BAPI from my c/c+ application. Can you recommend a good documentation, possibly with

  • HEY MSI. READ THIS (regarding ICH5R and compatibility with WD Raptors)

    The following issue has not been resolved.  Seems like several people have given up and are just using the onboard Promise controller.   Thread on issues regarding WD Raptors configured in RAID via ICH5R Does it not suprise you that nobody is using R

  • Search by message-id on MS Exchange

    Hi, I am using IMAP to access mail from my application and I have following problem: I have folder with 4 messages in it, msg1 is referenced by msg4, msg 2 is referenced by msg 3. msg1: Message-ID: <[email protected]> References: <[email protected]>