Linux下外掛程式儲存 總結收穫

2021-09-01 05:04:15 字數 2341 閱讀 4938

以伺服器41為例.

利用工具ssh進入到linux下.

127.0.0.1/123123

1. 首先進入到資料庫中執行啟動資料庫的命令,看看是否可以正常啟動,一般情況下是不能正常啟動的,因為有儲存沒有掛載上.

[root@new-jwtest /]# su - oracle           -- 進入 oracle 使用者

[oracle@new-jwtest ~]$ sqlplus "/as sysdba" -- 以管理員的身份進入資料庫

sql*plus: release 10.2.0.1.0 - production on sun apr 8 17:29:54 2012

connected to:

oracle database 10g enterprise edition release 10.2.0.1.0 - 64bit production

with the partitioning, olap and data mining options

sql> startup -- 啟動資料庫

sql> quit -- 退出資料庫

[oracle@new-jwtest ~]$ exit -- 退出oracle使用者

2. 執行 fdisk -l 檢視磁碟的分割槽情況(注意:-l是小寫的l)

[root@new-jwtest ~]# fdisk -l

disk /dev/sda: 146.5 gb, 146544787456 bytes

255 heads, 63 sectors/track, 17816 cylinders

units = cylinders of 16065 * 512 = 8225280 bytes

device boot start end blocks id system

/dev/sda1 * 1 25 200781 83 linux

/dev/sda2 26 2065 16386300 82 linux swap / solaris

/dev/sda3 2066 17816 126519907+ 83 linux

disk /dev/sdb: 1498.6 gb, 1498657587200 bytes

255 heads, 63 sectors/track, 182201 cylinders

units = cylinders of 16065 * 512 = 8225280 bytes

device boot start end blocks id system

/dev/sdb1 * 1 182201 1463529501 83 linux

3. 外掛程式儲存 mount

[root@new-jwtest /]# mount /dev/sdb1 /u03    -- 把儲存 /u03 掛在 /dev/sdb1

4.如果資料庫還是連不上,那麼需要對資料庫執行shutdown,再執行startup.

[root@new-jwtest /]# su - oracle           -- 進入 oracle 使用者

[oracle@new-jwtest ~]$ sqlplus "/as sysdba" -- 以管理員的身份進入資料庫

sql*plus: release 10.2.0.1.0 - production on sun apr 8 17:29:54 2012

connected to:

oracle database 10g enterprise edition release 10.2.0.1.0 - 64bit production

with the partitioning, olap and data mining options

sql> shutdown immediate -- 關閉資料庫

sql> startup -- 啟動資料庫

sql> quit -- 退出資料庫

[oracle@new-jwtest ~]$ lsnrctl start

-- 在oracle使用者下啟動監聽

-- 利用檢視儲存使用情況

df -h

linux 下 使用 obfs 外掛程式

生活所迫,不得不用 google 等洋玩意兒,最近 ss 又不給力,obfs在linux上又不好使,所以寫下來備忘 什麼是 ss2 我瞎改的名字,為了好記 有多餘的字元,記得去掉 wget gunzip shado wsocks2 linux.gz 這一步會刪除壓縮包 k 引數可以避免 chmod ...

linux儲存管理 下

linux儲存管理 上 檔案系統的型別 windows fat16 fat32 ntfs linux ext4 ext3 xfs 索引 目錄,字典的前十幾頁 ext4檔案系統 inode 記錄檔案的屬性 檔案的元資料metadata 乙個檔案占用乙個inode,同時記錄此檔案所在的block num...

linux下的檔案目錄和儲存結構總結

linux下並不存在c d e f盤,所有的檔案及目錄都是以樹形結構劃分的,並且每個檔案都規定了自己的作用範圍。每個目錄的具體作用 常用的一些目錄 目錄名稱 應放置檔案的內容 boot 開機所需檔案 核心,開機選單及所需配置檔案等 dev 任何裝置與介面都以檔案形式存放在此目錄 etc 配置檔案 h...