Oracle database instance is created

Ø  Introduction

This article discuss Oracle create a database instance, Oracle create database instance using Database the Configuration Assistant (Database Configuration Assistant), hereinafter referred to as DBCA . DBAC is a visual database management tool wizard, more convenient to use. DBAC not only used to create the database, you can also manage existing databases, such as: the configuration database, delete the database management templates.

 

In addition, the database can also be used to create a way of command, but our focus is not to learn this, but the way of error-prone, it is not the recommended way to use commands to create a database.

 

Ø  Preparation

In this paper, Windows Server 2019 64 -bit server and Oracle 11g , for example (Virtual Machine);

First, open DBAC (run as administrator)

clip_image001[1]

You can see the following screen, click Next

clip_image003[1]

 


Ø   Here are the steps to create a database instance:

1.   The first step, select the "Create Database" [to] default , click Next

clip_image005[1]

 

2.   The second step, select the "general purpose or transaction" [to] the default , click Next

clip_image007[1]

 

3.   第三步,设置数据库名称"mydb01"SID,点击下一步

clip_image009[1]

 

4.   第四步,设置“管理选项”【默认即可】,点击下一步

clip_image011[1]

 

5.   第五步,设置 Oracle 系统用户(syssystem)的“登录密码”,可以将每个用户可以设置为不同的密码,根据个人需要进行设置。这里设置为统一密码方便记忆:

clip_image013[1]

如果提示不符合安全策略,不用理会点击“是”,下一步即可。

 


6.   第六步,设置“数据库文件存储位置”【默认即可】,点击下一步

clip_image015[1]

选择“使用模板中的数据库文件位置”,表示新的数据库文件保存在安装 Oracel 服务器的时候所配置的路径,例如(D:\oracle\oradata)

clip_image017[1]

 


7.   第七步,配置“恢复配置”【默认即可】,点击下一步

clip_image019[1]

 

8.   第八步,是否添加“示例方案”,如果没有特殊要求【默认即可】,点击一下步

clip_image021[1]

 

9.   第九步,数据库参数配置【默认即可】,点击下一步

clip_image023[1]

clip_image024[1]

 


10.  第十步,数据库“安装配置确认”,如果发现配置有问题返回上一步修改即可。没问题,点击下一步或完成

clip_image026[1]

 

11.  第十一步,选择“创建数据库”,点击完成

clip_image028[1]

 

12.  第十二步,开始安装数据库

clip_image030[1]

 


13.  安装完成,可以点击“口令管理”管理所有用户的状态

clip_image031[1]

 


14.  默认 scott 用户是锁定的,可以将它激活

clip_image032[1]

 


15.  安装成功,检查相关服务和文件

可以在服务列表中看到增加了如下三个服务:

clip_image034[1]

 

以及相关的数据文件:

clip_image036[1]

 

16.  测试连接(客户端)

1)   首先 ping 一下服务器IP

clip_image037[1]

 

2)   检查监听是否启动,输入:tnsping 192.168.1.170

clip_image038[1]

 

3)   使用 sqlplus 进行连接,输入:sqlplus system/[email protected]/mydb01

clip_image040[1]

 

4)   查看当前数据库实例名,输入:show parameter instance_name;

clip_image041[1]

 

提示:如果需要使用 PL/SQL Developer 连接,还需要使用 Net Configuration Assistant(网络配置助手)进行配置。

Congratulations clip_image043[1], so far, the Oracle database instance even if the installation was successful.

Guess you like

Origin www.cnblogs.com/abeam/p/12114824.html