ORA-34492: Analytic workspace object __XML_GET_FULLTOAW_NAME does not exist
Hi,
We are experiencing the following error when trying to retrieve data from the OLAP layer in our front-end:
ORA-34492: Analytic workspace object __XML_GET_FULLTOAW_NAME does not exist.
to be more specific, the following happens:
We are using the Oracle OLAP Java api's to query the analytical workspace. We create a Source object that contains the joins we want. This source is prepared and committed via the TransactionProvider class. Via the DataProvider we then create an SQLCursorManager and generate the SQL and execute it via JDBC.
We were able to execute it without problems on an XP development platform. When switching to another platform that we use, it gives the following error messages:
(platform with the error is Linux x86-64; more version info further down)
Caused by: java.sql.SQLException: ORA-34492: Analytic workspace object __XML_GET_FULLTOAW_NAME does not exist.
ORA-06512: at "SYS.OLAPIMPL_T", line 23
ORA-06512: at "SYS.OLAPIMPL_T", line 17
ORA-06512: at line 4
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:113)
at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:352)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:894)
at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:384)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)
Platform/version info that produces the error:
Linux x86-64
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
OLAP A patch for 10.2.0.3 is applied.
Platform where this works without problems:
Windows XP
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Any info on resolving this issue is greatly appreciated!
Thanks,
Ed
Hi Keith,
Yesterday I actually fully rebuilt/redeployed the AW. (I only patched our 10.2.0.3 installation with the OLAP A patch very recently.) Even the AW's tablespace was recreated, just to make sure everything was gone. Redeployment of the OLAP objects from OWB control center went without any problems.
Let me answer your questions one by one below.
1) How did you build the AW?
We use OWB. The only thing I used AWM for is to actually create the AW. Once created, I use OWB to design and deploy. The front-end developers use AWM sometimes for viewing data in the OLAP objects. (I use OWB or AWM for that.)
2) Can you connect to the AW via AWM, if so can you use the Data Viewer option to view:
a) each dimension and check you can drill up and down.
b) each cube
I have been playing around a bit with the dim's and cubes in the AWM by right-clicking and selecting view data ... (that's the data viewer option?) and encountered no problems.
3) You are using the OLAP API directly, what sort of application are you building - Java Client, JSP, Applet and are you using BI Beans?
We are building a JSP type application, but so far only servlet code is being executed as the failure occurs on issuing the query. We are not using BI BEans.
Thanks for your feedback!
grts,
Ed
Similar Messages
-
ORA-34492: Analytic workspace object cubename _STORED does not exist.
I am having issues accessing cube data from a user other than where the AW was built.
Following is what I have done in User-1:
1. Create two AW's in User-1 : AW-1 and AW-2.
2. Create all objects in these two AW's
3. AW-2 is dynamically attached on attaching AW-1 by using PERMIT startup programs. Please refer Attaching multiple AW's
4. Refreshed both AW's to load data
5. ALLCOMPILE - no errors.
6. Created some SQL views on User-1 which basically query the underlying cube views. I also have some queries using the olap_table option.
7. All my querries work fine in User-1. I can access data from AW-1 and AW-2.
However, we give access to the above SQL views through an abstract user: User-abs. In 10g, all we did was grant select privs to all the User-1.AW$ tables and also on all the sql views. This would let User-abs get data from the cubes in User-1.
I am not able to get User-abs to do the same in 11g. We encounter an error mentioning that the workspace object <cubename>_STORED does not exist. The cubename it is referring to exists in AW-2.
I granted select privs on all AW$ tables, dimension views, cube views and the abstracted sql views but the error persists.
I tried searching this forum but could not find any helpful leads. Any help will be greatly appreciated.
Thanks!
Database - 11.2.0.1
AWM - 11.2.0.2.0AI can think of two possible problems. First, you may not be properly qualifying the owner name when you refer to the object. This can be important when refering to objects owned by other schemas. For example instead of 'my_cube_stored' you would say 'user-1.aw-2!my_cube_stored'. You should also be careful about the order in which you attach the AWs. Do you want AW-2 attached first or last? Use the LAST keyword on AW ATTACH to control this.
Another possibility is that you have added additional logic to PERMIT_READ over and above the 'aw attach' comand. I was able to recreate the error with the following code in a new AW called TEST_AW in the GLOBAL schema.
DEFINE PERMIT_READ PROGRAM BOOLEAN
PROGRAM
aw attach global.global
show global.global!units_cube_stored
return true
ENDAttaching TEST_AW in RO mode as any user gives me the following error.
ORA-34492: Analytic workspace object GLOBAL.GLOBAL!UNITS_CUBE_STORED does not
exist.
ORA-06512: at "SYS.DBMS_AW", line 93
ORA-06512: at "SYS.DBMS_AW", line 122
ORA-06512: at line 1Here is the documentation for PERMIT_READ
>
PERMIT_READ
A PERMIT_READ program is a program that you can create and that Oracle OLAP checks for by name when an AW ATTACH read-only command executes. Depending on the value returned by the program, Oracle OLAP executes the code within the program after attaching the analytic workspace. Depending on the statements in the permit_read program the user is granted or denied access to specific objects or sets of object values. Within permit_read program, you can specify PERMIT commands that grant or restrict access to individual workspace objects. All of the objects referred to in a given permit_read must exist in the same analytic workspace.
>
Note, especially, the restriction in the last sentence. This means that a PERMIT_READ program in AW1, for example, cannot refer to objects in AW2. So this is why my PERMIT_READ doesn't work. The AUTOGO does not have these restrictions, but as we know from the forum post you cited, AUTOGO is broken in 11.2.0.1. You can move forward to 11.2.0.2 where AUTOGO is fixed, but there is workaround, which is to add a PERMIT_READ program to the second AW to do the work. For example, if I add this PERMIT_READ to GLOBAL and remove the 'show' command from the PERMIT_READ in TEST_AW, then everything works as expected.
DEFINE PERMIT_READ PROGRAM BOOLEAN
PROGRAM
if aw(attached 'test_aw')
then do
show global.global!units_cube_stored
doend
return true
END -
ORA-04043: object Table_Name does not exist
Can any one tell me if this is a known bug or am I doing something stupid?
STEPS:
1 - I create a table under user1 ID (user1 table space)
2 - I describe the table and it exist (describe Analyte)
PKANALYTEKEY NOT NULL NUMBER(38)
ANALYTENAME VARCHAR2(64)
ANALYTEABBREVIATION VARCHAR2(20)
ANALYTESTATUSCODE VARCHAR2(20)
STANDARDOPERATINGPROCEDURE NUMBER(38)
UOFM VARCHAR2(15)
ROWSTATUS NOT NULL CHAR(1)
CREATIONDATE DATE
MODIFICATIONDATE NOT NULL DATE
RECTIMESTAMP TIMESTAMP
2 - I grant all privileges on this table to user2 (Successfully granted)
3 - I log into SQLSheet using user2
4 - Try the Describe on the table and get "ORA-04043: object <Table_Name> does not exist" Error.
Any help will be greatly appreciated.
Regards,
Kumar.You need to qualify the table name with the schema.
desc user1.analyte -
Emca fails - ORA-04043: object HA_HOST_CREDS_ARR does not exist
I'm recreating an EM repository in an 11g database which I upgraded from 10g recently. Its running on Solaris 10 and its repository wasn't working so I dropped it with plans to recreated it. As part of the prep work I did the following:
- Dropped user sysman with cascade option
- Dropped public synonyms referencing tables owned by sysman
- Altered profile default making its attributes unlimited (company I work for change it for security)
- Dropped role MGMT_USER
After setting the Oracle Home and SID I ran emca:
emca -config dbcontrol db -repos create
It produced errors detailed in emConfig.log and its associated emca_repos_create_<date>.log respectively:
emConfig.log
Jan 18, 2011 1:48:20 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: ORA-04043: object HA_HOST_CREDS_ARR does not exist
ORA-06512: at line 14
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-04043: object HA_HOST_CREDS_ARR does not exist
ORA-06512: at line 14
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:1000)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:339)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:380)
at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:511)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:229)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/t28gdr/emca_repos_create_<date>.log for more details.
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error creating the repository
Refer to the log file at /u01/app/oracle/admin/t28gdr/scripts/emConfig.log for more details.
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error creating the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:241)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Jan 18, 2011 1:48:27 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to /u01/app/oracle/product/11.2.0/db_1/oui
emca_repos_create_2011_01_18_13_48_20.log
Check if repos user already exists.
old 6: WHERE username=UPPER('&EM_REPOS_USER');
new 6: WHERE username=UPPER('SYSMAN');
old 8: IF ( '&EM_CHECK_TYPE' = 'EXISTS') THEN
new 8: IF ( 'NOT_EXISTS' = 'EXISTS') THEN
old 11: raise_application_error(-20000, '&EM_REPOS_USER does not exists..');
new 11: raise_application_error(-20000, 'SYSMAN does not exists..');
old 14: ELSIF ( '&EM_CHECK_TYPE' = 'NOT_EXISTS' ) THEN
new 14: ELSIF ( 'NOT_EXISTS' = 'NOT_EXISTS' ) THEN
old 17: raise_application_error(-20001, '&EM_REPOS_USER already exists..');
new 17: raise_application_error(-20001, 'SYSMAN already exists..');
old 21: raise_application_error(-20002, 'Invalid Check type &EM_CHECK_TYPE');
new 21: raise_application_error(-20002, 'Invalid Check type NOT_EXISTS');
Create SYSMAN user.
No errors.
Script to revoke DBA role from SYSMAN and grant required privileges
No errors.
Create core schema..
No errors.
No errors.
No errors.
No errors.
No errors.
No errors.
DECLARE
ERROR at line 1:
ORA-04043: object HA_HOST_CREDS_ARR does not exist
ORA-06512: at line 14
How can I correct this so the repository install progresses?
Thanks!
Edited by: Timothy from Minneapolis on Jan 18, 2011 1:04 PM
Edited by: Timothy from Minneapolis on Jan 18, 2011 1:05 PMHi,
the missing object is a "table-type" object which you can create with the statement:
CREATE TYPE "SYSMAN"."HA_HOST_CREDS_ADDR" AS
TABLE OF "SYSMAN"."HA_HOST_CREDS_OBJ"
But this will work only if the "object-type" object HA_HOST_CREDS_OBJ exists. If not, here's the statement:
CREATE TYPE "SYSMAN"."HA_HOST_CREDS_OBJ" AS OBJECT ( "CRED_SET"
VARCHAR2(32), "PASSWORD" VARCHAR2(256), "USERNAME"
VARCHAR2(256) )
I'm not sure why this objects don't exist - the belong to the user SYSMAN and should get created when creating the user SYSMAN...
HTH -
ORA-13605: The specified task or object Get does not exist for the current
Dear all,
11.1.0.6 on solaris 10
SQL>
SQL> DECLARE
2 taskname varchar2(100);
3 taskdesc varchar2(128);
4 task_id number;
5 object_id number;
6 timeLimit varchar2(25);
7 numDaysToRetain varchar2(25);
8 objectName varchar2(100);
9 objectType varchar2(100);
10 BEGIN
11 taskname := 'SEGMENTADV_8980096';
12 taskdesc :='Get';
13 numDaysToRetain :='30';
14 dbms_advisor.create_task('Segment Advisor','',taskname,taskdesc,NULL);
15 dbms_advisor.create_object(taskname, 'TABLE', 'TRPT', 'CRM_CHECK', ' ', NULL, object_id);
16 dbms_advisor.set_task_parameter(taskname, 'RECOMMEND_ALL', 'TRUE');
17 dbms_advisor.set_task_parameter(taskname, 'DAYS_TO_EXPIRE', numDaysToRetain);
18 END;
19 /
DECLARE
ERROR at line 1:
ORA-13605: The specified task or object Get does not exist for the current
user.
ORA-06512: at "SYS.PRVT_ADVISOR", line 4766
ORA-06512: at "SYS.PRVT_ADVISOR", line 4637
ORA-06512: at "SYS.DBMS_ADVISOR", line 56
ORA-06512: at line 14
Am running the above as sys user ..
Any idea ?
KaiHi,
This link may help:
ORA-13605: The specified task or object ADDM:<task number> does not exist.
Thanks and Regards,
Rajesh K. -
Object EXTERNAL_TABLE does not exist???
I've written the following function that references an external table within the same schema. When I try to execute the function, it returns an error that "object EXTERNAL_TABLE does not exist"
I've also tried creating a view that points to the external table and then pointing this function at the view but I still get the same error.
Any ideas on how to make this work? Thanks in advance!
CREATE OR REPLACE
FUNCTION ugaps.get_can
p_string_value IN VARCHAR2
RETURN VARCHAR2
IS
can_value VARCHAR2(9);
BEGIN
SELECT CC_ENT_CAN
INTO can_value
FROM CAN_SSN_CONVERTED
WHERE CC_ENT_PRIMARY_ID=p_string_value;
RETURN can_value;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN '810XXXXXX';
WHEN OTHERS THEN
RETURN 'ERROR-->' || SQLERRM;
END;
/I removed the "WHEN OTHERS" clause per your suggestion. Now I'm getting this:
ORA-06564: object EXTERNAL_TABLE does not exist
ORA-06512: at "UGAPS.GET_CAN", line 9
06564. 00000 - "object %s does not exist"
*Cause: The named object could not be found. Either it does not exist
or you do not have permission to access it.
*Action: Create the object or get permission to access it.
The database is Oracle 11.1.0.7 for Windows 2008
The external table, function, and execution of that function are all within the same schema, which has DBA privileges, so I should have permissions. If I run the "SELECT" statement alone, it works properly.
Edited by: markr3 on Feb 19, 2010 2:48 PM -
Object dba_tablespaces does not exist
Hi,
after db restore (cold backup, noarchived log mode, OS -AIX backup) I receive:
user is sys
SQL> desc dba_tablespaces;
ERROR:
ORA-04043: object dba_tablespaces does not exist
SQL> desc all_tablespaces;
ERROR:
ORA-04043: object all_tablespaces does not exist
user_tablespaces is ok
Any suggestions?
Thx,
DobbyWhat stage is your instance in, MOUNTED?
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance started.
Total System Global Area 404723928 bytes
Fixed Size 735448 bytes
Variable Size 234881024 bytes
Database Buffers 167772160 bytes
Redo Buffers 1335296 bytes
Database mounted.
SQL> desc dba_tablespaces;
ERROR:
ORA-04043: object dba_tablespaces does not exist
SQL> alter database open;
Database altered.
SQL> desc dba_tablespaces;
ERROR:
ORA-04043: object dba_tablespaces does not existIf you describe dba_* views at mount stage you cannot query them even after opening the database. You need to restart again.
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 404723928 bytes
Fixed Size 735448 bytes
Variable Size 234881024 bytes
Database Buffers 167772160 bytes
Redo Buffers 1335296 bytes
Database mounted.
SQL> alter database open;
Database altered.
SQL> desc dba_tablespaces
Name Null? Type
TABLESPACE_NAME NOT NULL VARCHAR2(30)
BLOCK_SIZE NOT NULL NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NOT NULL NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
MIN_EXTLEN NUMBER
STATUS VARCHAR2(9)
CONTENTS VARCHAR2(9)
LOGGING VARCHAR2(9)
FORCE_LOGGING VARCHAR2(3)
EXTENT_MANAGEMENT VARCHAR2(10)
ALLOCATION_TYPE VARCHAR2(9)
PLUGGED_IN VARCHAR2(3)
SEGMENT_SPACE_MANAGEMENT VARCHAR2(6)
DEF_TAB_COMPRESSION VARCHAR2(8)
See Metalink note 296235.1 (ORA-4043 ON DBA_* VIEWS IF THEY ARE DESCIBED IN A MOUNT STAGE). -
Text ID for text object MATERIAL does not exist - MM01
Hi All,
I am getting below error message when trying to save Material Master in MM01.
Text ID for text object MATERIAL does not exist
Message no. TD603
Diagnosis
You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
Procedure
You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
I have searched the forums but couldn't get relevant message.
Please assist.
Thanks,
RajHi Jurgen,
This is the complete message i am getting.
Text ID for text object MATERIAL does not exist
Message no. TD603
Diagnosis
You want to edit a text. However, the text ID (text type) of the specified text object does not exist.
Procedure
You can display a list of valid text IDs (text types) using F4=Possible entries. You can select the required text ID from this list with F2 or a double click.
The valid text objects are listed in table TTXOB. The valid text IDs (text types) for an object are specified in table TTXID.
If I enter MM02 and without changing anything if i save still i get this error message.
Thanks & Regards,
Raj -
Text ID for text object BUT000 does not exist
Hi Experts.
I am doing data migration using LSMW with IDoc. I have this error message "Text ID for text object BUT000 does not exist" when processing the IDoc.
Can anyone tell me what is this error about and how could i fix it. A step by step guide would be nice. Really need advice urgently.
I'll definitely rewards points.
Regards,
Juliannafor this u need to maintain the text object and its related text id using the TC: SM31 in rel. view of ur tcode( like MM01, Va01 etc).
first get the view names(1 for text object and 2 for text id) from fun. people.
then go to sm31 with 1 view, create BUT000 .
then go to sm31 with 2 view, maintain text id for the text object:BUT000. -
Error: Number range for object RESB does not exist
Hi
I'm trying to convert a planned order (to purch requisition) partially via trxn code MD04. Upon saving I get the above error msg. The complete text of msg is as follows. I've maitained the number ranges of all the objects specified in this error msg. Can somebody explain on how to overcome this problem?
Many thanks
BE
Error Msg Text:
Number range for object RESB does not exist
Message no. 61501
Diagnosis
The system cannot create a document for an MRP element if no number
range or interval has been maintained in Customizing of MRP or if t
number range you have maintained is not allowed.
Below is a list of MRP elements that are affected:
Number range object MRP element
PLAF planned order (operative oder simulative)
EBAN purchase requisition
RESB dependent requirements
MDSM simulative dependent reqmts (long-term plannin
MDTB MRP list
Procedure
Check the number ranges in Customizing. If you do not have the necessa
authorization, please get in touch with your systems administration.Hi
Thanks for the reply. But I have maintained the number ranges for matl. reservations/dependant requirements at OMI2. Here is the screen shot..Do find anything wrong with it? Pl advice.
NR Object MRES/DREQ
No. From Number To Number Curr Number Ext
01 0000000001 8999999999 380 blank
02 9000000000 9500000000 blank checked
RB 9500000001 9999999999 blank checked
Number ranges for the plants are assigned to 01 (0000000001 to 8999999999).
thanks
BE
Edited by: Brian Elfie on Jan 10, 2008 11:27 AM -
Error: ORA-16532: Data Guard broker configuration does not exist
Hi there folks. Hope everyone is having a nice weekend.
Anyways, we have a 10.2.0.4 rac primary and a 10.2.0.4 standby physical standby. We recently did a switchover and the dgbroker files automatically got created in the Oracle_home/dbs location of the primary. Now need to move these files to the common ASM DG. For this, I followd the steps from this doc:
How To Move Dataguard Broker Configuration File On ASM Filesystem (Doc ID 839794.1)
The only exception to this case is that I have to do this on a Primary and not a standby so I am disabling and enabling the Primary(and not standby as mentioned in below steps)
To rename the broker configuration files in STANDBY to FRA/MYSTD/broker1.dat and FRA/MYSTD/broker2.dat, Follow the below steps
1. Disable the standby database from within the broker configuration
DGMGRL> disable database MYSTD;
2. Stop the broker on the standby
SQL> alter system set dg_broker_start = FALSE;
3. Set the dg_broker_config_file1 & 2 parameters on the standby to the appropriate location required.
SQL> alter system set dg_broker_config_file1 = '+FRA/MYSTD/broker1.dat';
SQL> alter system set dg_broker_config_file2 = '+FRA/MYSTD/broker2.dat'
4. Restart the broker on the standby
SQL> alter system set dg_broker_start = TRUE
5. From the primary, enable the standby
DGMGRL> enable database MYSTD;
6. Broker configuration files will be created in the new ASM location.
I did so but when I try to enable the Primary back I get this:
Error: ORA-16532: Data Guard broker configuration does not exist
Configuration details cannot be determined by DGMGRL
Form this link,(Errors setting up DataGuard Broker it would seem that I would need to recreate the configuration....Is that correct ? If yes then how come Metalink is missing this info of recreating the configuration... OR is it that that scenario wouldnt be applicable in my case ?
Thanks for your help.Yes I can confirm from the gv$spparameter view that the changes are effective for all 3 instances. From the alert log the alter system didnt throw u pany errros. I didnt restart the instances though since I dont have the approvals yet. But I dont think thats required.
-
ORA-22160: element at index name does not exist
hi
i have a procedure which insert values from a VARRAY type in a table. My question is how can i verify the existence of nth element before inserting to avoid ORA-22160: element at index name does not exist
Here is my code:
CREATE OR REPLACE PACKAGE BODY CANDIDE.PE_CL IS
PROCEDURE p_proc(Id_clt IN P_CLIENT.id_client%TYPE,
nameClt IN P_CLIENT.nameclient%TYPE,
--VARRAY type
priceItem IN price_array,
--VARRAY type
nameItem IN item_array) IS
BEGIN
INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
FORALL i IN nameItem.FIRST .. nameItem.LAST
INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
END;
end PE_CL;
Product version: Oracle9i Enterprise Edition Release 9.2.0.1.0
PeterI see the problem now. If there are more values in one varray or the other, how do you want to handle it? Below I have demonstrated, first the solution that I previous offered, that would only insert the rows where there are values from both varrays. In the second example below, I have inserted a null value in place of the missing value from the varray that has fewer values.
scott@ORA92> CREATE TABLE p_client
2 (id_client NUMBER,
3 nameclient VARCHAR2(15))
4 /
Table created.
scott@ORA92> CREATE TABLE p_items
2 (id_client NUMBER,
3 name_item VARCHAR2(10),
4 price_item NUMBER)
5 /
Table created.
scott@ORA92> CREATE OR REPLACE PACKAGE PE_CL
2 IS
3 TYPE item_array IS ARRAY(10) OF VARCHAR2(10);
4 TYPE price_array IS ARRAY(10) OF number;
5 PROCEDURE p_proc
6 (Id_clt IN P_CLIENT.id_client%TYPE,
7 nameClt IN P_CLIENT.nameclient%TYPE,
8 priceItem IN price_array,
9 nameItem IN item_array);
10 end PE_CL;
11 /
Package created.
scott@ORA92> show errors
No errors.
-- first method:
scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
2 IS
3 PROCEDURE p_proc
4 (Id_clt IN P_CLIENT.id_client%TYPE,
5 nameClt IN P_CLIENT.nameclient%TYPE,
6 priceItem IN price_array,
7 nameItem IN item_array)
8 IS
9 BEGIN
10 INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
11 -- FORALL i IN nameItem.FIRST .. nameItem.LAST
12 -- INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
13 FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
14 IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
15 INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
16 END IF;
17 END LOOP;
18 END;
19 end PE_CL;
20 /
Package body created.
scott@ORA92> show errors
No errors.
scott@ORA92> declare
2 priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
3 nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
4 begin
5 pe_cl.p_proc
6 (id_clt => 900,
7 nameclt => 'MIKE',
8 priceitem => priceitem,
9 nameitem => nameitem);
10 COMMIT;
11 end;
12 /
PL/SQL procedure successfully completed.
scott@ORA92> SELECT * FROM p_client
2 /
ID_CLIENT NAMECLIENT
900 MIKE
scott@ORA92> SELECT * FROM p_items
2 /
ID_CLIENT NAME_ITEM PRICE_ITEM
900 item a 2
900 item b 5
scott@ORA92> TRUNCATE TABLE p_client
2 /
Table truncated.
scott@ORA92> TRUNCATE TABLE p_items
2 /
Table truncated.
-- second method:
scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
2 IS
3 PROCEDURE p_proc
4 (Id_clt IN P_CLIENT.id_client%TYPE,
5 nameClt IN P_CLIENT.nameclient%TYPE,
6 priceItem IN price_array,
7 nameItem IN item_array)
8 IS
9 BEGIN
10 INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
11 -- FORALL i IN nameItem.FIRST .. nameItem.LAST
12 -- INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
13 FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
14 IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
15 INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
16 ELSIF nameItem.EXISTS(i) THEN
17 INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), null);
18 ELSIF priceItem.EXISTS(i) THEN
19 INSERT INTO P_ITEMS VALUES (Id_clt, null, priceItem(i));
20 END IF;
21 END LOOP;
22 END;
23 end PE_CL;
24 /
Package body created.
scott@ORA92> show errors
No errors.
scott@ORA92> declare
2 priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
3 nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
4 begin
5 pe_cl.p_proc
6 (id_clt => 900,
7 nameclt => 'MIKE',
8 priceitem => priceitem,
9 nameitem => nameitem);
10 COMMIT;
11 end;
12 /
PL/SQL procedure successfully completed.
scott@ORA92> SELECT * FROM p_client
2 /
ID_CLIENT NAMECLIENT
900 MIKE
scott@ORA92> SELECT * FROM p_items
2 /
ID_CLIENT NAME_ITEM PRICE_ITEM
900 item a 2
900 item b 5
900 item c -
ERROR: ORA-01041: internal error. hostdef extension does not exist
Hi, I got the following error message when I tried to insert a row in table TBL_ORDER.
ERROR:
ORA-01041: internal error. hostdef extension does not exist
INSERT into TBL_ORDER
ERROR at line 1:
ORA-03113: end-of-file on communication channel
We have Oracle version 8.1.5.o.2 and Linux version 6.1.
Following are the tables, triggers, loadjava definition and source programs:
TBL_ORDER
1 ORDER_MEMBER_FIRM_ID VARCHAR2(4)
2 ORDER_CLIENT_ID VARCHAR2(4)
3 ORDER_BRANCH VARCHAR2(3)
4 ORDER_SEQUENCE VARCHAR2(4)
5 ORDER_EXCHANGE_ID VARCHAR2(3)
6 ORDER_EXCHANGE_SEQUENCE VARCHAR2(7)
7 ORDER_CREATE_DATE DATE
8 ORDER_TYPE VARCHAR2(2)
9 ORDER_STATUS VARCHAR2(1)
10 ORDER_SYMBOL VARCHAR2(5)
11 ORDER_SUFFIX VARCHAR2(14)
12 ORDER_SIDE VARCHAR2(5)
13 ORDER_PRICE VARCHAR2(20)
14 ORDER_STOP_PRICE VARCHAR2(20)
15 ORDER_PRICE_QUAL VARCHAR2(10)
16 ORDER_QUANTITY VARCHAR2(6)
17 ORDER_TIF VARCHAR2(4)
18 ORDER_AON VARCHAR2(4)
19 ORDER_DNR VARCHAR2(4)
20 ORDER_CASH_NEXT_DAY VARCHAR2(4)
21 ORDER_SELLER VARCHAR2(4)
22 ORDER_ACCOUNT_TYPE VARCHAR2(4)
23 ORDER_OS_TS VARCHAR2(4)
24 ORDER_BOOTH_ID VARCHAR2(4)
TBL_CMSOUT
1 CMSOUT_MEMBER_FIRM_ID VARCHAR2(4)
2 CMSOUT_CLIENT_ID VARCHAR2(4)
3 CMSOUT_DATA VARCHAR2(120)
trg_order.sql
create or replace procedure OrderToCmsoutProc(cms_member_firm_id VARCHAR2,
cms_client_id VARCHAR2,
cms_branch VARCHAR2,
cms_sequence VARCHAR2,
cms_side VARCHAR2,
cms_quantity VARCHAR2,
cms_symbol VARCHAR2,
cms_price VARCHAR2,
cms_tif VARCHAR2,
cms_type VARCHAR2)
AUTHID CURRENT_USER
as language java
name 'OrderToCmsout.test(java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String)';
show errors;
create or replace trigger trg_order
after insert on TBL_ORDER
for each row
CALL OrderToCmsoutProc (:new.order_member_firm_id,
:new.order_client_id,
:new.order_branch,
:new.order_sequence,
:new.order_side,
:new.order_quantity,
:new.order_symbol,
:new.order_price,
:new.order_tif,
:new.order_type)
commit;
show errors;
exit;
trg_cmsout.sql
create or replace procedure PackCmsoutSidProc(pck_member_firm_id VARCHAR2,
pck_client_id VARCHAR2,
pck_data VARCHAR2)
AUTHID CURRENT_USER
as language java
name 'PackCmsoutSid.test(java.lang.String,
java.lang.String,
java.lang.String)';
show errors;
create or replace trigger trg_cmsout
after insert on TBL_CMSOUT
for each row
CALL PackCmsoutSidProc (:new.cmsout_member_firm_id,
:new.cmsout_client_id,
:new.cmsout_data)
commit;
show errors;
exit;
loadORDERjava
loadjava -r -f -o -user userid/pswd OrderToCmsout.java
loadCMSOUTjava
loadjava -r -f -o -user userid/pswd PackCmsoutSid.java
OrderToCmsout.java
import java.sql.*;
import java.lang.*;
import java.io.*;
import oracle.jdbc.driver.*;
public class OrderToCmsout {
public static void main(String args[]) {
try {
test (args[0],args[1],args[2],args[3],args[4],
args[5],args[6],args[7],args[8],args[9]);
catch (Exception e) {
System.err.println(e);
} //catch
} // end main
public static void test ( String parm_member_firm_id,
String parm_client_id,
String parm_branch,
String parm_sequence,
String parm_side,
String parm_quantity,
String parm_symbol,
String parm_price,
String parm_tif,
String parm_type)
throws SQLException
Connection conn = new OracleDriver().defaultConnection();
PreparedStatement stmt2;
try {
stmt2= conn.prepareStatement
("INSERT INTO TBL_CMSOUT VALUES (?, ?, ?)");
String datastring = parm_member_firm_id + "\\~" +
parm_branch + " " +
parm_sequence + "\\~" + "\\~" +
parm_side + "\\~" +
parm_quantity + " " +
parm_symbol + " " +
parm_price + "\\~" +
parm_tif + " " +
parm_type + "\\~";
stmt2.setString(1, parm_member_firm_id);
stmt2.setString(2, parm_client_id);
stmt2.setString(3, datastring);
stmt2.executeUpdate();
stmt2.close();
return;
} //try
catch (Exception e) {
System.err.println(e);
} //catch
PackCmsoutSid.java
import java.sql.*;
import java.lang.*;
import java.io.*;
import oracle.jdbc.driver.*;
public class PackCmsoutSid {
public static void main(String args[]) {
try { test(args[0],args[1],args[2]);
catch (Exception e) {
System.err.println(e);
} //catch
} // end main
public static void test( String parm_member_firm_id,
String parm_client_id,
String parm_data)
throws SQLException
try {
Connection conn = new OracleDriver().defaultConnection();
PreparedStatement stmt1 = conn.prepareStatement
("SELECT sid_session_id " +
"FROM tbl_sid " +
"WHERE sid_member_firm_id = ? and " +
"sid_client_id = ?");
stmt1.setString(1, parm_member_firm_id);
stmt1.setString(2, parm_client_id);
ResultSet rs1 = stmt1.executeQuery();
while (rs1.next ()) {
String session_id_found = rs1.getString
("sid_session_id");
CallableStatement pack_pipe = conn.prepareCall
("{call DBMS_PIPE.PACK_MESSAGE(?)}");
pack_pipe.setString(1, parm_data);
pack_pipe.execute();
CallableStatement send_pipe = conn.prepareCall
("{? = call DBMS_PIPE.SEND_MESSAGE(?)}");
send_pipe.registerOutParameter
(1, java.sql.Types.INTEGER);
send_pipe.setString (2, session_id_found);
send_pipe.execute();
} //while
stmt1.close();
conn.close();
} //try
catch (Exception e) {
System.err.println(e);
} //catch
} //test
} //PackCmsoutSid
Thanks in advance for your help
Vinicioyou should post this question on the Application Server forum.
--Olaf -
Number range for object MDTB does not exist - Message no. 61501
Hi All ,
I have done the necessary configurations in PP say
Order Type
Order Type Dependent Parameters
Scheduling parameters for planned & production order
Confirmation parameters
Availabilty check etc
and iam able to create planned & production order and confirma the production order.
I want to configure for MRP: -
Settings done are
Have activeted planning file entry for all plants.
When i run MRP system throws a error <b>Number range for object MDTB does not exist - Message no.61501 </b>
Is there anything to do with plant parameters OPPQ and Mrp Group OPPR.
I just tried plant parameters,standard 0001 is not available for copying.
Suggest me how to proceed to set MRP.
ShankarHi shankar
it is a good practice while creating the plant copying the plant from the standard plant so that all the standard table enteries will be copied for the plant as the standard plant is not there youcan think of copying from any other plant similar to your plant which has the required entry. else
in SE16N check the NRIV table for the Object MDTB. if enteris found then make the table entry with the help of abaper.
hope this helps
regards
SK -
Error: Object "Dot11BandSelect" does not exist.
Has anyone else received Error:Object "Dot11BandSelect" does not exist. when configuring the 802.11 settings on a 4400 WLC runing ver. 6.0.196.0
If so what did you do to resolve it.
Thanks
Barry6.0.196.0 is a deferred code.
http://www.cisco.com/web/software/Wireless/Deferral/Software_Advisory_6_0_196_0.html
Are the global band select enabled, are you getting this error when enabling bandselect on a WLAN's advanced tab.
Maybe you are looking for
-
Problems after upgrading to iOS 6.0 - HELP !! (iphone 4S)
I just bought iPhone 4S 64Gb one week ago.Yesterday morning I upgraded to iOS6.0 and encounter the following errors: 1. I can not turn on/off Wi-Fi. Button greyed out. 2. Auto-Brightness function does not work. 3. When running high graphics game like
-
Sharing out a printer via SMB on Lion
I have a complex situation where we share out a printer from a Mac workstation to a windows computer in another location. It worked fine until we replaced the Snow Leopard Mac with a Lion one. Now, the windows computer no longer sees the printer, eve
-
Who can run in ultra turbo with low cas ramm. read pls..ill explain
This doent pertain to overclocker casue if you go over 219 fsb on 800 fsb pcu it disables mat.. Who here with an 865, 875 mobo can run 2 or 2.5 cas timings in ultra turbo with less then 215 FSB. If so which brand ramm and what bios and board do you h
-
Silent Mode Login in 11.2.0.1
Hi All, Why is it that I am prompted the following when logging in using sqlplus in silent mode as sqlplus -S oracle@tkdp2datdbc28:~> sqlplus -S <username> Enter password: Silent mode should not prompting me with the phrase "Enter Password" if I am n
-
I had my Wireless G router for 3 years now and it was been working great until this morning. I can't connect any device to my router now. My Laptop was working fine, I could play my xBox, and I could even get connects to my iPod. But now every time