Home  >  Article  >  Database  >  静默安装Oracle 11gR2软件并且手动建库

静默安装Oracle 11gR2软件并且手动建库

WBOY
WBOYOriginal
2016-06-07 17:15:50826browse

---1、安装Oracle 的前期准备oracle 用户 .bash_profile 文件内容umask 022PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

---1、安装Oracle 的前期准备
oracle 用户  .bash_profile  文件内容
umask 022
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
ORACLE_BASE=/u01/app
ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1/db_1
ORACLE_SID=ora11g
PATH=$ORACLE_HOME/bin:$PATH
export PATH LD_LIBRARY_PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
 
2、安装环境配置完成后,,把oracle11gr2 的安装介质拷贝到服务器上,然后解压。两个包一起解。执行静默安装的命令
./runInstaller -silent -noconfig -responseFile /u01/app/db_install.rsp
 
在执行的过程中出现下面的问题:
-----------------------------
[oracle@localhost database]$ ./runInstaller  -silent -force -noconfig   -responseFile /home/oracle/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB.   Actual 127047 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4000 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-11-30_08-48-47PM. Please wait ...[oracle@localhost database]$ [SEVERE] - Email Address Not Specified
处理方法配置下面的参数在responsefile 文件中:
DECLINE_SECURITY_UPDATES=true

上面的操作只安装了oracle 11g R2 数据库软件。 下面手工创建数据库。
--------------------
3、在nomount 状态下创建数据库。所以需要创建实例启动用的参数文件。在程序默认的参数文件里修改即可:重命名规则  initSID.ora
initora11g.ora
db_name='ora11g'                    --修改
#memory_target=500m                 --注释掉
sga_target=200m                     --添加
pga_aggregate_target=60m            --添加
processes = 150
audit_file_dest='/u01/app/admin/ora11g/adump'  --建立目录
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/u01/app/flash_recovery_area'   --建立目录
db_recovery_file_dest_size=2G
diagnostic_dest='/u01/app'                        ---修改
dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
 
创建相应的目录
mkdir -p /u01/app/admin/ora11g/adump
mkdir -p /u01/app/admin/ora11g/dpdump
mkdir -p /u01/app/flash_recovery_area

---------------------------------------------------------------------------

4、创建密码文件:orapwSID 命名规则
linux下orapw+实例名
windows下pwd+实例名
[oracle@linuxidc dbs]$ orapwd file=orapwora11g password=oracle
[oracle@linuxidc dbs]$ ls
hc_ora11g.dat  initora11g.ora  lkORA11G  ora_control1  ora_control2  orapwora11g  peshm_ora11g_0

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn