手動建庫步驟 10g for linux
1.設定SID
export ORACLE_SID=ocm
export ORACLE_SID=ocm
2.建立口令檔案
orapwd file=/u01/app/oracle/product/10.2.0/db_1/dbs/orapwocm password=sys
orapwd file=/u01/app/oracle/product/10.2.0/db_1/dbs/orapwocm password=sys
3.準備引數檔案init.ora
db_name=ocm
compatible=10.2.0
control_files=(/u01/app/oracle/oradata/control01.dbf,/u01/app/oracle/oradata/control02.dbf,/u01/app/oracle/oradata/control03.dbf)
sga_target=300M
db_block_size=8192
processes=300
undo_management=AUTO
background_dump_dest=/u01/app/oracle/admin/ocm/bdump
core_dump_dest=/u01/app/oracle/admin/ocm/cdump
user_dump_dest=/u01/app/oracle/admin/ocm/udump
準備好相應目錄
db_name=ocm
compatible=10.2.0
control_files=(/u01/app/oracle/oradata/control01.dbf,/u01/app/oracle/oradata/control02.dbf,/u01/app/oracle/oradata/control03.dbf)
sga_target=300M
db_block_size=8192
processes=300
undo_management=AUTO
background_dump_dest=/u01/app/oracle/admin/ocm/bdump
core_dump_dest=/u01/app/oracle/admin/ocm/cdump
user_dump_dest=/u01/app/oracle/admin/ocm/udump
準備好相應目錄
4.連線instance
sqlplus / as sysdba
sqlplus / as sysdba
5.建立SPFILE(推薦)
create spfile from pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/init.ora';
shutdown;
exit
create spfile from pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/init.ora';
shutdown;
exit
6.start instance
startup nomount
startup nomount
7.create database statement
CREATE DATABASE ocm
USER SYS IDENTIFIED BY sys
USER SYSTEM IDENTIFIED BY sys
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/redo01.log') SIZE 50M,
GROUP 2 ('/u01/app/oracle/oradata/redo02.log') SIZE 50M,
GROUP 3 ('/u01/app/oracle/oradata/redo03.log') SIZE 50M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET ZHS16GBK
NATIONAL CHARACTER SET AL16UTF16
DATAFILE '/u01/app/oracle/oradata/system01.dbf' SIZE 325M REUSE
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/u01/app/oracle/oradata/sysaux01.dbf' SIZE 325M REUSE
DEFAULT TABLESPACE tbs_1
DATAFILE '/u01/app/oracle/oradata/tbs01.dbf' SIZE 100M REUSE(官方文件缺此行)
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE '/u01/app/oracle/oradata/temp01.dbf'
SIZE 20M REUSE
UNDO TABLESPACE undotbs
DATAFILE '/u01/app/oracle/oradata/undotbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
CREATE DATABASE ocm
USER SYS IDENTIFIED BY sys
USER SYSTEM IDENTIFIED BY sys
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/redo01.log') SIZE 50M,
GROUP 2 ('/u01/app/oracle/oradata/redo02.log') SIZE 50M,
GROUP 3 ('/u01/app/oracle/oradata/redo03.log') SIZE 50M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET ZHS16GBK
NATIONAL CHARACTER SET AL16UTF16
DATAFILE '/u01/app/oracle/oradata/system01.dbf' SIZE 325M REUSE
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/u01/app/oracle/oradata/sysaux01.dbf' SIZE 325M REUSE
DEFAULT TABLESPACE tbs_1
DATAFILE '/u01/app/oracle/oradata/tbs01.dbf' SIZE 100M REUSE(官方文件缺此行)
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE '/u01/app/oracle/oradata/temp01.dbf'
SIZE 20M REUSE
UNDO TABLESPACE undotbs
DATAFILE '/u01/app/oracle/oradata/undotbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
8.建立其它表空間(如需要)
9.Run Scripts to Build Data Dictionary Views
connect / as sysdba
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
exit
connect / as sysdba
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
exit
10.Run Scripts to Install Additional Options (Optional)
11.Back Up the Database
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17997/viewspace-722933/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 拋開dbca,手動建庫步驟
- 手動建立資料庫步驟資料庫
- oracle手動建庫詳細步聚Oracle
- 水煮oracle28----oracle手工建庫步驟Oracle
- Oracle資料庫啟動步驟Oracle資料庫
- oracle手動建庫Oracle
- 【轉】ORACLE 10G R1手工建立資料庫步驟 --space6212Oracle 10g資料庫
- ORACLE 10G DATAGUARD實戰步驟Oracle 10g
- oracle 之 手動建庫Oracle
- ORACLE RAC 手動建庫Oracle
- 手動建庫備註
- 9I 資料庫升級到10g的步驟資料庫
- UBUNTU手動安裝JDK的詳細步驟UbuntuJDK
- 手動進行oracle rac vip 漂移的步驟 。Oracle
- 使用DG庫資料檔案建開發測試庫步驟
- ORACLE 10G data guard 升級步驟Oracle 10g
- 手動建立資料庫(windows)10G資料庫Windows
- oracle 手動建庫詳解Oracle
- Oracle資料庫例項啟動步驟分析Oracle資料庫
- ORACLE啟動步驟Oracle
- Oracle:RAC關閉、啟動、重啟步驟:10g、11gOracle
- Linux script 命令記錄(資料庫)操作步驟Linux資料庫
- Linux 安裝步驟Linux
- linux下mount步驟Linux
- oracle 10g資料庫表空間遷移之詳細步驟Oracle 10g資料庫
- oracle 10g資料庫之表空間遷移詳細步驟Oracle 10g資料庫
- AIX5.3安裝oracle 10g 步驟AIOracle 10g
- Oracle 10G重建OEM 的簡單步驟Oracle 10g
- oracle 10g rac em重建實施步驟Oracle 10g
- oracle 10g dg切換步驟記錄Oracle 10g
- Redis 超詳細的手動搭建Cluster叢集步驟Redis
- 靜默安裝and手動建庫
- 手動建庫過程錯誤
- oracle11g 手動建庫Oracle
- oracle 9i 手動建庫Oracle
- Sample Schemas建庫後手動建立
- 移動端步驟1
- Linux安裝Nginx步驟LinuxNginx