วันพฤหัสบดีที่ 28 พฤศจิกายน พ.ศ. 2562

การล้างข้อมูลในฐานข้อมูลและโหลด Config ใหม่ให้ DSpace CRIS

การล้างข้อมูลนั้นเราทำหลายครั้งก่อนที่เราจะใช้งาน DSpace CRIS จริงๆ เพราะว่าต้องทดลองใช้งานหลาย ๆ อย่าง จึงทำให้ฐานข้อมูลมีข้อมูลที่เราไม่ใช้จำนวนมาก
bash/shell $dspace
1
2
3
4
5
6
7
8
9
10
11
12
sudo su - postgres
 
psql dspace -c "DROP EXTENSION pgcrypto;"
exit;
 
sudo /data/dspace/bin/dspace database info
sudo /data/dspace/bin/dspace clean
 
 
sudo su - postgres
psql dspace -c "CREATE EXTENSION pgcrypto;"
exit;
bash/shell $dspace
1
2
3
4
# - load-cris-configuration: Load CRIS configuration from an XLS file
# - export-cris-configuration: Export CRIS configuration from an XLS file
 
sudo /data/dspace/bin/dspace load-cris-configuration -f /data/upload/configuration.xls

การ Load Registry ครั้งแรกเมื่อทำการ Load แล้วให้เราทำการ Restart Server ก่อน 1 ครั้งสำหรับ Registry Schema ใหม่
bash/shell $dspace
1
sudo /data/dspace/bin/dspace registry-loader -metadata /data/upload/patent-types.xml

ไม่มีความคิดเห็น:

แสดงความคิดเห็น