What Oracle setting prevents open cursors from closing? - oracle

I have two Oracle 11G installations. I can run a script that imports a 37MB database into one of them with no problems (installation A). In the other (installation B), when I run the exact same script with the exact same file it gets "ORA-01000: maximum open cursors exceeded". I increased the max open cursors to 20,000 but when the script gets to row 20,000 then it stops with the same ORA-01000 error. The installation that is working has max open cursors set to 300.
Obviously there is no problem with the script or the SQL because it works in one Oracle database. So there must be a setting in the other Oracle instance that prevents open cursors from closing. What could it be?
Installation A works.
Database = Oracle Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options. Driver = Oracle JDBC driver 11.2.0.1.0.
Installation B does not work.
Database = Oracle Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options. Driver = Oracle JDBC driver 11.2.0.3.0.

I would recommend checking what cursors are open in a session. If you see 10.000 statements, all alike, with open cursors, there is something wrong in the code.
I myself find the easiest way to do this:
connect sys
alter system flush shared_pool; /* Removes everything can be finished, the trees hinder my view of the forest. */
/* Overall overview. */
select *
from v$sqlarea
/* Open cursors per session. */
select *
from v$open_cursor

Related

Creating a empty table along with partition and index is taking Forever in oracle

We are trying to Creating an empty table along with partition and index in oracle, But it is taking a very long time is there a way to speed up the process like using Parallel processing, etc?
NOTE: We are using the following version "Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production"

Oracle: Copy Database Oracle 10.2.0.2 to Oracle 12c

Currently we have a database running on Oracle 10g (10.2.0.2) in production which needs to be up 24/7, but since it is not supported by the data center, both server OS and Oracle database 10g, we have to move to Oracle 12c as agreed by the superiors. I know I can't use a direct expdp/impdp from 10.2.0.2 to 12.2.0.1. And with limited resources, meaning server resources and no access to oracle support to download oracle 10.2.0.5 patch set or any patch set that is available.
What is the safest and best way with minimal downtime option to move it from 10g to 12c? Do I need to install an 11gR2 software and use it to expdp the data?
The impdp should be downward compatible, but what you can do is:
Do the expdp of your 10.2 database with the 12c software
Use the VERSION parameter of expdp and impdp if you still have problems
You have not told us how big your 10.2 database is and whether you have a limited budget or not. Sometimes the 'superiors' want every last transaction accounted for, and the only way to do this is to use Goldengate. So you can setup the target database, take as long as you need to import the data, and all the while goldengate is keeping the source and target in synch. Goldengate is expensive though and should only be necessary if you have terabytes to deal with.

Oracle apex 5 limitations

can anyone please let me know that what limitations does oracle apex have,
limitations like Storage, RAM or other.
How long will i be able to use it without licensing the database?
Oracle APEX is a no-cost feature of the Oracle Database. If you use a free Oracle database (Oracle XE) then Oracle APEX is free to use. You can also gain free access to Oracle APEX at http://apex.oracle.com. If wish to use Oracle APEX on the cloud you can do so with Oracle Exadata Express (http://cloud.oracle.com/database) and many other database cloud services. Free cloud 1 month trials may also be available.
i found this in oracle website, and i now understand that storage differ in each version.
With respect to growing needs for storage, Oracle Database 11g XE now offers a full 11GB for user data alone, which is almost threefold increase since previous 4GB limit in Oracle Database 10g XE. Other hardware restrictions remain the same with CPU usage capped at one physical core and memory at 1GB. Oracle Database 11g XE is available immediately for Windows and Linux platforms.
Source:
http://www.oracle.com/technetwork/articles/sql/11g-xe-quicktour-498681.html

unable to execute SQL Statement from Putty

I am trying to Connect Oracle DB and execute SQL statement from Putty rather than TOAD.
I have been able to connect via Putty but sql query not giving answers.
Here are the results blow:
Enter user-name: mkandoi
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Session altered.
mkandoi#LCTIDFT> select count(*) from iordl
2
Every time when I run a query the cursor comes to the next line. where I can write a any thing, but no result is appearing.
Please add semicolon at the end of query

Oracle Express Synchronization from Another Orable Database

I have a Oracle 10g database currently in a server.
I will create a web which may have massive requests to get data from the Oracle 10g. So, to prevent degrade the Oracle 10g database and server performance, I would like to setup an Oracle Express 11g to another server, periodically (say 15 minutes) get the data from Oracle 10g to Oracle Express 11g.
Finally the web will just get the data from the new server. And the only loading to the Oracle 10g is the data synchronization. There are just 2 tables in Oracle 10g need to sync.
My question is how can I set up the data synchronization?
For example, can I set up linked server, and set materialized view with refresh period between 2 oracles.
I am new to Oracle, welcome any useful reference materials and idea.

Resources