LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-MAR-2024 11:16:46
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production Start Date 18-MAR-2024 11:04:17 Uptime 0 days 0 hr. 12 min. 29 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora Listener Log File /home/oracle/app/oracle/diag/tnslsnr/4b4795fdc52f/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=4b4795fdc52f)(PORT=1521))) Services Summary... Service "helowin" has 1 instance(s). Instance "helowin", status READY, has 1 handler(s) for this service... Service "helowinXDB" has 1 instance(s). Instance "helowin", status READY, has 1 handler(s) for this service... The command completed successfully
修改字符集编码为GBK
1 2 3 4 5 6 7 8 9 10 11
connect sys/root as SYSDBA; SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTERSYSTEM ENABLE RESTRICTED SESSION; ALTERSYSTEMSET JOB_QUEUE_PROCESSES=0; ALTERSYSTEMSET AQ_TM_PROCESSES=0; ALTER DATABASE OPEN; // 跳过超子集检测 ALTER DATABASE CHARACTERSET INTERNAL_USE ZHS16GBK; SHUTDOWN IMMEDIATE; STARTUP;
集成平台Oracle配置
Oracle的部署至此已经部署完毕,下述为个人项目需要配置的内容,有需要可以做参考:
1 2 3 4
docker exec -it oracle11g bash su - oracle #passowrd oracle sqlplus / as sysdba
createuser datamanager identified by data default tablespace USERS temporary tablespace TEMP; createuser datacenter identified by data default tablespace USERS temporary tablespace TEMP;
altersystemset job_queue_processes=20; altersystemset aq_tm_processes=10; ------------------datamanager给dataceneter授权 grant dba to datamanager; grantconnectto datamanager; grant resource to datamanager; grant dba to datacenter; grantconnectto datacenter; grant resource to datacenter; altersystemset job_queue_processes=20; grantcreateviewto datacenter; GRANTEXECUTEON dbms_sql To datacenter; GRANTSELECTON dba_jobs_running TO datacenter; GRANTSELECTON dba_jobs to datacenter; grantexecuteon dbms_ddl to datacenter; grantselecton dba_users to datacenter; GRANTEXECUTEON dbms_sql To datacenter; GRANTSELECTON dba_jobs_running TO datacenter; GRANTSELECTON dba_jobs to datacenter; grantcreateanytableto datacenter; grantselectanytableto datacenter; grantselecton DBA_DATA_FILES to datacenter; grantaltertablespace to datacenter; GRANTCREATE MATERIALIZED VIEWTO datacenter; --------------导入数据后执行-------------- grantselect, insert, update, delete, references, alter, index on datamanager.EAPARAM to DATACENTER; grantselecton DATACENTER.v_dept to datamanager withgrant option; grantselecton DATACENTER.v_empl to datamanager withgrant option; grantselecton datamanager.Eauser to datacenter; grantselecton datamanager.v_eadept to datacenter withgrant option;