Why it is required to run adupdlib.sql after cloning

Hello All,
Every week we need to refresh oracle EBS [11.5.10] from prod.
As per the steps after the restoration of database [10g R2] for , why every time it is required to run adupdlib.sql so at dbTier?
What actually the scripts does? What will happen if at all I will not execute the script?
Please suggest.
Thanks-
P

user9093772 wrote:
Hello All,
Every week we need to refresh oracle EBS [11.5.10] from prod.
As per the steps after the restoration of database [10g R2] for , why every time it is required to run adupdlib.sql so at dbTier?
What actually the scripts does? This script update the libraries with the correct file specifications (check the contents of the script for details).
for 11i it updates .so library files version
What will happen if at all I will not execute the script?libraries wont get updated
please log a SR with oracle to know more about the scripts
:) AppsMasti ;)
sharing is Caring

Similar Messages

  • HT1338 Why is my MacBook Pro running so slow after installing Mountain Lion 10.8.

    Why is my MacBook Pro running so slow after installing Mountain Lion 10.8. I have restarted, created more free space on my hard drive and run disk utilities. Simple operations result 20 seconds or more of the spinning wheel. Some are so slow that the operation does not happen at all. Itunes music cuts out during operations.

    Check out this article by Thomas Reed for help http://www.reedcorner.net/understanding-upgrade-nightmares/. Also, make sure all apps are compatible with Mountain Lion using www.roaringapps.com. Do you have any antivirus installed? Make sure all apps are updated as well.

  • Regarding running catcpu.sql after applying patch

    Hi all,
    database version: 11.2.0.2 (single instance)
    Os: Windows 32-bit
    I have applied a bug patch in oracle home 11.2.0.2, but as per the document i didn't run the catcpu.sql after applying the patch in my database.
    After 1 month today i run the catcpu.sql in the database (Dev database), it gives the following sys objects invalid: (after running utlrp.sql also this persist)
    DBMS_SCHEDULER
    DBMS_ISCHED
    DBMS_ISCHED_CHAIN_CONDITION
    SCHEDULER$_JOB_EVENT_HANDLER
    could anyone please help me.
    Thanks in advance

    user12133150 wrote:
    Hi all,
    database version: 11.2.0.2 (single instance)
    Os: Windows 32-bit
    Pl identify exact OS version
    >
    I have applied a bug patch in oracle home 11.2.0.2, but as per the document i didn't run the catcpu.sql after applying the patch in my database.
    Pl identify the patch number
    After 1 month today i run the catcpu.sql in the database (Dev database), it gives the following sys objects invalid: (after running utlrp.sql also this persist)
    DBMS_SCHEDULER
    DBMS_ISCHED
    DBMS_ISCHED_CHAIN_CONDITION
    SCHEDULER$_JOB_EVENT_HANDLER
    could anyone please help me.
    Thanks in advancePl identify why you ran catcpu.sql after 1 month.
    Pl compile these objects manually and post the compilation error here
    HTH
    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

  • Error in running adstats.sql after applying patch 6810189 on 10.2.0.2

    following error faced when run the script adstats.sql through sys user after starting the database with restrict option:
    SQL> @/backup/adstats.sql;
    Connected.
    --- adstats.sql started at 2010-09-13 21:44:26 ---
    Checking for the DB version and collecting statistics ...
    declare
    ERROR at line 1:
    ORA-12801: error signaled in parallel query server P002
    ORA-25153: Temporary Tablespace is Empty
    ORA-06512: at "SYS.DBMS_STATS", line 13591
    ORA-06512: at "SYS.DBMS_STATS", line 13937
    ORA-06512: at "SYS.DBMS_STATS", line 14015
    ORA-06512: at "SYS.DBMS_STATS", line 13974
    ORA-06512: at line 2
    ORA-06512: at line 33
    Can anyone help?
    Thanks in advance,
    Umair

    Hi,
    I made the changings as follows:
    SQL> alter database default temporary tablespace temp2;
    Database altered
    But I got new error as such after starting the database in restricted mode:
    $ sqlplus sys as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Sep 15 11:22:49 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Enter password:
    Connected to an idle instance.
    SQL> startup restrict;
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size 2089440 bytes
    Variable Size 427822624 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 14684160 bytes
    Database mounted.
    Database opened.
    SQL>@adstats.sql;
    ERROR:
    ORA_01031: insufficient priviliges
    $ pwd
    /proddb
    $ ls -l ad*
    -rwxr-xr-x 1 oracle dba 2763 Sep 15 11:16 adstats.sql
    $ id
    uid=203(oracle) gid=204(dba)
    $
    Can anyone suggest about the reason?
    Thanks & Regards,
    Umair

  • Why can I no longer run Microsoft Office after downloading Mountain Lion?

    I recently made the jump from snow leopard to mountain lion the other day. After the installation of mountain lion was complete I noticed a number of my applications were no longer useable. The most noticeable ones were anything under microsoft office. I have been using the 2004 version of Microsoft Office  on this Mac without a single problem for four years until Mountain Lion was installed. Now when I try to open it a message pops up saying PowerPC applications are no longer supported. I was wondering if others were having the same problem or there was a solution to fix this.
    Thank you

    Welcome to Apple Communities
    PowerPC applications aren't supported in Mountain Lion. What does it mean? You have to update all your programs to an Intel edition. You can use Office 2008 or 2011, try iWork in the App Store or use LibreOffice

  • Why is my macbook pro running slow after os x yosemite upgrade

    Why is my macbook pro running so slow after os x yosemite upgrade

    Please describe the problem in as much relevant detail as possible. The better your description, the better the chance of a solution.
    For example, if the computer is slow, which specific actions are slow? Is it slow all the time, or only sometimes? What other changes did you make, if any, just before it became slow? Have you seen any alerts or error messages? Have you done anything to try to fix it? Most importantly, do you have a current backup of all data? If the answer to the last question is "no," back up now. Ask if you need guidance. Do nothing else until you have a backup.

  • Why does my mac mini run great for first half hour then run so slow almost to a stop?

    why does my mac mini run fine then after a half hour runs very slow?

    EtreCheck version: 2.2 (132)
    Report generated 4/30/15, 3:58 PM
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Click the [Click to remove] links for help removing adware.
    Hardware Information: ℹ️
        Mac mini (Late 2012) (Technical Specifications)
        Mac mini - model: Macmini6,1
        1 2.5 GHz Intel Core i5 CPU: 2-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 4000
            Thunderbolt Display 2560 x 1440
    System Software: ℹ️
        OS X 10.10.3 (14D136) - Time since boot: 7:15:27
    Disk Information: ℹ️
        APPLE HDD HTS545050A7E362 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (475.54 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. IR Receiver
        Apple Inc. Display Audio
        Apple Inc. Apple Thunderbolt Display
        Apple Inc. FaceTime HD Camera (Display)
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
            Apple Inc. Thunderbolt Display
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Startup Items: ℹ️
        FanControlDaemon: Path: /Library/StartupItems/FanControlDaemon
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.mtrecorder.plist
    Launch Agents: ℹ️
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [failed]    com.apple.spirecorder.plist
        [loaded]    com.macpaw.CleanMyMac3.Agent.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
    User Launch Agents: ℹ️
        [not loaded]    com.jdibackup.JustCloud.autostart.plist [Click for support]
        [loaded]    com.jdibackup.JustCloud.backupstart.plist [Click for support]
        [loaded]    com.jdibackup.JustCloud.notify.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac3.Scheduler.plist [Click for support]
        [running]    com.spigot.SearchProtection.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        CleanMyMac 3 Menu    Application Hidden (/Applications/CleanMyMac 3.app/Contents/MacOS/CleanMyMac 3 Menu.app)
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        Flash Player: Version: 17.0.0.169 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        JavaAppletPlugin: Version: Java 8 Update 45 Check version
        Default Browser: Version: 600 - SDK 10.10
    Safari Extensions: ℹ️
        Slick Savings  Adware! [Click to remove]
        Ebay Shopping Assistant  Adware! [Click to remove]
        Searchme  Adware! [Click to remove]
    3rd Party Preference Panes: ℹ️
        Fan Control  [Click for support]
        Flash Player  [Click for support]
        Java  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             4%    WindowServer
             2%    fontd
             0%    taskgated
             0%    notifyd
             0%    cloudpaird
    Top Processes by Memory: ℹ️
        836 MB    kernel_task
        82 MB    WindowServer
        66 MB    JustCloud
        66 MB    SubmitDiagInfo
        66 MB    loginwindow
    Virtual Memory Information: ℹ️
        12.00 GB    Free RAM
        4.33 GB    Used RAM
        0 B    Swap Used
    Diagnostics Information: ℹ️
        Apr 30, 2015, 08:42:48 AM    Self test - passed
        Apr 29, 2015, 09:04:50 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-04-29-090450_[redacted].crash

  • Is it Mandatory to run SU25 steps after Upgrading to new release

    Hello All,
    I have few questions regaring Security Upgrade.
    We recently upgraded to a new release. So, when I try to modify a role in Dev a pop up came "which states that need to run steps 2 a to 2 c in SU25" but when clicked on continue the pop up never came after that in any role.
    My question: Is it really required to run SU25 steps after any upgrade? Is it going to affect any users if dont run the steps and continue?
    Regard's

    You are missing the purpose of the tool - namely Step 2B.
    2B is the key to reducing your effort and building good roles in the first place when you enter 2C. If you get that part right, then step 2C is popcorn and watching the tele while your program runs (not a(n) (e)CATT script...). You can do this in standard if you are disciplined!
    A special aspect is to choose the "Authorization Object" view which is available in SU24 but not in SU25. If you restrict the number of roles to few single roles (or series of them without derivation) which are intact then you can survive a release upgrade without toasting your roles or the SU24 data updates.
    SU25 is very usefull for such role builds!
    If you want all the lights to turn green then use SUPC and transport them through. God help anyone who used roles as menu's and deleted standard or maintained authorizations...
    SAP security is a specialized task which touches all applications you use...
    Cheers,
    Julius
    Edited by: Julius Bussche on Aug 4, 2010 12:24 AM

  • Calling from the application Slow vs. Running through SQL developer Fast

    Alright, we write many applications that make use of calling stored procedures in packages to return data. This is the only time i have ever encountered this issue and have not been able to pinpoint the cause.
    This application is very data-centric and is filled with calls to stored procedures and I would say about 80% run fine as in the time required to run is about the same as in SQL Developer maybe just a little slower due to the amount of data that may be returned to the application. The other 20% run horribly slow from the application and run lighting fast in SQL Developer and i cannot figure out why.
    I have traced the code right up to the .Fill on the Oracle.DataAccess.Client.OracleDataAdapter and that is where it just holds either for a long period of time or just forever, some of these i haved waited hours for and they have not finished running.
    For Example: I created a new page in the project and it makes a request through the use of ajax, when the request file is reached it performs two stored procedures from the same package (the only two procedures in the package). Both procedures take in three varchar2's and have an in out cursor, the cursor is returned into a datatable in the VB. The first query runs in a couple seconds returns the correct data etc. The second query, which takes .2 seconds on average to run from SQL Developer, just runs and runs and i have never actually even waited for it to finish because it takes so long. The specific example i am trying only returns 1 row with 7 columns, so there is not a large amount of data being passed back.
    I have seen this sort of thing happen on occasions, but everytime it was usually because the package was not compiled and was waiting on a view to finish before compilation and after killing the view it was fine. But this issue seems to happen randomnly with certain procedures and not others all in the same package.
    This issue happens on the same procedures everytime which would lead me to believe it is the procedure, but running them in SQL Developer shows me this is incorrect because they run exceptionally fast in some cases. I even went so far as to restart the entire database just in case there was some sort of lock causing this issue but this did not fix the issue.
    I have verified parameters, cursors, debugged the procedures, stepped every line of code, tried deleting and readding the oracle.dataAccess reference. I can't seem to figure this one out.
    It is causing alot of wasted time because i am forced to wait a horribly long time for these queries in order to test. If anyone has any clues, hints, or ideas as to what this could be please let me know! If the same issue exists when the application is moved into production it will be unnacceptable and the application utterly unusable.
    Thanks in Advance for any help!
    -Jarrod

    Hi,
    This is consistently reproducible with the problem procedure/operations? Total WAG here, but I've seen cases where having support for distributed transactions enabled causes the database to disable certain optimizations. Try setting Enlist=false in your connection string.
    Otherwise, I'd recommend enabling 10046 database trace and client side sqlnet trace to capture the problem behavior for further investigation. Oracle support can certainly give you a hand with that if needed.
    Hope it helps,
    Greg

  • Whic files are necessary to run MS SQL Server 2008 Express?

    I am looking for information about which files/folder form a installation for SQL Server 2008 R2 Express is really needed.
    I have a test installation, but think that many files may never be used.
    Therefore, can I find a place to which is a must to have in the installation to run an application running on SQL (or someone tell me so)
    Thanks in advance.
    Svend Nielsen

    Hello,
    all files of a SQL Server installation are required, cause of direct or indirect dependencies; why should MS install a not required file?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • 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

  • SCCM 2012 SP1 is Running on SQL Server 2012 with NO CU

    I am working in an org that has SCCM 2012 SP1, it is and always has been running on SQL Server 2012 RTM, with NO CU installed it seems (judging by the file versions 11.0.2100.60, which are not the same as as documented here http://support.microsoft.com/kb/2703275).
    sigh..........
    So before I upgrade to R2 I will ensure I installed SP2 and CU3 onto SQL Server.
    However, I am concerned about WHY SCCM 2012 SP1 requires SQL Server 2012 CU2 as a minimum and what damage may have been done as a result of this configuration?
    Are there any actions that can be performed as remediation or health check?
    Can anyone speculate?

    However, I am concerned about WHY SCCM 2012 SP1 requires SQL Server 2012 CU2 as a minimum
    Because the Microsoft product group decided it that way. All supported SQL versions are listed here:
    http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigSQLDBconfig
    Damage? Hard (impossible) to tell. You would have seen errors in various components if there were problems.
    Torsten Meringer | http://www.mssccmfaq.de

  • Msg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2

    I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
    potentially deep nesting in your query, and try to simplify it.
    The script itself doesn't seem to be all that deep or nested.  The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012.  I'm just really baffled why something that SQL Server generated with very
    few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
    I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server.  This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
    amount of our time doing it the manual way.
    Below is an 'condensed' version of the script which fails.  I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
    Wizard and told it to save to script.
    declare @dbname varchar(MAX), @SQL nvarchar(MAX)
    declare c_dblist cursor for
    select name from sys.databases WHERE name like 'dbone[_]%' order by name;
    open c_dblist
    fetch next from c_dblist into @dbname
    while @@fetch_status = 0
    begin
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
    null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
    @del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
    EXEC sp_executesql @SQL
    SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
    print @dbname
    SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
    use ['+@dbname+']
    exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
    use ['+@dbname+']
    exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
    -- Adding the transactional publication
    use ['+@dbname+']
    exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
    '''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
    = N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
    @immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
    exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
    @frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
    -- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
    use ['+@dbname+']
    exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
    = null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
    EXEC sp_executesql @SQL
    fetch next from c_dblist into @dbname
    end
    close c_dblist
    deallocate c_dblist
    George P Botuwell, Programmer

    Hi George,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Allen Li
    TechNet Community Support

  • Error while running awrrpt.sql for Automatic Workload Repository Report

    Hi
    I am trying to run awrrpt.sql.While running the query in sql*plus it ask me for file format then no of days
    & then begin & end snapshot Id & then eventually the sql*plus session get closed . I am unable find
    why sql*plus session getting closed automatically.Please tell me How to run awrrpt.sql to generate AWR reports. Please guide.

    1008032 wrote:
    Dear
    This is happen due to you are given the begin snap id and end snap id not between the shut down time .EX begin snap it at 12 am 1521 and you shut down at 12:30 am and you you give the 1:00 am snap id 1522 .That time system can not collect the statistics betwwn 1521 and 1522.
    Or you should enable statistics_level parameter if it 11gr2 you should enable controlfile_management_pack _access='DIAGNOSTIC+TUNING'
    issue not resolved please post your error..........
    Thanks&regards
    SS.vijaibabuI checked my statistics_level it shows value TYPICAL which I think is right.
    SQL> sho parameter statistics_level
    NAME TYPE VALUE
    statistics_level string TYPICALAlso I given snap id which between single startup & shutdown still the problem is same sqlplus session get closed after asking for snal ids.
    If error gets generated where it gets generated?

Maybe you are looking for

  • Having an unbelievable headache with a recent order

    On Wednesday of this week (12/4/13) I placed 2 orders on the Verizon Wireless website after a chat window popped up and urged me with a special promotion.  One order was a phone upgrade and the other was to add a new line with a new device (LG G2). 

  • Importing old project creates different formats in clips

    I imported an iMovie 3 project to continue working with in iMovie 6. It turned out that approx 1/3 of the clips were in 16:9, the rest in 4:3. I´d rather have all clips in the same ratio. They were originally imported in 4:3, at the very same occasio

  • Special character in my product name

    The name of my product is supposed to have a TM and em dash in the product name in all instances. Of course, I have had huge problems with that. Now I finally have a .chm working on a very limited basis, but it has changes all instances of the dash t

  • Any 4S cases work with universal dock?

    I'm finally upgrading to the iPhone 4S.  I'd really like to find a case and/or universal dock adapter combination so I can continue to use my univ. dock for charging. I'd prefer to avoid having to remove or otherwise adjust the case to make it work.

  • Dvd is not ejecting

    it happend with my macpro couple of times,, but this time it stuck and there is no icon of dvd showing in home page,,well actually i tried to burn some pics on a dvd using mac burn operation, it ejected automatically after the burn operation, than i