Table or view does not exist when using in PL/SQL block
I hav something strange...
When i execute a query it works just fine... When i use the exact same query in a function i want to create, i get the error 'table or view does not exist'
I create the function with the same user then when i'm executing the query.
For example:
select name,userid from portal.WWLOG_ACTIVITY_LOGS
if i execute this... it works fine. I get my results.
However when i create a function:
CREATE OR REPLACE FUNCTION EBUSINESS.GET_USER_CREATOR (p_userid IN Varchar2) return VARCHAR2
as
/*CURSOR c_user_creator IS
select distinct name,userid from portal.WWLOG_ACTIVITY_LOGS
where sub_domain = 'user' and action = 'create'
and name = p_userid;*/
v_creator varchar2(500);
v_ret_val VARCHAR2(500) := 'NOT_FOUND';
BEGIN
select userid into v_ret_val from portal.WWLOG_ACTIVITY_LOGS
where sub_domain = 'user' and action = 'create'
and name = p_userid;
--v_ret_val := x.userid;
--end loop;
-- Is the user in the group or not?
/*OPEN c_user_creator;
FETCH c_user_creator INTO v_creator;
IF c_user_creator%FOUND THEN
v_ret_val := v_creator;
ELSE
v_ret_val := 'NOT FOUND';
END IF;
CLOSE c_user_creator;*/
Return v_ret_val;
END;
The table or view does not exist...
I tryed with cursor, select into, for x in (select....)
Nothing works.
A select grant is a select grant right? Are there different grant you should use so you can select it into a function or just do a normal select?
I also tryed to create a view that just sais select * from WWLOG_ACTIVITY_LOGS but that doesn't work...
Are there different grant you should use so you can
select it into a function or just do a normal select? Yes. Grants on objects used in functions/procedures must be given directly to the user, and not through a role.
Similar Messages
-
Cannot insert PS_TXN ORA-00942 table or view does not exist
We are using jdev 11.1.1.4.0
We have two users in the database and various application modules which connect to these users using datasources
We have tested the application with applicatin module pooling enabled off to test for passivation and activation errors and the application works fine.
Also on our internal test enviorment which has more then 10 concurrent users the application works fine
But at UAT it has started suddenly to give errors Cannot insert in PS_TXN ORA-00942 table or view does not exist
When I see the data in PS_TXN tables in various users I can see that passivation has taken place for the same day when there sporadic errors have been reported all having the cause as ORA-00942 table or view does not exist.
But one strange thing that I have observed is that the COLLID column has sequence numbers interchanged for the users randomly, database user 1 has sequence number from database user 2 seq and vice a versa in COLLID
As far as this problem goes the passivation should have failed with ORA-00001 primary key voilated but that is not the case
May be the keys have still not got to a number where they collide.
But I am totally taken aback on such a behaviour and I am not sure how to correct it.
So we have two porblems here
1) why did this error come in first place PS_TXN ORA-00942 table or view does not exist
2) Why are the sequence numbers interchanged for the databse users ?
Edited by: user3067156 on Jun 19, 2012 3:12 AMI got reply to my second question
It looks like a bug in the framework and the suggestions are to use only one ps_txn and ps_txn_seq by modifying the internal connection
But the first problem is not yet known why did it appear suddenly
Edited by: user3067156 on Jun 19, 2012 3:12 AM -
How to handle ORA-00942: table or view does not exist
Hii All,
I'm trying to drop a table dynamically irrespective of its existence in a procedure. Its working fine when table exists but when table doesn't exist I'm facing following error
ORA-00942: table or view does not existI made use of pragma exception_init and modified my code as below
Create or replace Procedure sp_FSASA_FEEDUPLOAD_process
p_test_dir in varchar2,
p_feed_file_name in varchar2
is
l_exttable_str varchar2(32000) ;
l_log_file constant varchar2(200) := 'logfile_rgh.log';
l_table_doesnt_exist Exception;
pragma exception_init(l_table_doesnt_exist,-00492);
Begin
Begin
execute immediate 'drop table FSASA_FEEDUPLOAD_EXT purge' ;
Exception
when l_table_doesnt_exist then
null;
End;
l_exttable_str := 'Create table FSASA_FEEDUPLOAD_EXT ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' Category_No varchar2(1), ';
l_exttable_str := l_exttable_str||' Financial_Category varchar2(300), ';
l_exttable_str := l_exttable_str||' GFCID number, ';
l_exttable_str := l_exttable_str||' Balance number(34,14), ';
l_exttable_str := l_exttable_str||' Refernce_no varchar2(20), ';
l_exttable_str := l_exttable_str||' Account_no varchar2(20), ';
l_exttable_str := l_exttable_str||' ce_trans_id varchar2(20) ';
l_exttable_str := l_exttable_str||' ) ';
l_exttable_str := l_exttable_str||' Organization external ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' type oracle_loader ';
l_exttable_str := l_exttable_str||' default directory '||p_test_dir;
l_exttable_str := l_exttable_str||' Access parameters ';
l_exttable_str := l_exttable_str||' ( ';
l_exttable_str := l_exttable_str||' records delimited by newline ';
l_exttable_str := l_exttable_str||'BADFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||'feed.bad '||q'[']' ;
l_exttable_str := l_exttable_str||'LOGFILE '||q'[']'||p_test_dir||q'[']'||':'||q'[']'||':feed.log '||q'[']' ;
l_exttable_str := l_exttable_str||q'[FIELDS TERMINATED BY X'09']';
l_exttable_str := l_exttable_str||' missing field values are null ';
l_exttable_str := l_exttable_str||')location('||q'[']'||p_feed_file_name||q'[']';
l_exttable_str := l_exttable_str||')' ;
l_exttable_str := l_exttable_str||' )Reject limit unlimited ';
dbg_print(l_log_file,'l_exttable_str : '||l_exttable_str);
execute immediate l_exttable_str;
End;But still I'm unable to get rid of it. Pls help me.
1)I need to drop it as I need to immediately create table with different file name and from different path.
2)The last thing I don't like to do is to check the table name in USER_OBJECTS and then drop.
3)Also suggest me whether creating an external table dynamically is correct approach or not.
4)Till now we were using utl_file for reading feed file but I'm much interested in using EXTERNAL TABLE concept.
5)As the filename and path gets changed I need to create my external table at runtime.
please suggest me whether I can alter my filename and path at runtimeYou will need to use WHEN OTHERS EXCEPTION handler which is not a good idea to do so if you dont handle the same approprialtly then the exception would go un-noticed:
SQL> ed
Wrote file afiedt.buf
1 begin
2 execute immediate 'drop table my_Test';
3 exception
4 when others then
5 dbms_output.put_line(SQLCODE||SQLERRM);
6* end;
SQL> /
-942ORA-00942: table or view does not exist
PL/SQL procedure successfully completed.
SQL> -
Show parameter optimizer --- table or view does not exist
one of our programmer needs to have the ability to execute "show parameter optimizer". when he does he receives "table or view does not exist". when i run said command as system i do not receive said error. is the only way around this to grant him specific rights within the database? if so, what is the lowest level of rights i can grant him to allow a proper execution? can i grant rights to only said command? -a
It's a SQL*PLUS command and can't be used in PL/SQL block. You may use something like
select * from v$parameter where name like 'optimizer%' -
Create materialized View fails with "table or view does not exist"
DB: 10.2.0.4
OS: Win 2003
Hi,
Here in my tests, i have 2 databases (A(source) and B(backup)), and i am trying to create an mview in database B to replicate data from one test table from database A, only for test purpose. I'm getting the error "table or view does not exist" when i try to create a mview with REFRESH FAST. Here is my code:
CREATE MATERIALIZED VIEW TESTES.TAB_TESTES_REPLIC_MVIEW_02
REFRESH FAST
START WITH TO_DATE('21/02/2012 18:50:00', 'DD/MM/YYYY HH24:MI:SS')
NEXT SYSDATE + 1/24/60
WITH PRIMARY KEY
AS SELECT REGISTRO1,
REGISTRO2
FROM TESTES.TAB_TESTES_REPLIC_MVIEW_02@DB_LINK_ORA10;
The dblink is workig fine(dblink user has select privilege on TESTES.TAB_TESTES_REPLIC_MVIEW_02), and i have created the mview log on database A.
Where is my mistake.
Thanks a lot.
Edited by: Fabricio_Jorge on 21/02/2012 19:06I found the solution.
I had to grant SELECT on the mview log. The name is avaiable in DBA_MVIEW_LOGS -
BI Administrator Error When Updating Rowcount: table or view does not exist
I am using BI Administrator 11g. After creating a new repository and importing metadata, I brought the Physical model into the BMM layer. When I tried to update the rowcount for the tables in the physical layer, I get:
There was an error while updating row count for "<instance>".."<schema>"."<tablename>"
[nQSError 17011] SQL statement execution failed.
[nQSError 17001] Oracle error code 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute: select count(*) from <tablename>.
I created the connection pool during the import process and the tables were found at that time. But after the import is complete I can never update the row counts. I do have access to all the tables in question via the user account in the connection pool.
Anyone have any ideas?
Thanks,
KenYou need to check "Require Fully Qualified Name check box in connection pool properties. This is needed when you are using non owner user name for accessing database shemas.
-
Error when adding forigen key (table or view does not exist)
Hi
i write the foreign key name and select the the table from the combo and also the field and click apply it gives me error message says :-
error table or view does not exist vendor code 942
any help?
thanks in advance.
.There is only an issue with this if your table has to be enclosed in double quotes. i.e. If you have mixed case table names. In that case, instead of using the context menu (right click on Table) Constraint -> Add Foreign Key, you should use the Edit... table dialog.
We did have a bug logged for this, but the instance for using the Create foreign key dialog has not been fixed. I have reopened the bug.
Sue -
APEX_APPLICATION_FILES: ORA-00942: table or view does not exist
Hello,
As my first APEX task I am attempting the upload/download demo on http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm
The ultimate goal is to store PDF files in the database.
In order to complete step 1: To create an application using the Create Application Wizard:
- I first created a user from SYSTEM called 'myapp'
- Next I logged into 'myapp' to continue the exercise. (I am wondering if that is where I am going wrong... If so, please clarify)
- Knowing that I would want to save the upload to a table I created a table with a BLOB
I did the steps for the upload and ran the application - no errors to there.
Next I needed to "To create a report on APEX_APPLICATION_FILES:".
I started the wizard as instructed. When I pasted the SELECT ... FROM APEX_APPLICATION_FILES, I got the table or view does not exist. A quick review of the TABLES tab shows only the tables that I created. Not any of the system tables or views.
I logged back in as SYSTEM and reviewed the 'rights' given the user 'myapp'. All were checked.
I knew nothing of Oracle when I installed XE, so I took defaults or whatever the install doc said to do. Is that part of the problem? It is clear that I do not have rights to see that table, but I also do not see the table when logged in as SYSTEM.
Any insight appreciated,
RickThanks for the reply.
Version is:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
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
Database
NAME XE
CREATED 10/13/2006 08:04:21 PM
RESETLOGS_TIME 10/13/2006 08:04:25 PM
Install Version 10.2.1015
Regarding the code links, this one looks like what I need:
DECLARE
l_bfile BFILE;
l_blob BLOB;
BEGIN
INSERT INTO tab1 (col1)
VALUES (empty_blob())
RETURN col1 INTO l_blob;
l_bfile := BFILENAME('IMAGES', 'MyImage.gif');
DBMS_LOB.fileopen(l_bfile, Dbms_Lob.File_Readonly);
DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile));
DBMS_LOB.fileclose(l_bfile);
COMMIT;
END;
Is the 'BFILENAME' function that causes the 'get a filename' dialog box of Windows to open for the user to find which file to upload?
I'm going off to look for a newer version of APEX, thanks. -
ORA-00942: table or view does not exist
select
nvl(appr.APPROVER_NAME, org.APPROVER_NAME) as APPROVER_NAME,
nvl(appr.APPROVER, org.APPROVER) as APPROVER,
nvl(appr.APPROVER_TYPE, org.APPROVER_TYPE) as APPROVER_TYPE,
nvl(appr.ASSIGNED_DATE, org.ASSIGNED_DATE) as ASSIGNED_DATE,
nvl(appr.APPROVAL_DATE, '-') as APPROVAL_DATE,
nvl(appr.STATE, org.STATE) as STATE,
org.SEQ as numberoftimesmodified,
nvl(appr.PROCESS, org.PROCESS) as PROCESS,
appr.seq2
from (
select a.seq,
b.usr_display_name as APPROVER_NAME,
b.usr_login as APPROVER,
'User' as APPROVER_TYPE,
'-' as ASSIGNED_DATE,
'-' as STATE,
a.seq as numberoftimesmodified,
'-' as PROCESS
from(
SELECT 1 as seq, USR_UDF_MANAGER_LOGIN as GID, '' as approver_name, 'user' as approver_type FROM DEVT_OIM.USR WHERE USR_LOGIN =:BENEFICIARY_GID AND :APPLICATION = 'Oracle 11i On demand'
UNION
select rownum as seq, regexp_substr(:APPROVERPAYLOAD,'[^,]+', 1, level) as gid, '' as approver_name, 'user' as approver_type from dual
where :APPLICATION != 'Oracle 11i On demand'
connect by regexp_substr(:APPROVERPAYLOAD, '[^,]+', 1, level) is not null
) a
inner join DEVT_OIM.usr b on a.gid = b.usr_login
) org
left join(
select b.numberoftimesmodified as seq, rownum as seq2, a.*
from
select
LEAD(a.ASSIGNEES) OVER(ORDER BY a.numberoftimesmodified) as prev_gid,
LEAD(a.pushbacksequence) OVER(ORDER BY a.numberoftimesmodified) as prev_pushbacksequence,
a.ASSIGNEES as current_gid,
nvl(retrieveGidName(a.ASSIGNEES), '-') as APPROVER_NAME,
(DEVT_OIM.TOKNEW(REPLACE(a.ASSIGNEES, ',', ':'))) as APPROVER,
'User' as APPROVER_TYPE,
a.pushbacksequence,
TO_CHAR(a.assigneddate,'DD-Mon-YYYY HH:MI:SS AM') as ASSIGNED_DATE,
case when a.state = 'WITHDRAWN' then TO_CHAR(a.updateddate,'DD-Mon-YYYY HH:MI:SS AM') else TO_CHAR(d.updateddate,'DD-Mon-YYYY HH:MI:SS AM') end as APPROVAL_DATE,
a.numberoftimesmodified,
case when a.state = 'EXPIRED' then 'Expired' when a.approvalduration is null then 'Pending' when a.outcome = 'REJECT' then 'Rejected' else 'Approved' end as PROCESS,
d.state as process2,
case when d.substate = 'REASSIGNED' then 'Reassigned' when d.state = 'INFO_REQUESTED' then 'Request Info' when a.state = 'EXPIRED' then 'Expired'
when a.outcome = 'REJECT' then 'Rejected' when d.substate = 'INFO_SUBMITTED' then 'Submitted' when a.state = 'WITHDRAWN' then 'Withdrawn' when e.state is null then 'Pending' else 'Approved' end as state,
e.ASSIGNEES, d.substate
from WFTASKHISTORY a
left join WFTASKHISTORY d on d.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and d.numberoftimesmodified = (a.numberoftimesmodified+1)
left join WFTASKHISTORY e on e.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and e.numberoftimesmodified = (a.numberoftimesmodified-1) and e.ASSIGNEES = a.ASSIGNEES
where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY and a.state is not null
order by a.numberoftimesmodified
) a
inner join (select rownum as numberoftimesmodified, pushbacksequence from (select distinct pushbacksequence from WFTASKHISTORY a where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY order by pushbacksequence)) b
on b.pushbacksequence = a.pushbacksequence
where a.prev_gid != a.current_gid or prev_gid is null
order by a.numberoftimesmodified
) appr on org.seq = appr.seqORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
Error at Line: 55 Column: 172Hi User,
The ORA - 00942 indicates that the Underlying object is not present in the Database.
Just Check whether the Table you are used in the Select statement exists in the user/Schema.
To check this..
SELECT *
FROM USER_TABLES
WHERE TABLE_NAME = 'YOUR_TABLE_NAME';Or
Simply,
SELECT *
FROM TAB;If you are using the Table from other Schema, Just give the table name like this..
SELECT *
FROM SCHEMA_USER.table_name;Thanks,
Shankar -
Problem creating a view in Administrator: 942: table or view does not exist
Hi and thank you for reading,
I am working with the Administration tool and would like to create a view in the physical layer. However I am getting the following error messages when I try to view the Date in the view:
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occured.
[nQSError: 43093] An error occured while processing the EXECUTE PHYSICAL satement.
*[nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute.*
[nQSError: 17010] SQL statement preparation failed.
I proceed as following:
Right click on a physical schema (this schema is already created and works in Answers) -> new Physical Schema ->Table Type: Select -> Select * from Table_A where name='name' (Table_A is in the physical schema) -> OK -> Save -> Deploy -> Update Row count (works) -> View Data -> Error
Any Idea what I am doing wrong. I have started with an easy select statement to test how to create a view in Oracle Administrator.
Thanks a lot for any help
EvgenyDo you see Table_A, and in which database schema?
Try to put alias (database user) before table name.
Select * from user.Table_A where name='name'
Where user is database user.
If you have Table_A in another user and connection pool is set to different user, then grant select from Table_A owner to connection pool user (make synonym for Table_A):
Example (I'm using connection pool from userB and have tables from userA and userB).
create or replace public synonym xx for userA.xx
and
grant select on xx to userB
Hope this helps.
Regards,
Goran
http://108obiee.blogspot.com -
Hi Geeks,
I have encountered an issue while starting up my database on 12c RAC.
Till mount it goes fine but when i attempt to open it throws me an error.
Total System Global Area 1.5400E+10 bytes
Fixed Size 4737560 bytes
Variable Size 2952791528 bytes
Database Buffers 1.2415E+10 bytes
Redo Buffers 26857472 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00942: table or view does not exist
Process ID: 11338068
Session ID: 1429 Serial number: 3
Here is the trace file output...
ORACLE_HOME = /oracle_home/app/orahome
System name: AIX
Node name: INS1
Release: 1
Version: 7
Machine: 00C8CCA74C00
Instance name: INST1
Redo thread mounted by this instance: 1
Oracle process number: 7
Unix process pid: 20381876, image: oracle@ins1 (TNS V1-V3)
*** 2014-11-27 22:49:20.892
*** SESSION ID:(197.5) 2014-11-27 22:49:20.892
*** CLIENT ID:() 2014-11-27 22:49:20.892
*** SERVICE NAME:() 2014-11-27 22:49:20.892
*** MODULE NAME:(sqlplus@ins1 (TNS V1-V3)) 2014-11-27 22:49:20.892
*** ACTION NAME:() 2014-11-27 22:49:20.892
2014-11-27 22:49:20.889716 : Start recovery for domain=0, valid=0, flags=0x4
*** 2014-11-27 22:49:24.580
Successfully allocated 32 recovery slaves
Using 3 overflow buffers per recovery slave
*** 2014-11-27 22:49:24.740
Thread 1 checkpoint: logseq 15, block 2, scn 3510749
cache-low rba: logseq 15, block 3
on-disk rba: logseq 15, block 72, scn 3510824
start recovery at logseq 15, block 3, scn 0
*** 2014-11-27 22:49:24.981
Started resilvering redo thread 1 seq 15 blocks 72-73
*** 2014-11-27 22:49:24.994
Completed resilvering redo thread 1 seq 15
*** 2014-11-27 22:49:24.994
Started writing zeroblks thread 1 seq 15 blocks 74-81
*** 2014-11-27 22:49:24.994
Completed writing zeroblks thread 1 seq 15
==== Redo read statistics for thread 1 ====
Total physical reads (from disk and memory): 4096Kb
-- Redo read_disk statistics --
Read rate (ASYNC): 35Kb in 0.25s => 0.14 Mb/sec
Longest record: 0Kb, moves: 0/104 (0%)
Longest LWN: 2Kb, moves: 0/33 (0%), moved: 0Mb
Last redo scn: 0x0000.0035922b (3510827)
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 151/176 = 0.9
*** 2014-11-27 22:49:25.007
KCRA: start recovery claims for 25 data blocks
*** 2014-11-27 22:49:25.039
KCRA: blocks processed = 25/25, claimed = 25, eliminated = 0
*** 2014-11-27 22:49:25.054
Recovery of Online Redo Log: Thread 1 Group 6 Seq 15 Reading mem 0
*** 2014-11-27 22:49:25.060
Completed redo application of 0.02MB
*** 2014-11-27 22:49:25.235
Completed recovery checkpoint
----- Recovery Hash Table Statistics ---------
Hash table buckets = 262144
Longest hash chain = 1
Average hash chain = 25/25 = 1.0
Max compares per lookup = 1
Avg compares per lookup = 176/176 = 1.0
Recovery sets nab of thread 1 seq 15 to 74 with 8 zeroblks
*** 2014-11-27 22:49:26.000
2014-11-27 22:49:26.000433 : Validate domain 0
2014-11-27 22:49:26.001348 : Validated domain 0, flags = 0x0
*** 2014-11-27 22:49:28.315
Count of ofsmtab$: 0 entries
*** 2014-11-27 22:49:28.732
ORA-00942: table or view does not exist
ORA-00942: table or view does not exist
*** 2014-11-27 22:49:28.738
USER (ospid: 20381876): terminating the instance due to error 942In my case the issue has fixed by executing the following..
grant SELECT on SYS.USER$ to XDB;
grant SELECT on SYS.USER$ to CTXSYS;
grant SELECT on SYS.USER$ to DVSYS;
grant SELECT on SYS.USER$ to LBACSYS;
grant SELECT on SYS.USER$ to APEX_040200;
grant SELECT on SYS.USER$ to DV_SECANALYST;
Refer the above screen shot... -
A newbie problem - Why 'ORA-00942: table or view does not exist'
Hi,
I am a newbie having a very basic problem.
I have just created a table by reading in a CSV file.
However when I try to SELECT from it, I get an error message saying :-
ORA-00942: table or view does not exist
How can this be when I can see the table name ?
I have tried a couple of things that I found in the Discussion Forum, like 'ALTER SCHEMA' and 'GRANT SELECT'.
Neither seemed sensible because I have just created a table, and sure enough, neither helped.
It's disappointing that something so basic can go wrong.
I will be very grateful for any advice.
BarryThis tool and forum is awesome. I'm a developer that was never touched HTMLDB and now with in a month I'm developing applications quickly and when I have a question I have this active forum to ask my sometimes stupid and othertimes valid questions! This is great! I don't know where you all find the time to help out so much!
It is a little addicting though... I find myself sitting down Saturday morning just to spend a couple of minutes reading the posts and next thing I know hours have gone by as I use what I read because I can't wait until Monday...
Thank you all for everything!!!! HTMLDB, APEX, Javascript and now in another post I'm learning about "Fine Grained Access Control" or "Virtual Private Database".
Enjoy, BillC :>) -
I have a WebService which is invoked , the request is routed through the mideator to the DBAdapter .DBAdapter interacts with the database and replies the result.
I send in the CreditCardNumber in the request and recieve its Status (VALID,INVALID). i get this error every time . i have tried almost every thing to fix this . Please help me with same .
Below is the complete error stacktrace.
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "942" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Thanks in advanceCan you please check the following
a. check the JNDI Configuration. ( check for the value used for XADatasourceName )
b. check the Data source created for the User.
c. Incase you have updated the existing JNDI then you need to update the adapter with the New Deployment Plan.
Thanks,
Sunil Gopal -
Error rendering element. Exception: ORA-00942: table or view does not exist
Guru,
We are maintaining 10 internal Database through OEM 10g and using seesded reports.
When we try to create simple custom reports against one of the Target database , its failing with following error message ,
Query : select * from v$database
Error rendering element.
Exception: ORA-00942: table or view does not exist
select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance )
Note:
I have reviewed thred "getting ORA-00942 while running report in GC"
Please give some light .
Regards,
RajuThis is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
Thanks,
Hussein -
Error while deploy mapping ora-06550 table or view does not exist
Hi everyone,
i have a target source 'U_BCK' that cointains some Oracle table.
I have also created a target schema 'BCK_OWNER' where i create some dimensions and cubes with mappings.
My mappings connect some table from U_BCK with dimension or cube from BCK_OWNER.
My repository owner is called 'rep_owner' and i used this user to create every metadata.
Now i'm trying to deploy, and i don't have any problem until deploying mappings. When i try to deploy mappings i get some errors like ora-06550,ora-00942 table or view does not exist and statement ignored.
Please help me and sorry for my english...
Thanks,
Alex.The mapping, that drives the data from one table to another is deployed to the database as a PL/SQL package. When deploying your mapping fails, it most often means that the resulting PL/SQL package doesn't compile in the database.
Using Oracle SQL Developer (or Toad, SQL Navigator or any other tool) connect to the schema on the database where you have deployed the mapping. Open the pl/sql package and compile it. That should show you the place where the compilation fails, and give you an idea as to what table it can not find. Otherwise, in SQLPLUS, you can simply give the following command:
ALTER PACKAGE THE_PACKAGE_NAME_GOES_HERE compile body;
show errors;
As the database user who owns the source tables, make sure to issue a GRANT command for each of the source tables, granting SELECT access to the database user who owns the mapping:
grant select on TABLENAME to TARGETSCHEMA.
hope this helps
Borkur
Maybe you are looking for
-
my time capsule is taking too much time indexing backup and then taking longer time to back up ( 207 days ) or longer !!! what shall i do ?
-
How can I upgrade to Adobe Acrobat 9 Pro Extended?
Hello, I bought the upgrade for this version, but when I installed it and entered my new licence number, a message said that I have to have the previous version installed on the PC as proof I have an older version. Acrobat 6 would not install if 9 wa
-
I had this monitor installed in Vista and it ran the native resolution of 1440 x 900 perfectly. I upgraded to Windows 7 and the native resolution has gone. There are lower ones and higher ones(which it can't use) but no 1440 x 900. I assumed that Win
-
How are Hot Spot Compilers and VMs of different vendors fit together?
I read that the Hot Spot technology is splitted up into a Hot Spot compiler and a Hot Spot VM. Since maybe the ISV uses another Hot Spot Compiler (maybe IBM on Windows) to compile and the user drives that app on another Hot Spot VM (maybe Novell on N
-
Why wont city ville work properly on facebook??
i play city ville on facebook, and ever since i updated firefox i cannot see my friends lists when wanting to send gifts or ask for help, i do get a small empty window pop up momentarilly then dissapear again, i never had this before i updated and wo