Solved

sybase, installing job template failed

Posted on 2009-07-13
6
1,523 Views
Last Modified: 2012-05-07
Hi,
I have install and configure the sybase job scehduler, now I want to have the job template, everytime when I executed below command, I still see nothing in Job template folder in sybase central 4.3, do you guys have ny idea on error below ?

D:\sybase\ASE-15_0\jobscheduler\Templates\xml>installTemplateXml.bat TestX01 TestX01 5012 z4ki term#3 en



----------------------------------------------------------------
                  W E L C O M E   T O

  TemplateImport Utility [version 1.11]    Jul 13, 2009 4:32:08 PM

    Runtime Switches:

    TemplateImport Properties:

               Server_Machine_Name: TestX01
                       Server_Name: TestX01
                       Server_Port: 5012
     Template_Description_Override: Updates table or index statistics for all
user databases where criteria are met.
      Template_Group_Path_Override: Statistics Management
                 Template_Language: en
            Template_Name_Override: Sybase Server Update Statistics Template
         Template_Version_Override: 3.0
                 Template_XML_File: en\SybSvrUpdateStatsTemplate.xml
----------------------------------------------------------------
Reading XML File: en\SybSvrUpdateStatsTemplate.xml
XML File Read Completed Successfully
Creating Initial Template Record
SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection refused: connect
Exception in thread "main" java.lang.NullPointerException
        at com.sybase.util.template.Connection.open(Connection.java:231)
        at com.sybase.util.template.TemplateBase.getConnection(TemplateBase.java:3234)
        at com.sybase.util.template.TemplateBase.execUpdate(TemplateBase.java:3151)
        at com.sybase.util.template.TemplateBase.createTemplate(TemplateBase.java:2240)
        at com.sybase.util.template.TemplateImport.importTemplate(TemplateImport.java:418)
        at com.sybase.util.template.TemplateImport.mainRoutine(TemplateImport.java:361)
        at com.sybase.util.template.TemplateImport.main(TemplateImport.java:349)
D:\sybase\ASE-15_0\jobscheduler\Templates\xml>


On checking, I'm trying to start my job scheduler but its failing <sp_js_wakeup start_js,1> I did the same from sybase central but still error.


00:02236:04888:2009/07/13 17:11:35.86 jamain  SYB_JSAGENT connected with Job Scheduler Task on port 5012
00:02236:04888:2009/07/13 17:11:35.86 jamain  SYB_JSAGENT waiting for connection
00:02236:04888:2009/07/13 17:11:36.75 jamain  Initializing SYB_JSAGENT
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating list resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating queue resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Allocating thread resources.
00:02236:04888:2009/07/13 17:11:36.75 jamain  Initializing connection pool.
00:02236:04888:2009/07/13 17:11:36.78 jamain  Client message: ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed.
00:02236:04888:2009/07/13 17:11:36.78 jamain  ct_connect() failed.
00:02236:04888:2009/07/13 17:11:36.78 jamain  jsd_MakeConnection() failed
00:02236:04888:2009/07/13 17:11:36.78 jamain  jsj_AddConxs() failed
00:02236:04888:2009/07/13 17:11:36.78 jamain  Initialization failed initializing connection pool
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 6

Assisted Solution

by:IncisiveOne
IncisiveOne earned 500 total points
ID: 24844756
What is the connection string you are using, is the login and password valid.

Cheers
0
 

Author Comment

by:motioneye
ID: 24845643
Hi,
For the first issue is now working fine

installTemplateXml.bat TestX01 TestX01 5012 z4ki term#3 en -- 5012 for job scheduler

Now I change to db engine port which is 5000 and it worked to distribute the template

for the second issue with problem to start job scheduler, not sure which account I use to start it, but I did grant my self with privilleges as per documentation.
0
 

Author Comment

by:motioneye
ID: 24846891
I'm checking from log and found something here, what is actually user that we need here ??

00:00000:00013:2009/07/14 15:13:31.39 server  Error: 571, Severity: 16, State: 1
00:00000:00013:2009/07/14 15:13:31.39 server  Invalid user specified, password left unchanged.
00:00000:00013:2009/07/14 15:13:31.51 kernel  Job Scheduler Task lost its Agent connection (No error)
00:00000:00013:2009/07/14 15:13:37.51 kernel  Job Scheduler Task failed (re)connecting to its Agent (No error)
00:00000:00013:2009/07/14 15:13:37.51 kernel  Job Scheduler Task state set to stop
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 6

Accepted Solution

by:
IncisiveOne earned 500 total points
ID: 24854805
1  Follow the documentation, it is slightly different for each version.

2  Personally, I prefer to add a login "JobScheduler"; give it the required privileges (roles); then always use that login for the JobScheduler to log in to whatever it needs, anywhere.  It shows up nicely in sp_who, etc.

Cheers

0
 

Author Comment

by:motioneye
ID: 24855605
Hi,
Yes just follow the documentation faithfully, but I confuse why still can't start the JS.. as u can see from screen shot document, its quite straight forward then the agent shud able to start before adding JS user..
sybase-doc.bmp
0
 
LVL 6

Expert Comment

by:IncisiveOne
ID: 24901353
Ok, that seems to be a new question.  Go ahead and ask.

Cheers
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The goal of this blog is to: > note what has impeded us from reaching effective life on-call > provide 3 steps to mastering life on-call > highlight what will be achieved with effective life on-call
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question