六、利用dbca创建oracle数据库
1、执行DBCA
Oracle用户下命令行输入dbca,弹出图形界面
2、要点
A.注意需要选择asm存放
此处需要考虑到有的时候找不到dgroup1组,需要输入密码创建,总是提示spfile正在使用,此时可以采用关闭+ASM实例(shutdown immediate),在重试就行了。
B.注意字符集选择:
Simplified Chinese ZHS15GBK
C.安装完成的最后操作步骤
$ su root
# /oracle/oralnventory/orainstRoot.sh
# /oracle/product/10.2.0/db/root.sh
示例:
[root@L-DB-3-6 db_1]# cd /home/oracle/product/10.2.0/db_1/
[root@L-DB-3-6 db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/product/10.2.0/db_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.sh script.
Now product-specific root actions will be performed.
[root@L-DB-3-6 db_1]# cd /home/oracle/oraInventory/
[root@L-DB-3-6 oraInventory]# ./orainstRoot.sh
Changing permissions of /home/oracle/oraInventory to 770.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
[root@L-DB-3-6 oraInventory]#