Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 11 Dec 2003 21:39:49 -0000 1.3 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 26 Jan 2004 15:39:44 -0000 1.4 @@ -29,7 +29,7 @@ Change the OpenACS service's configuration file to point to the remote database. Edit - /web/service0/etc/config.tcl + /var/lib/aolserver/service0/etc/config.tcl and change to @@ -54,20 +54,17 @@ option. This command will drop the user and every database object the user owns. - -SVRMGR> drop user service0 cascade; + SVRMGR> drop user service0 cascade; If this does not work because svrmgrl "cannot drop a user that is currently connected", make sure to kill the AOLserver using this user. If it still does not work, do: - -SVRMGR> select username, sid, serial# from v$session where lower(username)='service0'; + SVRMGR> select username, sid, serial# from v$session where lower(username)='service0'; and then - -SVRMGR> alter system kill session 'sid,serial#'; + SVRMGR> alter system kill session 'sid, serial#'; where sid and serial# are @@ -78,8 +75,7 @@ If you feel the need to delete everything related to the service, you can also issue the following: - -SVRMGR> drop tablespace service0 including contents cascade constraints; + SVRMGR> drop tablespace service0 including contents cascade constraints; @@ -97,7 +93,7 @@ Then, to drop the db, just do: -service0:~$ dropdb service0 +[service0 ~]$ dropdb service0 DROP DATABASE @@ -119,13 +115,12 @@ Edit your crontab: - -joeuser:~$ crontab -e + [joeuser ~]$ crontab -e We'll set vacuum up to run nightly at 1 AM. Add the following line: -0 1 * * * /usr/local/pgsql/bin/vacuumdb birdnotes +0 1 * * * /usr/local/pgsql/bin/vacuumdb service0 ($Id$)