zoukankan      html  css  js  c++  java
  • Oracle 11g利用DBCA创建数据库

    在前面两篇的基础上,本篇将详细描述利用DBCA工具创建数据库。

    DBCA创建数据库

    1、在命令行运行DBCA命令;
    [oracle@sz ~]$ dbca
    2、启动DBCA窗口,点击Next;
          
    3、默认选项,点击Next;
           
    4、默认选项,点击Next;
          
    5、在Global Database Name输入szpri,点击Next;
          
    6、默认选项,点击Next;
          
    7、选择下面的选项,使用统一密码,点击Next;
          
    8、默认选项,点击Next;
          
    9、默认选项,点击Next;
          
    10、勾选Sample Schemas,安装样本数据库,点击Next;
          
    11、设置初始化参数,分别设置Memory,Sizing,Character Set;
          
          
          
    12、默认选项,点击Next;
          
    13、在此勾选Generate Database Creation Scripts,可以为手工建库脚本提供参考;
          
    14、出现确认页,点击OK;
          
    15、进行数据库的创建;
          
    16、安装完成;
          
    17、检查数据库状态;
    SQL> conn / as sysdba
    Connected.
    SQL> select instance_name, status from v$instance;
    
    INSTANCE_NAME	 STATUS
    ---------------- ------------
    szpri		 OPEN
    18、查看OEM的状态;
    [oracle@sz ~]$ emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 
    Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
    https://sz.pri.com:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running. 
    ------------------------------------------------------------------
    Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/sz.pri.com_szpri/sysman/log 
    [oracle@sz ~]$
    19、在本地主机打开EM,至此,数据库创建成功,EM安装成功。
    [root@sz ~]# vim /etc/sysconfig/iptables
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 1158 -j ACCEPT
    [root@sz ~]# service iptables restart
    iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
    iptables: Flushing firewall rules:                         [  OK  ]
    iptables: Unloading modules:                               [  OK  ]
    iptables: Applying firewall rules:                         [  OK  ]
    [root@sz ~]# 
         



  • 相关阅读:
    【leetcode刷题笔记】Merge Intervals
    【leetcode刷题笔记】Implement strStr()
    【leetcode刷题笔记】Rotate List
    【leetcode刷题笔记】Merge k Sorted Lists
    【leetcode刷题笔记】Longest Substring Without Repeating Characters
    【leetcode刷题笔记】Scramble String
    【leetcode刷题笔记】Anagrams
    【leetcode刷题笔记】Distinct Subsequences
    【leetcode刷题笔记】Remove Duplicates from Sorted List II
    结语与感悟
  • 原文地址:https://www.cnblogs.com/alen-liu-sz/p/12975719.html
Copyright © 2011-2022 走看看