RedHat5.2下Linux Oracle 10g ASM 安装详细实录-第三篇-利用dbca创建oracle数据库

简介:

六、利用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]#
 
3 、常见错误(检查 dbca log 确认原因)
A. 输入 dbca 提示 dbca Exception in thread "main"
检查dbca的log如下:
[oracle@centos ~]$ cd $ORACLE_HOME/cfgtoollogs/dbca
[oracle@centos dbca]$ vi trace.log
java.lang.UnsatisfiedLinkError: /u01/app/oracle/product/10.2.0/db_1/jdk/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 
确认是缺少libXp.so,解决方法是找到Linux安装盘,安装libXp包,问题解决
 
安装过程如下:
[root@oraclebk ~]# yum install libXp
B. 输入 dbca 提示 dbca Exception in thread "main"
[oracle@centos ~]$ cd $ORACLE_HOME/cfgtoollogs/dbca
[oracle@centos dbca]$ vi trace.log
提示IP错误,突然想起要export DISPLAY=172.16.4.41:0.0(连上去的客户机)
示例:
[oracle@L-DB-3-6 dbca]$ export DISPLAY=172.16.4.41:0.0
[oracle@L-DB-3-6 dbca]$ dbca
 
七:设置自启动
# vi /etc/oratab
zjport:/home/oracle/product/10.2.0/db_1:Y
 
八、安装完成后,恢复  Oracle /etc/redhat-release  文件。
# vi /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
 

本文转自zylhsy 51CTO博客,原文链接:http://blog.51cto.com/yunlongzheng/407564,如需转载请自行联系原作者
相关文章
|
8天前
|
缓存 Linux 测试技术
安装【银河麒麟V10】linux系统--并挂载镜像
安装【银河麒麟V10】linux系统--并挂载镜像
57 0
|
8天前
|
Linux C语言
linux yum安装ffmpeg 图文详解
linux yum安装ffmpeg 图文详解
27 0
|
8天前
|
NoSQL Linux Redis
linux 下和win下安装redis 并添加开机自启 图文详解
linux 下和win下安装redis 并添加开机自启 图文详解
15 0
|
8天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
34 0
|
20天前
|
Java Linux Maven
Linux中安装MAVEN环境配置
Linux中安装MAVEN环境配置
46 3
|
1天前
|
关系型数据库 MySQL Linux
Linux联网安装MySQL Server
Linux联网安装MySQL Server
8 0
|
8天前
|
负载均衡 Java 关系型数据库
linux 下amoeba实现数据库的负载均衡
linux 下amoeba实现数据库的负载均衡
8 1
|
16天前
|
Ubuntu Linux 虚拟化
【Linux】ubuntu安装samba服务器
【Linux】ubuntu安装samba服务器
|
16天前
|
NoSQL Linux Redis
Linux安装Redis
Linux安装Redis
26 0
|
17天前
|
Linux
Linux安装bind9搭建自己的域名服务器
Linux安装bind9搭建自己的域名服务器
11 0