Oracle19c installation, basic configuration tutorial (super detailed)

Table of contents

foreword

oracle installation

oracle19c download

oracle decompression and start

oracle specific installation steps

test connection

Create user, specify default tablespace

Oracle19 uninstall

Summarize


foreword

        There is a risk of error in installation, and uninstallation is also troublesome, so set a restore point in advance. The steps in windows are as follows. If you are confident in yourself, you can skip this part and start installing oracle

        Enter the interface for creating a restore point in the settings

        Start creating a restore point

         The restore point has been successfully created above. If there is a problem when installing oracle, you can’t solve it yourself. You can restore it to before the installation. The recovery steps are as follows

 


oracle installation

oracle19c download

        The download link is Database Software Downloads | Oracle


oracle decompression and start

        Create a directory in the location where you want to install ( note: Chinese cannot be included in the installation path ), then put the downloaded installation package into this folder, and then unzip it

        Enter the decompressed file, double-click to start setup.exe 


 oracle specific installation steps

        The following details the installation steps,

 

        If there is a java pop-up window, just run the access

 If the installation is successful, just click to close

 At this point, the installation is complete


test connection

        After the installation is complete, there will be some newly installed software in the start menu, we click sql plus

If you don't see the start menu, go to  C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle - OraDB19Home1\application development    directory to open it

Then enter the user name system, the password is set by yourself

        If you can successfully log in, then the installation is successful. If not, then you have to find a solution online. I opened a new virtual machine for demonstration. The environment is relatively clean and I have not encountered any problems so far. You have installed oracle before or the steps are different, you may encounter problems


Navicat connects to oracle

        After the installation is complete, we use oracle to connect to oracle, first open navicat

        Then click Tools->Options->Environment

        Here, set the oci environment to bin\oci.dll in the oracle decompression directory, then click OK to restart navicat

        After restarting, click New Connection and select oracle

 

        Then click Advanced and switch the role to SYSDBA, which is the administrator

        Then click Test Connection

        After the test is successful, click OK

        Then you can connect and use


Create user, specify default tablespace

        If you are using oracle for the first time, you don’t need to understand the above concepts, just follow the steps below

        First open sql plus, enter sys/your own password as sysdba 

        Then enter the following sql statements in turn

-- study 就是表空间的名称,自定义即可
-- 'E:\oracle\oradata\ORCL\study.dbf' 就是表空间存放数据的文件
-- E:\oracle\oradata\ORCL\ 这个路径必须已经存在,其他选项先不用管
CREATE TABLESPACE study
DATAFILE  'E:\oracle\oradata\ORCL\study.dbf'
SIZE 100 M  AUTOEXTEND ON
NEXT 10 M MAXSIZE UNLIMITED;

-- 下面语句是创建用户并且指定默认表空间
-- USER 后面跟着的是用户名,BY 后面跟着的是密码,TABLESPACE 后面就是上面创建的表空间
CREATE USER qianshu IDENTIFIED BY qianshu DEFAULT TABLESPACE study;

--授予刚刚创建的用户权限,将TO 后面的qianshu改成自己创建的用户名称即可
GRANT connect,resource,dba 
TO qianshu;

        The execution effect is as follows

        After completing the above steps, open navicat and connect to oracle. The account password is the account password of the user just created.

        click test

        If this interface appears, then we are successful.

        We open a query in this connection and execute the following statement

CREATE TABLE people ( id NUMBER ( 5 ), name VARCHAR ( 20 ) );

INSERT INTO people VALUES( 1, '千束' );

SELECT * FROM people;

         The final display is as follows

        At this point, the basic configuration is completely completed.


Oracle19 uninstall

        There is too much content, I don’t want to write any more, here is a link to uninstall Oracle, if you are interested, you can check it out

oracle19c uninstall tutorial_challengejava's blog-CSDN blog_oracle19c uninstall steps

Summarize

        After the above steps, we can use Oracle normally. We can use the account we created in sql plus, and the created table will be stored in the table space we created by default.

        I have tested the above steps in a virtual machine, windows10 system, if you fail to follow the steps, then the problem is probably that the path is in Chinese, or it has been installed before but has not been uninstalled cleanly. If there is a problem, you can restore it through a restore point! ! !

Guess you like

Origin blog.csdn.net/m0_51545690/article/details/126748727