Windows啟動ServerDB Script
LocalDB.bat:
set PATH=E:\app\oracle\product\10.2.0\db_1\BIN;C:\Windows\System32;
set nls_lang=AMERICAN_AMERICA.UTF8;
sc start OracleOraDb10g_home1TNSListener
sc start OracleServiceBRUCE
ping localhost -n 15 >nul
lsnrctl status
sqlplus / as sysdba @e:\app\SelectDB.sql @e:\xxxxxx\plsql common use sql\sp
SelectDB.sql:
set pagesize 100
set linesize 160
--set timing on
col tablespace_name format a25
select x.tablespace_name,y.bytes/1024/1024 total_size_mb,x.bytes/1024/1024 free_size_mb,(y.bytes-x.bytes)/1024/1024 use_size_mb,round((y.bytes-x.bytes)/y.bytes,4)*100 usage
from
(select tablespace_name,sum(bytes) bytes from dba_free_space group by tablespace_name) x,
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) y
where x.tablespace_name=y.tablespace_name
order by 5 desc;
select instance_name from v$instance;
select open_mode from v$database;
set PATH=E:\app\oracle\product\10.2.0\db_1\BIN;C:\Windows\System32;
set nls_lang=AMERICAN_AMERICA.UTF8;
sc start OracleOraDb10g_home1TNSListener
sc start OracleServiceBRUCE
ping localhost -n 15 >nul
lsnrctl status
sqlplus / as sysdba @e:\app\SelectDB.sql @e:\xxxxxx\plsql common use sql\sp
SelectDB.sql:
set pagesize 100
set linesize 160
--set timing on
col tablespace_name format a25
select x.tablespace_name,y.bytes/1024/1024 total_size_mb,x.bytes/1024/1024 free_size_mb,(y.bytes-x.bytes)/1024/1024 use_size_mb,round((y.bytes-x.bytes)/y.bytes,4)*100 usage
from
(select tablespace_name,sum(bytes) bytes from dba_free_space group by tablespace_name) x,
(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name) y
where x.tablespace_name=y.tablespace_name
order by 5 desc;
select instance_name from v$instance;
select open_mode from v$database;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1778535/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- windows defender怎麼開啟 windows defender啟動方法Windows
- windows 啟動流程三Windows
- Windows 啟動過程Windows
- Windows環境啟動RocketMQWindowsMQ
- Windows 設定 FRP 自動啟動WindowsFRP
- windows啟動管理器未能啟動如何解決Windows
- Windows開機啟動指定程式Windows
- Windows 安裝包啟動PostgresqlWindowsSQL
- UEFI雙啟動Windows和LinuxWindowsLinux
- windows下啟動nacos服務Windows
- Windows10 開機自動啟動 VagrantWindows
- windows10怎麼關閉快速啟動_windows10關閉快速啟動的方法Windows
- windows10未能啟動怎麼修復_windows10無法啟動解決方法Windows
- [20231003]windows 2003無法啟動.txtWindows
- 標題:Windows系統啟動流程Windows
- 請說說`<script>`、`<script async>`和`<script defer>`的區別
- Script
- windows如何開機自動啟動某些應用?Windows
- windows10開機啟動項在哪裡_windows10開機啟動項怎麼設定Windows
- SpringBoot Windows 自啟動 - 透過 Windows Service 服務實現Spring BootWindows
- windows 下 MongoDB 的安裝與啟動WindowsMongoDB
- windows中啟動多個influxdb操作指南WindowsUX
- windows下命令列啟動tika的方法Windows命令列
- wsl 中啟動 Windows 的 *.exe 應用Windows
- windows 服務執行啟動桌面程式Windows
- windows下 power shell啟動,呼叫ssh命令Windows
- Windows啟動問題修復(重建活動分割槽)Windows
- VMware在windows自啟動,並開啟虛擬機器Windows虛擬機
- Shell Script
- shell script
- windows10系統設定快速啟動U盤啟動項的方法Windows
- 如何製作windows啟動盤 u盤製作win10啟動盤WindowsWin10
- UEFI雙系統設定ubuntu或windows優先啟動,u盤啟動UbuntuWindows
- Windows 上 Emacs 啟動的預設目錄WindowsMac
- 記windows自定義bat指令碼自啟動WindowsBAT指令碼
- [20190513]如何看windows的啟動時間.txtWindows
- Windows環境同時啟動多個TomcatWindowsTomcat
- 記一次Fidder Script自動修改包
- windows下啟動cmd,開啟指定目錄,執行指定命令Windows