Oracle 11g 手工建庫

來源:互聯網
上載者:User

標籤:oracle   11g   手動建庫   

1、匯出ORACLE_SID

export ORACLE_SID=n1

2、建立檔案夾

mkdir /u01/app/oracle/product/admin/adump -p

mkdir /u01/app/oracle/product/admin/bdump -p

mkdir /u01/app/oracle/product/admin/cdump -p

mkdir /u01/app/oracle/product/admin/udump -p

mkdir /u01/app/oracle/product/admin/pfile -p

mkdir /u01/app/oracle/product/admin/create -p

mkdir /u01/app/oracle/oradata/n1

3、建立參數檔案

在其中填寫

db_name=n1

control_files=(/u01/app/oracle/oradata/control01.ctl)

4、建立服務

oradism -new -sid n1

5、建立口令檔案

orapwd file=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/pwdn1.ora password=oracle

6、啟動執行個體到NOMOUT

startup nomount pfile=‘xxxx‘;

7、建立庫檔案

CREATE DATABASE N1
DATAFILE ‘/u01/app/oracle/oradata/n1/system01.dbf‘ SIZE 300M AUTOEXTEND ON NEXT 10M EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE ‘/u01/app/oracle/oradata/n1/sysaux01.dbf‘ SIZE 150M
UNDO TABLESPACE UNDOTBS1 DATAFILE ‘/u01/app/oracle/oradata/n1/undotbs01.dbf‘ SIZE 100M
DEFAULT TEMPORARY TABLESPACE TEMPTABLS1 TEMPFILE ‘/u01/app/oracle/oradata/n1/temp01.dbf‘ SIZE 100M
LOGFILE
GROUP 1 (‘/u01/app/oracle/oradata/n1/redo01.log‘) SIZE 100M,
GROUP 2 (‘/u01/app/oracle/oradata/n1/redo02.log‘) SIZE 100M,
GROUP 3 (‘/u01/app/oracle/oradata/n1/redo03.log‘) SIZE 100M;

8、建立資料字典

start /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/catalog

start /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/catproc

9、執行pupbld.sql指令碼

conn system/manager

start /u01/app/oracle/product/11.2.0/dbhome_1/sqlplus/admin/pupbld

建立完畢。


Oracle 11g 手工建庫

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.