Oracle12c installation and PL / SQL to create a user

Foreword

Due to the epidemic, so the company arranged to work from home. Home office to write the code no problem, to operate the database is a problem. Therefore it-yourself installation, because the company uses Oracle11g version, so in order to unify, Oracle11g installed on your notebook. It does not know is not installed, install them is people can not help to hit the computer.

Oracle's first website on the Chinese developer unfriendly, super slow access speed, can not be downloaded. Thus, the Internet found a package installation, download, install, operate a set down, emmm ...... can not connect, why others can, to me it would not do it? Use tnsping orcle, ping nowhere, Tip: ORA-12154: TNS: could not resolve the specified connection identifier , or on the tips: no listener , and a variety of Baidu, blog, find all items copied, reproduced, bad review! ! ! Mad individuals, some blog looked okay, and then follow the meal operation, not solve the problem, but more problems, so repeatedly install, uninstall, the whole two days, bother! ! ! Then wake up, I can not change what high version, so to find a Oracle12c installation package, apprehension began operation ...... success! Hereby record it. Note that version is Oracle12c ! ! !
Message: Not recommended Oracle11g (where someone should be sprayed, does not matter, spray the child can not climb over the cable along 0 )
reasons:
(1) version of the old, complicated installation steps, manually configure the environment variable, there are many unknown pit.
(2) The latest version has been Oracle19, and simplifies installation procedures, environment variables are automatically created by the installation program, greatly improving the success rate

Oracle12c installation steps

Installation package

Because Oracle Web site access turtle speed, so I downloaded the installation package which provides connections:
link: https: //pan.baidu.com/s/1Ai30Qi169fG1I_x1CdYAMA
extraction code: i2mp

installation

(1) Double-click Setup.exe
Here Insert Picture Description
(2) remove the check, the next step Here Insert Picture Description
(3) Click on "Yes", the next step
Here Insert Picture Description
(4) to select "Create and configure database", the next step
Here Insert Picture Description
(5) Select "server class" (where select as needed), click Next, I selected server
Here Insert Picture Description
(6) the next step
Here Insert Picture Description
(7) select "advanced options", because it can set the sys here, system ...... passwords, the next step
Here Insert Picture Description
(8) Next
Here Insert Picture Description
(9) selected "Windows built-in account", the next step
Here Insert Picture Description
(10) pop warned, do not be afraid, click "Yes"
Here Insert Picture Description
(11) path where you can choose, I choose to default, the next step
Here Insert Picture Description
(12) default ,, Next
Here Insert Picture Description

(13)去掉勾选!下一步
Here Insert Picture Description
(14)修改字符编码,通常为utf8或GBK,下一步
Here Insert Picture Description
(15)文件系统,默认就行,下一步
Here Insert Picture Description
(16)默认下一步,这里如果勾选则取消勾选
Here Insert Picture Description
(17)默认下一步,如果被勾选则取消勾选
Here Insert Picture Description
(18)设置密码,下一步
Here Insert Picture Description
(19)弹窗警告,点击“是”,下一步
Here Insert Picture Description
(20)响应文件可以不用保存,安装,下一步
Here Insert Picture Description
(21)安装成功,关闭
Here Insert Picture Description
(22)设置口令
Here Insert Picture Description
(23)找到Scott,去掉蓝色勾勾,设置口令(口令不要胡乱设置)
Here Insert Picture Description
(24)等待安装,此处可能耗时良久,建议喝杯茶,看个片
Here Insert Picture Description
(25)完成后,打开命令行,Win+R ,输入cmd;在命令行中输入tnsping orcl,如下图所示,表示安装成功
Here Insert Picture Description

(26)恭喜,大功告成!

创建用户

(0) to check whether the service is turned on, mark two services must be open
Here Insert Picture Description
(1) using PL / SQL, to "SYSDBA" Log, Normal is locked
Here Insert Picture Description
(2) create, File == "New ==" User
Here Insert Picture Description
(3) enter the user name and password, the following three options like me to
Here Insert Picture Description
(4) object privileges, they did not know what to choose, you can set up like me (there is to know, tell me comments oh)
Here Insert Picture Description
(5) role authority, where at least ensure that there is the figure of three rights, and are checked, otherwise it will not remotely connect, the database operating
Here Insert Picture Description
system permissions (6), keep in touch with my consistency on the line
Here Insert Picture Description
(7) the authority to temporarily do not know the effect, consistent with my
Here Insert Picture Description
back (8) is created, users can be found in the current user created "TEST"
Here Insert Picture Description
(9) to exit the PL / SQL, log in again, with user-created "TEST" login, then the user can use Normal identity log
Here Insert Picture Description
(11) log in successfully, you will see the connections in the "TEST" users, it represents the creation of a successful
Here Insert Picture Description
(12) next to Navicat connection
Here Insert Picture Description
(13) the connection is successful, well Oracle12c successful installation, Sao operation can begin after the

Published 22 original articles · won praise 12 · views 10000 +

Guess you like

Origin blog.csdn.net/xyj_sunshine/article/details/104331530