# 查找文件路径
[oracle@azure_earth_dbm1_3_111 database]$ find /data/ -name orainstRoot.sh
/data/oraInventory/orainstRoot.sh
[oracle@azure_earth_dbm1_3_111 database]$ find /data/ -name root.sh
/data/oracle/product/11.2.0/dbhome_1/inventory/Templates/root.sh
/data/oracle/product/11.2.0/dbhome_1/root.sh
[oracle@azure_earth_dbm1_3_111 database]$
# 开始执行脚本
[root@azure_earth_dbm1_3_111 soft]# sh /data/oraInventory/orainstRoot.sh
Changing permissions of /oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/app/oraInventory to oinstall.
The execution of the script is complete.
[root@azure_earth_dbm1_3_111 soft]#
[root@azure_earth_dbm1_3_111 soft]# sh /data/oracle/product/11.2.0/dbhome_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@azure_earth_dbm1_3_111 soft]#
12,netca创建oracle监听
在shell命令行sudo – oracle,然后执行netca命令,出现如下界面,选择默认的listener configure配置,如下015.png:
然后选择Add,添加新的监听,如016.png:
默认监听名字为LISTENER,然后next下一步如017.png所示
然后继续next下一步,如018.png所示:
端口选择默认的1521,然后next下一步如019.png所示:
Ok,listener添加完毕,点击cancel退出,如020.png所示:
13,vnc远程dbca安装oracle数据库实例