2018年10月29日 星期一

ORA-01115 + ORA-01110 + ORA-27072 錯誤處理

ORA-01115 + ORA-01110 + ORA-27072 錯誤處理
ORACLE TABLE SPACE 移除失敗
因為從作業系統中,已經先將 TABLESPACE DATAFILE 檔案 刪除了 '/oracle/app/oracle/oradata/TBS_AAA_01.dbf'

DROP TABLESPACE TBS_AAA
*
ERROR at line 1:
ORA-01115: IO error reading block from file 16 (block # 1)
ORA-01110: data file 16: '/oracle/app/oracle/oradata/TBS_AAA_01.dbf'
ORA-27072: File I/O error
Linux-x86_64 Error: 2: No such file or directory
Additional information: 4
Additional information: 1

這時候可以用以下指令來移除無效的 DATAFILE
alter database datafile '/oracle/app/oracle/oradata/TBS_AAA_01.dbf'' offline drop;

然後再進行 DROP TABLESPACE
DROP TABLESPACE TBS_AAA INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;

參考文章 https://community.hpe.com/t5/General/No-datafile-can-t-drop-recreate-tablespace/td-p/2868288#.W9bSIEszaUk

2018年6月21日 星期四

透過 VBoxManage 來控制 VirtualBox

 以下資料取自 http://rainstingtw.blogspot.com/2012/09/use-VBoxManage-to-control-VirtualBox.html

透過 VBoxManage 來控制 VirtualBox 

9月 27, 2012
在 VirtualBox 內,除了透過圖形化介面來控制我們的虛擬機器外,
也可透過下 command 的方式來控制我們的虛擬機。

這裡來紀錄一下,如何透過 VBoxManage 這個內建的 command 來控
制 VirtualBox:,以下就介紹幾個常用的:

1. How to show the VirtualBox VM info
VBoxManage showvminfo

2. How to show the VM Harddrive info
VBoxManage showhdinfo

3. How to list running VM
VBoxManage list runningvms

4. How to list available VM
VBoxManage list vms

5. How to list available VM Harddrives
VBoxManage list hdds

6. How to list available ISO’s
VBoxManage list dvds

然後這裡列出如何透過 command 來直接控制 VM:

7. How to Start VM

這裡要注意,透過在前面增加前綴字「nohup」,可以確保離開 console 後,
我們的 VM 還能在背景執行:

nohup VBoxHeadless --startvm "vmname"
P.S. 這邊建議改用"&" VBoxHeadless --startvm "vmname" &, 這樣程序就會直接進入背景執行效果相同

8. How to pause VM
VBoxManage controlvm "vmname" pause

9. How to resume VM
VBoxManage controlvm "vmname" resume

10. How to reset VM
VBoxManage controlvm "vmname" reset

11. How to poweroff VM (hard poweroff eg. pull the plug)
VBoxManage controlvm "vmname" poweroff

12. How to send poweroff single to VM (tells VM OS to shutdown)
VBoxManage controlvm "vmname" acpipowerbutton

13. How to attach a DVD / CD to a running vm
VBoxManage controlvm "vmname" dvdattach "filename"

14. How to de-attach a DVD / CD from a running vm
VBoxManage controlvm "vmname" dvdattach none

15. How to find out the VM IP
VBoxManage guestproperty get "vmid" "/VirtualBox/GuestInfo/Net/0/V4/IP"

2018年6月13日 星期三

移除預載OFFICE365,第一個成功,第二個就無法成功,錯誤訊息30180-4

今天要幫一部新電腦移除預載的OFFICE 365,第一個成功,第二個就無法成功,錯誤訊息30180-4
上網查了一下,"從電腦解除安裝 Office",有個好工具可以協助處理,點選下載按鈕,就可以下載移除工具,而且比你一個一個的移除要快得多了。


2018年6月6日 星期三

Notepad++ 不要開啟上次未關閉的檔案

2018.06.06

v6.7.7 5
設定-> 使用者自訂 -> 備份 -> 為下次開啟程式記住開檔狀態(不打勾) -> 關閉
重新啟動Notepad++即生效

真的找很久......
沒有人建議一下這設定的位置很奇怪嗎?