How to run @catbundle.sql

Hello
we are planning to apply patch for our Oracle RDBMS 11.2.0.2(3 node RAC) on RHEl 5.6.The patch is GI PSU 11.2.0.2.7
Now in the post-installation steps i need to run catbundle.sql script, for that do i need to shutdown the database(all instances), startup only one instance, run the script and start the database(all instances) or i can run the script from one instance with all remaining instances up and running.
Thanks

Hi;
As mention here you can find how you should use catbundle.sql in patch's read me part.
I suggest also review:
catbundle.sql - FAQ [ID 834644.1]
Introduction To Oracle Database catbundle.sql [ID 605795.1]
Regard
Helios

Similar Messages

  • How to run the SQL Script in SQL Prompt?

    Hi ExpertGroup,
    I have written one SQL Script name called "MySQLSCript.SQL". I want to know how to run the SQL Script in SQL Prompt?.
    Generally, I run SQL Script in PL/SQL Developer tool. But In this case, some SET command is not working/supporting in PL/SQL Developer Tool.
    Let me know, How to Run in SQl Prompt.
    Thanks & Regards,
    Senthil K Kumar.

    This is my SQL Script....
    SET COLSEP '|'
    SET LINESIZE 32767
    SET PAGESIZE 50000
    /* SET LINESIZE 3000
    SET PAGESIZE 50000
    SET DEFINE OFF */
    SET ECHO OFF
    SET FEEDBACK OFF
    --SET HEADING OFF
    SET TRIMSPOOL ON
    SET NEWPAGE NONE
    SET UNDERLINE OFF
    SPOOL &&EnterPath;
    SELECT * FROM &&TableName;
    SPOOL OFF
    SET FEEDBACK ON
    --SET DEFINE ON
    PROMPT Done.
    I am able to run this script in SQL Prompt....
    Its executing fine...
    But, If I am executing again it maynot asking for new set of data....
    alternativily its taking old values only.....
    how can i exeute with new set of data in the sql prompt.....

  • How to run a SQL manually with the same SQL_ID

    I want to know how to run a SQL which comes from application side manually so that same SQL_ID is generated. I am aware that even if there is a small change in the sql(even a space) the sql_id gets changed. CURSOR_SHARING_PARAMETER is similar in my DB.
    Thanks
    Rudresh

    I think you really want is the execution plan (plan_hash_value), what about outlines ?
    HTH
    Antonio NAVARRO

  • How to run PL/SQL commands in this SQL browser

    How to run PL/SQL commands in this SQL browser

    This discussion should help Re: my pl/sql codes does not run in express edition what can i do????

  • How to run wfstatus.sql  for i-Expenses

    how to run wfstatus.sql for i-Expenses in 11i EBS.

    Pl see MOS Doc 295078.1 (Maintenance Pack, Patchset, and Rollup Patch Level for Internet Expenses 11i)
    HTH
    Srini

  • How to run a sql script in oracle forms

    Hi,
    For me there is an sql script. I need to run that sql script in forms.
    Actually we will run that sql file in pl/sql developer by giving @and the file name.
    But how to run that file in forms.
    Can any one help on these.Which book I have to look.
    Thanks

    Actually there is a script files which will drop all the indexes and tables.
    DROP querry will be there for each index and each table.
    So I run the script all the indexes and all the tables will be deleted. So using forms I have to run that script.
    Thanks

  • How to Run a .sql file from simple java class

    How to execute a .sql file consisting of Complex Queries,procedures through simple java class.
    The queries may have different delimiters,queries independant of each other.
    I am able to do with Specific De-limiter.But I need in such a way that there should not be any
    Constraints. Since My .sql may Contain different De-limiters.
    If any one can Suggest Some Solution.
    It will be Great Help.
    regards
    Anil

    Check out ibatis script runner, it' a third party library but quite handy for running sql files...
    m

  • How to run recordset SQL query in FORM DATA event

    How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?

    Hi Slamet,
    When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
    With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
    There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
    <i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
    Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
    Hope it helps
    Trinidad.

  • Do we need to run catbundle.sql for ANY new db we create after CPU's?

    We're in the middle of reviewing the JAN2009CPU readme, and found a curiosity in the patch notes.
    - Our platform is Oracle 10.2.0.4 Enterprise Edition on Solaris 10 64-bit.
    In the Post-Patch instructions for the CPU, we see the following clause
    {color:#3366ff} ...
    3.3.5, "Post Installation Instructions for New and Upgraded Databases"
    These instructions are for both non-RAC environments and RAC environments
    when a database is created or upgraded after the installation of CPUJan2009.
    You must execute the steps in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for *any new database that was created* by any of the following methods:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    Upgraded databases require no post-installation steps to be executed.
    {color}
    I don't understand -- does this mean we have to do the following any time
    we create a new database from now on?
    - run dbca
    {color:#ff0000} - run '@?/rdbms/admin/catbundle.sql cpu apply'
    - check $ORACLE_HOME/cfttoollogs/catbundle/catbundle_CPU_&lt;SID&gt;_APPLY_&lt;TimeStamp&gt;.log for errors
    - run '@?/cpu/view_recompile/view_recompile_jan2008cpu'{color}
    I would have thought that the new SQL scripts under $ORACLE_HOME are already
    upgraded, so that we do not *have* to do any extra work on top of simply running
    dbca to create a new DB.
    I see a similar phrase in the CPU2008JUL (patch 7150470):
    {color:#0000ff} "You must execute the steps in this section (Section 3.3.2.1,
    "Loading Modified .sql Files into the Database") for any new database you create
    or any database upgraded to this release since the CPUJul2008 patch was applied."
    {color}
    .. AND CPU2008OCT (patch 7375644):
    {color:#0000ff} You must execute the steps ... for any new database you create or
    any database upgraded to this release since the CPUOct2008 patch was applied.
    {color}
    .. but the April 2008 CPU (patch 6864068) doesn't have these clauses.
    Can anybody clarify this issue? Have you created DB's after the JAN2009 CPU
    and not run the catbundle.sql, had any problems?
    Edited by: lrp on Feb 4, 2009 2:45 PM

    lrp wrote:
    We're in the middle of reviewing the JAN2009CPU readme, and found a curiosity in the patch notes.
    - Our platform is Oracle 10.2.0.4 Enterprise Edition on Solaris 10 64-bit.
    In the Post-Patch instructions for the CPU, we see the following clause
    {color:#3366ff} ...
    3.3.5, "Post Installation Instructions for New and Upgraded Databases"
    These instructions are for both non-RAC environments and RAC environments
    when a database is created or upgraded after the installation of CPUJan2009.
    You must execute the steps in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for *any new database that was created* by any of the following methods:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    Upgraded databases require no post-installation steps to be executed.
    {color}
    I don't understand -- does this mean we have to do the following any time
    we create a new database from now on?
    - run dbca
    {color:#ff0000} - run '@?/rdbms/admin/catbundle.sql cpu apply'
    - check $ORACLE_HOME/cfttoollogs/catbundle/catbundle_CPU_&lt;SID&gt;_APPLY_&lt;TimeStamp&gt;.log for errors
    - run '@?/cpu/view_recompile/view_recompile_jan2008cpu'{color}
    I would have thought that the new SQL scripts under $ORACLE_HOME are already
    upgraded, so that we do not *have* to do any extra work on top of simply running
    dbca to create a new DB.
    I see a similar phrase in the CPU2008JUL (patch 7150470):
    {color:#0000ff} "You must execute the steps in this section (Section 3.3.2.1,
    "Loading Modified .sql Files into the Database") for any new database you create
    or any database upgraded to this release since the CPUJul2008 patch was applied."
    {color}
    .. AND CPU2008OCT (patch 7375644):
    {color:#0000ff} You must execute the steps ... for any new database you create or
    any database upgraded to this release since the CPUOct2008 patch was applied.
    {color}
    .. but the April 2008 CPU (patch 6864068) doesn't have these clauses.
    Can anybody clarify this issue? Have you created DB's after the JAN2009 CPU
    and not run the catbundle.sql, had any problems?
    Edited by: lrp on Feb 4, 2009 2:45 PMIt's pretty explicit:
    *You must execute the steps* in Section 3.3.2.1, "Loading Modified .sql Files
    into the Database"" and Section 3.3.2.2, "Recompiling Views in the Database"
    for any new database that was created <b><i><u>by any of the following methods</u></i></b>:
    - Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    - Using a script that was created by DBCA that creates a database from a sample database
    - Cloning a database that was created by either of the two preceding methods,
    and if Section 3.3.2.1, "Loading Modified .sql Files into the Database"
    was not executed after CPUJan2009 was applied.
    So, if you create a database by any of the explicitly listed methods (all of which are creating a database from a backup that my have been made of a database that was not patched to that level) then you need to run the scripts. If you create a database by some other method (about all that is left is a command line CREATE DATABASE) then part of that creation will necessarily include running the necessary cat* scripts, which will already be at the correct level.

  • Do we need run catbundle.sql file for new databases.

    dear all,
    i have doubt over execution of catbundle.sql or not?
    scenario:
    i have insatlled 10gr2 on rhel5 and applied patchset 4 (10.2.0.5) and applied Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update
    after this i have create fresh database.
    now,
    in Oracle® Database Patch 10248542 - 10.2.0.5.2 Patch Set Update document it has specified in belwo section
    3.4 Post Installation Instructions for Databases Created or Upgraded after Installation of PSU 10.2.0.5.2 in the Oracle Home
    These instructions are for a database that is created or upgraded after the installation of PSU 10.2.0.5.2.
    You must execute the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" for any new database only if it was created by any of the following methods:
    Using DBCA (Database Configuration Assistant) to select a sample database (General, Data Warehouse, Transaction Processing)
    Using a script that was created by DBCA that creates a database from a sample database
    Cloning a database that was created by either of the two preceding methods, and if the steps in Section 3.3.2, "Loading Modified SQL Files into the Database" were not executed after PSU 10.2.0.5.2 was applied
    Upgraded databases do not require any post-installation steps.
    so do we need to run catbundle here or not.
    since i have created fresh database after applying 10.2.0.5 PSU2 why does it required.
    opatch output:
    [oracle@RG615 ~]$ opatch lsinventory
    Invoking OPatch 10.2.0.5.1
    Oracle Interim Patch Installer version 10.2.0.5.1
    Copyright (c) 2010, Oracle Corporation. All rights reserved.
    Oracle Home : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1
    Central Inventory : /prd/crm/swbcrmdb/usr/oracle/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 10.2.0.5.1
    OUI version : 10.2.0.5.0
    OUI location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/oui
    Log file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-05-03_11-41-34AM.log
    Patch history file: /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /prd/crm/swbcrmdb/usr/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-03_11-41-34AM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
    There are 2 products installed in this Oracle Home.
    Interim patches (1) :
    Patch 10248542 : applied on Tue May 03 07:32:29 BST 2011
    Unique Patch ID: 13292123
    Created on 25 Dec 2010, 23:11:24 hrs PST8PDT
    Bugs fixed:
    6402302, 9713537, 8350262, 9949948, 8394351, 10327179, 8546356, 9711859
    9714832, 9952230, 10248542, 8544696, 9963497, 9772888, 8664189, 10249537
    7519406, 9952270, 8277300, 9726739
    OPatch succeeded.

    Pl post the output of view DBA_REGISTRY_HISTORY - see MOS Doc 605795.1 (Introduction To Oracle Database catbundle.sql)
    Was the database created using DBCA or manually using scripts ?
    Srini

  • Should we run catbundle.sql after DB is created?

    Hello, I installed oracle 11.1.0.7 and installed the CPU 2011 patch(10249534).
    I am planning to create the database after few weeks. So after creating the database, should i run the below scripts?
    Since this is part of patch instruction.
    *3.2.2.1 Loading Modified SQL Files into the Database*
    The following steps load modified SQL files into the database. For a RAC environment, perform these steps on only one node.
    For each database instance running on the Oracle home being patched, connect to the database using SQLPlus. Connect as SYSDBA and run the catbundle.sql script as follows:*
    cd $ORACLE_HOME/rdbms/admin
    sqlplus /nolog
    SQL> CONNECT / AS SYSDBA
    SQL> STARTUP
    SQL> @catbundle.sql cpu apply
    SQL> QUIT
    The catbundle.sql execution is reflected in the dba_registry_history view by a row associated with bundle series CPU.

    Pl see Q6 in MOS Doc 605795.1 (Introduction To Oracle Database catbundle.sql)
    HTH
    Srini

  • How to run a SQL Server Stored Procedure

    I need to run a SQL Server Stored Procedure in answer, the stored procedure use a hash table (temporary table) and I nedd to pass a parameter to stored procedure
    anyone know if is it possible in OBIEE, if yes how.
    thank you
    max

    thank you, but I'm not understand what you mean. I need to run this command in answer "direct access database"
    exec storedprocedure 1,1,1
    if I run this I receive thi error:
    error : [nQSError: 16001] ODBC error state: S0002 code: 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server]object name '#TempList' not valid.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000).
    here is the code of stored procedure:
    ROC [dbo].[GetOrderListmax]
    @OrderList varchar(500)
    AS
    BEGIN
    SET NOCOUNT ON
    CREATE TABLE #TempList
    OrderID int
    DECLARE @OrderID varchar(10), @Pos int
    SET @OrderList = LTRIM(RTRIM(@OrderList))+ ','
    SET @Pos = CHARINDEX(',', @OrderList, 1)
    IF REPLACE(@OrderList, ',', '') <> ''
    BEGIN
    WHILE @Pos > 0
    BEGIN
    SET @OrderID = LTRIM(RTRIM(LEFT(@OrderList, @Pos - 1)))
    IF @OrderID <> ''
    BEGIN
    INSERT INTO #TempList (OrderID) VALUES (CAST(@OrderID AS int)) --Use Appropriate conversion
    END
    SET @OrderList = RIGHT(@OrderList, LEN(@OrderList) - @Pos)
    SET @Pos = CHARINDEX(',', @OrderList, 1)
    END
    END
    SELECT o.OrderID, CustomerID, EmployeeID, OrderDate
    FROM dbo.Orders AS o
    JOIN
    #TempList t
    ON o.OrderID = t.OrderID
    END

  • How to run dynamic SQL from an ODI procedure step

    I am on ODI 11.1.1.6.4. From within an ODI IKM step I have no problem running a procedure step like the following which calls a pl/sql procedure to get SQL text then later runs that code. Is there anyway to do the same from within an ODI procedure? I've tried a couple of variations and can not seem to get the parsing levels to resolve within a procedure like they resolve from within a KM step.
    <@
    /* Setup Java variables */
    String out_SQL = "";
    try
    java.sql.Connection sourceConnection = odiRef.getJDBCConnection("SRC");
    String sqltxt = "{call set_sql(?)}";
    java.sql.CallableStatement pstmt = sourceConnection.prepareCall(sqltxt);
         try
         pstmt.registerOutParameter( 1, java.sql.Types.VARCHAR);
         pstmt.execute();
    out_SQL = pstmt.getString(1);
         catch(java.sql.SQLException ex)
              errMessage = ex.getMessage();
              errMessage = errMessage.replace("'","");
         finally
              pstmt.close();
    catch(java.lang.Exception e)
         errMessage = e.getMessage();
         errMessage = errMessage.replace("'","");
    @>
    BEGIN
    -- The SQL that I want to run
    <@
    out.println(out_SQL);
    @>
    -- Error handling
    <@ if ( out_SQL.length() ==0 ) { @>
         raise_application_error(-20101, '<@=errMessage@>');
    <@ } else { @>
         dbms_output.put_line('Successful.');
    <@ } @>     
    END;
    ------

    Please understand that I know that I can do this all within PL/SQL -- I am explicitly doing it the way I have outlined because I want to better understand the parsing levels/behavior within ODI procedures and I want to understand why KMs steps behave differently.
    Another observation -- putting this all within a pl/sql block prevents ODI from properly capturing insert/update/delete row counts like it would if it were running a SQL statement.
    So the question remains -- is there a way to run a dynamic SQL statement in an ODI procedure where the SQL statement is generated from within an Oracle procedure call and then run as SQL within an ODI procedure step? Best would be if there is an example of how this can be done.

  • How to run catexp.sql

    hi gurus,
    I have read to export properly, we have run this file.
    Can you please tell me how to run it.

    On a no problem fresh installation there should be no reason to run this file. That being said, this file can be run from the command prompt/command shell ON THE SERVER using:
    sqlplus "sys/password as sysdba" @$ORACLE_HOME/rdbms/admin/catexp.sql
    (note the space between login and @ sign.

  • How to run script .sql

    Hi
    eBS
    DB: 11.1.7
    APS: R12.1.2
    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directory
    Thanks

    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directoryConnect as apps user to SQL*Plus as run the script.
    Make sure COMMIT is issued -- Release Notifications Error - ORA-20002 2018 Unable To Generate The Notification Content [ID 342734.1
    Thanks,
    Hussein                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for