安裝oracle之后執(zhí)行dbca的時(shí)候報(bào)錯(cuò);
超過十年行業(yè)經(jīng)驗(yàn),技術(shù)領(lǐng)先,服務(wù)至上的經(jīng)營(yíng)模式,全靠網(wǎng)絡(luò)和口碑獲得客戶,為自己降低成本,也就是為客戶降低成本。到目前業(yè)務(wù)范圍包括了:成都做網(wǎng)站、網(wǎng)站建設(shè),成都網(wǎng)站推廣,成都網(wǎng)站優(yōu)化,整體網(wǎng)絡(luò)托管,成都小程序開發(fā),微信開發(fā),App定制開發(fā),同時(shí)也可以讓客戶的網(wǎng)站和網(wǎng)絡(luò)營(yíng)銷和我們一樣獲得訂單和生意!
sh:/bin/ksh:Nosuch file or directory
懷疑是沒有安裝ksh包,yum installksh
搞定!
File “/etc/oratab” is not accessible
原來是沒有執(zhí)行root.sh腳本,在oracle的家目錄下(cd$ORACLE_HOME)product/11.2.0/db_1/ 目錄下執(zhí)行./root.sh
執(zhí)行之后還是有報(bào)錯(cuò),
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name'LISTENER_ORCL'
懷疑是監(jiān)聽的問題,lsnrctlstart啟動(dòng)失敗,具體的報(bào)錯(cuò)信息既不清楚了,于是重新添加監(jiān)聽。
執(zhí)行netca的時(shí)候報(bào)錯(cuò);
TNS-12545 Connect failed because target host or object does not exist
經(jīng)過檢查是由于tnsname.ora文件不存在導(dǎo)致的,因?yàn)閛racle不是我安裝的,不太清楚為什么沒有這個(gè)文件。于是從其他服務(wù)器上拷貝了一份過來:
# tnsnames.ora Network Configuration File:/u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
Oracle11g=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL =TCP)(HOST = *.*.*.*)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = orcl)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL =TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
拷貝之后執(zhí)行l(wèi)snrctl,監(jiān)聽啟動(dòng)成功。
執(zhí)行startup的時(shí)候
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
root@test~]# cat /etc/fstab | grep tmpfs
tmpfs /dev/shm tmpfs defaults 0 0
重新掛載shm分區(qū) mount -oremount,size=8G /dev/shm
修改fstab使其永久生效vi/etc/fstab
/dev/mapper/vg_ccbfpp-lv_home/home ext4 defaults 1 2
/dev/mapper/vg_ccbfpp-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=16g 0 0
df -h|grepshm
tmpfs 8G 0 16G 0% /dev/shm
SQL>startup
ORACLE instancestarted.
Total SystemGlobal Area 9420095488 bytes
FixedSize 2236248 bytes
VariableSize 2315255976 bytes
DatabaseBuffers 7046430720 bytes
RedoBuffers 56172544 bytes
Databasemounted.
Databaseopened.
SQL> exit
真是一波三折啊。