1.Install oracle12C under Window
Official website download address:
Database Software Downloads | Oracle
After selecting "Accept License Agreement" at the top of the page, I want to choose to download the 12c Enterprise Edition. Both File 1 and File 2 need to be downloaded. (If prompted to log in to Oracle, you need to log in first before downloading)
After downloading, unzip the two files and they will be unzipped to the same directory database.
2.Oracle 12c installation
Select the "setup.exe" file in the database directory, right-click to start the installation as an administrator.
The black box will wait for a while and the formal installation will begin.
Cancel the option to end security updates
The administrator account password does not comply with the standard rules. If you want to continue to use the set password, as shown in the figure below, select Yes
Check that there is no problem with the installation information, and you can proceed with the installation.
3. Log in to Oracle
Open the command prompt (Win key + R key), enter cmd, and enter the command line black window. Execute the command: sqlplus / as sysdba (log in as the super administrator), or execute the command: conn system/password @orcl as sysdba (log in as the system user)
4.Oracle general settings
Since the results viewed by Oracle in the command window are vertical by default, which is inconvenient to view, you can execute the following command to modify the displayed results.
SQL> set linesize 800;
1) Modify the password file of Oracle so that it does not expire
SQL> Select * FROM dba_profiles s Where s.PROFILE='DEFAULT' AND RESOURCE_NAME='PASSWORD_LIFE_TIME';
SQL>alter profile default limit password_life_time unlimited;
5. Create an account
Create user: create user oracle identified by 123456;
It is said that in a production environment, just the role of connect resource is enough.
GRANT "CONNECT" TO "ORACLE";
GRANT "RESOURCE" TO "ORACLE";
GRANT "DBA" TO "ORACLE";
GRANT "EXP_FULL_DATABASE" TO "ORACLE";
GRANT "IMP_FULL_DATABASE" TO "ORACLE";