Oracle OCM考试系列教程_OCM考试实验笔记之七_手动建库
Oracle OCM考试系列教程_OCM考试实验笔记之七_手动建库
问题:
1、密码文件的名字
2、监听器初始化参数
监听器配置:Net Services Reference,搜索listener.ora(或搜索tnsnames.ora)
3、Tnsnames.ora,注意搜索server=,可找到专用服务连接的配置
一、参数文件的准备
Reference --> Basic Initialization Parameters
去掉一部分,添加上去background_dump_dest。
Administrator's Guide --> 第二章 Creating an Oracle Database -->
Understanding Initialization Parameters中也有一个参数文件的范例,建议使用
Reference中的。
二、建库命令:
Administrator's Guide --> 第二章 Creating an Oracle Database --> Manually
Creating an Oracle Database
建库命令如下:
CREATE DATABASE prod1
USER SYS IDENTIFIED BY oracle
USER SYSTEM IDENTIFIED BY oracle
LOGFILE GROUP 1 ('/opt/oracle/oradata/prod1/redo01.log') SIZE 10M,
GROUP 2 ('/opt/oracle/oradata/prod1/redo02.log') SIZE 10M,
GROUP 3 ('/opt/oracle/oradata/prod1/redo03.log') SIZE 10M
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 200
MAXINSTANCES 2
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
DATAFILE '/opt/oracle/oradata/prod1/system01.dbf' SIZE 325M REUSE
EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/opt/oracle/oradata/prod1/sysaux01.dbf' SIZE 325M REUSE
DEFAULT TEMPORARY TABLESPACE tempts1
TEMPFILE '/opt/oracle/oradata/prod1/temp01.dbf'
SIZE 20M REUSE
UNDO TABLESPACE undotbs
DATAFILE '/opt/oracle/oradata/prod1/undotbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
一定注意,字符集的选择:
467