Running catpatch.sql hangs

Hi,
After I applied 9.2.0.8 patch set, I ran catpatch.sql. However, I noticed it hangs. I checked the alert<SID>.log , I see the following interesting line below:
Completed: ALTER DATABASE OPEN MIGRATE
Sat Jun 20 00:10:25 2009
Thread 1 cannot allocate new log, sequence 3805
All online logs needed archiving
Current log# 2 seq# 3804 mem# 0: C:\ORACLE\ORADATA\<DB_NAME>\REDO02.LOG
This is a development server. I've just learned that this server has archive mode on and automatic archiving is disabled. The drive free space is around 5 GB. I'm afraid that if I enable automatic archiving , this might eat up a lot of space although nobody is using it at this time except me.
Below are the values of parameters related to this hang:
OPEN_CURSORS = 300
SHARED_POOL_SIZE = 50331648
JAVA_POOL_SIZE = 33554432
JOB_QUEUE_PROCESSES = 0
SBGA_MAX_SIZE = 157818330
My question is What could be the cause of catpatch.sql hanging and what can I do to resolve this?
Edited by: user5470917 on Jun 19, 2009 4:14 PM
Edited by: user5470917 on Jun 19, 2009 4:18 PM
Edited by: user5470917 on Jun 19, 2009 4:34 PM

Yes, you are right nothing prevents me from deleting those archive log files.
What I did are:
1. Kill the hanging catpatch.sql session
2. shutdown
3. startup
4. Enable auto archiving using 'alter system set archive_log_start=true'
5. shutdown
6. startup migrate
7. Check auto archive using ' archive log list'
7. Run catpatch.sql
8. Run utlrp.sql
I have successfully ran the catpatch.sql and utlrp.sql
Thanks.

Similar Messages

  • 9.2.0.7 Catpatch.sql hangs

    Windows 2000
    9.2.0.1
    I've applied the 9.2.0.7 to my db successfully, but when I run catpatch.sql in migrate mode, the system gets to a certain point and hangs. I thought maybe since the db was a 15G db restored from a cold backup that maybe it was a db size issue, but I let it run for well over 30 hours and no dice. If I reboot the server to see if it processed, this is what I get:
    SQL> column comp_id format a15
    SQL> column status format a10
    SQL> column version format a10
    SQL> column comp_name format a35
    SQL> select comp_id, status, version, comp_name from dba_registry order by 1;
    COMP_ID STATUS VERSION COMP_NAME
    AMD INVALID 9.2.0.1.0 OLAP Catalog
    APS LOADED 9.2.0.1.0 OLAP Analytic Workspace
    CATALOG VALID 9.2.0.1.0 Oracle9i Catalog Views
    CATJAVA VALID 9.2.0.1.0 Oracle9i Java Packages
    CATPROC INVALID 9.2.0.1.0 Oracle9i Packages and Types
    CONTEXT VALID 9.2.0.1.0 Oracle Text
    JAVAVM VALID 9.2.0.1.0 JServer JAVA Virtual Machine
    ODM LOADED 9.2.0.1.0 Oracle Data Mining
    ORDIM LOADED 9.2.0.1.0 Oracle interMedia
    OWM VALID 9.2.0.1.0 Oracle Workspace Manager
    SDO LOADED 9.2.0.1.0 Spatial
    COMP_ID STATUS VERSION COMP_NAME
    WK VALID 9.2.0.1.0 Oracle Ultra Search
    XDB INVALID 9.2.0.1.0 Oracle XML Database
    XML VALID 9.2.0.2.0 Oracle XDK for Java
    XOQ LOADED 9.2.0.1.0 Oracle OLAP API
    15 rows selected.
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Disabled
    Archive destination C:\oracle\ora92\RDBMS
    Oldest online log sequence 1984
    Next log sequence to archive 1984
    Current log sequence 1986
    SQL> show parameter shared_pool_size;
    NAME TYPE VALUE
    shared_pool_size big integer 50331648
    SQL> show parameter java_pool_size;
    NAME TYPE VALUE
    java_pool_size big integer 33554432
    SQL> show parameter job_queue_processes;
    NAME TYPE VALUE
    job_queue_processes integer 10
    However, if I create a new empty 9.2.0.1 db, I can patch that to 9.2.0.7 and run catpatch with no problems. I've upgraded before with no issues, so I don't know what the problem is now.
    Thanks!!!

    I don't follow you. Your db was currently in archivelog mode, but not in automatic. Which seems to implies hang issue.
    If your db is not in archivelog mode at all, so, you don't have to put it in archivelog mode.
    Nicolas.

  • What am I doing about run catpatch.sql ?

    I applied patch on Oracle 9.2.01 to update to 9.2.0.4 version.
    Now I can not export my database .
    problem:
    ORA-31600:invalid input EMIT_SCHEMA for parameter NAME ....
    Login as SYSDBA and run catpatch.sql (without other users logged in).
    Because this Database is 7*24 and RAC,I am worrying about a random operation.
    How am I doing or pay attention to this operation? for example,backup or other thing ...
    help
    thanks

    Hie,
    Applied this rdbms catalogue to resolve your probleme :
    connect to sys as sydba and run it :
    @...\rdbms\admin\catmeta.sql

  • Executing catpatch.sql and catcpu.sql needed ???

    hello,
    I have installed oracle 9.2 and i upgraded to 9207 and then applied the Apr2007 CPU. After all these i created the database.
    My concern is do i need to run the catpatch.sql and catcpu.sql.
    TIA,
    Jj

    Because the database has been upgraded after running catpatch.sql only. Before this it was in 9.2.0.1 version.
    .. But that was not the original poster's point.
    - J..J asked if an oracle home was patched, THEN a new database created, if he had to run catcpu.sql and catpatch.sql.
    - viraq and rob schenk said no, the SQL's did not need to be run, since the DB did not exist before the patch.
    - J..J tested this by installing and upgrading the OracleHome to 9.2.0.7, then creating a new database. Curiously, the dba_registry showed old versions of the catalog. He had to run catcpu.sql/catpatch.sql after creating the new DB, even though the DB was created under the new 9207 code base. This conflicts with what viraq and rob said.
    I'm having this same issue with the current jan2009 CPU, and didn't realize this entire time that I was creating databases without running the catcpu/catpatch.sql's, since I was simply following the db install guide. I'm currently trying to track back how far this 'catcpu/catpatch' rule goes.. unless someone can correct my understanding on this.

  • Several errors after running catalog.sql

    I did a fresh installation of oracle apps EBS 11.5.10.2 on Linux OEL and was trying to do an import/export and it was not working as expected. So after i looked at Oracle's documentation it said catalog.sql has to be run before using the import/export. So i ran catalog.sql first but i did not run it with SYSDBA but ran it as SYSTEM and i saw several errors like access denied etcv. after i ran the catalog.sql i was not able to login via apps or any other user except SYSTEM and was giving me erros like ORA-04065:not executed,altered or dropped stored procedure "SYS.DBMS_SESSION"
    After this to fix the issue i ran @?/rdbms/admin/catpatch.sql and @?/rdbms/admin/utlrp as SYSDBA but both executed a lot of grants etc but are haging at some point and not finishing.
    The current state of the database is that im not able to login via any user except SYSTEM and i think i corrupted the db dictionary as everywhere i see they say running catalog.sql on an existing database is a bad idea. Can anyone help?

    Hi Dheeraj,
    My db version is 9.2.0.5.0 and OS is OEL 5.7.
    The doc where it was mentioned to run catalog.sql before using import/export is below:
    http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
    Please do not follow the steps in this link and instead follow the steps in (9i Export/Import Process for Oracle Applications Release 11i [ID 230627.1]).
    Currently when im trying to login using apps or any other user below are errors i get.
    ERROR:
    ORA-00604: error occurred at recursive SQL level1
    ORA-04068: existing state of packages has been discarded
    ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_SESSION"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512:at "SYS.OWA_VPD_CTX", line 5
    ORA-06512:at "SYS.PORTAL_LOGIN", line 3
    ORA-06512:at line 2
    Can you pls help me to fix this.The status of the package is invalid and you need to validate it. Connect as sysdba and issue:
    SQL> select owner, object_type, status
    from dba_objects
    where object_name = 'DBMS_SESSION';
    SQL> alter package DBMS_SESSION compile body;
    SQL> show error
    SQL> alter package DBMS_SESSION compile;
    SQL> show errorPlease also see:
    Data Dictionary Objects Invalid after Running catalog.sql, catproc.sql, utlrp.sql or catpatch.sql [ID 752783.1]
    Debug and Validate Invalid Objects [ID 300056.1]
    How to Diagnose Invalid or Missing Data Dictionary (SYS) Objects [ID 554520.1]
    Thanks,
    Hussein

  • Catalog.sql hangs

    I understand that you must run catalog.sql after creating a new database so that data dictionaries are updated otherwise the Oracle Enterprise Manager (OEM) will not be able to view details of the new database.
    So ... I've run catalog.sql but it hangs immediately. While it's hung, I cannot log into SQL*Plus from another session -- that hangs too. A little ivestigation into what catalog.sql does suggests that it is the standard.sql script (run by @@standard) that is hanging and looking into that suggests that stdspec.sql is hanging.
    Any tips on how to determine the cause of the underlying hang? Note that I can log into my database and run SQL queries without any problems; I simply can't use OEM to administer it (which is why I'm running catalog.sql).
    Thanks.

    Thanks Joel. I ran that script but it failed with:
    2 (u.ebytes/a.fbytes)*100 USEDPCT
    ERROR at line 2:
    ORA-00923: FROM keyword not found where expected
    So I changed it slightly to this:
    SQL> select u.tblspc "TBLSPC", a.fbytes "ALLOC", u.ebytes USED, a.fbytes-u.ebytes UNUSED
    2 from (select tablespace_name tblspc, sum(bytes) ebytes
    from sys.dba_extents
    3 4 group by tablespace_name) u,
    5 (select tablespace_name tblspc, sum(bytes) fbytes
    6 from sys.dba_data_files
    7 group by tablespace_name) a
    8 where u.tblspc = a.tblspc
    9 ;
    and that fails (when run as sysdba or as system, both of whom I assume have privileges to select catalog) with:
    from sys.dba_data_files
    ERROR at line 6:
    ORA-00942: table or view does not exist
    I can't help but feel that something may have gone badly wrong with this Oracle installation.
    Would it be a sensible option to drop all databases (by manually removing all their files) and then try to run catalog.sql on an (allegedly) empty system?

  • Catbundle_WINBUNDLE_ database SID _ROLLBACK.sql hangs

    Hello experts,
    We are rolling back a opatch i.e. bundle patch 44.
    after rollback when we run the script catbundle_WINBUNDLE_<database SID>_ROLLBACK.sql
    the script hangs after executing for some time, without any error.
    Database version: 11.1.0.7.0.
    O. S. : Windows server 2003
    Please help me urgently.
    Regards
    Rahul Srivastava

    Hello experts,
    I have resolved the issue by
    Starting the database in restricted session
    Disable auto stats collection job
    exec DBMS_AUTO_TASK_ADMIN.DISABLE(
    client_name => 'auto optimizer stats collection',
    operation => NULL,
    window_name => NULL);
    and then executing the script
    catbundle_WINBUNDLE_<database SID>_ROLLBACK.sql
    the script executed succesfully.
    Then we can
    exec DBMS_AUTO_TASK_ADMIN.ENABLE(
    client_name => 'auto optimizer stats collection',
    operation => NULL,
    window_name => NULL);
    and run utlrp.sql .
    Regards
    Rahul Srivastava

  • CATPATCH.SQL

    Hi,
    I'm running BIBeans/JDeveloper 9.0.3. I'm not able to connect to BIBDEMO through JDev. When I test the OLAP connection, it says "Successfully connected to the Oracle database but failed to retrieve metadata".
    After reading this forum, I gathered that a file called msvcp60.dll had to be copied to system32 on the server machine. Did that, but I'm still getting the same error.
    After reading some more, I gather that a patch called catpatch.sql has to be applied. I cannot find this patch anywhere. WHere can I get it?
    ALso, do I need it? I don't have any older version of the product installed. This is the first time we're running this.
    thanks in advance
    Jyo

    Hi
    The latest version of JDeveloper and BI Beans only work with version 9.2.0.2 of the 9i database. The installation of Oracle 9i Release 2 database software creates a 9.2.0.1 database environment and instance. To use JDeveloper/BI Beans you need to apply a patchset which is available for download from Metalink. This patchset has two stages
    1) Universal Installer - updates all the Oracle kernel files
    2) SQL Patching process for each instance, the file to run is called CATPATCH.SQL.
    Catpatch.sql is located in the ORACLE_HOME/rdbms/admin directory. It should have been installed during the installation of the 9.2.0.2 database patchset. You can test to see if this patch has been applied and your database is fully patched to 9.2.0.2 status by trying to execute the following command at the SQL Plus prompt
    cwm2_olap_metadata_refresh.mr_refresh
    If this results in an error then CATPATCH.SQL has not been fully run. This package is installed by the 9.2.0.2 catpatch routine. All the intstructions on how to run the patch are in the README file associated with the patchset.
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • ORA-600 [17069] error while running catrelod.sql to downgrade 11g database

    Hi,
    We are downgrading our 11.2.0.2 database to 10.2.0.4. We have successfullly run catdwgrd.sql without any errors in 11g env. While running catrelod.sql in 10g env we are facing the following error:
    SQL> @?/rdbms/admin/catrelod.sql
    TIMESTAMP
    COMP_TIMESTAMP RELOD__BGN 2013-04-24 20:15:39 2456407 72939
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database server version is not 10.0.0.
    DOC>  Shutdown ABORT and use a different script or a different server.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database has not been opened for MIGRATE.
    DOC>
    DOC>  Perform a "SHUTDOWN ABORT"  and
    DOC>  restart using MIGRATE.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    Session altered.
    Session altered.
    no rows selected
    DECLARE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [17069], [0x170FB8CA8], [], [], [],
    [], [], []I have checked the trace file in udump but it dint give any readable information.
    Please find below environment details.
    OS : RHEL 5 64 bit
    11g Database : 11.2.0.2
    10g Database : 10.2.0.4
    Kindly assist.

    KR10822864 wrote:
    Whenever an ORA-600 error is raised a trace file is generated and an entry written to the alert.log with details of the trace file location. Starting with Oracle Database 11g Release 1, the diagnosability infrastructure was introduced which places the trace and core files into a location controlled by the DIAGNOSTIC_DEST initialization parameter when an incident, such as an ORA-600 is created. For earlier versions, the trace file will be written to either USER_DUMP_DEST (if the error was caught in a user process) or BACKGROUND_DUMP_DEST (if the error was caught in a background process like PMON or SMON). The trace file contains vital information about what led to the error condition
    please post 40 lines of alert log info .
    MOS Note:ORA-600 [17069] "Failed to pin a library cache object after 50 attempts" [ID 39616.1]
    "Look in the trace file for the text 'LIBRARY OBJECT HANDLE: handle=170fb8ca8'"
    if not found any massages like above please raise [email protected].
    Hi KR,
    Thanks for your help. As suggested I have checked the trace file to search and found the below info. I suppose it is some kind of lock but not sure about it. Please let me know if the following makes sense:
        SO: 0x21158a6e0, type: 3, owner: 0x211006f28, flag: INIT/-/-/0x00
        (call) sess: cur 211572570, rec 211572570, usr 211572570; depth: 0
          SO: 0x21158a9b8, type: 3, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (call) sess: cur 211572570, rec 0, usr 211572570; depth: 1
            SO: 0x1727a2618, type: 54, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT PIN: pin=1727a2618 handle=170fb8ca8 mode=S lock=171243e98
            user=211572570 session=211572570 count=1 mask=001d savepoint=0x43 flags=[00]
            SO: 0x171243e98, type: 53, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT LOCK: lock=171243e98 handle=170fb8ca8 mode=S
            call pin=0x1727a2618 session pin=(nil) hpc=0000 hlc=0000
            htl=0x171243f18[0x17278a310,0x17278a310] htb=0x17278a310 ssga=0x172789928
            user=211572570 session=211572570 count=1 flags=PNC/[0400] savepoint=0x43
            LIBRARY OBJECT HANDLE: handle=170fb8ca8 mtx=0x170fb8dd8(0) cdp=0
            name=SYS.STANDARD
            hash=51570e225ed8a9a803b7318f191e0a8d timestamp=04-18-2006 00:00:00
            namespace=TABL flags=KGHP/TIM/SML/[02000000]
            kkkk-dddd-llll=0000-001d-001d lock=S pin=S latch#=3 hpc=0004 hlc=0004
            lwt=0x170fb8d50[0x170fb8d50,0x170fb8d50] ltm=0x170fb8d60[0x170fb8d60,0x170fb8d60]
            pwt=0x170fb8d18[0x170fb8d18,0x170fb8d18] ptm=0x170fb8d28[0x170fb8d28,0x170fb8d28]
            ref=0x170fb8d80[0x170fb8d80,0x170fb8d80] lnd=0x170fb8d98[0x170f05b50,0x170fa6858]
              LIBRARY OBJECT: object=170e82de8
              type=PCKG flags=EXS/LOC[0005] pflags=NST/IVR[0201] status=VALD load=0
              DATA BLOCKS:
              data#     heap  pointer    status pins change whr
                  0 170e831f8 170e82fc0 I/P/A/-/-    0 NONE   00
          SO: 0x21158e470, type: 5, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (enqueue) CU-70E88BC0-00000001    DID: 0001-001F-00000004
          lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  res_flag: 0x2
          res: 0x17677adc8, mode: X, lock_flag: 0x0
          own: 0x211572570, sess: 0x211572570, proc: 0x211006f28, prv: 0x17677add8
          SO: 0x177f82c28, type: 59, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          cursor enqueue
          child: 170e89348, flag: 53, number: 0
          parent: 170e89738

  • 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

  • Interactive report run pl/sql by clicking on link column

    Hi!
    How can I run pl/sql script by clicking on a link column of an interactive report?
    Andras

    EDIT : Oh sorry don't saw the date, I'm a little late...
    Hi,
    if you want a link for each row, an other solution is to include the link column in your query, which would be more customizable, ie :
    select
    COLUMN1,
    COLUMN2,     
    '<ahref="f?p=&APP_ID.:6:&APP_SESSION.::NO::" onclick="your_function('||YOUR_ID_COLUMN||');return false;">link or picture</a>' as "link",
    COLUMN3;
    from
    ...As you see, you will have to include the ID (primary key) column to your report ("hidden") to identify the row clicked when calling your function.
    If you want to use the Link Column property in the report attributes, you will have to call you js function in the "URL" field like that :
    javascript:your_function('#YOUR_ID_COLUMN#');
    Yann.
    Edited by: Yann39 on 17 sept. 2010 02:41

  • How Can I Run a SQL Loader Job from Schedular

    How Can I Run a SQL Loader Job from Schedular , So that It Runs every Day.

    Depends on a couple of factors.
    If you are on a UNIX platform, you can create a shell script and schedule it with cron.
    If you are on a Windows platform, you can create a batch file and schedule it with the Windows scheduler.
    Or, if you are on Oracle 9i or 10g, you could use the external table feature instead of SQL*Loader. Then you could write a stored procedure to process the external table and schedule it using the Oracle scheduler (DBMS_JOB). This would probably be my preference.

  • How can I run a SQL script file...

    How can I run a SQL script file from a location on my computer without providing the whole path?
    Is there some way I can set a "Working folder" in SQL Plus??
    Thanks!
    Tom

    You can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
    scripts.
    I would like to use another directory than the oracle/bin...
    How can I do this ??
    Hello,
    U can do this by this way:
    Save odm_script.sql file to the default Oracle
    directory i.e. Oracle-Home/bin and Run following command
    through SQL Plus.
    SQL>@Script_Name
    I hope this will resolve ur problem.
    Regards,
    Omer Saeed Khan.

  • 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

  • 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

  • Message Mapping of type ABAP Class not being shown

    Hi all, I have been trying to follow the given blog: /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi Even after doing the changes mentioned in the blog, i do not see the ABAP Class in the list of Message Mapping types.

  • Sat P105-S2036 WinVista SD memory card device not shown in WIndows Explorer

    The label on the botton of the laptop says the Model Number is PSPAOU-1W2036. I have had it for about 2 years. It has a single slot SD memory card only reader in the front. During this time till 2 days ago, it ran factory installed Windows XP MCE jus

  • G4 tower keeps shutting down...  I need help!

    I don't know how to tell if it is a power issue or a hard drive. Does anyone have any experience with this type of problem?

  • Reading from COM port, in forms 6i.

    Hi All, Can anybody help me how to read COM port, capture from comport in forms 6i, we have weigh bridge system and they have supplies MS access bases application, i would like to use forms based own application instead that. please anybody help me..

  • Can you bookmark sites you visit often?

    There are many podcasts sites that I like to check from time to time, but often I do not subscribe to them. I may just get an episode and delete it. Is there an easy way to organize and bookmark my favorite podcast sites so I can get back to them lat