SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running 24x7 as Service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running 24x7 as Service
Author Message
Shawn Martin



Joined: 15 Nov 2004
Posts: 15

Post Running 24x7 as Service Reply with quote

We are currently running 24x7 as a service. We have one job
that does not run when fired from 24x7 running as a service, however,
when the job is kicked off manually it runs as expected without
errors. Why does the job not run correctly when 24x7 is running as a service?
Is there something we are missing?

Also, when the job runs as a service the email notification fails, but when fired
manually the email notification works.

Thanks.

Wed Jan 26, 2005 10:11 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Running 24x7 as Service Reply with quote

Not every job can be launched by a service. Please see "Service (Windows NT specifics)" topic in the on-line help that discusses differences between running 24x7 as a service and as a standalone server.

If you need the service to access any network resources don't use LocalSystem account for the service. We recommend using domain admin account in order to have the service start automatically when computer starts and have acce4ss to the network.

If you need to send email (which is just another type of network access) don't use MAPI email interface in 24x7 it will not work. Instead use SMTP email interface (see Tools/Options menu General page)

: We are currently running 24x7 as a service. We have one job
: that does not run when fired from 24x7 running as a service, however,
: when the job is kicked off manually it runs as expected without
: errors. Why does the job not run correctly when 24x7 is running as a service?
: Is there something we are missing?

: Also, when the job runs as a service the email notification fails, but when
: fired
: manually the email notification works.

: Thanks.

Wed Jan 26, 2005 10:24 am View user's profile Send private message
Shawn Martin



Joined: 15 Nov 2004
Posts: 15

Post Re: Running 24x7 as Service Reply with quote

: Not every job can be launched by a service. Please see "Service (Windows
: NT specifics)" topic in the on-line help that discusses differences
: between running 24x7 as a service and as a standalone server.

: If you need the service to access any network resources don't use LocalSystem
: account for the service. We recommend using domain admin account in order
: to have the service start automatically when computer starts and have
: acce4ss to the network.

: If you need to send email (which is just another type of network access)
: don't use MAPI email interface in 24x7 it will not work. Instead use SMTP
: email interface (see Tools/Options menu General page)

The job now fires when 24x7 is not running as a service, and the email notification is
sent. However, there are tables that should be updated when the job runs that are not getting
updated. When the job is fired manually these tables do get updated. How do I troubleshoot
this when the job works as expected when fired manually. Also, no errors are ever produced.
What could cause this?

Sun Jan 30, 2005 5:05 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Running 24x7 as Service Reply with quote

Please let us know more that job (database type , connection, method, etc…). Is this is database job or script job or program job. Do you use the same user for the db connection? Is the connection type trusted OS or db authenticated. What database you connect to? Does it matter when you run the job (I mean timing)? What about other processes running in db and updating same tables concurrently?

: The job now fires when 24x7 is not running as a service, and the email
: notification is
: sent. However, there are tables that should be updated when the job runs that
: are not getting
: updated. When the job is fired manually these tables do get updated. How do I
: troubleshoot
: this when the job works as expected when fired manually. Also, no errors are
: ever produced.
: What could cause this?

Mon Jan 31, 2005 1:29 am View user's profile Send private message
Shawn Martin



Joined: 15 Nov 2004
Posts: 15

Post Re: Running 24x7 as Service Reply with quote

: Please let us know more that job (database type , connection, method, etc…).
: Is this is database job or script job or program job. Do you use the same
: user for the db connection? Is the connection type trusted OS or db
: authenticated. What database you connect to? Does it matter when you run
: the job (I mean timing)? What about other processes running in db and
: updating same tables concurrently?

This job runs different connections and processes to different databases. I have
played with the time it runs, and still the job will run and send a notification
email, but no tables update. When I fire the job manually everything updates as it should.
This job involves running SQL DTS command lines to pull data from SQL database. Then it connects
to an Oracle database for a data import, runs a SQL Plus script, and then disconnects.
Next step is to connect to SQL database and run 3 stored procedures. The final step is to
run file backups.

All this is handled with JAL script. The connections hold the user login
information. We use an ODBC connection for the SQL connection using trusted login, not
win autheticated, and we use Oracle 8.0.4 connection to connect to Oracle using Asych and
Auto Commit options.

Like I said, the job runs perfectly when fired manually, but does not update any records when
fired on schedule. However, no errors are returned, and the email notification that the job
finished is sent.

We appreciate your help. Hope this information will help discover the problem.

Thanks.


Wed Feb 02, 2005 2:38 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Running 24x7 as Service Reply with quote

Ok, let's start with the JAL job first.
1. Does the job have "Ignore Errors" option checked?
2. If no, do you use script-level error handling like OnErrorResumeNext or OnErrorGoTo?

If either 1 or 2 are yes, turn them off and let the job run. If it produces any errors, please let us know. If both answers are "no", see the following items.

3. You said the job imports some data to Oracle, so I assume this is the place where the data isn't loaded (you didn't say where you don't get tables updated in SQL server (results of stored procedures) or in Oracle results of import or results of SQL*Plus script).

If my assumption is wrong please stop reading here and provide more details.

Right after the import line (or lines if you import multiple tables) insert 2 extra lines for each DatabaseImport for writing to the job log how many rows have been imported. Here is an example script

DatabaseImport ( "table name", "file name", rows)
Concat( rows, " rows imported from [file name] ", message)
LogAddMessageEx( "INFO", @V"job_id", "@V"job_name"", message)

Let the script run and see how many rows imported. If the number is zero the problem is file related (are files accessible at the time when the job is run? network access issues?), if it is not but there is no data imported then see the next step

4. Enable database tracing option (Tools/Options/ menu Log page). When then job runs on schedule (you must be present there) it will prompt for the trace file name. Simply click the OK button on the displayed message box and let it run. After completion open the Log Viewer (Tools/Log Viewer menu) and check the database trace log. Look for unusual behavior.

5. If everything looks ok check if the data is there. If it is there check one more time for other jobs, perhaps scheduled directly in your Oracle database or someplace else that run after your job and delete the imported data or do some kind of "clean up" process.

: This job runs different connections and processes to different databases. I
: have
: played with the time it runs, and still the job will run and send a
: notification
: email, but no tables update. When I fire the job manually everything updates
: as it should.
: This job involves running SQL DTS command lines to pull data from SQL
: database. Then it connects
: to an Oracle database for a data import, runs a SQL Plus script, and then
: disconnects.
: Next step is to connect to SQL database and run 3 stored procedures. The
: final step is to
: run file backups.

: All this is handled with JAL script. The connections hold the user login
: information. We use an ODBC connection for the SQL connection using trusted
: login, not
: win autheticated, and we use Oracle 8.0.4 connection to connect to Oracle
: using Asych and
: Auto Commit options.

: Like I said, the job runs perfectly when fired manually, but does not update
: any records when
: fired on schedule. However, no errors are returned, and the email
: notification that the job
: finished is sent.

: We appreciate your help. Hope this information will help discover the
: problem.

: Thanks.

Wed Feb 02, 2005 3:06 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.