--- JR SAS RECOVERY NOTES ---

-- Notes: 

cd /opt/docs/cd /opt/docs/StartUpScripts/
sh StopSAS
### If all the sas processes do not stop...
kill -9 `ps -ef | awk '$1~/sas/{print $2}'`
ps -ef |egrep ^sas


[root@busas StartUpScripts]# find /opt/ -name "*.pid" -print | grep -v Backup

/opt/docs/TarLogs/LOGS/httpd.pid
/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/VALIBLA/autoload.pid
/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/VisualAnalyticsAdministrator/autoload.pid
/opt/sasinside/sasconfig/Lev1/Applications/SASInformationRetrievalStudioforSAS/work/information-retrieval-studio-server.pid
/opt/sasinside/sasconfig/Lev1/Applications/SASInformationRetrievalStudioforSAS/work/query-statistics-server.pid
/opt/sasinside/sasconfig/Lev1/Applications/SASInformationRetrievalStudioforSAS/work/query-web-server.pid
/opt/sasinside/sasconfig/Lev1/SASStudioBasic/appserver/studio/logs/tcserver.pid
/opt/sasinside/sasconfig/Lev1/SASStudioBasic/spawner/spawner.pid

[root@busas StartUpScripts]# find /opt/ -name "*.pid" -print | grep -v Backup | xargs cat
34030
84623
84622
3730199078990833534
3505

[root@busas StartUpScripts]# find /opt/sasinside -name "*.pid" -print | grep -v Backup | xargs rm

[root@busas StartUpScripts]# find /opt/ -name "*.lck" -print | grep -v Backup
CHECK DATES
/opt/sasinside/sashome/deploymntreg/registry.lck
/opt/sasinside/sasconfig/Lev1/AppData/SASVisualAnalytics/VisualAnalyticsAdministrator/AutoLoad/VALIBLA/canned_class_list.sas7bdat.lck
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/log.bak/tmlog.lck
/opt/tivoli/tsm/client/ba/bin/tsmstats.lck

[root@busas StartUpScripts]# find /opt/ -name "*.lock" -print | grep -v Backup
/opt/sasinside/sashome/SASPrivateJavaRuntimeEnvironment/9.4/jre/.systemPrefs/.system.lock
/opt/sasinside/sashome/SASDeploymentAgent/9.4/p2/org.eclipse.equinox.p2.engine/profileRegistry/agent94Profile.profile/.lock
/opt/sasinside/sasconfig/Lev1/Applications/SASInformationRetrievalStudioforSAS/work/index/index.lock
/opt/tivoli/tsm/client/ba/bin/dsmopt.lock

/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs
/opt/sasinside/sasconfig/Lev1/Web/Logs/SASServer1_1


ls \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/Catalina/localhost/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/temp/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs/* \
/opt/sasinside/sasconfig/Lev1/Web/Logs/SASServer1_1/* \
/opt/sasinside/sasconfig/Lev1/WebInfrastructurePlatformDataServer/Logs/*

zip -ur /var/tmp/old-stuff.zip \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/Catalina/localhost/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/temp/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs/* \
/opt/sasinside/sasconfig/Lev1/Web/Logs/SASServer1_1/* \
/opt/sasinside/sasconfig/Lev1/WebInfrastructurePlatformDataServer/Logs/*

rm -rf \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/Catalina/localhost/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/work/temp/* \
/opt/sasinside/sasconfig/Lev1/Web/WebAppServer/SASServer1_1/logs/* \
/opt/sasinside/sasconfig/Lev1/Web/Logs/SASServer1_1/* \
/opt/sasinside/sasconfig/Lev1/WebInfrastructurePlatformDataServer/Logs/*

Rename or delete the following directory on the SASĀ® Visual Analytics server:
mv /opt/sasinside/sasconfig/Lev1/AppData/SASContentServer/Repository/workspaces/default/index \
   /opt/sasinside/sasconfig/Lev1/AppData/SASContentServer/Repository/workspaces/default/index-`date +"%Y-%m-%d"`

### Restart the SAS Web Servers.
cd /opt/docs/StartScrips
sh StartSAS


?????
    <Resource auth="Container" driverClassName="org.postgresql.Driver" factory="com.sas.vfabrictcsvr.atomikos.BeanFactory" maxPoolSize="100" minPoolSize="10" name="sas/jdbc/SharedServices" password="${pw.sas.jdbc.SharedServices}" testQuery="select 1" type="com.atomikos.jdbc.nonxa.AtomikosNonXADataSourceBean" uniqueResourceName="sas/jdbc/SharedServices" url="jdbc:postgresql://busas.binghamton.edu:9432/SharedServices" user="SharedServices"/>
------------


Valid HTML 4.01!