LSAlert Job References OLD Database

I'm using LogShipping and have it running on 2 databases just fine.  The job that was created when I set up and was testing the LogShipping called LSAlert runs every 2 minutes and fails because it is referencing an OLD database that was used
to set up the testing of the LogShipping.
How do I get it to stop trying to find that database (Rep_TEST)?  The script that is run is:
exec sys.sp_check_log_shipping_monitor_alert 
And the error in the logs is:
Date 17/02/2011 1:50:00 PM
Log Job History (LSAlert_SQLSERVER)
Step ID 1
Server SQLSERVER
Job Name LSAlert_SQLSERVER
Step Name Log shipping alert job step.
Duration 00:00:00
Sql Severity 16
Sql Message ID 14420
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: OFFICE\dw. The log shipping primary database SQLSERVER.Rep_TEST has backup threshold of 60 minutes and has not performed a backup log operation for 27380 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error
14420).  The step failed.

Hi,
Please run the following T-SQL statement to delete primary database and secondary entries on the monitor server:
-- The following T-SQL statements will be run against on msdb system databaseon the monitor server
USE msdb;
GO
-- Find the secondary server
SELECT *
FROM [dbo].[log_shipping_monitor_secondary]
WHERE [secondary_server] = 'xx' AND [secondary_database] = 'xx';
GO
-- Delete the secondary server according the the result found on above
DELETE FROM [dbo].[log_shipping_monitor_secondary]
WHERE [secondary_id] = 'xx' AND [secondary_database] = 'xx';
GO
-- Find the primary server
SELECT *
FROM [dbo].[log_shipping_monitor_primary]
WHERE [primary_server] = 'xx' AND [primary_database] = 'xx';
GO
-- Delete the priamry server according the the result found on above
DELETE FROM [dbo].[log_shipping_monitor_primary]
WHERE [primary_id]= 'xx' AND [primary_database]='xx';
GO
Hope this helps.
Best Regards,
Chunsong Feng
Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • New Grid Installation & Copy/Migration Of Existing Jobs From Old Grid

    Existing Setup:*
    EM Grid Control: 10.2.0.2 Hosted on Windows 2003
    Repository Database: 10.2.0.3 Hosted on AIX 5.1
    Agent: 10.2.0.2
    Monitored Databases/servers: About 90 servers/databases are monitored which are on AIX and having 10g DB version and agant installed in 10.2.0.2
    Proposed Setup:_
    EM Grid Control: 10.2.0.5 Will be hosted on AIX 6.1
    Repository Database: 10.2.0.4 Will be hosted on AIX 6.1 (different server from EM Grid control server)
    Agent: 10.2.0.5
    Monitored Databases/servers: All the existing servers + Oracle E-business Application
    We are planing to install a new grid with option of installing with existing database(New 10.2.0.4 database will be installed). Once new grid start working properly, we will stop old grid.
    During this process we don't want to stop/modify/change the existing grid jobs..
    So, My questions are:
    1) Can we have two agents (both with different OS users and having different AGENT_HOMES) on each server, which will feed to different grids? Old one will be stopped eventually.
    2) How we can copy/migrate existing jobs from old grid to new grid ?

    Can you point me towards any document or link for same.
    Any idea for copy/migration of jobs from old grid to new grid....

  • Reference to database and/or server name in '' is not supported in this version of SQL Server

    Hello all
    I am using C# and ADO.NET (native) - Visual Studio 2013.
    I am always using full qualified queries like "SELECT * FROM [database].[schema].[table]"
    Obviously there is a problem when doing this against SQL Azure,
    I get the following error: "Reference to database and/or server name in '' is not supported in this version of SQL Server"
    Interesting fact: With SQL Management Studio, the same query works.
    I need to know if this error is really a true one or not.
    If yes, I can quit using SQL Azure. I would need a SQL Server and not a partial SQL Server :-)
    Thanks and best regards
    Frank

    Hi,
    Here are my suggestions:
    1. Use partially qualified queries, because:
    a. from a security standpoint, you'd want to limit your login's access across the server instance
    b. in order to achieve a even better, you should specify your database as the Initial Catalog directly in the SQL Connection.
    If you take into account these practices, SQL Database doesn't come with any limitation from that point of view.
    However, in regard to 'With SQL Management Studio, the same query works', this is actually only partially true because if you run that query agains ADO.NET, you'll actually end up in switching databases along the query which is obviously not permitted in
    SQL Database since you're running in a hosted black-box version of SQL you're not managing. It's just like running the USE <dbname> command which obviously doesn't work.
    Alex

  • How to handel a Batch job in oracle database

    How to handel a Batch job in oracle database?
    Regards
    alok

    Alekh wrote:
    lists of jobs execute concurrently.Thats a definition we all aware of ;), I meant do you want to execute the jobs in a sequence? is there any dependency? is it more like scheduling?
    And What kind of jobs you are talking about? running PL/SQL programs? or stats collection? or DB backup?
    Regards,
    Prazy

  • HOW CAN I INTEGRATED OLD DATABASE TO NEW DATABASE

    Hello...........
    I use orace10g database for windows
    İt was formatted to my machine .it was a database ( old database )
    I installed new operating system again
    I installed oracle10g for windows again and I created a new database
    I want to integrated old database to new database
    I have backup old database in C driver
    thank you very much
    omer faruk akyuzlu
    turkey

    You have to use oradim
    oradim -NEW -SID SID | -SRVC service_name | -ASMSID SID | -ASMSRVC service_name
              [-SYSPWD password] [-STARTMODE auto | manual] [-SRVCSTART system | demand]
              [-PFILE filename | -SPFILE] [-SHUTMODE normal | immediate | abort] [-TIMEOUT
              secs] [-RUNAS osusr/ospass]

  • 64bit instant client talking to old database (8.1.7)

    This might be a stupid question, but we have recently converted all our linux machines to running 64bit linux. The problem is, we need to access an old oracle database (running on the version 8.1.7). I installed a current 64bit version of instant client (11.1) but this one won't talk to the database - probably because it is too old.
    We still have a copy of an old oracle_home installation, which does talk to the database. However, this is a 32bit software and the libraries won't link to our 64bit stuff - in particular we cannot generate a working DBD:Oracle perl module.
    The question: Is there an older version of instant client or anything similar, that has 64bit libraries but still supports old 8.1 database installations? I tried to downloac 10.x versions of the instant client, but the links appear to be dead and I have no idea of this one would talk to old databases.
    Any hint would be highly appreciated

    This link works for me:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    (if that is your 64 bit Linux).
    With this client you will be able to connect to an 8i database, but if you have any problems, you're on your own as Oracle has desupported 8i.
    Yours,
    Laurenz Albe

  • Job Execution after database startup

    I have around 15 materialized views. Each one has different execution time during the day. For example: some of them are reloaded at 9:00 PM, others at 7:00 AM.
    If i would have to re-start my database, or the database instance, the server gets so slowly and overloaded.
    When I start the instance, are the MV jobs executed?
    Is there any parameter to start the database and ignore the jobs which are late due period that the database was out?
    My database version is Oracle9i Release 9.2.0.4.0.

    setting job_queue_process=0 you affect all jobs for your database, u can make this editing the pfile, if the database closed.
    when database opened you can modify the parameter with alter system command.
    placing the job in broken state the database must be open and this option don't affected all jobs, only jobs that you want.

  • Importing back-up pix from cd to old database containing no pix

    When my hard drive crashed a while back, I managed to recover my iphoto database with all the placeholders and tags, but unfortunately did not understand the proper way to back-up the database and lost all of my photos.  Thankfully, I had most of them loaded on my Shutterfly site and now have them on a CD purchased from Shutterfly.  Is there a way to import these photos from the CD so they 'connect' again with my old database with all the tags, etc. already in place?
    Please say yes!

    Afraid not. You'll need to create a new Library and start over.
    Regards
    TD

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • Exchange 2013 ECP shows no databases. User moves fail referencing an old database of a crashed 2010 server

    Our old 2010 server was migrated to 2013 but before removal, the 2010 server failed.  Now when I go to my ECP > Servers > Databases, the list is empty.  I can't move any users either as the list population fails because it can't find the
    old database from the 2010 server.  I thought I removed it all from ASDIEdit but something is lingering.  Mail is flowing fine at the moment.

    Server has been rebooted several times with no success.  These are production mailboxes.
    Log Name:      Application
    Source:        MSExchangeTransportDelivery
    Date:          4/14/2014 5:53:45 AM
    Event ID:      5006
    Task Category: Routing
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      MAIL1.onshoreit.local
    Description:
    Cannot find information about owning Mailbox Server CN=MAIL\0ADEL:437877b5-6216-44ea-a145-997cba794f45,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local
    for database CN=DFMCO_PUB_DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local in routing tables with timestamp 4/14/2014 10:53:45
    AM. Recipients will not be routed to this database.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeTransportDelivery" />
        <EventID Qualifiers="32772">5006</EventID>
        <Level>3</Level>
        <Task>4</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-14T10:53:45.000000000Z" />
        <EventRecordID>663745</EventRecordID>
        <Channel>Application</Channel>
        <Computer>MAIL1.onshoreit.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>CN=MAIL\0ADEL:437877b5-6216-44ea-a145-997cba794f45,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local</Data>
        <Data>CN=DFMCO_PUB_DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local</Data>
        <Data>4/14/2014 10:53:45 AM</Data>
      </EventData>
    </Event>
    Log Name:      Application
    Source:        MSExchangeTransportDelivery
    Date:          4/14/2014 5:53:45 AM
    Event ID:      5006
    Task Category: Routing
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      MAIL1.onshoreit.local
    Description:
    Cannot find information about owning Mailbox Server CN=MAIL\0ADEL:437877b5-6216-44ea-a145-997cba794f45,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local
    for database CN=DFMCO_MAIL_DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local in routing tables with timestamp 4/14/2014 10:53:45
    AM. Recipients will not be routed to this database.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchangeTransportDelivery" />
        <EventID Qualifiers="32772">5006</EventID>
        <Level>3</Level>
        <Task>4</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-14T10:53:45.000000000Z" />
        <EventRecordID>663744</EventRecordID>
        <Channel>Application</Channel>
        <Computer>MAIL1.onshoreit.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>CN=MAIL\0ADEL:437877b5-6216-44ea-a145-997cba794f45,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local</Data>
        <Data>CN=DFMCO_MAIL_DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=OnshoreIT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=onshoreit,DC=local</Data>
        <Data>4/14/2014 10:53:45 AM</Data>
      </EventData>
    </Event>
    The 2010 box is dead and unable to be restored.

  • Scheduled job in oracle database 10g release 2

    I have scheduled a batch job job to run once a day at 8.30 in the morning
    but the program runs twice a day, onca at acheduled time and once in the evening 18.30.
    I am unable to find any reference to the batch program in the job any where.
    Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    Operating system version: HP-UX B.11.11

    This job is scheduled through dba_jobs.
    JOB     LOG_USER     PRIV_USER     SCHEMA_USER     LAST_DATE     LAST_SEC     THIS_DATE     THIS_SEC     NEXT_DATE     NEXT_SEC     TOTAL_TIME     BROKEN     INTERVAL     FAILURES     WHAT
    7353     FPCDBA     FPCDBA     FPCDBA     01/03/11 08:31:08     08:31:08               02/03/11 08:31:08     08:31:08     29118     N     SYSDATE+ 1     0     FRB05101;

  • How to reference MS Database from XML datasource?

    Hi,
    I have been tasked with writing an XML BI Publisher report that involves pulling data stored on our SQLServer database. I wasn't sure how to do this so I searched through my documentation and found information on Distributed Queries which I think addresses what I am trying to do. So I created a simple datasource test script based on the documentation to see if I could access the SQLServer database but I am having problems getting this to work. I created a datasource script, setup a concurrent job and tried to run the report but I'm getting a "java.sql.SQLException: ORA-00933: SQL command not properly ended" error.
    Can somebody please help me in regard to my problem and tell me what I'm doing wrong? I am using the XML Word plugin 10.1.3.4.1. Here's the datasource code.
    <?xml version="1.0"?>
    <dataTemplate name="XXKNC_TIMECENTRE_TEST" description="XXKNC - TimeCentre XML" dataSourceRef="TimeCentre" version="1.0">
    <dataQuery>
    <sqlStatement name="Q1_TimeCentre">
    <![CDATA[
    SELECT DISTINCT CardID, EmployeeName
    FROM tc2kdb.dbo.EmployeeT
    where CardID < 500
    order by EmployeeName
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_TimeCentre" source="Q1_TimeCentre">
    <element name="CardID" value="CardID" />
    <element name="EmployeeName" value="EmployeeName" />
    </group>
    </dataStructure>
    </dataTemplate>
    Thank you,
    Steve

    Bipuser,
    That still didn't work. I was thinking about this and my problem. When I am trying to access a database on the sqlserver I have to tell Oracle this by adding dataSourceRef="TimeCentre" to my datasource correct? But my TimeCentre reference is set up as an ODBC connection and I think this is the problem. Where or how do I setup this connection if we are not using BI Publisher server and only using the MS Word Pulgin? Or does Oracle somehow know that dataSourceRef="TimeCentre" is referencing a SqlServer database over an ODBC connection? I'm not sure if I should be setting up the TimeCentre link differently.
    Thanks again for taking time to help me with this problem,
    Steve

  • Scheduling SQL AGENT JOB for SSAS DataBase to take backup files Daily with Different Names

    Hi All,
    I am working with SSMS. I have Analysis Services DataBase.
    i want to Schedule a SQL SERVER AGENT JOB.
    I want to take that AS DB BackUp Daily and has to be stored in Same
    Folder/same path in my local
    machiene with Different Names.
    Means, There should be Daily BackUps Files in that Path.  According to that we have to Schedule the JOB.
    Can anyone help me for this..
    Thanks,
    Supraja.

     Hi Katherine,
    Thanks a lot for your Response. what
    you have posted is very useful for me.
    But i am searching the result using AS
    DataBase BackUp Script. 
    i found one of the easy way. its working for me.
    Please check the below link for your reference..
    http://dbatasks.blogspot.in/2012/08/taking-backup-of-ssas-database.html
    Thanks,
    Supraja.

  • How to reference v$database in a package

    How do you reference the view v$database in a package?
    CREATE OR REPLACE
    package body temp as
    dbname varchar2(10);
    procedure temp_proc is
    begin
    select name into dbname from v$database;
    end;
    end;
    Says table or view does not exist when I try to compile.
    Anyway to do this without dynamic sql?
    note: this user has dba role

    note: this user has dba roleSince the package will execute with definer rights (the default), roles will not be enabled. The package owner must have SELECT privilege on v$database granted directly.
    PL/SQL User's Guide

  • Disable scheduler jobs during the database refresh

    Chaps,
    I have a strange issue. We have certain jobs scheduled which monitor other jobs and when they aren't running, they send emails using utl_smtp to the whole DBA group. All is working fine on Production but the moment we restore the database to QA, and soon after the database is recovered, it sends an email saying the those jobs aren't running..
    How do I disable the scheduler jobs ? Can it be done while the database is in mount state ? Or, is there any parameters to do so ?

    Hi,
    Although you can't disable the entire scheduler, you can disable individual jobs or all jobs in a job class using dbms_scheduler.disable which will prevent the jobs from running (but not stop already running jobs).
    It should be straightforward to have a table of jobs that should be disabled and have procedures which run over the table either disabling or enabling them.
    -Ravi

Maybe you are looking for

  • Exception while runing a ADF page which is having a Hierarchy Viewer

    Hi All, I am getting the following exception while runing a ADF page which is having a Hierarchy Viewer which is based on Java object data model. Please help me with the solution or any idea will be welcome. FYI,It was perfectly running on yesterday,

  • Work flow in Traing & Event Mgt

    I need to create a work flow in Traing & Event Mgt, ESS Is there any standard way to creat work flow in T & E Mgt? pls mail

  • Video doesn't keep up with scrubber

    I've just moved from PPro 1.5 to PPro CS4. I installed CS4 on a new Gateway Laptop with 4Gigs RAM and P8400 Intel CPU on Vista 64-bit. As I move the scrubber across the timeline or in the Project Source window, the video isn't able to keep up with th

  • How to design multitab report in rtf in oracle apps r12

    Hi, How to design multitab report in rtf in oracle apps r12 one consultant working on a multiple projects in this report ....how to design rtf by using multi tab. thanks,

  • Illumination Media Keys stopped working

    Please help me. My illumination soft touch media keys are not working. I try to reinstall the Value Added Package but still the media keys are not working. What should I do? Thanks I really appreciates your help.