Upgrading to Clusterware 11Gr2 question

I am need to upgrade to 11Gr2 clusterware from 11Gr1. One of the pre-reqs is to have a newer verision of ASMLIB.
I have not found any docs that referr to the upgrade ASMLIB. What my sysadmin is indicating is that if this is done
All of my current asm info will be lost since all of the disk lables are removed. I believe his method ws going to be
to remove old RPM and install new RPM. Does anyone know what the correct process is for upgrading the ASMLIB?
thanks
Igy

My ASMLIB is the version 10.2.0.4this is not a asmlib vesion; it's rmbms version.
rpm -qa oracleasmlib using this check your asm lib version
Babu

Similar Messages

  • What are the steps to upgrade oracle clusterware from 10.2.0.4 to 11.2.0.2.

    We have two node clusterware installed and we want to upgrade the oracle clusterware from 10.2.0.4 to 11.2.0.2 can any one share the steps for upgrade.
    Regards
    Naveen Dutt

    Hi Rajeys,
    I read all the documents but i was not able to find the information that i was looking. Below i am providing my cluster node configuration and version -
    1) No of Node in cluster - 2 (node1 ,node2)
    2) OCR (clusterware) version - 10.2.0.4
    3) Storage type - NAS storage (we are not using ASM).
    Now link provided by you is to upgrade ASM from 10.2.0.3 to 11GR2 but we are not using ASM as storage we are using NAS storage. Do we have any link or document that help me to upgrade oracle clusterware only without ASM from version 10.2.0.4 to 11.2.0.2 .
    Thanks in advance
    Regards
    Naveen Dutt

  • Oracle 10g to 11g Upgrade - Oracle Clusterware problem

    Oracle10g RAC (2 Nodes) RHEL 4 64bit
    Hi All,
    I have began the procedure for upgrading Oracle Clusterware to 11g. However, during the install OUI was giving me certain error messages like it couldn't transfer the OUI installlogs to node 2. Well, I kept pushing through the install and after I ran the last rootupgrade script on node 2 it gave me the following error:
    Checking the existence of nodeapps on this node
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/ops/opsctl/OPSCTLDriver (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Creating '/crs/home/install/paramfile.crs' with data used for CRS configuration
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/ops/opsctl/OPSCTLDriver (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Failed to retrieve VIP details
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/ops/opsctl/OPSCTLDriver (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Failed to retrieve VIP details
    Setting CRS configuration values in /crs/home/install/paramfile.crs
    So I ignored the error for the time being and after that I checked the status of crs and it gave me the following:
    [oracle@vtl-rac2 crsd]$ crsstatus
    HA Resource Target State
    ora.VMRACDEV.VMRACDEV1.inst ONLINE ONLINE on vtl-rac1
    ora.VMRACDEV.VMRACDEV2.inst ONLINE ONLINE on vtl-rac2
    ora.VMRACDEV.db ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.ASM1.asm ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.LISTENER_VTL-RAC1.lsnr ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.gsd ONLINE ONLINE on vtl-rac1
    ora.vtl-rac1.ons ONLINE OFFLINE
    ora.vtl-rac1.vip ONLINE ONLINE on vtl-rac1
    ora.vtl-rac2.ASM2.asm ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.LISTENER_VTL-RAC2.lsnr ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.gsd ONLINE ONLINE on vtl-rac2
    ora.vtl-rac2.ons ONLINE OFFLINE
    ora.vtl-rac2.vip ONLINE ONLINE on vtl-rac2
    So i tried to bring it back up by doing a crs_stop -all and crs_start -all and it gave me the following error:
    vtl-rac1 : CRS-1019: Resource ora.vtl-rac2.ons (application) cannot run on vtl-rac1
    Start of `ora.vtl-rac1.ons` on member `vtl-rac1` failed.
    vtl-rac2 : CRS-1019: Resource ora.vtl-rac1.ons (application) cannot run on vtl-rac2
    CRS-0223: Resource 'ora.VMRACDEV.db' has placement error.
    CRS-0215: Could not start resource 'ora.vtl-rac1.ons'.
    CRS-0215: Could not start resource 'ora.vtl-rac2.ons'.
    I am thinking that all of this is caused by the various issues I had with the install. If I am incorrect, then please let me know. If it is true, I would like to know if there are any 11g docs on how to clean up a failed clusterware upgrade. Any advice would be greatly appreciated on any of the situations I am having.
    Thank you

    Hi Chandra,
    Did CVU report any problems before the upgrade?No, there were no errors reported by CVU before the upgrade.
    I don't there is note out there for cleaning 11g CRS
    install...and I think can very use the 10g CRS note -
    239998.1.Yeah I might have to go that way.
    I have both the 11g CRS install and upgrade from 10g
    to 11CRS at
    http://chandradba.blogspot.com/2007/08/oracle-11g-rac-
    install-on-red-hat-50.html
    and
    http://chandradba.blogspot.com/2008/02/oracle-10g-crs-
    upgrade-to-11g-crs.html
    see if it helps.Yup, your guide is very simple, clear and error proof :) That's how mine when pretty much except right around 75% I started getting these strange errors of files not being able to be transferred to node 2. Anyways, it shouldn't be a problem as none of those errors were configuration related...or else I would have a messed up cluster.
    Well, I actually rebooted both machines and now the whole CRS stack is up!! So I guess I am ok. We'll just have to wait and see.
    Thanks for your help Chandra...I always appreciate it.

  • Request help with upgrading 10gr2 to 11gr2(11.2.03) in EBS 11.5.10.2

    EBS 11.5.10.2
    Sue Linux 10 SP2
    HRMS application
    Database 10.2.0.4
    I am planning on upgrading 10gr2 to 11gr2(11.2.03) in EBS 11.5.10.2.
    I was going thru document 881505.1 under Veryfy software versions, it says autoconfig latest version with 9835302 patch.
    In note 165195.1 using autoconfig to manage Configurations with oracle systems under patching autoconfig, says apply patch 9525311.
    which one should be applying?
    9835302 patch or 9525311?
    Thanks.

    I was going thru document 881505.1 under Veryfy software versions, it says autoconfig latest version with 9835302 patch.
    In note 165195.1 using autoconfig to manage Configurations with oracle systems under patching autoconfig, says apply patch 9525311.
    which one should be applying?
    9835302 patch or 9525311?
    The doc says "Also apply patch 9835302" in addition to AutoConfig patches, so you need to apply both -- (Patch 9835302 and Patch 9535311).
    Thanks,
    Hussein

  • 10.2.0.4 Patch Upgrade on Clusterware failed - Urgent

    Hi All,
    I was upgrading Oracle Clusterware 10.2.0.3 to 10.2.0.4 on Production Instance on Windows 2003 2 node cluster. OUI finished the patch install and asked to run $CRS_HOME/install/patch102.bat. I ran patch patch102.bat but it failed with this message " Failed to restart the OracleCRService, please try this script again or reboot the node if necessary." I have restarted the node several times and ran the script but it always failed.
    crsd.log --
    2009-04-26 08:32:42.027: [  CRSOCR][3384]32OCR api procr_open_key failed for key SYSTEM.crs.10.2.0.4.0. OCR error code = 4 OCR error msg: PROC-4: The cluster registry key to be operated on does not exist.
    [  clsdmt][1932]Listening to (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=61200))
    [ default][3384]Copying C:\oracle\product\10.2.0\crs\opmn\conf\ons.config to c:\Oracle\product\10.2.0\crs\opmn\conf\ons.config failed.
    [ default][3384]Upgrading CRS resource ora.onyx01p010a.ons from 10.2.0.3.0 to 10.2.0.4.0 is failed.
    The patch failed to upgrade ONS to 10.2.0.4. I have logged Severity 1 SR with Oracle , so far no progress.
    As of now I am looking to rollback this clusterware patch but oracle has no documentation to do this. I do have the backup of the binaries before the path was initiated.
    Please let me know if anyone has a better insight. Any rollback solution or workaround will be highly appreciated.

    I guess you could simply recopy (restore) the old binaries, maybe also old voting and ocr disks and restart the clusterware. Luckily though I nerver had to do this before.

  • Protect single instance linux Oracle 11Gr2 with Clusterware 11Gr2 non-RAC

    Hi All,
    I saw this link, but it mentions RAC as a solution:
    Using Oracle Clusterware to Protect A Single Instance Oracle Database 11g
    I have seen various articles about protecting single instance with cold failover using clusterware, but they mention scripts and older versions of Clusterware. I am trying to figure out if possible to incorporate virtual ip's / scan listeners or if this is even a supported configuration...
    I have set up clusterware 11gr2 using OCFS2. I basically just want to do a cold failover from one node to the other, and I do not wish to purchase a RAC license...
    thanks much
    Edited by: vcovco on Sep 30, 2010 1:52 PM

    Below are the steps which i followd. Can you pls take a look & reply if the below are correct.
    Step1 rg1
    crsctl add resource rg1 -type cluster_resource \
    -attr "ACTION_SCRIPT=$CRS_HOME/crs/public/act_resgroup.pl, \
    CHECK_INTERVAL=600"
    ./crsctl start resource rg1
    Step2 rg1.vip
    As root
    $CRS_HOME/bin/appvipcfg create -network=1 -ip=xx.xx.xx.xx -vipname=rg1.vip -user=root -group=root
    ./crsctl setperm resource rg1.vip -u user:oracle:r-x
    ./crsctl start resource rg1.vip
    Step3 rg1.listener
    export CRS_HOME=/optware/grid/11.2.0.2
    export ORACLE_HOME=/optware/oracle/11.2.0.2/db
    export USRORA_LANG=$ORACLE_HOME
    export USRORA_SRV=LISTENER_rg1
    export ORACLE_SID=rg1
    $CRS_HOME/crs/public/act_listener.pl start
    Listener.ora
    =========
    LISTENER_rg1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=lxwkbc-app)(PORT=1320))))
    Tnsnames.ora
    =========
    LISTENERS_rg1 =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = lxwkbc-app)(PORT = 1320)))
    ./crsctl add resource rg1.listener -type cluster_resource \
    -attr "ACTION_SCRIPT=$CRS_HOME/crs/public/act_listener.pl, \
    CHECK_INTERVAL=20,RESTART_ATTEMPTS=5, \
    START_DEPENDENCIES=hard(rg1.vip) pullup(rg1.vip),STOP_DEPENDENCIES=hard(rg1.vip)"
    ./crsctl start resource rg1.listener
    Step4 rg1.db_rg1
    export CRS_HOME=/optware/grid/11.2.0.2
    export ORACLE_HOME=/optware/oracle/11.2.0.2/db
    export USRORA_LANG=$ORACLE_HOME
    export USRORA_SRV=rg1
    export ORACLE_SID=rg1
    export USRORA_FLAGS=1
    $CRS_HOME/crs/public/act_db.pl stop
    ./crsctl add resource rg1.db_rg1 -type cluster_resource \
    -attr "ACTION_SCRIPT=$CRS_HOME/crs/public/act_db.pl, CHECK_INTERVAL=20,RESTART_ATTEMPTS=5, \
    START_DEPENDENCIES=hard(rg1.listener) pullup(rg1),STOP_DEPENDENCIES=hard(rg1.listener)"
    ./crsctl start resource rg1.db_rg1
    Step5 rg1.head
    ./crsctl add resource rg1.head -type cluster_resource \
    -attr "ACTION_SCRIPT=$CRS_HOME/crs/public/act_resgroup.pl, CHECK_INTERVAL=600,RESTART_ATTEMPTS=2, \
    START_DEPENDENCIES=hard(rg1.listener,rg1.db_rg1,rg1)"
    ./crsctl start resource rg1.head

  • RAC upgrade from11gR1  to 11gR2

    Could someone please give steps to upgrade 11gr1 to 11gr2 on linux

    Did you try even a basic search before posting this request? In future, suggests doing that before turning to forums.
    This being your first post, go to oracle 11gR2 home page and search for "How to Upgrade to Oracle Grid Infrastructure 11g Release 2" and pick the one for your OS
    Cheers.

  • I just bought a 2009 macbook pro with an os upgrade to lion. my question is how do i take the previous owners name (like when i bluetooth) to my name???

    I just bought a 2009 macbook pro with an os upgrade to lion. my question is how do i change the previous owners name (like when i bluetooth) to my name???

    Your MBP should have been given to you with the original installation disks and OS.  The Lion OS is licensed to the person who sold it to you.  You will have create your own account and purchase Lion if you wish to use it.  Those are the stipulations in the licensing agreements.
    Ciao.

  • ASM & grid infraestructure in 11gR2 - question about services

    Hi all,
    I have completed my first installation of 11g (it is R2). then, by trying to create the ASM instance (for stand alone dbs), I found that Grid Infrastructure
    was a mandatory component in order to create the ASM instance.
    Now, ASM is in place and running fine, but I found a lot of new services (ohasd, diskmon and so on)
    Below is the output:
    oracle 30695 1 0 Oct04 ? 00:00:08 /u01/app/oracle/product/11gR2/grid/bin/ohasd.bin reboot
    oracle 32171 1 0 Oct04 ? 00:03:52 /u01/app/oracle/product/11gR2/grid/bin/oraagent.bin
    oracle 32186 1 0 Oct04 ? 00:00:01 /u01/app/oracle/product/11gR2/grid/bin/tnslsnr LISTENER -inherit
    oracle 32364 1 0 Oct04 ? 00:00:07 /u01/app/oracle/product/11gR2/grid/bin/cssdagent
    oracle 32366 1 0 Oct04 ? 00:00:14 /u01/app/oracle/product/11gR2/grid/bin/orarootagent.bin
    oracle 32382 1 0 Oct04 ? 00:00:00 /u01/app/oracle/product/11gR2/grid/bin/diskmon.bin -d -f
    oracle 32394 1 0 Oct04 ? 00:00:00 /u01/app/oracle/product/11gR2/grid/bin/ocssd.bin
    oracle 32604 1 0 Oct04 ? 00:00:00 asm_pmon_+ASM
    oracle 32606 1 0 Oct04 ? 00:00:00 asm_vktm_+ASM
    oracle 32610 1 0 Oct04 ? 00:00:00 asm_gen0_+ASM
    oracle 32612 1 0 Oct04 ? 00:00:00 asm_diag_+ASM
    My question is as follow:
    Which is the right procedure, and which order should I folow, in order to stop and start all this stuff?
    Replies will be appreciated.
    Thanks
    Gustavo

    I want to make sure I understand the startup and shutdown process for RAC:
    Will crsctl stop cluster or crsctl stop crs stop database if it hadn't already been stopped? If yes, then why run srvctl stop database?
    crsctl stop cluster -all
    - stops the cluster stack however Oracle High Availability Service is still running
    - resources do not failover
    crsctl stop cluster-n <server_name>
    - stops the cluster stack on one node however Oracle High Availability Service (OHAS) is still running
    - resources do not failover
    crsctl stop crs
    - stops all OHAS and Clusterware Stack on local node
    - this includes database, services, asm, clusteware and ohas on local node
    - resources failover
    crsctl stop has
    - Is this only specific to Oracle Restart and Grid Standalone Server installation or can it be used for RAC?
    - stops the OHAS and Clusterware stack on local node
    - this includes database, services, asm, clusteware and ohas on local node
    Order of shutdown for single node to be rebooted and resources NOT to be available
    - srvctl stop database -d <db_name> -i <instance_name>
    - crsctl stop cluster -n <server_name>
    - crsctl stop has
    -----Is crsctl stop has needed?
    Order of shutdown for single node to be rebooted and resources TO BE available
    - srvctl stop database -d <db_name> -i <instance_name>
    - crsctl stop crs
    -----Is crsctl stop has needed?
    Order of shutdown Clusterwide to be rebooted
    - srvctl stop database -d <db_name> -i <instance_name>
    - crsctl stop cluster -all
    - crsctl stop has
    -----Is crsctl stop has needed?
    I appreciate any validation of my understanding.

  • Enviroment variables after upgrade 10gR2 to 11gR2 grid

    Hello,
    Oracle teaches us (for example, in appendix F "How to Upgrade to Oracle Grid Infrastructure 11g Release 2") that before upgrade you must unset such variables like ORACLE_BASE, ORACLE_HOME, ORACLE_SID etc. So, I did it, upgrade from 10gR2 clusterware to 11gR2 grid was succesful. Now I couldn't find any info, must I restore back these variables, or what must to do with them. For example I couldn't run anything from the new grid home ("command not found"), because CRS_HOME was unset, must I just add new grid home to PATH ?

    Execute the below command at OS level and verify from which home is the crsctl utility is being called
    which crsctl
    Ensure that the above command is being called from the correct home
    If the path from which crsctl utility is being called is the correct one, then perform starce on the crsctl command and verify the starce output to check if it truly is using 10g binaries or not
    If not, then try unlocking and locking the GI binaries using "rootcrs.pl -unlock" (to unlock) and "rootcrs.pl -patch" (to lock the binaries), once done verify if you are still getting the same issue or not
    Regards,
    Vandana - Oracle

  • Owbsys.wb_rt_api_exec.open fails after upgrade to OWB 11gR2

    The following code is used as a PLSQL wrapper to execute OWB mappings and is based on the good old run_my_own_stuff.sql. We have been mandated to use Tivoli as the corporate scheduler, meaning we do not have Workflow as a solution. We have implemented the audit_execution_id as an input parameter to all the mappings to be able to link the data to the OWBSYS audit tables, as well as return mapping performance and success info to the execution process/session. I have implemented this exact same procedure in 10gR1, 10gR2 and 11gR1 (current dev env) with no problems at all - the code ports easily. However following an upgrade (actually an export/import of the repository from 11gR1 on a 64bit solaris to 11gR2 on Exadata running enterprise linux 5) - actually the test server (I know, I know, I said the same thing!), the code now fails on the wb_rt_api_exec.open line (highlighted).
    CREATE OR REPLACE PROCEDURE bi_ref_data.map (p_map_name IN VARCHAR2)
    -- Procedure to execute ETL mapping package via command line call
    -- Mapping names are held in the BI_REF_DATA.MAP_NAME table
    -- with the mapping type and location data
    AS
    v_repos_owner VARCHAR2 (30) := <repository_owner>;
    v_workspace_owner VARCHAR2 (30) := <workspace_owner>;
    v_workspace_name VARCHAR2 (30) := <workspace_name>;
    v_loc_name VARCHAR2 (30);
    v_map_type VARCHAR2 (30);
    v_map_name VARCHAR2 (30) := UPPER (p_map_name);
    v_retval VARCHAR2 (255);
    v_audit_execution_id NUMBER; -- Audit Execution Id
    v_audit_result NUMBER;
    v_start_time timestamp := LOCALTIMESTAMP;
    v_end_time timestamp;
    v_execution_time NUMBER;
    v_record_rate NUMBER := 0;
    v_records_selected NUMBER;
    v_records_inserted NUMBER;
    v_records_updated NUMBER;
    v_records_deleted NUMBER;
    v_records_merged NUMBER;
    v_errors NUMBER;
    v_failure VARCHAR2 (4000);
    e_no_data_found_in_audit exception;
    v_audit_exec_count NUMBER;
    e_execution_id_error exception;
    BEGIN
    SELECT UPPER (loc_name), UPPER (map_type)
    INTO v_loc_name, v_map_type
    FROM bi_ref_data.owb_map_table
    WHERE UPPER (map_name) = UPPER (v_map_name);
    IF UPPER (v_map_type) = 'PLSQL'
    THEN
    v_map_type := 'PLSQL';
    ELSIF UPPER (v_map_type) = 'SQL_LOADER'
    THEN
    v_map_type := 'SQLLoader';
    ELSIF UPPER (v_map_type) = 'SAP'
    THEN
    v_map_type := 'SAP';
    ELSIF UPPER (v_map_type) = 'DATA_AUDITOR'
    THEN
    v_map_type := 'DataAuditor';
    ELSIF UPPER (v_map_type) = 'PROCESS'
    THEN
    v_map_type := 'ProcessFlow';
    END IF;
    -- Changed code for owb11gr2
    -- owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
    owbsys.wb_rt_script_util.set_workspace (v_workspace_owner || '.' || v_workspace_name);
    v_audit_execution_id   := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);
    IF v_audit_execution_id IS NULL
    OR v_audit_execution_id = 0
    THEN
    RAISE e_execution_id_error;
    END IF;
    v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
    v_audit_result := owbsys.wb_rt_api_exec.execute (v_audit_execution_id);
    IF v_audit_result = owbsys.wb_rt_api_exec.result_success
    THEN
    v_retval := v_retval || ' --> SUCCESS';
    ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_warning
    THEN
    v_retval := v_retval || ' --> WARNING';
    ELSIF v_audit_result = owbsys.wb_rt_api_exec.result_failure
    THEN
    v_retval := v_retval || ' --> FAILURE';
    ELSE
    v_retval := v_retval || ' --> UNKNOWN';
    END IF;
    DBMS_OUTPUT.put_line (v_retval);
    owbsys.wb_rt_api_exec.close (v_audit_execution_id);
    v_end_time := LOCALTIMESTAMP;
    v_execution_time := bi_ref_data.get_seconds_from_interval (v_end_time - v_start_time);
    v_retval := 'Execution time = ' ||
    v_execution_time ||
    ' seconds.';
    DBMS_OUTPUT.put_line (v_retval);
    SELECT COUNT (w.rta_select)
    INTO v_audit_exec_count
    FROM owbsys.owb$wb_rt_audit w
    WHERE w.rte_id = v_audit_execution_id;
    IF v_audit_exec_count = 0
    THEN
    RAISE e_no_data_found_in_audit;
    END IF;
    SELECT w.rta_select,
    w.rta_insert,
    w.rta_update,
    w.rta_delete,
    w.rta_merge,
    rta_errors
    INTO v_records_selected,
    v_records_inserted,
    v_records_updated,
    v_records_deleted,
    v_records_merged,
    v_errors
    FROM owbsys.owb$wb_rt_audit w
    WHERE w.rte_id = v_audit_execution_id;
    v_retval := v_records_selected || ' records selected';
    DBMS_OUTPUT.put_line (v_retval);
    IF v_records_inserted > 0
    THEN
    v_retval := v_records_inserted || ' inserted';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_updated > 0
    THEN
    v_retval := v_records_updated || ' updated';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_deleted > 0
    THEN
    v_retval := v_records_deleted || ' deleted';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_records_merged > 0
    THEN
    v_retval := v_records_merged || ' merged';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_errors > 0
    THEN
    v_retval := v_errors || ' errors';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF v_execution_time > 0
    THEN
    v_record_rate := TRUNC ( (v_records_inserted + v_records_updated + v_records_deleted + v_records_merged) / v_execution_time, 2);
    v_retval := v_record_rate || ' records/sec';
    DBMS_OUTPUT.put_line (v_retval);
    END IF;
    IF (v_audit_result = owbsys.wb_rt_api_exec.result_failure
    OR v_audit_result = owbsys.wb_rt_api_exec.result_warning)
    THEN
    FOR cursor_error
    IN (SELECT DISTINCT aml.plain_text
    FROM owbsys.owb$wb_rt_audit_messages am
    INNER JOIN
    owbsys.owb$wb_rt_audit_message_lines aml
    ON am.audit_message_id = aml.audit_message_id
    WHERE am.audit_execution_id = v_audit_execution_id)
    LOOP
    DBMS_OUTPUT.put_line (cursor_error.plain_text);
    END LOOP;
    END IF;
    -- OWBSYS.wb_rt_api_exec.close (v_audit_execution_id);
    COMMIT;
    EXCEPTION
    WHEN e_execution_id_error
    THEN
    raise_application_error (-20011, 'Invalid execution ID returned from OWB');
    -- RAISE;
    WHEN e_no_data_found_in_audit
    THEN
    raise_application_error (-20010, 'No data found in audit table for execution_id - ' || v_audit_execution_id);
    -- RAISE;
    WHEN NO_DATA_FOUND
    THEN
    raise_application_error (-20001, 'Error in reading data from OWBSYS tables.');
    -- RAISE;
    END;
    Does anyone out there know if there is a difference between 11gR1 and R2 in the way that the wb_rt_api_exec function works?
    Is there a simple way to retrieve the audit_id before executing the mapping, or at a push during the mapping so that we can maintain the link between the session data and the OWBSYS audit data?
    Martin

    Hi David, I have been reading some of your posts and blogs around OWB and I still have not found the answer.
    OK, thereis/was a script that Oracle Support/forums/OTN sent out a while ago called "run_my_iowb_stuff" - I am sure you will be familiar with it. I based the code I uploaded on it and added additional functionality. In essence, I wanted to use the audit_id as an input parameter tot he mapping, so that I can register the audit_id in the management tables, and associate each row of loaded data with a specific mapping_id which would allow a simple link to the owbsys audit tables to complete the audit circle. To that end, I used the owbsys.wb_rt_api_exec.open procedure to register the mapping execution, and then on the execute procedure of the same package, I passed this audit_id in as a custom parameter:
    <<snip>>
    owbsys.wb_workspace_management.set_workspace (v_workspace_name, v_workspace_owner);
    v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name, 'PLSQL');
    IF v_audit_execution_id IS NULL
    OR v_audit_execution_id = 0
    THEN
    RAISE e_execution_id_error;
    END IF;
    v_retval := v_retval || 'audit_execution_id=' || TO_CHAR (v_audit_execution_id);
    IF v_include_mapping_id > 0 -- if non-zero, submit owb execution id as an input parameter to the map process
    THEN
    owbsys.wb_rt_api_exec.override_input_parameter (
    v_audit_execution_id,
    'p_execution_id',
    TO_CHAR (v_audit_execution_id),
    owbsys.wb_rt_api_exec.parameter_kind_custom
    END IF;
    <<snip>>
    The execution is closed, also by the use of the audit_id ( "owbsys.wb_rt_api_exec.close (v_audit_execution_id)" )
    I can also use the audit_id to inspect the audit tables to retrieve the records processed as well as any associated error messages, and format them for the calling application (owSQL*Plus, which is normally the context of our current use).
    This procedure has been working weel up to now until we moved over to 11gR2 when all of a sudden the audit_id is not returned when executing "v_audit_execution_id := owbsys.wb_rt_api_exec.open (v_map_type, v_map_name, v_loc_name);". Prior to 11gR2 this worked like a charm - now it has crashed to a halt.
    As an interesting twist, I have tried to substitute a sequence number for the audit_id, and then tried to get the audit_id after the mapping completes, so that I can put both the sequence and audit id in a table so it maintains the link. However in attempting to use the owbsys.wb_rt_script_util.run_task procedure which now appears to be the only thing left working, I was astonished to see the following output in sqlplus:
    SQL> exec map1('stg_brand')
    Stage 1: Decoding Parameters
    | location_name=STAGE_MOD
    | task_type=PLSQLMAP
    | task_name=STG_BRAND
    Stage 2: Opening Task
    | l_audit_execution_id=2135
    Stage 3: Overriding Parameters
    Stage 4: Executing Task
    | l_audit_result=1 (SUCCESS)
    Stage 5: Closing Task
    Stage 6: Processing Result
    | exit=1
    --> SUCCESS
    Execution time = .647362 seconds.
    records/sec
    PL/SQL procedure successfully completed.
    SQL>
    This output seems so identical to the "run_my_owb_stuff" that either Oracle support generated their "run_my_owb_stuff" as a lightweight owbsys.wb_rt_script_util.run_task procedure, or Oracle incorporated the "run_my_owb_stuff" script into their owbsys.wb_rt_script_util.run_task procedure! Which way round I cannot say, but it is surely one or the other! To make matters worse, I have raised this with Oracle Support, and they have the temerity to claim that they do not support the "run_my_owb_stuff" script, but think enough of it to incorporate it into their own package in a production release!
    To overcome my problems, in the short term, I need to be able to access the audit_id either during or after the execution of the mapping, so that I can at least associate that with a sequence number I am having to pass in as a parameter to each mapping. In the longer term, i would like a solution to be able to access the audit_id before I execute the mapping, as I could by calling the "owbsys.wb_rt_api_exec.open " procedure. Ideally this would be solved first and I would not need to use a sequence at all.
    Hope this clarifies things a bit.
    Regards
    Martin

  • Error upgrading repository to 11gR2

    Have a 10.2.0.4 repository and trying to upgrade to 11gR2.
    Ran the cat_owb.sql script, and unlocked the OWBSYS and OWBSYS_AUDIT acounts
    Ran the reset_owbcc_home.sql script
    Started the repository admin tool, selected "Upgrade Repository...", then "Export entire repository..."
    Entered credentials for the 10.2.0.4 repository owner
    Set the file information, and clicked Finish to start the export.
    At 21% complete, a SQL Exception is thrown. The log file reports:
    SQLException
    Persistent Layer Error: SQL Exception..
    Class Name: CMPPersist.
    Method Name: queryObjNameInfo.
    Persistent Layer Error Message: ORA-00904: "OWNINGPLATFORMTYPESET": invalid identifier
    SELECT elementid, classname, name, ..., iconObject, OwningPlatformTypeSet from CMPDatatype_V where elementid=?.Any ideas would be appreciated.

    Needed to apply patch 9201820

  • Sold my 3G, Upgraded to 4 - SIM Questions

    I posted this in the 3g section, but realized it probably belongs here. Sorry for the double post...
    Ok, I know it's a good idea to remove the sim card but hear me out.
    I just upgraded to the iphone 4 and sold my iphone 3g on ebay. The auction has already ended. I made a typo and said that the SIM card was included when I meant to say it wasn't.
    So, my question is... does it really matter? I've wiped the data from the phone, restored the phone as new, and wiped again for good measure. My phone number is active on the new micro-SIM in the iphone 4.
    Is there any security/privacy issue with shipping the old sim card to the buyer? I've contacted them to let them know, but if it's a moot point I'd rather just ship it than risk the negative feedback.
    Any help is appreciated.

    The SIM Card does not store any information unless it's a normal phone to iPhone. If you don't have a SIM Card with the old phone, they can get a SIM Card with their contract. They can also pull out the old SIM Card and put a new one in as long as it's a 3G SIM.
    After deactivating the old i3G, the SIM Card becomes useless.

  • 9i to 10g (10.2.0.4) Upgrade... some questions

    Hello,
    I am currently analysing the upgrade requirements for my organisation to upgrade our Backend databases from 9i to 10g (release 10.2.0.4).
    We are currently using a COTS application to interface the database. There are a number of things i am unsure of in regards to the prequisites etc that need to be completed.
    Oracle is running on the HP-UX Operating system, our DBA's are quite happy with the upgrade process so not many issues here.
    The questions i have are mainly from a Windows server interfacing point of view.
    What versions of ODBC drivers are needed to talk to 10g?
    Does the current version of SQL*Plus (8.0.5.0.0) need to be upgraded?
    Do the version of Oracle Reporting still work? (9.0.2.3.0)?
    Are there any deprecated SQL statements or such like that will be need to be checked for in current scripts / sql?
    Is there anything else i need to be aware of during the upgrade?
    Rgds,
    Andy Paton
    COTS Functional Analyst

    Hi Andy,
    10.2.0.4 is the latest release from Oracle. you can get more information from Metalink or oracle.com
    On Metalink you can fin 10g Database Upgrade Companion for answers to most of your questions
    Hope that helps
    Regards,
    Z.K.

  • IM3 upgrade to IM6 Amatuer Question...Does IM create HD by default?

    Sorry if this seems a like a bit of a simple question. I have recently upgraded to IM6 from IM 3.0.3.
    I'm just wondering if IM6 "HD" means that the projects I create and burn are High Definition by default?
    Thanks for any and all advice.
    Adam

    And just FYI: Currently the only way to "burn" HD content is with DVD Studio Pro. You can export H.264 which is an HD compliant standard.
    Daniel C. Slagle
    Keeper of the "Unofficial" iMovie FAQ
    http://iMovie.danslagle.com

Maybe you are looking for