Solved

sybase, installing job template failed

Posted on 2009-07-13
6
1,536 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
 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

 
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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

First of all let me say that the only language that I speak is English, but in answering questions here I often come across people whose English skills are not the best and I’d like to be able to communicate better with them, and the following descr…
A look at what happened in the Verizon cloud breach.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

636 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