If MID Tier does not start do the following.
Do the following steps to do the vacuum and repair.
Set up the environment variables to access the database: you will need to change <SASHome> to your actual SASHome directory
export POSTGRES_HOME=<SASHome>/SASWebInfrastructurePlatformDataServer/9.4
export PATH=${POSTGRES_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${POSTGRES_HOME}/lib:$LD_LIBRARY_PATH
Then try running the following commands
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d SharedServices -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "SharedServices";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d SharedServices -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d Administration -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "Administration";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d Administration -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d EVManager -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "EVManager";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d EVManager -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d VDBService -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "VDBService";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d VDBService -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d postgres -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "postgres";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d postgres -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d transportsvcs_db -h localhost.com -p 9432 -U dbmsowner -c 'reindex database "transportsvcs_db";'
<SASHome>/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -d transportsvcs_db -h localhost.com -p 9432 -U dbmsowner -c "vacuum full verbose analyze;"
Comments
Post a Comment