Oracle11g 数据库的手工创建 1、参考文档 Oracle11g Release 2 (11.2) ; 2、具体的创建步骤 2.1 指定一个实例 ID,即 SID $ ORACLE_SID = orcl1 $ export ORACLE_SID 2.2 环境变量的设定 $ vi .bash_profile ORACLE_BASE=/u01/app/oracle/product/11.2.0 ORACLE_HOME=$ORACLE_BASE/db_1 ORACLE_SID=orcl1 PATH=$ORACLE_HOME/bin:$PATH export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH 保存,退出! 2.3 选择数据库管理员的认证方法 2.3.1 基于密码文件,通过以下命令创建密码文件 $ ORAPWD FILE=orapworcl1 ENTRIES=10 2.3.2 基于操作系统认证 本示例采用基于操作系统的认证,即使用 oracle 用户连接数据库 $ sqlplus /nolog > conn / as sysdba 2.4 创建初始化参数文件 初始化参数文件,可以采用数据库软件安装后的一个 init.ora,如果以前创建过数据库,则在$ORACLE_HOME/dbs 下存在一个 init.ora $ cp init.ora initorcl1.ora 修改 initorcl1.ora 中的数据,一个简单的initorcl1.ora 如下所示: # specific hardware and needs. You may also consider using Database # Configuration Assistant tool (DBCA) to create INIT file and to size your # initial set of tablespaces based on the user input. ####################################################### # Change '' to point to the oracle base (the one you specify at # install time) db_name='orcl1' memory_target=400M processes = 150 audit_file_dest='/u01/app/oracle/product/11.2.0/admin/orcl1/adump' audit_trail ='db' db_block_size=8192 db_domain='' db_recovery_file_dest='/u01/app/oracle/product/11.2.0/flash_recovery_area' db_recovery_file_dest_size=2G diagnostic_dest='/u01/app/oracle/product/11.2.0' dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)' open_cursors=300 remote_login_passwordfile='EXCLUSIVE' undo_tablespace='UNDOTBS1' # You may want to ensure that control files are created on separate physical # devices control_files = ( '/u01/app/oracle/product/11.2.0/oradata/orcl1/control01.ctl', '/u01/app/oracle/product/11.2.0/orada...