oracle11g installation and creation of user login process

1. Tools: Oracle_win64_11gR2_database (64-bit oracle 11g database).iso installation file, win7 system

After downloading the installation package, you need to select the two files and decompress them together. If you don’t install it later, there will be problems.

Click the setup file to install

 

 

 

This password is ok if you can remember it

Directly determine

 

 

Oracle installation is complete

Then open sql plus

Garbled characters appear when the installation is opened for the first time, and need to be configured in the environment variable NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

Then open sql plus to log in. If it prompts English and garbled login, there will be problems

Password can be changed after login (mouth card) 

 

You can modify the ip and port number in this file to log in

 

Then log in with plsql

If the password is not changed, it is the default 

The first time you log in with the administrator, you will be prompted that there is no authorization

ORACLE uses SYS and SYSTEM default password login prompt ORA-01017: invalidusername/password; logond denied

solve:

Win+r——->Cmd——->Enter the following command:

sqlplus / as sysdba
alter user system identified by manager;
alter user sys identified by change_on_install;

 After completing the above operations, you can log in 

Then use the administrator to create users

Log in as an administrator

Then right click new to jump to the following page to configure user information

 

 

Then the new user is created and you can log in with the new user

--2. Create user default tablespace

CREATE TABLESPACE image
LOGGING
DATAFILE 'D:\oracle\image.dbf' 
SIZE 500M 
AUTOEXTEND ON 
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;

DATAFILE this path is to put the table space can be created by yourself

--3. Create database user and password:
Create user user identified by password DEFAULT TABLESPACE image
TEMPORARY TABLESPACE image_temp; --4
. Enter the following command to grant database permissions to the user:
Grant connect,resource ,dba to user

- Set the default table space
alter user test default tablespace image;

 

 

ORA-01034: ORACLE not available ORA-27101 solution

Solution:
Open the command line and enter the dba account of the database

sqlpuls sys/12345 as sysdba; press

Enter and then enter startup and press Enter. This step is to start the oracle service. If the startup is told that it has started, you can enter shutdown immediate first; after the shutdown is over, enter startup again.

startup;
 

 

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_39008613/article/details/103391799