当前位置:网站首页>Installing Oracle EE
Installing Oracle EE
2022-07-01 08:45:00 【sirwsl】
In the early
Enter the directory you need to set , Create folder , Folder Authorization
mkdir xxx
chmod o+w /oracle/oradata
chmod 777 /oracle/oradata
install ORACLE EE
1: Find image
docker search oracle19c
2: Select the appropriate mirror
docker pull heartu41/oracle19c
3: function
docker run -p 1521:1521 -p 5500:5500 \
--name oracletest \
--privileged=true \
--restart=always \
-e ORACLE_SID=ORCL \
-e ORACLE_PDB=ORCLTEST \
-e ORACLE_PWD=123456 \
-e ORACLE_CHARACTERSET=AL32UTF8 \
-e ORACLE_BASE=/opt/oracle \
-e ORACLE_EDITION=standard \
-e ORACLE_HOME=/opt/oracle/product/19c/dbhome_1 \
-e ORACLE_ALLOW_REMOTE=true \
-e TZ=Asia/Chongqing \
-e PATH=/opt/oracle/product/19c/dbhome_1/bin:/opt/oracle/product/19c/dbhome_1/OPatch/:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
-e NLS_LANG=AMERICAN_AMERICA.AL32UTF8 \
NLS_DATE_LANGUAGE
-it \
-v /data/oracle/oradata:/opt/oracle/oradata \
-d f59790109034
see :
docker logs -ft oracletest
4: Check whether the time zone setting is effective
docker exec -it oracletest date +"%Z %z"
5: Into the container
docker exec -it oracletest /bin/bash
6: Change Password
./setPassword.sh 123456
7: Set up PDB
grep $ORACLE_HOME /etc/oratab | cut -d: -f1
export ORACLE_SID=ORCL
8: Connect to database
sqlplus / as sysdba
10: Cancel restricted mode
alter system disable restricted session;
9: perform
alter session set "_ORACLE_SCRIPT"=true;
9: see
show pdbs;

10: Authorization of tablespaces after schema creation
ALTER USER user name QUOTA UNLIMITED ON Table space
11 If you need to modify the character set or environment variables
Inquire about :
SELECT USERENV('language') FROM dual;
Install vim
docker exec -it --user root oracletest /bin/bash
yum install vim
Edit the file
vim ~/.bash_profile
add to
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".ZHS16GBK
or
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
or
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
Load the file
source ~/.bash_profile
modify oracle Parameter form
select * from v$nls_parameters;

Create a user table space
-- Remove tablespaces
DROP TABLESPACE HTHSETEMP INCLUDING CONTENTS AND DATAFILES
-- Remove users
drop user HSE_TEMP CASCADE
-- Create tablespace
CREATE TABLESPACE NTHSETESTPSPACE
DATAFILE '/opt/oracle/oradata/ORCL/ORCLTEST/NTHSETESTPSPACE.dbf'
SIZE 20G AUTOEXTEND ON next 4G
-- Create user
CREATE USER HSE_TEMP IDENTIFIED BY 000000
--- Change Password
alter user user name identified by New password ;
-- Modify user tablespaces
ALTER USER HSE_TEMP quota unlimited ON HTHSETEMP
-- The practical application
create user <username> identified by <password>
default tablespace <tablespace_name> -- Default tablespace
temporary tablespace temp -- Temporary table space
quota unlimited on <tablespace_name> -- Table space quota
-- Permission settings
grant create session to HSE_TEMP
grant create table to HSE_TEMP
grant create tablespace to HSE_TEMP;
grant create any view to HSE_TEMP;
grant connect,resource to HSE_TEMP;
grant create any sequence to HSE_TEMP;
grant create any table to HSE_TEMP;
grant delete any table to HSE_TEMP;
grant insert any table to HSE_TEMP;
grant select any table to HSE_TEMP;
grant unlimited tablespace to HSE_TEMP;
grant execute any procedure to HSE_TEMP;
grant update any table to HSE_TEMP;
-- View the permissions of the current user
select * from role_sys_privs;
Common commands
startup mount # start-up
shutdown immediate; close
sqlplus / as sysdba Get into
lsnrctl status Check the listening status
lsnrctl start Turn on monitoring
lsnrctl reload restart
lsnrctl stop stop it
Other questions
problem
cannot mount database in EXCLUSIVE mode
solve :
cd $ORACLE_HOME/dbs
ls lk*
rm lk*
problem
ORA-00205: error in identifying control file, check alert log for more info : (
solve
ipcs -s
ipcrm -s semid-NO.
problem
ORA-00214: control file '/opt/oracle/oradata/ORCL/control01.ctl' version 2647
inconsistent with file '/opt/oracle/oradata/ORCL/control02.ctl' version 2613
solve
cd /opt/oracle/oradata/ORCL/
ls
cp control01.ctl control02.ctl
边栏推荐
- Differences among tasks, threads and processes
- "Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
- AVL树的理解和实现
- 【js逆向】md5加密参数破解
- Matlab tips (23) matrix analysis -- simulated annealing
- 集团公司固定资产管理的痛点和解决方案
- 【面试必刷101】链表
- It is designed with high bandwidth, which is almost processed into an open circuit?
- Yolov3, 4, 5 and 6 Summary of target detection
- V79.01 Hongmeng kernel source code analysis (user mode locking) | how to use the fast lock futex (Part 1) | hundreds of blogs analyze the openharmony source code
猜你喜欢

【C】 Summary of wrong questions in winter vacation

内存大小端

The data analyst will be ruined without project experience. These 8 project resources will not be taken away

Glitch free clock switching technology

为什么LTD独立站就是Web3.0网站!

电视机尺寸与观看距离

基础:2.图像的本质

MATLAB小技巧(16)矩阵特征向量特征值求解一致性验证--层次分析

Properties of 15MnNiNbDR low temperature vessel steel, Wugang 15MnNiDR and 15MnNiNbDR steel plates

C语言指针的进阶(上篇)
随机推荐
Serial port to WiFi module communication
3、Modbus通讯协议详解
中考体育项目满分标准(深圳、安徽、湖北)
爬虫知识点总结
The era of low threshold programmers is gone forever behind the sharp increase in the number of school recruitment for Internet companies
MATLAB小技巧(23)矩阵分析--模拟退火
Matlab tips (23) matrix analysis -- simulated annealing
FreeRTOS learning easy notes
《单片机原理与应用》——并行IO口原理
Bimianhongfu queren()
Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6
《单片机原理及应用》-片外拓展
Nacos - 配置管理
MATLAB小技巧(16)矩阵特征向量特征值求解一致性验证--层次分析
factory type_id::create过程解析
[JS reverse] MD5 encryption parameter cracking
Shell脚本-字符串
基础:3.opencv快速入门图像和视频
Glitch free clock switching technology
[untitled]