記一次linux靜默安裝oracle加手工建庫

來源:互聯網
上載者:User

標籤:ras   資料   root   rzsz   prot   ace   跳過   add   修複   

靜默安裝參考: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用戶端會連不上

記一次linux靜默安裝oracle加手工建庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.