ORA-12540
I downloaded 9i personal to use for class this semester. I have XP professional and the download was flawless. However I use scott/tiger to log on or the one I created when I setup and I get the following error:
ORA-12540
TNS: Internal limit restriction exceeded.
I need to know what I have done wrong or can do to fix. I would appreciate any assistance as the labs at the college stay full and I would rather work on it from home.
Could you please post your connect string ur using ?
Use the following connect string to connect.
C:\>set oracle_sid=test
C:\>sqlplus
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Jan 23 14:40:53 2004
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: sys/password as sysdba
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL>
Similar Messages
-
Hello all,
I have just installed Oracle 9.2.0.1.0. During the install, and now when I try to run DBCA, I get an error:
ORA-12540: TNS:internal limit restriction exceeded
It happens during the "Creating and starting Oracle instance" phase. (So "Copying database files" and "Initializing database" are completed. For what it's worth, the progress meter is at 46% when the error occurs.)
Does anyone have any idea why this would be occuring? I'm running Windows XP Professional.
Thanks you,
Owen GibbinsThere could be a few issues:
It is very likely that your system has run out of memory at that memory and that the listener is either unable to spawn a new process or shutdown and needed by the newly created instance once the bootstrap segment is set. I encourage you to:
- You may need to increase your process parameter (main reason).
- You many need to increase your virtual memory settings.
- Check the files on your tnsadmin directory, and verify their accuracy and uniquess in the TNS_ADMIN directory.
If your installation completed, in spite of no database created, you can patch by restarting with the DBCA database creation and setting process to a reasonable larger value. I believe that -if you have the minimum resources 300 is reasonable.
If you would like to do a full clean install and rather uninstall, then:
- Perform a clean uninstall by removing files from Oracle Home, and all Oracle directories.
Sometimes a clean install means to reinstalling Windows. However, if do not have a previous home, and know to clean your registry from classes, and other Oracle values and entries in your registry do so. Do not forget to delete your Oracle inventory, which is typically set in your C (OS) drive.
There are other reasons why this error can occur, but setting processes accordingly is your best choice. If your environment is planned for a shared server, setting the appropriate parameters that somehow interdepend with processes, such as dispatchers. Setting processes will autoset SESSIONS and CIRCUITS. Also if using a shared server, formerly MTS, do not try to configure any advanced features or set up any specific dispatcher tuning at install/db creation.
Good luck with your overall progress. -
ORA-12540 TNS Internal Limit REstriction Exceeded
I was trying to install personal 9i on my Dell running XP. The install goes fine until it gets to creating the database and then I get ORA-12540 TNS: Internal Limit Restriction Exceeded. What am I doing wrong?
oerr ora 12540
12540, 00000, "TNS:internal limit restriction exceeded"
// *Cause: Too many TNS connections open simultaneously.
// *Action: Wait for connections to close and re-try.
How many TNS connections you are having on your box?
Daljit Singh -
Dear All,
I have program which use threading and it opens 3 threads each one will connect to the database, after few minutes from the running the program, i got the error ORA-12540. im using Sun solaris with Oracle DB 10g.
i read document No. 61318.1 in metalink, and they advice to raise processes (currently 59) parameter in init.ora file. but when execuete show parameter processes it return 500.
my question is there any relation between processes in init.ora and the value which i got from how parameter processes.??
and do i really need to raise up the processes value in init.ora file.
thanks in advance.Hello,
There are 3 parameters in init.ora you need to take care.
1.processes
2.sessions
3.transactions.
you should see messages in alert.log and definitely error or in some cases listener shutdown.
General formula to set above 3 parameters
1. processes=100
2. sessions =processes*1.1+5
3.transactions=sessions*1.1
"processes" parameter corresponds to processes spawned in unix , so if you run out of configured limit you will see above error and new connections won't be allowed unless you free some old connections or increase the limit.
Regards -
Connection error / as sysdba
I cant connect from client as well as from the server. No error at the alert file . But my tnsnames log file show this error
Please give suggessions to trace where the problem is
TNS-12500: TNS:listener failed to start a dedicated server process
TNS-12540: TNS:internal limit restriction exceeded
TNS-12560: TNS:protocol adapter error
TNS-00510: Internal limit restriction exceeded
32-bit Windows Error: 8: Exec format errorWhat version of Oracle on what platform?
On UNIX one possible cause of the ORA-12540 error is having too low of a value for open files and another cause is having the OS parameter value for MAXUPROC set too low.
You appear to be on Windows based on "32-bit Windows Error: 8: Exec format error" so I suggest ckecking the installation manual for any required Windows privileges and settings and making sure these values were set as recommended. You might have too heavy a load with too large a memory demand for a 32 bit server to handle based on the following thread:
Re: Install Oracle Clusterware/RAC Windows x32bit or Windows 64bit ?
HTH -- Mark D Powell -- -
DB13 backup failed and strucked on the start(9999) not release to (0005)
Dear All,
We r using HP-UX -- OS for SAP system 4.7 . We run backup process by DB13 TC.
On the last friday as a backup schedule i had fired the online backup and due to the below issue the backup aborpted
BR0204I Percentage done: 64.38%, estimated end time: 18:34
BR0001I ********************************__________________
BR0280I BRBACKUP time stamp: 2010-12-17 16.52.47
BR0301E SQL error -12540 at location BrDbConnect-2
ORA-12540: TNS:internal limit restriction exceeded
BR0310E Connect to database instance P3P failed
BR0311E Connect to database instance P3P during online backup failed
BR0280I BRBACKUP time stamp: 2010-12-17 16.52.49
BR0301E SQL error -12540 at location BrDbConnect-2
ORA-12540: TNS:internal limit restriction exceeded
BR0310E Connect to database instance P3P failed
BR0115I Compression rate for all files 5.3048:1
BR0056I End of database backup: beeunzod.ant 2010-12-17 16.52.47
BR0280I BRBACKUP time stamp: 2010-12-17 16.52.49
BR0054I BRBACKUP terminated with errors
and then as a scheduled i runs the offline backup on the PRD server on the night 12:00 AM on the same day it too aborpted by below issue ....
BR0278E Command output of '/oracle/P3P/920_64/bin/sqlplus':
SQL*Plus: Release 9.2.0.6.0 - Production on Sat Dec 18 00:01:35 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> Connected.
SQL>
SQL> ORA-01149: cannot shutdown - file 2 has online backup set
ORA-01110: data file 2: '/oracle/P3P/sapdata3/p3p_1/p3p.data1'
SQL> Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.6.0 - Production
BR0280I BRBACKUP time stamp: 2010-12-18 00.01.37
BR0279E Return code from '/oracle/P3P/920_64/bin/sqlplus': 0
BR0302E SQLPLUS call for database instance P3P failed
BR0309E Shutdown of database instance P3P failed
BR0056I End of database backup: beeuqbyk.fft 2010-12-18 00.01.37
BR0280I BRBACKUP time stamp: 2010-12-18 00.01.37
BR0054I BRBACKUP terminated with errors
and came to know that the DB backup of the online is strucked with the memory bottle neck and it got strucked now i am unable to run the backup of the prd server untill unless the backup of the online is got to the state of 0005 to 9999
and today morning i tried to run again the online backup and aborpted with the below issue
BR0319I Control file copy created: /oracle/P3P/sapbackup/cntrlP3P.dbf 6791168
BR0328E Database file /oracle/P3P/sapdata3/p3p_1/p3p.data1 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_2/p3p.data2 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_3/p3p.data3 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_4/p3p.data4 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_5/p3p.data5 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_6/p3p.data6 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_7/p3p.data7 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_8/p3p.data8 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_9/p3p.data9 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_10/p3p.data10 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata1/p3p_11/p3p.data11 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata1/p3p_12/p3p.data12 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata1/p3p_13/p3p.data13 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_14/p3p.data14 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_15/p3p.data15 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_16/p3p.data16 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_17/p3p.data17 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_18/p3p.data18 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata4/p3p_19/p3p.data19 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_20/p3p.data20 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_21/p3p.data21 of tablespace PSAPP3P is already in backup status
BR0328E Database file /oracle/P3P/sapdata3/p3p_22/p3p.data22 of tablespace PSAPP3P is already in backup status
BR0056I End of database backup: beevcmuf.ant 2010-12-20 12.38.44
BR0280I BRBACKUP time stamp: 2010-12-20 12.38.44
BR0054I BRBACKUP terminated with errors
please help me..........
thanks in advance
regards,
praveen kumar
Edited by: praveenkumarbabji kandula on Dec 20, 2010 1:17 PMdear gagan,
the output of the given commands are
SQL*Plus: Release 9.2.0.6.0 - Production on Mon Dec 20 13:36:46 2010
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> connect /as sysdba
Connected.
SQL> select status from v$backup;
STATUS
NOT ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
NOT ACTIVE
STATUS
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
NOT ACTIVE
STATUS
NOT ACTIVE
NOT ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ACTIVE
STATUS
ACTIVE
ACTIVE
ACTIVE
ACTIVE
37 rows selected.
SQL>
thanks for ur response
regards,
praveen kumar -
OVM 3.0.x Error documentation?
Hi,
I was wondering if there is any OVM-related errors documentations that I could use. With Oracle database products, I can quickly diagnose errors by using the oerr tool:
eg. oerr ora 12540 for an ORA-12540 error...
However, even just a document explaining the most common OVM- OVMRU_ etc error types would be most helpful, instead of having to search for each error individually.
Thanks in advance,
T.Wait for some time. Sometimes the VM Manager takes some time to do actions if you are doing too many actions through VM Manager. If after 5-10 mins of deleting the VM is not deleted, try the following:
- logout and login to VM Manager and try again
If that does not work reset the VM and after it is reset to original status, try deleting it.
If you have any probs, check the Vm logs in VM Manager.
Regards
CP -
Installing Oracle 9i Enterprise Edition
1) While installing Oracle 9i Enterprise Edition on Windows XP Professional I got "ORA-12540:TNS: Internal Restriction Limited Exceeded" error. What should I do now? Please donot direct me to the metalink.
2) Does someone has a list of Registry variables that need to be cleaned up if I want to completely remove Oracle and start over again.What do you want to learn : Administration or Development ?
Joel Pérez -
Hello -
Has anyone installed iFS on Solaris 2.7?
Does it work?
Did you have to apply any Solaris patches first?
Are you running in 64 or 32 bit mode?
Many thanks.
- Lian.For Alan at Oracle,
The question from Varun on May12 indicated
he put the database on NT and IFS on Solaris 2.7. Why didn't you tell him that it only
is certified under 2.6?
Anyway, I tried to install it on a clean 2.7
system (all latest patches), with 8.1.6 (v2).
I have two problems:
1) the text size in the java installer is so
large I cannot see the items in the Tools to
be configured area.
2) when I ran the installer, and was in the
tool configuration section, it crashed with
this message:
ifs Configuration Failure:
oracle.ifs.utils.action.ActionFailedException:
java.sql.SQLException:
Ora-12540: TNS: internal limit restriction exceeded.
The log file has same data:
arguments to BaseApp:
server=IfsDefault2
serverpassword=<password hidden>
IncludePath=/1/oracle/app/oracle/product/8i/ifs/admin/lib:/1/oracle/app/oracle/product/8i/ifs/admin/install
defaultLobTablespaceNonIndexed=IFS_LOB_N
parameterfile=/1/oracle/app/oracle/product/8i/ifs/admin/install/CreateDefaultMedia.adm
Next task: SetAdminMode true
Next task: CreateMediaLOB $$defMedia MEDIABLOB 32768 $$lobTablespaceNonIndexed
Next task: CreateMediaAV defContentMedia $$defMedia
Next task: CreateMediaAV systemMedia $$defMedia
Next task: CreatePropertyBundle2 DefaultContentMedia defContentMedia Published
Next task: CreatePropertyBundle2 SystemMedia systemMedia Published
Next task: CreateValueDefault2 DefaultContentMedia DefaultContentMedia
Next task: CreateValueDefault2 SystemMedia SystemMedia
java.sql.SQLException: ORA-12540: TNS:internal limit restriction exceeded
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at oracle.jdbc.dbaccess.DBError.throwSqlException(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at oracle.ifs.utils.sql.OracleConnections.getOci8Connection(Compiled Code)
at oracle.ifs.installer.IfsConfigSettings.getSysConnection(Compiled Code)
at oracle.ifs.installer.IfsConfiguration$CreateIfsMediasAction.createMedias(Compiled Code)
at oracle.ifs.installer.IfsConfiguration$CreateIfsMediasAction.perform(Compiled Code)
at oracle.ifs.utils.action.ActionQueue.performActions(Compiled Code)
at oracle.ifs.utils.action.ActionQueue.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
recording that configuration failed
saving:/1/oracle/app/oracle/product/8i/ifs/settings/oracle/ifs/installer/properties/IfsConfig.properties
iFS configuration failed; the following error occurred:
oracle.ifs.utils.action.ActionFailedException: java.sql.SQLException: ORA-12540: TNS:internal limit restriction exceeded
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at oracle.ifs.utils.action.ActionFailedException.<init>(Compiled Code)
at oracle.ifs.installer.IfsConfiguration$CreateIfsMediasAction.perform(Compiled Code)
at oracle.ifs.utils.action.ActionQueue.performActions(Compiled Code)
at oracle.ifs.utils.action.ActionQueue.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
configuration failed on Tue May 16 11:30:06 PDT 2000
This crash has happened twice. The second time I let the installer modify files the way
it wanted to see them and this still happened. Is the IFS system installed and just configuring it failed or do I just remove it all again?
null -
OGG ABEND TNS:internal limit restriction exceeded
I Want to determine the cause..error
Stopped Primary Extract.
command START EXTA....
but EXTA error occurred.
EXTA error log ..............................................................................
ERROR OGG-00665 Oracle GoldenGate Capture for Oracle, exta.prm: OCI Error during OCIServerAttach (status = 12540-ORA-12540: TNS:internal limit restriction exceeded), SQL<Not available>.
a few minutes later starting process again. then Extract was started.
at the time swap memoery was full.
these phenomena are related to the OGG ?
DB error log.................................................................................
TNS-12500: TNS:listener failed to start a dedicated server process
TNS-12540: TNS:internal limit restriction exceeded
TNS-12560: TNS:protocol adapter error
TNS-00510: Internal limit restriction exceeded
Solaris Error: 12: Not enough spaceThanks for comming back.
while this issue happens login to db directly even as sysdba takes a while and could not even view listener status. I tried to kill some of the processes base on below cmd.
ps -eaf|grep LOCAL
then I am able to connect to db , also Listener responds.
i also noticed queuesize was set on listener.ora and removed it , and set the trace levels to 10.
Listener has been restarted now. Seems stable at the min.
But i am not sure if the actuall issue has been resolved or not.
I also checked the resource limit
none of them reached limitation
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION INITIAL_AL LIMIT_VALU
processes 324 688 700 700
sessions 335 478 1088 1088
enqueue_locks 580 768 14380 14380
enqueue_resources 286 314 3011 UNLIMITED
ges_procs 0 0 0 0
ges_ress 0 0 0 UNLIMITED
ges_locks 0 0 0 UNLIMITED
ges_cache_ress 0 0 0 UNLIMITED
ges_reg_msgs 0 0 0 UNLIMITED
ges_big_msgs 0 0 0 UNLIMITED
ges_rsv_msgs 0 0 0 0
gcs_resources 0 0 0 0
gcs_shadows 0 0 0 0
dml_locks 0 0 100 UNLIMITED
temporary_table_locks 0 64 UNLIMITED UNLIMITED
transactions 0 0 1196 UNLIMITED
branches 0 1 1196 UNLIMITED
cmtcallbk 0 6 1196 UNLIMITED
max_rollback_segments 63 63 1196 65535
sort_segment_locks 12 80 UNLIMITED UNLIMITED
k2q_locks 0 0 2176 UNLIMITED
max_shared_servers 0 0 UNLIMITED UNLIMITED
parallel_max_servers 0 96 640 3600 -
BRCONNECT returned error status E
Below is my Developmwnt platform
Windows NT
Oracle 8.1.7
SAP R/3 4.6C
When I am trying to run Check DB..I am getting the following error.Please help me to resolve this.
Job started
Step 001 started (program RSDBAJOB, variant &0000000000009, user name BASIS)
Execute logical command BRCONNECT On host alstdev
Parameters: -u / -c -f check
BR801I BRCONNECT 6.10 (76)
BR805I Start of BRCONNECT processing: cdxiuimv.chk 2008-02-26 18.50.45
BR280I Time stamp 2008-02-26 18.50.47
BR301E SQL error -12540 at location db_connect-2
ORA-12540: TNS:internal limit restriction exceeded
BR310E Connect to database instance ALD failed
BR280I Time stamp 2008-02-26 18.50.47
BR301E SQL error -12540 at location thr_db_connect-4
ORA-12540: TNS:internal limit restriction exceeded
BR310E Connect to database instance ALD failed
BR806I End of BRCONNECT processing: cdxiuimv.chk 2008-02-26 18.50.47
BR280I Time stamp 2008-02-26 18.50.47
BR804I BRCONNECT terminated with errors
External program terminated with exit code 3
BRCONNECT returned error status E
Job finished
Regds,
MofizurHello Satadal,
The error is due to Oracle the reasons could be:
1. Number of open connection that Oracle Net can process simultaneously
2. Number of memory buffers which can be used simultaneously
3.Number of processes a particular database instance is allowed
In case of 1 and 2 its a harware bottle neck
In case of the 3rd point the number of process that the OraTNSlistener can listen to can be increased in the Initsid.ora file (but since this is for SAP i would suggest init<DBSID>.ora file.
But either ways check the logs files sqlnet.log or listener.log
for details of the error.
In most cases waiting for the open connections to close and then trying BRCONNECT should do it.
Regards,
Prashant -
just completed installtion of 91 on xp and i can not sign in;get error message:error:ora-12540:TNS:internal restriction exceeded.Does anyone know how i can correct this error?
boimaI have experienced same problem in Windows 2000 advanced server when using Oracle Database Configuration Asistant. While creating database, select New Database and save creation scripts. From command prompt, edit script batch file.Replace null with oradim. It takes time, but you can create database.
-
ORA-06553: PLS-801: internal error [hshuid:LU invalid]
DBA refreshed database B from database A (both 64-bit). Database C (also 64-bit) had a link to database B. DBA claims to have rebuilt the link from C to B, but queries now result in:
SQL> select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA');
select housing_pkg.f_housing_dep_amt@btest(12540, '200808', 'HEA')
ERROR at line 1:
ORA-06553: PLS-801: internal error [hshuid:LU invalid]
Can anyone provide some insight into what the error message is saying?Hi,
Most the error is due to the 32 bit datafiles being running on a 64 bit version of oracle.
Running utlirp.sql (this is going to invalidate most and then recompiles them again )
I suppose..that is the problem with your DB.
- Pavan Kumar N
Edited by: Pavan Kumar on Oct 2, 2008 11:59 PM -
PL/SQL report errors: ORA-01422
Hi all,
(before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
the error code:
ORA-01422: exact fetch returns more than requested number of rows
declare
vSchema varchar2(20);
vStmt varchar2(1000);
vVersion number(5);
vDBName varchar2(20);
vHostName varchar2(80);
vStmt2 varchar2(1000);
vVersion2 number(5);
vDBName2 varchar2(20);
vServer2 varchar2(80);
vSchema2 varchar2(80);
CURSOR c_schemas IS
select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
begin
IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
vServer2 := :P3_SERVER_NAME;
vSchema2 := :P3_SCHEMA_NAME;
vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
Execute Immediate vStmt2 into vDBName2, vVersion2;
htp.p('<br>');
htp.p('<table border="1">');
htp.p('<tr>');
htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
htp.p('<th bgcolor="#FFCC99">PATCH</th>');
htp.p('</tr>');
htp.p('<tr>');
htp.p('<td>');
htp.p(vServer2);
htp.p('</td>');
htp.p('<td>');
htp.p(vDBName2);
htp.p('</td>');
htp.p('<td>');
htp.p(vSchema2);
htp.p('</td>');
htp.p('<td>');
htp.p(vVersion2);
htp.p('</td>');
htp.p('<td>');
htp.p('<BR>');
htp.p('</td>');
htp.p('</tr>');
htp.p('</tr>');
htp.p('</table>');
ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
vHostName := :P3_SERVER_NAME;
vDBName := :P3_DB_NAME;
open c_schemas;
htp.p('<br>');
htp.p('<table border="1">');
htp.p('<tr>');
htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
htp.p('<th bgcolor="#FFCC99">PATCH</th>');
htp.p('</tr>');
LOOP
FETCH c_schemas INTO vSchema;
EXIT WHEN c_schemas%NOTFOUND;
vStmt := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
Execute Immediate vStmt into vVersion ;
htp.p('<tr>');
htp.p('<td>');
htp.p(vHostName);
htp.p('</td>');
htp.p('<td>');
htp.p(vDBName);
htp.p('</td>');
htp.p('<td>');
htp.p(vSchema);
htp.p('</td>');
htp.p('<td>');
htp.p(vVersion);
htp.p('</td>');
htp.p('<td>');
htp.p('<BR>');
htp.p('</td>');
htp.p('</tr>');
END LOOP;
htp.p('</tr>');
htp.p('</table>');
CLOSE c_schemas;
END IF;
END IF;
END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
Sorry if this is confusing, i have tried to explain it as best as i can.
Thanks in advance for any help.
AshleighHello Ashleigh,
Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
John -
Ora-00604 error and ora 01000 error while report generation.
hi all,
I am trying to generate the multiple reports of same template through a program.
While this job is running, i get the following error at the BIP console and the reports don't get generated.
[101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
ORA-01000: maximum open cursors exceeded
Kindly help.
Thanks.Lots of resources with a simple search to see what this is about, for example:
http://www.orafaq.com/wiki/ORA-01000
ORA-01000: maximum open cursors exceeded
Cause: A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
Action: Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
open_cursors parameter
http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
Oracle support note:
OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)
Maybe you are looking for
-
Virus,Malware not being picked up by Virus Barrier X6
Hi I stupidly tried to download a movie from piratebay. Error message appeared saying I din't have the right plugins and to enter my mac password - which I did. Anyway I now have a file appearing in my Mac HD called deletebkR3pEq. This multiplies ove
-
HT5361 Switching from Eudora to Apple Mail
I have an eMac that was upgraded to Mac OS X v. 10.5.8. I need to get a new machine. But I am using Eudora as my mail client and it can't be upgraded and will not work with later systems, so I am trying to switch to Apple Mail which I assume will b
-
my iCloud Backup button is grayed out and i cant turn it on. All my devices are on Wifi. Help! Both my ipad and iPhone
-
[bug] Album arrange is wrong sequence
I'm Classical Music lover, and I have rip my large amount of CDs to iTune. I rename those album in to the sequence, such as Album No.1, Album No.2, Album No.3, ... Here I found a bug, if I have more than 9 album (going to have 2-digit), the sequence
-
CWDDC ControllerSetConfig failed
Hello, All of the sudden I cannot boot into X anymore while using the same xorg.conf before rebooting a session in which I had no X related problems. I havent upgraded packages nor did I alter system configuration files. Startx returns this: (WW) fgl