Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Help! Can’t trim event log. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: August 02 2014 at 09:22 | IP Logged Quote jeffw_00

Hi - I had a macro that trimmed my event log to 15 days once a week. I just discovered it stopped working back in December 2013(!). The error it generates is

AN error occurred while trimming the eventlog table.
SQLSTATE = S1000
[Sybase][ODBC Driver][Adaptive Server ANywhere]General error: Unable to find in index 'eventlog' for table 'eventlog'

How do I fix? (Still running 2.1.4) if I have to clear the entire log that's cool.

Thanks!
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 04 2014 at 19:59 | IP Logged Quote dhoward

Jeff,

Looks like the database (eventlog) is corrupt (probably grew to large).

Since you're on version 2.1.4, I would run the Database upgrade utility and check the option to not migrate eventlog entries. This will rebuild and compact your database and should fix your problem.

An alternative would be to update to version 2.1.5a which will not bring over your eventlog entries (you'll start fresh). Additionally, this version separates out the eventlog into its own database so if it does corrupt or grow too large, it won't affect your other configuration data.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: August 04 2014 at 20:14 | IP Logged Quote jeffw_00

Hi Dave - Thanks! No offense, but I'm going to let others bolder than me beta 2.1.5 for a bit (I'm flat out at work so I just need things to run). Sounds like one option is to do nothing until I upgrade, but - if i ran the Database upgrade utility (after making a copy of my PH folder, of course), I don't mean to be dim, but what is the exact command?   Do I just double-click on phupg.exe in the powerhome (2.1.4) folder?

Thanks!
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: August 04 2014 at 20:42 | IP Logged Quote BeachBum

Jeff, quick answer is yes. That should fix it.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: August 04 2014 at 20:53 | IP Logged Quote jeffw_00

ok. thx. will try it soon
/j
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: August 08 2014 at 11:44 | IP Logged Quote jeffw_00

fixed it -thanks!
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
RichardL
Senior Member
Senior Member


Joined: December 29 2008
Location: United States
Online Status: Offline
Posts: 165
Posted: August 12 2016 at 16:50 | IP Logged Quote RichardL

I trim my Event log nightly, so all has been well. Was doing some maintenance and disabled the timed event to trim the log, then forgot to re-enable it. So...now my PHLogs.DB is 177MB.

I ran PHUpg.exe, saw it run by many tables, and it rebuilt my pwrhome.db file from 4MB to 3MB, good, but my PHLogs.DB is still 177MB.

I tried to delete it and when I start PH I get challenged with a login for the database, which I do not know. Even if I go around that, PH does not start. Put the PHLogs.db file back for now.

Any way to shrink the PHLogs.DB file?

Thank you.

Richard
Back to Top View RichardL's Profile Search for other posts by RichardL
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 12 2016 at 18:54 | IP Logged Quote dhoward

Richard,

You're on the right track. Go ahead and delete the
phlogs.db file and then copy the phlogs10.db (in the
same directory) to phlogs.db.

The phlogs10.db is just an empty logs file for just this
type of situation .

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
RichardL
Senior Member
Senior Member


Joined: December 29 2008
Location: United States
Online Status: Offline
Posts: 165
Posted: August 13 2016 at 09:31 | IP Logged Quote RichardL

Beautiful! That worked fine.

Thanks so much for the quick reply.    
Back to Top View RichardL's Profile Search for other posts by RichardL
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

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