oracle数据库修改连接数
2023-09-11 14:21:26 时间
最近在用weblogic部署项目,同时用的是oracle数据库,然后今天遇到一个问题:多个用户连接数据库连接不成功,有时提示被锁住,经检查发现一方面weblogic控制台中数据源的连接池配置没有配置足够的容量,另一方面是oracle数据库没有配足够的连接数
1.weblogic控制台修改如下
2.通过cmd命令修改数据库连接数并重启数据库
C:\Users\Administrator>sqlplus sys/sys@192.168.13.211/oanet as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 2月 9 11:57:01 2017 Copyright (c) 1982, 2005, Oracle. All rights reserved. ERROR: ORA-12560: TNS: 协议适配器错误 请输入用户名: ERROR: ORA-12560: TNS: 协议适配器错误 请输入用户名: ERROR: ORA-12560: TNS: 协议适配器错误 SP2-0157: 在 3 次尝试之后无法连接到 ORACLE, 退出 SQL*Plus C:\Users\Administrator>d: D:\>cd app D:\app>cd Administrator D:\app\Administrator>cd product D:\app\Administrator\product>cd 11.2.0 D:\app\Administrator\product\11.2.0>cd dbhome_1 D:\app\Administrator\product\11.2.0\dbhome_1>cd BIN D:\app\Administrator\product\11.2.0\dbhome_1\BIN>sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on 星期四 2月 9 11:57:25 2017 Copyright (c) 1982, 2013, Oracle. All rights reserved. 连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> show parameter processes NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 db_writer_processes integer 1 gcs_server_processes integer 0 global_txn_processes integer 1 job_queue_processes integer 1000 log_archive_max_processes integer 4 processes integer 150 SQL> select count(*) from v$process; COUNT(*) ---------- 85 SQL> show parameter session NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ java_max_sessionspace_size integer 0 java_soft_sessionspace_limit integer 0 license_max_sessions integer 0 license_sessions_warning integer 0 session_cached_cursors integer 50 session_max_open_files integer 10 sessions integer 248 shared_server_sessions integer SQL> select count(*) from v$session; COUNT(*) ---------- 82 SQL> alter system set processes=300 scope=spfile; 系统已更改。 SQL> alter system set sessions=300 scope=spfile; 系统已更改。 SQL> shutdown immediate 数据库已经关闭。 已经卸载数据库。 ORACLE 例程已经关闭。 SQL> startup ORACLE 例程已经启动。 Total System Global Area 1352876032 bytes Fixed Size 2281056 bytes Variable Size 922747296 bytes Database Buffers 419430400 bytes Redo Buffers 8417280 bytes 数据库装载完毕。 数据库已经打开。 SQL> 修改linux系统下的oracle数据库连接数: [oracle@localhost ~]$ sqlplus /nolog SQL*Plus: Release 11.2.0.4.0 Production on Fri May 5 10:26:24 2017 Copyright (c) 1982, 2013, Oracle. All rights reserved. SQL> conn /as sysdba ???? SQL> show parameter session NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ java_max_sessionspace_size integer 0 java_soft_sessionspace_limit integer 0 license_max_sessions integer 0 license_sessions_warning integer 0 session_cached_cursors integer 50 session_max_open_files integer 10 sessions integer 248 shared_server_sessions integer SQL> show parameter process NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 cell_offload_processing boolean TRUE db_writer_processes integer 1 gcs_server_processes integer 0 global_txn_processes integer 1 job_queue_processes integer 1000 log_archive_max_processes integer 4 processes integer 150 processor_group_name string SQL> alter system set processes=400 scope=spfile; ?????? SQL> alter system set sessions=450 scope=spfile; ?????? SQL> show parametersession SP2-0735: ??? SHOW ???? "parameters..." SQL> shutdown immediate; ???????? ???????? ORACLE ??????? SQL> startup ORACLE ??????? Total System Global Area 784998400 bytes Fixed Size 2257352 bytes Variable Size 599789112 bytes Database Buffers 176160768 bytes Redo Buffers 6791168 bytes ???????? ???????? SQL>
相关文章
- Windows下Oracle 11g安装以及创建数据库
- 用sqlplus为oracle创建用户和表空间
- 【C/C++学院】(24)Oracle数据库编程--管理oracle
- 修改oracle数据库用户名和密码
- Oracle VM VirtualBox - ping不通虚拟机
- Oracle数据库基本概念理解(3)
- Oracle 临时事务表 全局临时表_global temporary table
- Oracle 查询搜索字符串在哪些存储过程中包含
- oracle操作字符串:拼接、替换、截取、查找
- 如何调试oracle,sqlserver存储过程
- 【Oracle 集群】ORACLE DATABASE 11G RAC 知识图文详细教程之集群概念介绍(一)
- 查看oracle数据库允许的最大连接数和当前连接数
- Oracle中rownum和rowid的区别
- Oracle Goldengate 常用术语
- Oracle resize数据文件大小
- PostgreSQL Oracle兼容性之 - connect by
- oracle 判断列是否在数据库中存在
- Oracle数据库冷备份与恢复(救命稻草)
- ArcCatalog中通过ArcSDE向Oracle数据库中导入数据
- Oracle 数据库 备份
- PLSQL连Oracle数据库Could not load "……binoci.dll"
- C# Oracle、Sql Server连接(增、删、改、查)
- Oracle跨库链接操作
- 解密 Oracle 数据库 SQL 执行历史:掌握多种实现方式,轻松实现 SQL 监控与性能优化
- 在Oracle 11.2的数据库中建表时遇到 RESULT_CACHE (MODE DEFAULT) ORA-00922: missing or invalid option
- Oracle Product Hub / Product Lifecycle Management / Product Information Management / Advanced Produc
- 3.数据库操作相关术语,Oracle认证,insert into,批量插入,update tablename set,delete和truncate的差别,sql文件导入