Why is the SQL job failing on weekends while it successfully runs in weekdays?

I wrote a job to create a backup. But this seems to work fine in weekdays. After weekends I can't find any backups. History viewer shows only 1 day of history and therefore I can't see what happened to the job in weekends. How can I increase the amount
of history information from Job activity monitor? And is there a way to trace what happened in weekends? Please advice.
mayooran99

Have you checked the job current schedule ? is this scheduled for daily ? have you checked the backup location ? how many day backups are exist? is there any recent backups ?
backup details :
http://www.mssqltips.com/sqlservertip/1601/script-to-retrieve-sql-server-database-backup-history-and-no-backups/
Change sql agent jobs history retenions :
--Set new Limit size of job history
EXEC msdb.dbo.sp_set_sqlagent_properties @jobhistory_max_rows=-1,@jobhistory_max_rows_per_job=-1
--delete jobhistory older than 7 days and schedule following as a job or use gui
DECLARE @oldest_date DATETIME
SET @oldest_date = DATEADD(DAY,-7,GETDATE())
PRINT @oldest_date
EXEC msdb..sp_purge_jobhistory NULL,NULL,@oldest_date
OR
Rightclick on SQL Server Agent, properties-> History, You can increase the history log size(in rows) and max Job history rows per job .
OR
USE[msdb]
GO
EXEC[dbo].[sp_set_sqlagent_properties]
@jobhistory_max_rows=10000,
@jobhistory_max_rows_per_job=1000
GOReference :http://msdn.microsoft.com/en-us/library/ms189683.aspxhttp://sqlserverplanet.com/dba/increase-job-history
Raju Rasagounder Sr MSSQL DBA

Similar Messages

  • SQL Job failed on mirror failover

    We have a SQL Server 2005 database mirroring configuration on two Windows Server 2008 R2 servers.  There is a SQL Agent job that is triggered by a WMI Event Alert, using the query "SELECT * FROM DATABASE_MIRRORING_STATE_CHANGE WHERE State=8 AND
    DatabaseName=[DB]". 
    The first step in the SQL job triggered by the alert is to execute a stored procedure in the database [DB] that has now just become principal on this server.  On a recent automatic failover test, forced by rebooting the principal server, the mirror-turned-principal
    fired the above alert, but the first job step failed with the error:  "Unable to connect to SQL Server '(local)'. The step failed."
    Subsequent job steps that executed other stored procedures in the same database were successful.
    Some time line information:
    9:50:34 SQL Log entry:  "The mirrored database [DB] is changing roles from MIRROR to PRINCIPAL due to Auto Failover."
    9:50:45 Alert fired
    9:50:46 Job step 1 failed "Unable to connect to SQL Server '(local)'. The step failed."
    9:51:32 Job step 2 "Changed database context to [DB]" (and the step succeeded)
    This alert/SQL job combination has never failed in this manner on a similarly configured pair of mirror servers. 
    Can anyone shed light on why that first step would fail?  Could the failover time be long enough that the database is not yet accessible?  Yet the error refers to the server itself, not the database. 
    Since this is a production database, I have limited access to test the failover sequence, but any suggestions on what caused this job step to fail are welcome.

    Hi,
    I understand that it is the production environment, it is limited to take some testson it. Here are some comments:
    1. When a job step fails, view the job history. Sometimesit will tell us more information aboutthe failure cause.
    2. If you have a test environment, verify if the job are able to execute without the failover. I suspect it is failover that caused job step 1 to failed. In the test environment, we can change order of the job step and test the issue.
    Regarding it is a production database, for quick and accurate answers to your questions, you can open a case with Microsoft, please contact  Microsoft Customer Service.
    http://support.microsoft.com/kb/295539
    Thanks.
    Tracy Cai
    TechNet Community Support

  • While adding/Changing member in planning it gives the error "The SQL operation failed with an error code: 0"

    Hi,<BR>While adding/Changing member in planning it gives the error "The SQL operation failed with an error code: 0" and not allowing any of the changes. I am not able to open the forms giving the error as "Fiscal Days Input - is invalid". Interestingly one form was opening, when the Page selection is changed it also started giving error as like "Fisacal Days Input(form name) - is invalid check log for details". <BR>Pls advice us that what is this error and how to resolve this.<BR><BR>And Which log is to be referred for the details.<BR><BR>Thanks<BR>Ravi

    If a form is invalid it generally means that one of the dimension references is missing.<BR><BR>Can you get in to edit the form?<BR>If you can, see if you can preview it. I suspect you will not be able to.<BR><BR>If not, check all dimension boxes have at least one member against them.<BR>If you have multiple rows and/or columns check all of them too.<BR><BR>I've had a couple of forms in dev "drop" a dimension reference but only once or twice so not enough to reproduce or find out what is causing it. Each time I got the "form invalid" error message and managed to fix it.<BR><BR>Hope this helps.<BR>

  • Why is the latest update failing and giving me this_ U44M1P7?

    See above. Why is the latest update failing and giving me this_ U44M1P7?

    Hi cfosofart,
    Please go follow the mentioned kb: http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html .
    Regards,
    Romit Sinha

  • "The upload has failed. There was a problem running a virus scan for the file."  any ideas???

    "The upload has failed.
    There was a problem running a virus scan for the file. "
    This is the message i get when tryng to update
    any ideas?

    Error: "svr.VirusScanExecutionError"
    An intermittent problem with acrobat.com's underlying virus scan component causes this issue. This issue happens occasionally on a small number of server instances.
    The solution is to update the article again. Trying again typically routes you to a different host in the server array.

  • Send error messages in DatabaseMail when SQL Job fails/succeeds

    Hi ,
    I have setup a profile and account for sending mail using DatabaseMail. I have a SQL JOB. If the job fails, I receive an Email.
    Till this point, everything works fine. This is what the email looks like :
    JOB RUN: 'GenerateJVForLabourAndOverheads_R11Testing' was run on 20-12-2012 at 10:10:50
    DURATION: 0 hours, 0 minutes, 0 seconds
    STATUS: Failed
    MESSAGES: The job failed. The Job was invoked by Schedule 58 (Execute SP). The last step to run was step 1 (Execute SP).
    Now what I want is, if the job fails for any reason, that error message should appear in the email message body.
    for example, FK_Constraint error , Conversion errors or any error that caused my sql job to fail.
    Is this possible ?
    Any help appreciated,
    Thanks,
    Lok..

     This is one way to do, assuming your job has 2 steps and step 1 does the main part.
    So,in your step 2 of the job, you can add the below code and 
    declare @body1 varchar(8000) 
    select top 1 @body1 = [Message] from msdb.dbo.sysjobhistory A INNER JOIN msdb.dbo.sysjobs B ON B.Job_id = A.Job_id
     where B.Name = <<JobNaMe>> and A.step_id =1 order by instance_id desc
     EXECUTE msdb.dbo.sp_send_dbmail @profile_name = <<YourMail profile>>
    ,@recipients = <<RecipeintEmail>>,@subject =<<Your subject>>,@body = @body1
     I guess, you can also  log the job step output to an outputfile and have it sent as an attachment to your mail... this might help if you have many steps in one job....
    HTH!!
    Please mark as 'Answer', if the solution solves your problem.

  • Job Failed on Weekend Only

    OS: Win2k3
    DB: 10gR2
    I have a job that calls a procedure xxx. On weekdays, it runs fine and no issues at all. On weekend, I have been getting
    ORA-20212: ORA-20212: ORA-06512: at "yyy.SRW", line 648 ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1674 ORA-12541: TNS:no listener ORA-06512: at "yyy.SRW", line 794 ORA-06512: at "yyy.xxx", line 54  I have googled but do not understand the issue here.
    ORA-06512 - http://kr.forums.oracle.com/forums/thread.jspa?threadID=1086856 seems to think it's memory issue; however, how can the job not fail on weekdays? Plus, the job isn't very resource intensive - just spits out a report in PDF, max about 15k-16k (about 12-13 pages).
    ORA-12541 says no listener; but, how can it just fail on weekend? the listener was never shut down. Does it get timed out or anything? If so, how does it "wake" up on Monday mornings?
    Any help would be great.
    thanks

    I figured I would find something that says " ORA-"
    The job is scheduled to run at 18:10pm everyday. Here's the listener.log 10 mins prior and 10 mins after
    20-FEB-2011 18:00:04 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4220)) * establish * yyy * 0
    20-FEB-2011 18:00:19 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4226)) * establish * yyy * 0
    20-FEB-2011 18:00:34 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4234)) * establish * yyy * 0
    20-FEB-2011 18:00:36 * service_update * yyy * 0
    20-FEB-2011 18:00:49 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4238)) * establish * yyy * 0
    20-FEB-2011 18:01:04 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4244)) * establish * yyy * 0
    20-FEB-2011 18:01:20 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4251)) * establish * yyy * 0
    20-FEB-2011 18:01:21 * service_update * yyy * 0
    20-FEB-2011 18:01:35 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4263)) * establish * yyy * 0
    20-FEB-2011 18:01:50 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4269)) * establish * yyy * 0
    20-FEB-2011 18:02:05 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4274)) * establish * yyy * 0
    20-FEB-2011 18:02:10 * ping * 0
    20-FEB-2011 18:02:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521)))(VERSION=169869568)) * status * 0
    20-FEB-2011 18:02:20 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4283)) * establish * yyy * 0
    20-FEB-2011 18:02:21 * service_update * yyy * 0
    20-FEB-2011 18:02:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4285)) * establish * yyy * 0
    20-FEB-2011 18:02:35 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4291)) * establish * yyy * 0
    20-FEB-2011 18:02:39 * service_update * yyy * 0
    20-FEB-2011 18:02:50 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4296)) * establish * yyy * 0
    20-FEB-2011 18:03:05 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4306)) * establish * yyy * 0
    20-FEB-2011 18:03:20 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4323)) * establish * yyy * 0
    20-FEB-2011 18:03:35 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4331)) * establish * yyy * 0
    20-FEB-2011 18:03:50 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4335)) * establish * yyy * 0
    20-FEB-2011 18:04:06 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4342)) * establish * yyy * 0
    20-FEB-2011 18:04:06 * service_update * yyy * 0
    20-FEB-2011 18:04:21 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4347)) * establish * yyy * 0
    20-FEB-2011 18:04:36 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4356)) * establish * yyy * 0
    20-FEB-2011 18:04:36 * service_update * yyy * 0
    20-FEB-2011 18:04:51 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4359)) * establish * yyy * 0
    20-FEB-2011 18:05:06 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4367)) * establish * yyy * 0
    20-FEB-2011 18:05:21 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4374)) * establish * yyy * 0
    20-FEB-2011 18:05:36 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4382)) * establish * yyy * 0
    20-FEB-2011 18:05:51 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4385)) * establish * yyy * 0
    20-FEB-2011 18:05:54 * service_update * yyy * 0
    20-FEB-2011 18:06:06 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4393)) * establish * yyy * 0
    20-FEB-2011 18:06:09 * service_update * yyy * 0
    20-FEB-2011 18:06:21 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4399)) * establish * yyy * 0
    20-FEB-2011 18:06:36 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4409)) * establish * yyy * 0
    20-FEB-2011 18:06:52 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4412)) * establish * yyy * 0
    20-FEB-2011 18:07:07 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4419)) * establish * yyy * 0
    20-FEB-2011 18:07:10 * ping * 0
    20-FEB-2011 18:07:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521)))(VERSION=169869568)) * status * 0
    20-FEB-2011 18:07:22 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4427)) * establish * yyy * 0
    20-FEB-2011 18:07:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4428)) * establish * yyy * 0
    20-FEB-2011 18:07:37 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4434)) * establish * yyy * 0
    20-FEB-2011 18:07:39 * service_update * yyy * 0
    20-FEB-2011 18:07:52 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4439)) * establish * yyy * 0
    20-FEB-2011 18:08:07 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4450)) * establish * yyy * 0
    20-FEB-2011 18:08:22 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4465)) * establish * yyy * 0
    20-FEB-2011 18:08:37 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4473)) * establish * yyy * 0
    20-FEB-2011 18:08:52 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4478)) * establish * yyy * 0
    20-FEB-2011 18:09:05 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4484)) * establish * yyy * 0
    20-FEB-2011 18:09:07 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4485)) * establish * yyy * 0
    20-FEB-2011 18:09:09 * service_update * yyy * 0
    20-FEB-2011 18:09:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4492)) * establish * yyy * 0
    20-FEB-2011 18:09:24 * service_update * yyy * 0
    20-FEB-2011 18:09:38 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4499)) * establish * yyy * 0
    20-FEB-2011 18:09:53 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4503)) * establish * yyy * 0
    20-FEB-2011 18:10:08 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4510)) * establish * yyy * 0
    20-FEB-2011 18:10:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4516)) * establish * yyy * 0
    20-FEB-2011 18:10:38 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4523)) * establish * yyy * 0
    20-FEB-2011 18:10:53 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4528)) * establish * yyy * 0
    20-FEB-2011 18:11:08 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4534)) * establish * yyy * 0
    20-FEB-2011 18:11:09 * service_update * yyy * 0
    20-FEB-2011 18:11:15 * service_update * yyy * 0
    20-FEB-2011 18:11:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4543)) * establish * yyy * 0
    20-FEB-2011 18:11:24 * service_update * yyy * 0
    20-FEB-2011 18:11:38 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4553)) * establish * yyy * 0
    20-FEB-2011 18:11:54 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4558)) * establish * yyy * 0
    20-FEB-2011 18:12:09 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4564)) * establish * yyy * 0
    20-FEB-2011 18:12:10 * ping * 0
    20-FEB-2011 18:12:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521)))(VERSION=169869568)) * status * 0
    20-FEB-2011 18:12:21 * service_update * yyy * 0
    20-FEB-2011 18:12:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4572)) * establish * yyy * 0
    20-FEB-2011 18:12:24 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4574)) * establish * yyy * 0
    20-FEB-2011 18:12:39 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4581)) * establish * yyy * 0
    20-FEB-2011 18:12:54 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4587)) * establish * yyy * 0
    20-FEB-2011 18:12:58 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4588)) * establish * yyy * 0
    20-FEB-2011 18:13:00 * service_update * yyy * 0
    20-FEB-2011 18:13:09 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4599)) * establish * yyy * 0
    20-FEB-2011 18:13:12 * service_update * yyy * 0
    20-FEB-2011 18:13:24 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4614)) * establish * yyy * 0
    20-FEB-2011 18:13:39 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4619)) * establish * yyy * 0
    20-FEB-2011 18:13:54 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4627)) * establish * yyy * 0
    20-FEB-2011 18:14:08 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4629)) * establish * yyy * 0
    20-FEB-2011 18:14:09 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4632)) * establish * yyy * 0
    20-FEB-2011 18:14:12 * service_update * yyy * 0
    20-FEB-2011 18:14:25 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4641)) * establish * yyy * 0
    20-FEB-2011 18:14:40 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4644)) * establish * yyy * 0
    20-FEB-2011 18:14:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521))))(VERSION=169869568)) * services * 0
    20-FEB-2011 18:14:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521)))(VERSION=169869568)) * status * 0
    20-FEB-2011 18:14:55 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4655)) * establish * yyy * 0
    20-FEB-2011 18:15:10 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4658)) * establish * yyy * 0
    20-FEB-2011 18:15:25 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4667)) * establish * yyy * 0
    20-FEB-2011 18:15:40 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4671)) * establish * yyy * 0
    20-FEB-2011 18:15:55 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4680)) * establish * yyy * 0
    20-FEB-2011 18:15:57 * service_update * yyy * 0
    20-FEB-2011 18:16:10 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4683)) * establish * yyy * 0
    20-FEB-2011 18:16:12 * service_update * yyy * 0
    20-FEB-2011 18:16:25 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4695)) * establish * yyy * 0
    20-FEB-2011 18:16:40 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4700)) * establish * yyy * 0
    20-FEB-2011 18:16:55 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4710)) * establish * yyy * 0
    20-FEB-2011 18:17:00 * (CONNECT_DATA=(SID=members)(CID=(PROGRAM=)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4711)) * establish * members * 0
    20-FEB-2011 18:17:10 * ping * 0
    20-FEB-2011 18:17:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.244.97)(PORT=1521)))(VERSION=169869568)) * status * 0
    20-FEB-2011 18:17:11 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4717)) * establish * yyy * 0
    20-FEB-2011 18:17:23 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4723)) * establish * yyy * 0
    20-FEB-2011 18:17:26 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4725)) * establish * yyy * 0
    20-FEB-2011 18:17:27 * service_update * yyy * 0
    20-FEB-2011 18:17:41 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4731)) * establish * yyy * 0
    20-FEB-2011 18:17:56 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4737)) * establish * yyy * 0
    20-FEB-2011 18:17:57 * service_update * yyy * 0
    20-FEB-2011 18:18:11 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4750)) * establish * yyy * 0
    20-FEB-2011 18:18:26 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4764)) * establish * yyy * 0
    20-FEB-2011 18:18:41 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4770)) * establish * yyy * 0
    20-FEB-2011 18:18:56 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4775)) * establish * yyy * 0
    20-FEB-2011 18:19:11 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4783)) * establish * yyy * 0
    20-FEB-2011 18:19:12 * service_update * yyy * 0
    20-FEB-2011 18:19:26 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4789)) * establish * yyy * 0
    20-FEB-2011 18:19:41 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4796)) * establish * yyy * 0
    20-FEB-2011 18:19:48 * service_update * yyy * 0
    20-FEB-2011 18:19:57 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4801)) * establish * yyy * 0
    20-FEB-2011 18:20:12 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4807)) * establish * yyy * 0
    20-FEB-2011 18:20:27 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4814)) * establish * yyy * 0
    20-FEB-2011 18:20:42 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4820)) * establish * yyy * 0
    20-FEB-2011 18:20:57 * (CONNECT_DATA=(SID=yyy)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORCL10GR2)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.244.97)(PORT=4825)) * establish * yyy * 0

  • Why's the SQL format different for the same report on different PCs?

    I have 2 PCs running the same version of Crystal Reports (11.0.0.1994) using an identically configured system DSN with the exact same driver. When I view the SQL that CR is using on PC 1, part of it looks like this:
    " FROM   {oj (("PUB"."LOQEstimate" "LOQEstimate1" LEFT OUTER JOIN "PUB"."LOQComponent" "LOQComponent1" ON ("LOQEstimate1"."Estimate-ID"="LOQComponent1"."Estimate-ID") AND"
    On PC 2 it looks like this:
    "FROM   "PUB"."LOQEstimate" "LOQEstimate1", "PUB"."LOQComponent" "LOQComponent1", "PUB"."CustContact" "CustContact1", "PUB"."LOQSegment" "LOQSegment1"
    WHERE"
    It's the exact same report. Can someone tell me why the SQL is different?
    TIA for the help.

    Thanks for the reply, Patrick. Here are the answers you requested:
    1. Verify you are indeed using the same driver, and they are of the same version
    The driver on both PCs is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
    2. Verify if you have the same database client install on both computer.
    Both use prowin32.exe, v10.1.1.1326
    If everything is the same, then it might be a registry key, and in this case, can you provide the following information:
    1. What database are you connecting to? ( Oracle, DB2, ... )
    Progress OpenEdge 10 RDMS (/community [original link is broken])
    2. What is the version of the database?
    10.1A
    3. What is the version of the database client?
    v10.1.1.1326
    4. How are you connecting to your database? ( Native, ODBC, OLEDB,... )
    ODBC
    5. If you are connecting via ODBC, what is the name of the driver used and it's version?
    The driver is the Progress OpenEdge 10.1A driver. The file is pgoe1021.dll, version 05.10.0037.
    6. What is the SQL query syntax do you prefer? ( PC 1, or the one generated on PC 2 )
    The SQL generated on PC1 doesn't return any records. The SQL generated on PC2 does. Records are preferable ;o)

  • Why has the sql statement been extucted two times in shell script?

    I tried to test rac load balance using the following shell script on suse 10 + oracle 10g rac.
    oracle@SZDB:~> more load_balance.sh
    #!/bin/bash
    for i in {1..20}
    do
    echo $i
    sqlplus -S system/oracle@ORA10G <<EOF
    select instance_name from v\$instance;
    EOF
    sleep 1
    done
    exit 0After execute shell script, I got the follow result.
    oracle@SZDB:~> ./load_balance.sh
    1
    INSTANCE_NAME
    ora10g2
    INSTANCE_NAME
    ora10g2
    2
    INSTANCE_NAME
    ora10g1
    INSTANCE_NAME
    ora10g1
    3
    INSTANCE_NAME
    ora10g1
    INSTANCE_NAME
    ora10g1Seem the sql statement has been executed two times in each loop. If you feel free please help to have a look. Thanks in advance.
    Robinson

    You can end a SQL command in one of three ways:
    * with a semicolon (;)
    * with a slash (/) on a line by itself
    * with a blank line
    A semicolon (;) tells SQL*Plus that you want to run the current command that was entered. SQL*Plus processes the command and also stores the command in the SQL buffer.
    A blank line in a SQL statement or script tells SQL*Plus that you have finished entering the command, but do not want to run it yet, but it's stored the command on SQL Buffer.
    A slash (/) on a line by itself tells SQL*Plus that you wish to run the command stored on SQL buffer.

  • SQL Jobs failed

    Hi DBA's
    Please check the following error message and help how to troubleshoot this issue.
    Date                      11/14/2014 9:30:00 AM
    Log                         Job History (Accounts Update)
    Step ID                 1
    Server                   MSSQL\SEASONS
    Job Name                            Accounts Update
    Step Name                         Acct Update
    Duration                              00:00:00
    Sql Severity                        0
    Sql Message ID                 0
    Operator Emailed                           
    Operator Net sent                          
    Operator Paged                               
    Retries Attempted                          0
    Message
    Executed as user: TEST\myDB. ... 9.00.5000.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  9:30:00 AM  Error: 2014-11-14 09:30:00.41     Code: 0xC0016016    
    Source:       Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error
    occurs when there is a cryptographic error. Verify that the correct key is available.  End Error  Error: 2014-11-14 09:30:00.61     Code: 0xC001401E     Source: Acct Connection manager "Flat File Connection
    Manager 2"     Description: The file name "\\sybase03\ong_uploads\Accounts\Account.csv" specified in the connection was not valid.  End Error  Error: 2014-11-14 09:30:00.61     Code: 0xC001401D    
    Source: Acct      Description: Connection "Flat File Connection Manager 2" failed validation.  End Error  Error: 2014-11-14 09:30:00.67     Code: 0xC...  The package execution fa... 
    The step failed.
    DBA

    Hi DBA,
    Based on the error message that “Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs
    when there is a cryptographic error.”, it seems that the issue is related to Protection Level Settings.
    During development, the default value of the protection level of packages is EncryptSensitiveWithUserKey. In this way, uses a key that is based on the current user profile to encrypt only the values of sensitive properties in the package. Only the same user
    who uses the same profile can load the package. If a different user attempts to execute the package, package execution fails. To fix this issue, please change this:
    Package Proprties Window >ProtectionLevel -- Change that to EncryptSensitiveWithPassword PackagePassword -- enter password-> somepassword
    Then on SQL Agent Job Step, go the Command Line Tab, manually edit command line with the command below:
    /De[crypt] password
    As to the error message” Acct Connection manager "Flat File Connection Manager 2"     Description: The file name "\\sybase03\ong_uploads\Accounts\Account.csv"
    specified in the connection was not valid.”, the error occurs because of the UNC path is either does not exist or the access to it is denied to the current user. Please check this issue.
    Reference:
    Setting the Protection Level of Packages
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Why would the internet completely fail

    Yesterday for an unknown reason, My Imac's Internet and Wifi completely failed and I have no idea why it did this? Is there something that I am missing? What could have caused my wifi and my internet to fail? Why did it cause my ipod and Iphone's internet fail aswell? It is fixed know, I phoned an apple representitive and got it fixed. But I am just wondering why the internet and wifi failed on all my apple divices.

    In the Sustem/Network/Advanced/DNS preference pane check to see what DNS servers you're using.  If it's not one of the two below delete those that are there and add both of the two below.  See if that improves performance.  Note what servers were there in case you want to go back to them.
    208.67.222.222
    208.67.220.220
    OT

  • Why does the update keep failing?

    Every day for quite awhile I get a dialogue box saying the update failed. Otherwise Firefox works just fine.

    Try alternate and easiest way by downloading installer
    * getfirefox.com

  • Why does the program panel fail to match magnification of source panel?

    The magnification and resolution settings for both program & source panels are identical. However, the magnification on the program panel is much higher than the source. The rendered video, of course, is produced with the higher magnification thereby blocking out  a substantial % of the desired frame. What can I do to match the magnification of the source panel to the program panel? Thanks for your input in this regard!

    It sounds like your Sequence setting
    does not match your footage.
    Try this:
    Or, right-click a media file and select 'New Sequence From Clip".
    How do I choose the right sequence settings?
    http://www.video2brain.com/en/lessons/how-do-i-choose-the-right-sequence-settings

  • Backgroung job failing becuase RFC function module is running in Dialog

    Hi,
    I have a program which is calling a RFC function module. I am running this program in background as a job. Now this function module which is in other system is running in Dialog and giving a time out error and the job is failing becuase of that.
    I tried call fucntion 'test' in background task
        destination 'XVZ'
    tables
       test = 'test'.
    But this is not working, i can still see this function module running in Dialog in SM50. Any suggestion?
    Thanks,
    Shweta

    Hi !
    RFC-Called function-modules are running in a dialog workprocess of the
    target system (they could not run in a batch proecess !!).
    That means the do have the same "Timeout" limitations than any other
    Dialog-Process.
    What you can do:
    - The Dialog "Timeout" could ce increased by your SAP-BASIS
    - If they could not - you should "shorten" the LUWs in the target-funktion.
      ...means - put a COMMIT WORK an any point the work is done.
      After a COMMIT WORK the "Timeout" Counter beginns at 0 !
    Hope that helped....
    Reward points would be nice...

  • Why does the iTunes Store keep crashing on my iPhone 5 running ios7?

    The same question as the title.

    Pogster, yes thanks for the heads up but if enough of us post (and help each other), it trends and surely Apple gets the message.
    Interestingly the problem appeared again when I started iTunes with iPhone connected. All ok when i started without it connected (and used the previous fix) and have just imported a new CD without any crashes. Plugged in the iPhone and just synced/backed up OK.
    Perhaps a wild guess, but the latest iPhone upgrade is checking on the 'originality' of the connection cable.

Maybe you are looking for