Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 234 Big Data Appliance
- 1.9K Data Science
- 449.7K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.3K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 157 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 387 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
How to inclease open_cursors in oracle?

670716
Member Posts: 10
Hi, someone give me hands,please.
I want to change oracle parameter "open_cursors" from default value of it.
Where is init.ora file in oracle 10g database?
Let me know.
I want to change oracle parameter "open_cursors" from default value of it.
Where is init.ora file in oracle 10g database?
Let me know.
Tagged:
Best Answer
-
alter system set open_cursors=1000 (any higher value) scope=both sid='*';
or
If you want to use initi.ora file, then you can create one using spfile or if it already exists you can modify it
to create pfile
Login as sysdba
sql> create pfile='/location/init.ora' from spfile;
File Created;
Cd to location and edit init.ora file
*.open_cursrors=1000 # higher value
sql> shutdown immediate
sql> starutp mount pfile='/location/init.ora';
sql> alter database open;
sql> show parameter open_cursors;
Edited by: OrionNet on Dec 9, 2008 9:42 PM
Answers
-
alter system set open_cursors=1000 (any higher value) scope=both sid='*';
or
If you want to use initi.ora file, then you can create one using spfile or if it already exists you can modify it
to create pfile
Login as sysdba
sql> create pfile='/location/init.ora' from spfile;
File Created;
Cd to location and edit init.ora file
*.open_cursrors=1000 # higher value
sql> shutdown immediate
sql> starutp mount pfile='/location/init.ora';
sql> alter database open;
sql> show parameter open_cursors;
Edited by: OrionNet on Dec 9, 2008 9:42 PM -
You can't have my hands, and it sounds like you should probably talk to the person who set the system up, if that is an option. This is probably one of the most basic of database administration tasks. If you don't know how to do this, you probaby shouldn't be working on a production system (assuming you are).
Second, you probably want to make sure you really need to do this. The default value is 50 cursors per session. Not for the whole instance, that's for each session. Does your application really need to hold more than 50 cursors open in each database session? Or is it leaking cursors (as I suspect)?
If you truly must change this value, try this while logged into SQL*Plus as SYSDBA:
SQL> alter system set open_cursors=<new_value> scope=both;
If that works, you are using SPFILE, which means that the initialization parameters are dynamically managed.
If that returns "ORA-32001: write to SPFILE requested but no SPFILE specified at startup" then you are using init<sid>.ora files. You may have a file in $ORACLE_HOME/dbs (Linux/Unix) or in %ORACLE_HOME\database (Windows) called init<SID>.ora. If that is present, you can change the value for open_cursors by adding a line to that file or changing any existing setting to look like:
open_cursors=<new_value>
Regards,
Jeremiah Wilton
ORA-600 Consulting
Recovery - Services - Seminars
http://www.ora-600.net
http://oradeblog.blogspot.com -
Hello, I appreciate both suggestions and helps.
I really wanted to solve as soon as possible this issue because I have been executing system test and got the error message near the dead line.
I want to thank you very much, again.
This discussion has been closed.