ORA-24010
Hi
My backup job is failed,When I look at the alert log, every two minutes, the following error message is written.
ORA-24010 encountered when generating server alert SMG-4121
ORA-24010 encountered when generating server alert SMG-4120
ORA-24010 encountered when generating server alert SMG-3503
Does anyone has an idea or suggestion?
What is your database version? Additionally have you also faced ORA-00600?
Please see the following
https://metalink.oracle.com/metalink/plsql/f?p=130:14:4713393908604456708::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,432503.1,1,1,1,helvetica
Hope it helps.
Adith
Similar Messages
-
ORA-24010 encountered when generating server alert
Every Times I startup my Database I have the following messages
Error 0 in kwqmnpartition(), aborting txn
Error 0 in kwqmnpartition-update_aqs_instance, aborting txn
Completed: ALTER DATABASE OPEN
Thu May 24 14:48:10 2007
ORA-24010 encountered when generating server alert SMG-4120
ORA-24010 encountered when generating server alert SMG-4121
ORA-24010 encountered when generating server alert SMG-4121
What does that means ?
regards,This problem comes in a newly installed database following is the discussion in metalink:
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1.0
This problem can occur on any platform.
Symptoms
1. The alert.log reports the following sequence of errors several times:
Thu Mar 16 13:49:15 2006
Completed: ALTER DATABASE OPEN
Thu Mar 16 13:49:16 2006
ORA-24010 encountered when generating server alert SMG-4120
ORA-24010 encountered when generating server alert SMG-4121
ORA-24010 encountered when generating server alert SMG-4121
Thu Mar 16 14:14:16 2006
ORA-24010 encountered when generating server alert SMG-4121
ORA-24010 encountered when generating server alert SMG-4121
Thu Mar 16 14:19:17 2006
Errors in file /u01/app/oracle/admin/IRTPRO/bdump/irtpro_ora_3000.trc:
ORA-00600: internal error code, arguments: [kdappurgeostat1], [365002], [], [], [], [], [], []
2. A local SQLPLUS connection reports "Connected to an idle instance".
3. The trace file does not report current cursor or current SQL information.
Changes
This may be a new database.
Cause
Error: ORA-24010
Cause: The specified queue does not exist.
Action: Specify a valid queue. Query USER_QUEUES for all the valid queues.
QUEUE tables were not properly created. On a 10.2.0.3 database, the following standard queues exist:
SQL> SELECT NAME FROM USER_QUEUES;
NAME
AQ$_KUPC$DATAPUMP_QUETAB_E
AQ$_SYS$SERVICE_METRICS_TAB_E
SYS$SERVICE_METRICS
AQ$_ALERT_QT_E
ALERT_QUE
AQ$_AQ$_MEM_MC_E
SRVQUEUE
AQ$_SCHEDULER$_EVENT_QTAB_E
SCHEDULER$_EVENT_QUEUE
AQ$_SCHEDULER$_JOBQTAB_E
SCHEDULER$_JOBQ
AQ$_AQ_SRVNTFN_TABLE_E
AQ_SRVNTFN_TABLE_Q
AQ$_AQ_EVENT_TABLE_E
AQ_EVENT_TABLE_Q
15 rows selected.
Since this is a new installation with a new database, the proper QUEUE tables should have been created at database creation during execution of catalog and catproc.
Solution
To resolve the problem:
1. SQL> spool output.txt
2. SQL> @?/rdbms/admin/catalog.sql
3. SQL> @?/rdbms/admin/catproc.sql
4. SQL> utlrp.sql
5. SQL> select comp_name, status from dba_registry;
(to verify VALID components)
6. SQL> select owner, object_name, object_type from dba_objects where status = 'INVALID';
(to verify VALID objects)
Let us know the status after this fix.
Senthil -
ORA-24010 encountered when generating server alert SMG-3000
Hi,
When i startup my database, database opened successfully but alert log shows that,
QMNC started with pid=16, OS id=19647
Mon Dec 6 00:34:17 2010
ORA-24010 encountered when generating server alert SMG-3000
ORA-24010 encountered when generating server alert SMG-4120
ORA-24010 encountered when generating server alert SMG-4121
ORA-24010 encountered when generating server alert SMG-4121
Mon Dec 6 00:34:18 2010
Completed: ALTER DATABASE OPEN
How to resolve the error..???
Thakns in advanceHi,
looking at document ID 432503.1 on Oracle Support; it looks like there are some bad queues. Have a look at this document to solve your problem.
Herald ten Dam
http://htendam.wordpress.com -
ORA-20000: cannot find the dimension
Hi,
While trying to install Oracle 11g R2 Single Instance Database on Solaris 10 (sparc) got following error:
[Thread-10] [ 2012-07-14 20:57:33.395 EEST ] [CloneDBCreationStep.executeImpl:650] ** INSTALL SAMPLE SCHEMA'S **
[Thread-10] [ 2012-07-14 20:57:33.397 EEST ] [CloneDBCreationStep.executeImpl:691] Transportable datafile:=/opt/oracle/oradata/egldb/example01.dbf
[Thread-10] [ 2012-07-14 20:57:33.398 EEST ] [CloneDBCreationStep.executeImpl:698] Script to be Excecuted ::::=/opt/oracle/product/11.2.0/db_1/demo/schema/mkplug.sql
[Thread-14] [ 2012-07-14 20:59:40.903 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
[Thread-14] [ 2012-07-14 20:59:40.905 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-20000: cannot find the dimension
ORA-06512: at "SYS.DBMS_DIMENSION", line 404
ORA-06512: at "SYS.DBMS_DIMENSION", line 426
ORA-06512: at "SYS.DBMS_SUMMARY", line 54
ORA-06512: at line 1
:msg
Do you have any ideas about how to fix it?
Thanks, Andriy.
Edited by: 946442 on 14/7/2012 11:08Hi,
More errors appeared after i ignored previous errors.
Are they because of previous "ORA-20000: cannot find the dimension" error?
[Thread-14] [ 2012-07-14 21:26:11.986 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
[Thread-14] [ 2012-07-14 21:26:11.988 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.AQ$_ORDERS_QUEUETABLE_E does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
ORA-06512: at line 1
:msg
[Thread-14] [ 2012-07-14 21:26:17.602 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
[Thread-14] [ 2012-07-14 21:26:17.604 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.AQ$_STREAMS_QUEUE_TABLE_E does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
ORA-06512: at line 1
:msg
[Thread-14] [ 2012-07-14 21:26:18.442 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
[Thread-14] [ 2012-07-14 21:26:18.443 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.ORDERS_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
ORA-06512: at line 1
:msg
[Thread-14] [ 2012-07-14 21:26:20.673 EEST ] [BasicStep.handleNonIgnorableError:430] oracle.sysman.assistants.util.UIMessageHandler@9c4ff2c:messageHandler
[Thread-14] [ 2012-07-14 21:26:20.675 EEST ] [BasicStep.handleNonIgnorableError:431] ORA-24010: QUEUE IX.STREAMS_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYSCALLS", line 309
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 11237
ORA-06512: at line 1
:msg
Thanks, Andriy. -
Queue problem in starting SOA server
Hi All,
I am facing the below issue because of that SOA server is not fully in started.
My issue is SOA suite got installed some days ago.When I am starting the server, I am getting below error which is continuously coming for longtime and SOA server is not fully started.
[oracle.integration.platform.blocks.event.saq] [tid: Workmanager: , Version: 0,
Scheduled=false, Started=false, Wait time: 0 ms\r\n] [userId: <anonymous>]
[ecid: 2baaeb9821a81225:bd17779:1439aa16180:-8000-000000000002b57b,0] [APP:
soa-infra] Error handling message (rolling back).[[
java.sql.SQLException:
ORA-24010: QUEUE DEV_SOAINFRA.EDN_OAOO_QUEUE does not
exist
ORA-06512: at "SYS.DBMS_AQ",
line 335
ORA-06512: at
"DEV_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14
I feel the server installation that was done earlier is not proper. It is giving some queue does not exist.
Let me know your views on this
ThanksI'm not a big pro in that, but it is clear that either the schema creation script wasn't executed or has failed. Or, may be, you pointed your installation to a wrong DB server or under a wrong user.
Here's a guy provides a script that drops and recreates the queues for SOA Server: http://rreddy.blogspot.ca/2013/10/create-soa-related-queues.html
You may consider to try it (I would recreate one queue first and see if it changed the error).
Vlad
http://vladimirdyuzhev.com
P.S. Frankly, if your installation went wrong in one place, who knows how many other things are wrong too. Trying to troubleshoot them one by one may take longer than a clean reinstall. This is your call though. -
Dbms_scheduler - dbms_aq - dbms_aqadm - event driven job runs only once/sec
hi, i tried here to process events with 2 jobs... surprisingly i had to call dbms_lock.sleep(1) to be able to enqueue events
at inserts in a row ... even more surprisingly the enqueuing doesn't function if the processing (prc_evsched) lasts some seconds...
how must the code be changed to be able to enqueue all events after the inserts without any sleep()?
and how must the code be changed to be able to enqueue all events with a proc (prc_evsched) running longer?
thanx in advance for your help!
--evsched
h4.
--to remove all test-objects
h4.
--test table
h4.
--define the object type to act as the payload for the queue
h4.
--creating the event queue
h4.
--creating the proc for the prog/job
h4.
--creating the proc for the prog/job
h4.
--creating the program
h4.
--creating the first job (for parallel execution)
h4.
--creating the second job (for parallel execution)
h4.
--test block
h4.
--test scenarios/results
h4.
--to remove all test-objects
DECLARE
exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
exc_ora_27476 EXCEPTION; --ora-27476: <program_name> ist nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_27476, -27476);
exc_ora_24010 EXCEPTION; --ORA-24010: QUEUE SYSGIS.EVENT_QUEUE ist nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_24010, -24010);
exc_ora_24002 EXCEPTION; --ORA-24002: QUEUE_TABLE SYSGIS.EVENT_QUEUE_TAB ist nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_24002, -24002);
exc_ora_4043 EXCEPTION; --ORA-04043: Objekt T_EVENT_QUEUE_PAYLOAD ist nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_4043, -4043);
exc_ora_942 EXCEPTION; --ORA-00942: Tabelle oder View nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_942, -942);
exc_ora_2289 EXCEPTION; --ORA-02289: Sequence ist nicht vorhanden.
PRAGMA EXCEPTION_INIT (exc_ora_2289, -2289);
v_fpos PLS_INTEGER := 1;
BEGIN
v_fpos := 10;
BEGIN
--remove job
SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched', FORCE=>TRUE);
EXCEPTION WHEN exc_ora_27475 THEN NULL;
END;
v_fpos := 12;
BEGIN
--remove job
SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched_2', FORCE=>TRUE);
EXCEPTION WHEN exc_ora_27475 THEN NULL;
END;
v_fpos := 20;
BEGIN
--remove program
SYS.DBMS_SCHEDULER.DROP_PROGRAM(program_name=>'prg_evsched',FORCE=>TRUE);
EXCEPTION WHEN exc_ora_27476 THEN NULL;
END;
v_fpos := 30;
BEGIN
-- stop the event queue.
DBMS_AQADM.stop_queue (queue_name => 'evsched_event_queue');
EXCEPTION WHEN exc_ora_24010 THEN NULL;
END;
v_fpos := 40;
BEGIN
-- drop the event queue.
DBMS_AQADM.drop_queue (queue_name => 'evsched_event_queue');
EXCEPTION WHEN exc_ora_24010 THEN NULL;
END;
v_fpos := 50;
BEGIN
-- Remove the queue table.
DBMS_AQADM.drop_queue_table(queue_table => 'tab_evsched_event_queue');
EXCEPTION WHEN exc_ora_24002 THEN NULL;
END;
v_fpos := 60;
BEGIN
-- remove type
EXECUTE IMMEDIATE 'DROP TYPE typ_evsched_payload';
EXCEPTION WHEN exc_ora_4043 THEN NULL;
END;
v_fpos := 70;
BEGIN
-- remove table
EXECUTE IMMEDIATE 'DROP TABLE tab_evsched';
EXCEPTION WHEN exc_ora_942 THEN NULL;
END;
v_fpos := 80;
BEGIN
-- remove sequence
EXECUTE IMMEDIATE 'DROP SEQUENCE seq_evsched';
EXCEPTION WHEN exc_ora_2289 THEN NULL;
END;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('v_fpos='||v_fpos);
END;
h4.
--test table
CREATE TABLE tab_evsched
( id NUMBER
, sys_date DATE
, status VARCHAR2(1)
, processed VARCHAR2(1) DEFAULT 'N'
, processed_by varchar2(128)
GRANT DELETE, INSERT, SELECT, UPDATE ON tab_evsched TO PUBLIC
CREATE SEQUENCE seq_evsched
h4.
--define the object type to act as the payload for the queue
CREATE OR REPLACE TYPE typ_evsched_payload AS OBJECT
( event_name VARCHAR2(30)
, tab_evsched_id NUMBER
, daterf DATE
h4.
--creating the event queue
BEGIN
-- Create a queue table to hold the event queue.
DBMS_AQADM.create_queue_table
( queue_table => 'tab_evsched_event_queue'
, queue_payload_type => 'typ_evsched_payload'
, multiple_consumers => TRUE
, COMMENT => 'Queue Table For Event Messages'
-- Create the event queue.
DBMS_AQADM.create_queue
( queue_name => 'evsched_event_queue'
, queue_table => 'tab_evsched_event_queue'
, queue_type => DBMS_AQADM.NORMAL_QUEUE
, max_retries => 0
, retry_delay => 0
, dependency_tracking => FALSE
, comment => 'Test Object Type Queue'
, auto_commit => FALSE
-- Start the event queue.
DBMS_AQADM.start_queue
( queue_name => 'evsched_event_queue'
END;
h4.
--creating the proc for the prog/job
CREATE OR REPLACE PROCEDURE prc_evsched
( p_message IN typ_evsched_payload
, p_job_name IN VARCHAR2
IS
BEGIN
UPDATE tab_evsched
SET processed = 'J'
, processed_by = p_job_name
, sys_date = p_message.daterf
WHERE 1=1
AND id = p_message.tab_evsched_id
dbms_lock.sleep(5); --#sleep-1#
COMMIT;
END prc_evsched;
h4.
--creating the program
DECLARE
exc_ora_27476 EXCEPTION; --ora-27476: <program_name> ist nicht vorhanden
PRAGMA EXCEPTION_INIT (exc_ora_27476, -27476);
BEGIN
BEGIN
SYS.DBMS_SCHEDULER.DROP_PROGRAM(program_name=>'prg_evsched',FORCE=>TRUE);
EXCEPTION
WHEN exc_ora_27476 THEN
NULL;
END;
SYS.DBMS_SCHEDULER.CREATE_PROGRAM
( program_name => 'prg_evsched'
, program_type => 'STORED_PROCEDURE'
, program_action => '"SYSGIS"."PRC_EVSCHED"'
, number_of_arguments => 2
, enabled => FALSE
, comments => 'Program-Komponent für den Test von DBMS_SCHEDULER'
--event message as the first param to prc_evsched
DBMS_SCHEDULER.DEFINE_METADATA_ARGUMENT
( program_name => 'prg_evsched'
, argument_position => 1
, metadata_attribute => 'EVENT_MESSAGE'
--name of the job as the second param to prc_evsched
SYS.DBMS_SCHEDULER.define_program_argument
( program_name => 'prg_evsched'
, argument_name => 'p_job_name'
, argument_position => 2
, argument_type => 'VARCHAR2'
, default_value => 'dummy'
--enable program
SYS.DBMS_SCHEDULER.ENABLE(NAME=>'prg_evsched');
END;
h4.
--creating the first job (for parallel execution)
DECLARE
exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
BEGIN
BEGIN
--remove job
SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched', FORCE=>TRUE);
EXCEPTION WHEN exc_ora_27475 THEN NULL;
END;
DBMS_SCHEDULER.create_job
( job_name => 'job_evsched'
, program_name => 'prg_evsched'
, start_date => SYSTIMESTAMP
, event_condition => 'tab.user_data.event_name = ''MYEVENT'''
, queue_spec => 'evsched_event_queue'
, auto_drop => FALSE
, enabled => FALSE
SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE
( job_name => 'job_evsched'
, argument_name => 'p_job_name'
, argument_value => 'job_evsched'
SYS.DBMS_SCHEDULER.ENABLE(NAME=>'job_evsched');
END;
h4.
--creating the second job (for parallel execution)
DECLARE
exc_ora_27475 EXCEPTION; --ora-27475: <job_name> muss job sein
PRAGMA EXCEPTION_INIT (exc_ora_27475, -27475);
BEGIN
BEGIN
--remove job
SYS.DBMS_SCHEDULER.DROP_JOB(job_name=> 'job_evsched_2', FORCE=>TRUE);
EXCEPTION WHEN exc_ora_27475 THEN NULL;
END;
DBMS_SCHEDULER.create_job
( job_name => 'job_evsched_2'
, program_name => 'prg_evsched'
, start_date => SYSTIMESTAMP
, event_condition => 'tab.user_data.event_name = ''MYEVENT'''
, queue_spec => 'evsched_event_queue'
, auto_drop => FALSE
, enabled => FALSE
SYS.DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE
( job_name => 'job_evsched_2'
, argument_name => 'p_job_name'
, argument_value => 'job_evsched_2'
SYS.DBMS_SCHEDULER.ENABLE(NAME=>'job_evsched_2');
END;
h4.
--test block
DECLARE
PROCEDURE pr_ins_tab_evsched
( p_id IN NUMBER
, p_status IN VARCHAR2
IS
BEGIN
INSERT INTO tab_evsched(id,status) VALUES (p_id, p_status);
COMMIT;
--enqueue the MYEVENT-event
IF p_status = 'M' THEN
--enqueue works in 1sekunden-taktung.... !?
dbms_lock.sleep(1); --#sleep-2#
DECLARE
v_enqueue_options DBMS_AQ.enqueue_options_t;
v_message_properties DBMS_AQ.message_properties_t;
v_message_handle RAW(16);
v_queue_msg typ_evsched_payload;
BEGIN
v_queue_msg := typ_evsched_payload
( event_name => 'MYEVENT'
, tab_evsched_id => p_id
, daterf => SYSDATE
v_enqueue_options.VISIBILITY := DBMS_AQ.ON_COMMIT;
v_enqueue_options.delivery_mode := DBMS_AQ.PERSISTENT;
v_message_properties.PRIORITY := 1;
v_message_properties.DELAY := DBMS_AQ.NO_DELAY;
v_message_properties.EXPIRATION := DBMS_AQ.NEVER;
v_message_properties.CORRELATION := 'TEST MESSAGE';
DBMS_AQ.enqueue
( queue_name => 'evsched_event_queue'
, enqueue_options => v_enqueue_options
, message_properties => v_message_properties
, payload => v_queue_msg
, msgid => v_message_handle
END;
END IF;
COMMIT;
END pr_ins_tab_evsched;
BEGIN
DELETE tab_evsched;
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
pr_ins_tab_evsched (seq_evsched.NEXTVAL,'M');
END;
SELECT * FROM tab_evsched ORDER BY id;
SELECT * FROM sysgis.tab_evsched_event_queue;
h4.
--test scenarios/resultsh
h5.
--test results #sleep-1#=5, #sleep-2#=0
--job (job_evsched) runs only once, only the first event is enqued/processed
ID SYS_DATE STATUS PROCESSED PROCESSED_BY
9 22.03.2012 17:00:41 M J job_evsched
10 (Null) M N (Null)
11 (Null) M N (Null)
12 (Null) M N (Null)
13 (Null) M N (Null)
14 (Null) M N (Null)
15 (Null) M N (Null)
16 (Null) M N (Null)
h5.
--test results #sleep-1#=0, #sleep-2#=1
--jobs (job_evsched/job_evsched2) run alternately, every events are enqued/processed
ID SYS_DATE STATUS PROCESSED PROCESSED_BY
25 22.03.2012 17:04:31 M J job_evsched_2
26 22.03.2012 17:04:32 M J job_evsched_2
27 22.03.2012 17:04:33 M J job_evsched
28 22.03.2012 17:04:34 M J job_evsched_2
29 22.03.2012 17:04:35 M J job_evsched_2
30 22.03.2012 17:04:36 M J job_evsched_2
31 22.03.2012 17:04:37 M J job_evsched
32 22.03.2012 17:04:38 M J job_evsched_2
h5.
--test results #sleep-1#=5, #sleep-2#=1
--jobs (job_evsched/job_evsched2) run alternately, only two events are enqued/processed
ID SYS_DATE STATUS PROCESSED PROCESSED_BY
41 22.03.2012 17:07:42 M J job_evsched_2
42 (Null) M N (Null)
43 (Null) M N (Null)
44 (Null) M N (Null)
45 (Null) M N (Null)
46 (Null) M N (Null)
47 22.03.2012 17:07:48 M J job_evsched
48 (Null) M N (Null)
*/hi, thank you for your (fast) answer! that is the solution to my problem!
now i have a follow-up question:
i've got a procedure, that runs between 1 and 2 minutes long. unlimited running lightweight jobs
would freeze the db...
how can the count of the parallel running lightweight-jobs be limited?
according to the documentation it is not possible:
There is no explicit limit to the number of lightweight jobs that can run simultaneously to process multiple instances of the event.
However, limitations may be imposed by available system resources.
could you explain to me, what it (...available system recources...) means?
eventually what i would like to have: max. two parallel running (lightweight) jobs....
thank you in advance, bye, á
ps: can i attach a file to the post anyway?
Edited by: user4786904 on 23.03.2012 07:22 -
Processing SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
I tried to import my 20GB data into my database but it is pending/hanging almost 1 day at this line, which is
Processing SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX .
My db version is :Version 11.1.0.7.0
What could be the reason? Why it is waiting so long on this line? It is locking indexes?Windows Server 2008 R2 Enterprise
impdp user/pass@DB exclude=statistics schemas=user dumpfile=a.dmp log=a.log
Import: Release 11.1.0.7.0 - 64bit Production on Friday, 10 August, 2012 17:04:03
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "ODB"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "ODB"."SYS_IMPORT_FULL_01": odb/********@TEST parallel=4 dumpfile=UAT_08082012.DMP
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"ODB" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
Processing object type SCHEMA_EXPORT/DB_LINK
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "ODB"."PN_INVENTORY_HISTORY" 218.6 MB 1302517 rows
SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
and waiting here since 1 day..
alert log file has some warnings like:
<txt>Warning: drop_queue_table: No evaluation for the queue table: ODB.ROS_IN_QUEUE_TABLE
</txt>
</msg>
<msg time='2012-08-11T00:29:21.710+03:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
Thread 1 advanced to log sequence 91 (LGWR switch)
Current log# 1 seq# 91 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG
Sat Aug 11 10:16:16 2012
Thread 1 advanced to log sequence 92 (LGWR switch)
Current log# 2 seq# 92 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG
Sat Aug 11 10:16:40 2012
Thread 1 cannot allocate new log, sequence 93
Checkpoint not complete_
Current log# 2 seq# 92 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG_
Thread 1 advanced to log sequence 93 (LGWR switch)_
Current log# 3 seq# 93 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO03.LOG_
Thread 1 cannot allocate new log, sequence 94_
Checkpoint not complete_
Current log# 3 seq# 93 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO03.LOG_
Thread 1 advanced to log sequence 94 (LGWR switch)_
Current log# 1 seq# 94 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG_
Sat Aug 11 10:16:56 2012_
Thread 1 cannot allocate new log, sequence 95_
Checkpoint not complete_
Current log# 1 seq# 94 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO01.LOG
Thread 1 advanced to log sequence 95 (LGWR switch)
Current log# 2 seq# 95 mem# 0: D:\APP\TRAXADMIN\ORADATA\TEST\REDO02.LOG
<txt>Errors in file d:\app\traxadmin\diag\rdbms\test\test\trace\test_j003_6036.trc:
ORA-12012: error on auto execute of job 74639
ORA-20111: ORA-24010: QUEUE ODB.IFACE_AEX_IN_Q does not exist
ORA-06512: at "ODB.PKG_IFACE_QUEUE", line 80
ORA-24010: QUEUE ODB.IFACE_AEX_IN_Q does not exist
ORA-06512: at "ODB.PKG_IFACE_QUEUE", line 48
ORA-06512: at "ODB.PKG_AEX_INBOUND"
Edited by: user638937 on 11.Ağu.2012 00:27 -
Accessing DBMS_AQ from Apex screen gives an error
Hi,
I have created an Advanced queue (DBMS_AQ) in my schema and i can successfully enqueue and dequeue messages through a stored proc.
But when i call the same stored proc from an APEX screen, i get the following error.
"ORA-24010: QUEUE APEX_PUBLIC_USER.<Q_name> does not exist."
As AQ admin and even as SYSDBA, the following permissions were given, but still
no luck.
1) DBMS_AQADM.grant_queue_privilege (
privilege => 'ENQUEUE_ANY',
queue_name => 'Q_name',
grantee => 'APEX_PUBLIC_USER',
grant_option => FALSE);
2) DBMS_AQADM.grant_queue_privilege (
privilege => 'DEQUEUE_ANY',
queue_name => 'Q_name',
grantee => 'APEX_PUBLIC_USER',
grant_option => FALSE);
3) DBMS_AQADM.grant_queue_privilege (
privilege => 'ALL',
queue_name => 'Q_name',
grantee => 'PUBLIC',
grant_option => FALSE);
4) Created a public synonym for the queue and tried to access the queue from the screen.
Can you please help me to access the Queue from APEX screens ?Hi Scott,
First to answer your questions based on the error i was getting
All 1 , 2 and 3 are the same.
1) The schema assigned to the application is 'XYZ'
2) 'XYZ' is the AQ_administrator
3) Permission was granted to APEX_PUBLIC_USER by connecting as 'XYZ'.
Also in my local XE DB, i tried the same and i am able to access Q from the APEX application created in that Schema.
I did not grant any privilege except that the schema (foo) is the AQ_ADMIN.
schema: foo
workspace: foo (automatically created when i create an app in the schema)
parsing schema: foo
Please find the steps below
Connect As Sysdba
AQ_ADMIN PRIVELEGES
1) GRANT aq_administrator_role TO foo;
2) GRANT execute ON dbms_aq TO foo;
3) GRANT execute ON dbms_aqadm TO foo;
Connect As foo
1) create type image_uploaded_ot as object
sheet_id NUMBER(15));
2) GRANT EXECUTE ON IMAGE_UPLOADED_OT TO PUBLIC;
-- create QT and Q
3) begin
DBMS_AQADM.CREATE_QUEUE_TABLE (
queue_table => 'image_uploaded_qt',
queue_payload_type => 'image_uploaded_ot'
DBMS_AQADM.CREATE_QUEUE (
queue_name => 'image_uploaded_q',
queue_table => 'image_uploaded_qt'
DBMS_AQADM.START_QUEUE (
queue_name => 'image_uploaded_q'
end;
-- verify if queue exists
4) SELECT name, enqueue_enabled, dequeue_enabled
FROM user_queues;
SELECT name, enqueue_enabled, dequeue_enabled
FROM user_queues;
5) TESTING - ENQUEUE/DEQUEUE
CREATE OR REPLACE PROCEDURE demo_enqueue ( OT_I image_uploaded_ot)
IS
enq_msgid RAW(16);
eopt dbms_aq.enqueue_options_t;
mprop dbms_aq.message_properties_t;
aprop sys.aq$_agent;
pragma autonomous_transaction;
BEGIN
aprop := sys.aq$_agent(NULL, 'foo.image_uploaded_q', 0);
mprop.sender_id := aprop;
dbms_aq.enqueue('foo.image_uploaded_q', eopt, mprop, OT_I, enq_msgid);
COMMIT;
END demo_enqueue;
CREATE OR REPLACE PROCEDURE demo_dequeue IS
deq_msgid RAW(16);
dopt dbms_aq.dequeue_options_t;
mprop dbms_aq.message_properties_t;
payload_t image_uploaded_ot;
q_on_hand PLS_INTEGER;
no_messages EXCEPTION;
pragma exception_init(no_messages, -25228);
pragma autonomous_transaction;
BEGIN
dopt.dequeue_mode := dbms_aq.remove;
dopt.navigation := dbms_aq.first_message;
dopt.visibility := dbms_aq.immediate;
-- add functionality with mprop.attempts and mprop.enqueue_time
dbms_aq.dequeue('foo.image_uploaded_q', dopt, mprop, payload_t, deq_msgid);
UPDATE OFFICE
SET OFFICE_NAME = 'TEST'
WHERE OFFICE_ID = payload_t.SHEET_ID;
COMMIT;
EXCEPTION
WHEN others THEN
RAISE;
END;
6) TESTING FROM APEX
created a pl/sql process
declare
test_ot image_uploaded_ot;
begin
test_ot := image_uploaded_ot(1);
demo_enqueue(test_ot);
demo_dequeue();
end;
By looking at the test program above and the answer to the questions. The test prgm satisfies criteria 1 and 2 above and as you had mentioned and confirmed by test prgm, 3 is not required.
I am not sure what privilege is missing in the actual schema.
But atleast a hope that a AQ is accessible from APEX :)
Thanks,
Rakesh -
Errors installing SOA Suite 11g
Good morning
This is an odd error. I am installing a brand new environment for SOA-SUITE 11g on a test database before going through the pain to complete this in our development environment. I am using RCU to build the environment as instructed and am allowing RCU to handle everything but constructing the schemas. I have created the schemas manually via SQL*Plus.
This process has worked in the past so I'm at a loss for explaining these errors. In creating the SOAINFRA, I am receving the following errors:
ORA-60019: Creating initial extent of size 14 in tablespace of extent size 13
ORA-06512: at "SYS.DBMS_AQADM", line 81
ORA-06512: at line 2
JDBC SQLException handled by error handler
2012-06-08 09:09:30.929 rcu:Extracting Statement from File Name: 'D:\rcuHome\rcu\integration\soainfra\sql\fabric\createschema_edndb_oracle.sql'Line Number: 157
2012-06-08 09:09:30.929 rcu:Extracted SQL Statement: [begin
DBMS_AQADM.create_queue_table(queue_table=>'edn_oaoo_delivery_table', queue_payload_type=>'edn_oaoo_delivery',
multiple_consumers=>TRUE);
DBMS_AQADM.create_queue(queue_name=>'edn_oaoo_queue', queue_table=>'edn_oaoo_delivery_table');
DBMS_AQADM.start_queue(queue_name=>'edn_oaoo_queue');
end;
2012-06-08 09:09:30.929 rcu:Statement Type: 'BEGIN/END Anonymous Block'
JDBC SQLException - ErrorCode: 60019SQLState:99999 Message: ORA-60019: Creating initial extent of size 14 in tablespace of extent size 13
ORA-06512: at "SYS.DBMS_AQADM", line 81
ORA-06512: at line 2
JDBC SQLException handled by error handler
2012-06-08 09:09:35.547 rcu:Extracting Statement from File Name: 'D:\rcuHome\rcu\integration\soainfra\sql\fabric\createschema_edndb_oracle.sql'Line Number: 167
2012-06-08 09:09:35.547 rcu:Extracted SQL Statement: [declare
sub sys.aq$_agent;
begin
sub := sys.aq$_agent('edn_java_subscriber', NULL, NULL);
DBMS_AQADM.add_subscriber(queue_name=>'edn_event_queue', subscriber=>sub);
end;
2012-06-08 09:09:35.547 rcu:Statement Type: 'BEGIN/END Anonymous Block'
JDBC SQLException - ErrorCode: 24010SQLState:99999 Message: ORA-24010: QUEUE EDN_EVENT_QUEUE does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 6268
ORA-06512: at "SYS.DBMS_AQADM", line 364
ORA-06512: at line 5
JDBC SQLException handled by error handler
2012-06-08 09:09:35.781 rcu:Extracting Statement from File Name: 'D:\rcuHome\rcu\integration\soainfra\sql\fabric\createschema_edndb_oracle.sql'Line Number: 174
2012-06-08 09:09:35.781 rcu:Extracted SQL Statement: [declare
sub sys.aq$_agent;
begin
sub := sys.aq$_agent('edn_oaoo_subscriber', NULL, NULL);
DBMS_AQADM.add_subscriber(queue_name=>'edn_oaoo_queue', subscriber=>sub);
end;
2012-06-08 09:09:35.781 rcu:Statement Type: 'BEGIN/END Anonymous Block'
JDBC SQLException - ErrorCode: 24010SQLState:99999 Message: ORA-24010: QUEUE EDN_OAOO_QUEUE does not exist
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 6268
ORA-06512: at "SYS.DBMS_AQADM", line 364
ORA-06512: at line 5
JDBC SQLException handled by error handler
Now, I thought this was a tablespace space issue but here is a report on the status of all tablespaces.
Free Space Layout
Total Max Total
Number Free Free Available
Tablespace of Space Space Space Percent
Name Fragments (Meg) (Meg) (Meg) Free
EXAMPLE 3 36 33 346 10.271
SOA_SUITE_DATA_01 1 101 101 101 99.853
SOA_SUITE_DATA_02 1 101 101 101 99.853
SYSAUX 114 560 500 1,161 48.272
SYSTEM 2 503 499 1,241 40.532
UNDOTBS1 18 40 21 105 37.917
USERS 2 101 100 106 95.224
I even granted RESOURCE in case the tool needed UNLIMITED TABLESPACE.
Does anyone have any ideas here? Any help would be greatly appreciated
Stephen KarniotisHi Stephen
"I am using RCU to build the environment as instructed and am allowing RCU to handle everything but constructing the schemas. I have created the schemas manually via SQL*Plus"
Do you mean you are not running RCU utility command from D:\rcuHome\bin\rcu.cmd folder ? As far as I know, this is the supported and easiest way to create any Schemas for any SOA Middleware product like SOA, BPM, OBIEE, ODI, WebCenter etc etc. I am not sure if directly running sql scripts will work and if its possible also.
I would prefer running rcu.cmd command and provide Database SYS username, password with db details like db host, port, sid. Incase if db credentials are secret and not given to you, simply ask that DB Adminstrator to run this RCU command. Just unzip this file and run rcu.cmd and provide all the details. This do NOT need any other thing at all. Its pretty straight forward.
RCU command takes care of all the things. Create tablespaces, schemas, then create all the stuff inicluding tables, sequeneces, packages and compile them also.
Finally if you use Oracle XE 10g Edition, run one line to set this value before you run rcu.cmd -> set RCU_JDBC_TRIM_BLOCKS=TRUE
Thanks
Ravi Jegga -
Hi everyone,
I'm getting a runtime fault while publishing an event (inside a BPEL).
Following you have a short overview about how we have reached this error :
Few weeks ago we decided to create a new environment for Development. In order to do that, we cloned the Quality environment (schemas prefix - QAS01) machines to have a fully stable version of all services and database schemas to start new developments. We have changed the machines host names as well as refreshed all the references from data sources to a new [cloned] database, we didn't forget to rename the SOA schemas, e.g. QAS01_SOAINFRA renamed with the new prefix DEV01.
So, after that, we were ready to start deploying and testing new composites to this new environment. Everything was going well until we have a composite with a BPEL publishing an event.
You can take look to the error message below that we got from the runtime fault.
oracle.fabric.common.FabricException: Error enqueing event:
ORA-24010: QUEUE QAS01_SOAINFRA.EDN_EVENT_QUEUE does not exist
ORA-06512: at "SYS.DBMS_AQ", line169
ORA-06512: at "DEV01_SOAINFRA.EDN_ENQUEUE_BUSINESS_EVENT", line 42
ORA-06512: at "DEV01_SOAINFRA.EDN_INTERNAL_PUBLISH_EVENT", line 4
I think that we have missed some configuration change after cloning the environment, since QAS01_SOAINFRA is not supposed to be referenced anywhere in this new environment but DEV01_SOAINFRA.
Is it possible to change (EM, Console, somewhere else ...) the schema reference where EDN_EVENT_QUEUE is defined?
Maybe this is an uncommon situation but I would appreciate your help.
Thank you in advance.just go through the link:
http://codeconfuse.blogspot.com/2013/11/large-event-payload-causes-ora-19011.html -
QUEUE SOA2_SOAINFRA.REAMAGNETWIRE_OUT_QUEUE does not exist
Hi B2B Guru,
Below error is getting repeated on the logs:
<Jul 13, 2011 10:12:32 AM GMT> <Error> <oracle.soa.b2b.transport> <BEA-000000> <AQDequeuer_ReadMessage: A database exception occurred: java.sql.SQLException:
ORA-24010: QUEUE SOA2_SOAINFRA.REAMAGNETWIRE_OUT_QUEUE does not exist
Actually REAWIRE_OUT_QUEUE is custom queue(AQ), we created this queue in database, but while configuring this queue in B2B console listening channel, we configured with wrong name as "REAMAGNETWIRE_OUT_QUEUE " after one day by seeing this error in the log file we deleted from B2B console(Listening channel), but still it showing this error in log file.
Can anyone help us why it still showing in the log
Regards
FrancisHi Anuj,
Yes it is a dev/test environment. Sure I will send you the export to your mail-id.
Regards
francis
Edited by: Francis on Jul 14, 2011 10:00 PM -
Dropping database queue from a databsae user
Hi
I want to drop a user chealth1 from our databse
when i run the command
drop user chealth1 cascade - I am getting error
SQL> drop user chealth1 cascade;
drop user chealth1 cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
all the queue from dba_queue belong to SYS user.
how can i do this. when i run command
EXEC dbms_aqadm.stop_queue('ALERT_QUE' ) i am getting error
SQL> EXEC dbms_aqadm.stop_queue('ALERT_QUE' )
BEGIN dbms_aqadm.stop_queue('ALERT_QUE' ); END;
ERROR at line 1:
ORA-24010: QUEUE CHEALTH1.ALERT_QUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4354
ORA-06512: at "SYS.DBMS_AQADM", line 240
ORA-06512: at line 1
any suggestions
kedarHow did you know the queue name was ALERT_QUE ?
what is the output of :
SQL> select name, queue_table from user_queues ;? -
Hi,
Can anyone help me. I seem to have somehow corrupted my streams environment whilst trying to remove streams:
SQL> select * from dba_propagation;
PROP_1 STRMADMIN
CAPTURE_QUEUE STRMADMIN
APPLY_QUEUE
HLRDB.SITE1
STRMADMIN RULESET$_18
SQL> BEGIN
DBMS_PROPAGATION_ADM.DROP_PROPAGATION(
propagation_name => 'PROP_1');
END;
BEGIN
ERROR at line 1:
ORA-24010: QUEUE STRMADMIN.CAPTURE_QUEUE does not exist
ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 546
ORA-06512: at "SYS.DBMS_PROPAGATION_ADM", line 82
ORA-06512: at line 2
Any ideas?
Cheers,
WarrenI had the same issue while dropping. I granted execute permission to this package to public and I was able to run this.
connect sys as sysdba
grant execute on DBMS_PROPAGATION_ADM to "PUBLIC";
conenct strmadmin
run the drop stmt. -
GATHER_STATS_JOB / WEEKNIGHT_WINDOW ORA-20003
Hi all,
Oracle 10g R2 after on SLES 10 Linux.
After I installed the PSU from Jan. I get a daily ORA-20003 from maintains windows reguarding the GATHERER_STATS JOB
Sat Mar 13 06:00:13 2010
GATHER_STATS_JOB encountered errors. Check the trace file.
Sat Mar 13 06:00:13 2010
Errors in file /u01/app/oracle/admin/boracn/bdump/boracn1_j003_15027.trc:
ORA-20003: Specified bug number (5099019) does not exist
The trace file consists nothing more like
kswsdlaqsub: sub:SYS$SM_SYS svc:SYS.KUPC$S_1_20100314223004 unexpected exception err=604, err2=24010
Does anyone has an ideer ?
Thanks
T*Hi thinkman,
I have a same proble with u during execte adstats.sql
declare
ERROR at line 1:
ORA-20003: Specified bug number (5099019) does not exist
ORA-06512: at "SYS.DBMS_STATS", line 14635
ORA-06512: at "SYS.DBMS_STATS", line 14981
ORA-06512: at "SYS.DBMS_STATS", line 15059
ORA-06512: at "SYS.DBMS_STATS", line 15018
ORA-06512: at line 3
ORA-06512: at line 23
and solve with ur suggestion too.
SQL> @?/rdbms/admin/dbmsstat.sqlSQL> @?/rdbms/admin/prvtstas.plbSQL> @?/rdbms/admin/prvtstat.plb
thank thinkman. -
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
Maybe you are looking for
-
Bluetooth stopped working on my ipad mini after ios7 update
Bluetooth stopped working on my ipad mini and my iphone 5 after I updated to ios 7. My Ipad 4 which is not updated can't see them either. Samsung devices can see them but not connect and they can't see each other. Help
-
I'm fairly new to Java. Ive programmed quite a bit in the past (Pascal, C and C#.NET) - Im at university and I would like to know if there are any free good IDE's. I'd like one with some Debugging tools if possible. I'm currently using Textpad, as it
-
Why isn't Baker Street by Foo Fighters on iTunes?
I loved the song the first time I heard it, and the guitar riff blew my mind away. I will never forget it.
-
Is redhat-config-xfree86 tool available on fedora8?
Is redhat-config-xfree86 tool available on fedora8? [root@fedora ~]# ls /etc/X11 applnk fontpath.d prefdm twm X xinit Xmodmap xorg.conf Xresources [root@fedora ~]# Which tool replace it on Fedaro8?(the alternative tools)
-
Query for: 'jan. to cur. mth.' and 'whole year' in 2 rows
hi, i try to define a query as follows: the query consists of a row structure with 12 columns, one for each month. furthermore the query has a key figure that can be restricted to "actual" or "plan" values. now i want to display two rows in the query