靜默安裝參考:http://www.cnblogs.com/colmeluna/p/5686142.html 實際安裝中: 1.跳過了第二步設定交換區空間 2.安裝完成後沒有提示執行orainstRoot.sh,只有root.sh 建庫參考:http://www.cnblogs.com/jyzhao ...
靜默安裝參考:http://www.cnblogs.com/colmeluna/p/5686142.html
實際安裝中:
1.跳過了第二步設定交換區空間
2.安裝完成後沒有提示執行orainstRoot.sh,只有root.sh
建庫參考:http://www.cnblogs.com/jyzhao/p/4635826.html
實際建庫中:
1.只執行了第二步,手工建庫部分
2.修改文件存放路徑 /opt/app/oracle/oradata/crnophq -> /usr/local/oradata/orcl
3.修改資料庫名 crnophq -> orcl
4.修複建庫腳本執行錯誤 ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type,
修改 UNDO TABLESPACE undotbs -> UNDO TABLESPACE UNDOTBS1
參考:http://blog.csdn.net/tw7752/article/details/44453585?locationNum=3)
配置監聽
SID_LIST_LISTENER =
(
SID_LIST =
(
SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /usr/local/oracle/product/11.2.0/db_1)
(SID_NAME = orcl)
)
)
LISTENER =
(
DESCRIPTION =
(
ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.199.129)(PORT = 1521)
)
)
啟動監聽:lnsrctl start
客戶端連接,success!
Tips:
1.sqlplus中退格鍵處理,.bash_profile中加上stty erase ^H
2.xshell文件上傳,yum install lrzsz,上傳:rz
3.lnsrctl記不住,全拼:listener control,這樣好記
4.監聽里配置的實例名大小寫敏感,ORCL客戶端會連不上