CentOS6.5x64采用静默模式安装64位Oracle 11g(3)


Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /u01/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
    Running Listener Control:
      /u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
Listener configuration complete.

Oracle Net Services configuration successful. The exit code is 0

成功运行后,在/u01/app/oracle/product/11.2.0/dbhome_1/network/admin目录下生成sqlnet.ora和listener.ora两个文件。

启动监听:

$ /u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
通过netstat -tlnp 命令,看到
 tcp  0  0 :::1521        :::*      LISTEN      5477/tnslsnr
 说明监听器已经在1521端口上开始工作了。
15、静默建立新库(同时也建立一���对应的实例)

修改 /u01/database/response/dbca_dbcsk.rsp,设置如下:

RESPONSEFILE_VERSION = "11.2.0"  //不能更改
 OPERATION_TYPE = "createDatabase"
 GDBNAME = "oracle11g.dbcsk.cn"  //数据库的名字
 SID = "ORAC"    //对应的实例名字
 TEMPLATENAME = "General_Purpose.dbc" //建库用的模板文件
 SYSPASSWORD = "oracle1234"  //SYS管理员密码
 SYSTEMPASSWORD = "oracle1234"  //SYSTEM管理员密码
 DATAFILEDESTINATION = /home/oracle/oradata //数据文件存放目录
 RECOVERYAREADESTINATION=/home/oracle/oradata_back //恢复数据存放目录
 CHARACTERSET = "AL32UTF8"  //字符集,重要!!! 建库后一般不能更改,所以建库前要确定清楚。
 TOTALMEMORY = "10240"    //oracle内存10G,也可小一些为5120M

静默建库命令如下

$ dbca -silent -responseFile /u01/database/response/dbca_dbcsk.rsp
Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl11g/orcl11g.log" for further details.

至此为止,建库完成, 查看监听状态

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c087186e845b44a13c4060c0cc24aab2.html