oracle11g 手動建庫
(1)建立密碼檔案
$orapwd file=orapwocp password=oracle;
(2)建立目錄
$mkdir -p /u01/app/oracle/oradata/ocp
(3)設定引數檔案
$vim $ORACLE_HOME/dbs/initocp.ora
mv init.ora initocp.ora
CONTROL_FILES='/u01/app/oracle/oradata/ocp/control01.ctl','/u01/
app/oracle/oradata/ocp/control02.ctl','/u01/app/oracle/oradata/ocp/control03.ctl'
aq_tm_processes=0
db_block_size=8192
db_domain=""
db_file_multiblock_read_count=16
db_name=ocp
instance_name=ocp
dispatchers="(PROTOCOL=TCP) (SERVICE=ocpXDB)"
job_queue_processes=10
nls_length_semantics=BYTE
open_cursors=300
pga_aggregate_target=94371840
processes=150
remote_login_passwordfile=EXCLUSIVE
resource_manager_plan=""
sessions=170
sga_target=285212672
undo_management=AUTO
undo_retention=900
undo_tablespace=UNDOTBS1
(4)建庫指令碼
CREATE DATABASE ocp
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
EXTENT MANAGEMENT LOCAL
LOGFILE
GROUP 1 ('/u01/app/oracle/oradata/ocp/redo01.log') SIZE 50M,
GROUP 2 ('/u01/app/oracle/oradata/ocp/redo02.log') SIZE 50M,
GROUP 3 ('/u01/app/oracle/oradata/ocp/redo03.log') SIZE 50M
DATAFILE
'/u01/app/oracle/oradata/ocp/system01.dbf' SIZE 500M REUSE
SYSAUX DATAFILE '/u01/app/oracle/oradata/ocp/sysaux01.dbf' SIZE 500M REUSE
DEFAULT TEMPORARY TABLESPACE temp
TEMPFILE '/u01/app/oracle/oradata/ocp/temp01.dbf'SIZE 20M REUSE
UNDO TABLESPACE undotbs1
DATAFILE '/u01/app/oracle/oradata/ocp/undotbs01.dbf'SIZE 200M
REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
(5)執行指令碼
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
@?/sqlplus/admin/pupbld.sql
完成!
$orapwd file=orapwocp password=oracle;
(2)建立目錄
$mkdir -p /u01/app/oracle/oradata/ocp
(3)設定引數檔案
$vim $ORACLE_HOME/dbs/initocp.ora
mv init.ora initocp.ora
CONTROL_FILES='/u01/app/oracle/oradata/ocp/control01.ctl','/u01/
app/oracle/oradata/ocp/control02.ctl','/u01/app/oracle/oradata/ocp/control03.ctl'
aq_tm_processes=0
db_block_size=8192
db_domain=""
db_file_multiblock_read_count=16
db_name=ocp
instance_name=ocp
dispatchers="(PROTOCOL=TCP) (SERVICE=ocpXDB)"
job_queue_processes=10
nls_length_semantics=BYTE
open_cursors=300
pga_aggregate_target=94371840
processes=150
remote_login_passwordfile=EXCLUSIVE
resource_manager_plan=""
sessions=170
sga_target=285212672
undo_management=AUTO
undo_retention=900
undo_tablespace=UNDOTBS1
(4)建庫指令碼
CREATE DATABASE ocp
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
EXTENT MANAGEMENT LOCAL
LOGFILE
GROUP 1 ('/u01/app/oracle/oradata/ocp/redo01.log') SIZE 50M,
GROUP 2 ('/u01/app/oracle/oradata/ocp/redo02.log') SIZE 50M,
GROUP 3 ('/u01/app/oracle/oradata/ocp/redo03.log') SIZE 50M
DATAFILE
'/u01/app/oracle/oradata/ocp/system01.dbf' SIZE 500M REUSE
SYSAUX DATAFILE '/u01/app/oracle/oradata/ocp/sysaux01.dbf' SIZE 500M REUSE
DEFAULT TEMPORARY TABLESPACE temp
TEMPFILE '/u01/app/oracle/oradata/ocp/temp01.dbf'SIZE 20M REUSE
UNDO TABLESPACE undotbs1
DATAFILE '/u01/app/oracle/oradata/ocp/undotbs01.dbf'SIZE 200M
REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
(5)執行指令碼
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catproc.sql
@?/sqlplus/admin/pupbld.sql
完成!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25427762/viewspace-777167/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle手動建庫Oracle
- oracle 之 手動建庫Oracle
- ORACLE RAC 手動建庫Oracle
- 手動建庫備註
- oracle 手動建庫詳解Oracle
- RHEL6上安裝的oracle11g中,手動建庫出現的問題Oracle
- 靜默安裝and手動建庫
- 手動建庫過程錯誤
- oracle 9i 手動建庫Oracle
- Sample Schemas建庫後手動建立
- 拋開dbca,手動建庫步驟
- Oracle手動建庫常見問題Oracle
- oracle手動建庫詳細步聚Oracle
- Oracle11g 自動化建庫及調整相關引數Oracle
- 手動建庫步驟 10g for linuxLinux
- Hive隨手記——建庫Hive
- Oracle11g生成手動的快照報告報錯Oracle
- Oracle11G靜默建庫相應檔案dbca.rspOracle
- 手動建庫時一個錯誤:Error accessing PRODUCT_USER_PROFILEError
- oracle11g dataguard 完全手冊Oracle
- pycharm手動匯入庫PyCharm
- 手動建立資料庫資料庫
- 靜默安裝oracle11gR2軟體並且手動建庫Oracle
- redis5.* 手動構建叢集Redis
- oracle11g dataguard完全手冊--switchoverOracle
- Oracle11g Data Guard配置手冊Oracle
- 自己動手編譯OpenSSL庫編譯
- 手動建立oracle資料庫Oracle資料庫
- Oracle 手動建立資料庫Oracle資料庫
- 手動複製資料庫資料庫
- 手動刪除資料庫資料庫
- 手動建立資料庫過程資料庫
- oracle手動刪除資料庫Oracle資料庫
- 手動刪除oracle資料庫Oracle資料庫
- 手動建立資料庫步驟資料庫
- 手動配置OEM管理資料庫資料庫
- 使用CodeFirst實現動態建庫
- oracle11g 自動並行Oracle並行