Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

sybase, installing job template failed

Posted on 2009-07-13
6
Medium Priority
?
1,549 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 1000 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 6

Accepted Solution

by:
IncisiveOne earned 1000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

722 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