I can't compile fuction (table or view doesb't exist)
Hi
I have strange problem.
I wanted create simple function
My steps:
1. Connect as HAM (HAM user has DBA role)
2. I successfully created table:
CREATE TABLE ham_adm_user
(id NUMBER(16,0) NOT NULL,
uzytkownik VARCHAR2(50),
aktywny_od DATE,
aktywny_do DATE,
mail VARCHAR2(128),
imie VARCHAR2(64),
nazwisko VARCHAR2(64),
id_rola NUMBER(1,0))
3. I would like create function
CREATE OR REPLACE
FUNCTION fun_user_id
(param1 in VARCHAR2)
return NUMBER
IS
idx number;
begin
BEGIN
SELECT id into idx FROM HAM_ADM_USERS WHERE upper(uzytkownik) = upper(param1);
RETURN idx ;
END;
end;
13:27:34 [8:34] PL/SQL: ORA-00942: table or view does not exist
13:27:34 [8:5] PL/SQL: SQL Statement ignored
4. I succesed launch SQL command
SELECT * from HAM_ADM_USERS
Hmmmmm do you have any hints, mayby I forgot about something ??
in the create table you use ham_adm_user in the function you use ham_adm_users
so they are different
Similar Messages
-
Compile error "table or view does not exist"
When I run the following code, I get a compile error:
Error(5,33): PL/SQL: ORA-00942: table or view does not exist
I can run the select statement by itself as an SQL query, so why does this not work in PL/SQL?
CREATE OR REPLACE
PROCEDURE PREPTEST AS
BEGIN
FOR rec IN (SELECT rep_id FROM diag.diag_rep )
LOOP
DBMS_OUTPUT.PUT_LINE(' record ID is ' || rec.rep_id);
END LOOP;
END;Within SQL the permissions can be taken from the Role that the user has.
Within PL/SQL permissions are not taken from Roles and have to be explicitly granted to the user.
GRANT the appropriate permissions to the user and the PL/SQL code will work. -
Can't get Sequencing working (table or view does not exist...)
Hello,
I'm running JDeveloper 10.1.2 on a Oracle 9i database.
All my mappings are correct, i mean, i can query the database using the Toplink API and list all the objects on teh database. What it's not working is inserting new objects due to this sequencing problem.
This is what i'm doing:
myClass newObject = (myClass) uow.newInstance(myClass.class);
uow.assignSequenceNumber(newObject);
But this is generating this Exception:
Local Exception Stack: Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseExceptionException Description: java.sql.SQLException: ORA-00942: table or view does not exist
Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
Error Code: 942
I figured this could be a problem with the sequencing configuration and all that stuff (I don't have a sequence table). So i checked my configurations...
'Toplink Mappings' is setup to 'Use Native Sequencing', as per Notes on http://www.boku.ac.at/oradoc/ias/10g(9.0.4)/web.904/b10313/dataaccs.htm. This page also states this:
"When using native sequencing with Oracle, specify the name of the sequence object (the object that generates the sequence numbers) for each descriptor. The sequence preallocation size must also match the increment on the sequence object" (...) "Use preallocation and native sequencing for Oracle databases.
And this is exactly what i'm doing. On myClass mappings, the 'Use Sequencing' checkbox is checked, the correct sequence name is typed correctly, once this is the same sequence i've been using for years prior to Toplink, the selected table is the correct one, just as the id field on the table.
Another thing is that the 'Preallocation Size' on Toplink Mappings match the increment value on the database sequence.
I must be missing something...
Can anybody shed some light on this?
Thanks a lot to all.Hello
The method accessing check box tells TopLink to use the get/set methods on your object to set its attributes - If it is unselected, TopLink will set the attribute directly. Great if you have business logic in your get/set methods that you don't want TopLink to hit each time it creates an object after a read from the database (or registers, etc).
The problem you are encountering seems like you have sequencing set to "Use Default Sequencing Table". This option is on the "TopLink Mappings" page on the "Database info" tab just below where you would have set which connection to use. You will need to ensure you have the "use Native sequencing" selected. If you set this information instead through code, be sure you do it on the database login before you login to the session.
If this doesn't help, try turning on TopLink logging to see the SQL statement that causes the problem. The knowing the table name and SQL being used might help figure out where it is being set.
Best Regards,
Chris -
Error in pakcage table or view does not exist but on sql prompt query works
Hi
Can any one help me to understand the error of ORA-00942: table or view does not exist while compiling the package on Oracle 9.2.0.4.0
The below package compiled in system user and trying to query on view v$session_wait however getting below error.
PACKAGE BODY SYSTEM.PK_DB_ALERT
On line: 212
PL/SQL: ORA-00942: table or view does not exist
I can execute same query mentioned below from sql prompt from system user and it works fine however it doesn't like from package, Please advice, thank you in advance.
SELECT SID, seq#, event, wait_time
FROM v$session_wait
WHERE event NOT LIKE 'SQL*Net%' AND wait_time <> 0
ORDER BY 2SDD wrote:
Hi
Can any one help me to understand the error of ORA-00942: table or view does not exist while compiling the package on Oracle 9.2.0.4.0Which means package owner is granted select on view not directly but via roles. However, roles are ignored by definer rights packages/stored procedures/stored functions/triggers... You need to grant package owner select on view directly.
SY.
Edited by: Solomon Yakobson on Jan 21, 2010 4:06 AM -
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am getting currently getting an error when I try and insert into a table from a different schema from my Stored Procedure:
Error(20,22): PL/SQL: ORA-00942: table or view does not exist
I am explicitly calling the table with the schema name infront i.e.
INSERT INTO SAPSR3.ZTREC_NAME_TYPE
MASTER_ID,
NAME_TYPE,
FAMILY_NAME,
FIRST_NAME,
MIDDLE_NAME,
TITLE
VALUES
In_MasterID,
In_NameType,
In_FamilyName,
In_FirstName,
In_MiddleName,
In_Title
I only get this error when I try and compile my stored procedure. If I try this insert not within a stored procedure (i.e. a blank script) it works perfectly.
Can anyone tell me what Im doing wrong?
Thanks.Hi,
It sounds like you (the procedure owner) have privileges on that table only through a role.
Roles don't count in stored procedures created with AUTHID OWNER (which is the default).
Either
(1) Have user SAPSR3 grant the necessary privileges directly to you (or to PUBLIC), or
(2) change the procedure so that it runs with the caller's privileges, by adding AUTHID CURRENT_USER after the argument list but before the keyword IS (os AS) like this:
CREATE OR REPLACE PROCEDURE foo
( x IN NUMBER
AUTHID CURRENT_USER
IS ... -
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 -
ORA-00942: the table or view does not exist
Hello!!!!
I have tree simple mappings each one with only one dimention and sometimes external or normal tables. One of them is ok but I can´t deploy the others.
In Controle Center I have this messege: the table or view does not exist.
I genereted both queries and run in SQL navigator with the same message.
I realized that I can set the schema properties for external tables but I couldn´t do the same for Dimension (or I don´t know where I can do this).
I believe that I have to set this propertie for dimension to have my mapping running ok, but I realized that the only one mapping that is ok does not have this propertie set.
Where is the problem?!!?!?!?
I validated these mapping and they have warnnings about column length, no errors.
In the previous OWB version I used to set this propertie, but in 10.2 I don´t know if is realy necessary.Try to open the package body with a tool like TOAD and try to compile it. When you use TOAD the process stops where the error is. Then you know which table or view doesn't exist for the OWB. If the table or view does exist then it is almost certainly a missing privilege that prevents you from succesfully deploying your mapping. If the table or view does not exist then you've got to deploy the underlying (bound) table.
Regards,
Jörg -
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. -
Table or view does not exist - Data Dictionary Import Wizard(Data Modeler)
Hi All,
In Data Modeler, Data Dictionary Import Wizard, I'm able to connect to database.But while going to the second stage (Select Schema/Database), I'm getting an error "ORA-00942: table or view does not exist".
I am able to select the table with select * from all_tables and I can open many tables as well.
Could anyone tell me, whether I'm missing any privilege, that causing this error.
Thanks in advance for you support.
Thanks.Hi,
Thanks for your response, sorry for my late reply as I was away from my place.
Yes, it is showing "Connection established successfully".
log file as below-
2012-08-02 10:37:26,471 [main] INFO ApplicationView - Oracle SQL Developer Data Modeler 3.1.1.703
2012-08-02 10:39:42,889 [AWT-EventQueue-0] ERROR AbstractDBMExtractionWizardImpl - java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Pls see oracle version details-
Oracle Database 11g Enterprise Edition
11.1.0.6.0
64bit Production
Thanks again and waiting for reply. -
PL/SQL: ORA-00942: table or view does not exist
Hi
i have logged into my schema and trying to access the database "DAD" which has the table name "SCHOOL"
i wrote a function which should give me new_sno when i give it the old_sno
and i have this errors , pls help
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
NEW_SNO Number:=0;
BEGIN
SELECT new_sno AS NEW_SNO
FROM DAD.SCHOOL
WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN NEW_SNO;
END ORIG_SN;
Warning: Function created with compilation errors.
Errors for FUNCTION ORIG_SN:
LINE/COL ERROR
5/1 PL/SQL: SQL Statement ignored
6/15 PL/SQL: ORA-00942: table or view does not exist
Thanks in advance ..Try this,
CREATE VIEW SCHOOL_VIEW AS SELECT * FROM DAD.SCHOOL;and then change your function like
CREATE OR REPLACE FUNCTION ORIG_SN(OSNO in Number,OTN in Number)
RETURN Number IS
my_new_sno Number:=0;
BEGIN
SELECT new_sno INTO my_new_sno FROM SCHOOL_VIEW WHERE ORIG_SNO = OSNO AND ORIG_TN = OTN;
RETURN my_new_sno;
END ORIG_SN;and see if it is getting created without any errors.
-Arun
Edited by: Arunkumar Ramamoorthy on Aug 15, 2009 1:56 AM -
ERROR ORA-00942: table or view does not exist
Hi:
I created a .sql file and a loader file. Running the .sql file with sql * plus Worksheet:
declare
gr sdo_georaster;
begin
select image into gr from gis.RasterImages where geoid=1 for update;
sdo_geor.generatePyramid(gr,'resampling=NN');
update gis.RasterImages set image=gr where geoid=1;
commit;
end;
I trying to create a pyramid,but the error appeared:
ERROR at line 1:
ORA-29400: DATA CONTROL ERROR ORA-00942: table or view does not exist
ORA-06512: 在 "MDSYS.SDO_GEOR_INT", line 162
ORA-06512: 在 "MDSYS.SDO_GEOR", line 826
ORA-06512: 在 line 5
I don't know why?
Anyone can help me?
Thanks.Hi,
I think you are executing the select statement for schema X and the table is in the schema srnr.
And schema X is not having select privilege on the table 'students' present in schema srnr.
Goto schema srnr.
Execute the following statement:
grant select on students to X;
This will give schema X the privilege to query the table students present in srnr.
Regards,
Anupama -
Error in Upload file-table or view does not exist-wwv_flow_file_objects$
Hi,
i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
PL/SQL: ORA-00942: table or view does not exist
The name of the table is wwv_flow_file_objects$
The package is as follows-
CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
FUNCTION get_file_lines (
p_file_name IN VARCHAR2,
p_lines IN OUT line_tab_type,
p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
) RETURN INTEGER
IS
v_binary_file BLOB;
v_text_file CLOB;
v_dest_offset INTEGER := 1;
v_src_offset INTEGER := 1;
v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
v_warning INTEGER;
v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
v_start_pos INTEGER := 1;
v_end_pos INTEGER := 1;
v_line_num INTEGER := 1;
v_file_length INTEGER;
BEGIN
IF p_file_name IS NULL
THEN
RETURN 1;
END IF;
IF p_rec_sep IS NULL
THEN
RETURN 2;
END IF;
SELECT blob_content
INTO v_binary_file
FROM wwv_flow_file_objects$
WHERE NAME = p_file_name
AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
AND doc_size > 0;
DBMS_LOB.createtemporary(v_text_file, TRUE);
DBMS_LOB.converttoclob(v_text_file, v_binary_file,
DBMS_LOB.lobmaxsize, v_dest_offset,
v_src_offset, DBMS_LOB.default_csid,
v_lang_context, v_warning);
IF v_warning = DBMS_LOB.warn_inconvertible_char
THEN
-- Unable to convert file.
RETURN 3;
END IF;
v_file_length := DBMS_LOB.getlength(v_text_file);
LOOP
EXIT WHEN v_start_pos > v_file_length;
v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
IF v_end_pos = 0
THEN
v_end_pos := v_file_length + 1;
END IF;
IF (v_end_pos - v_start_pos) > 4000
THEN
-- Line exceeds 4000 characters.
RETURN 4;
END IF;
p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
v_line_num := v_line_num + 1;
v_start_pos := v_end_pos + v_rec_sep_len;
END LOOP;
RETURN 0;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN 5;
END get_file_lines;
END Text_File_Pkg;
Any suggestions.
Many Thanks,
SanjaiHi,
i am trying to upload a file and then store the contents of the file into one of my tables in the schema.I wrote one package for uploading the file and then a process to insert each record in the uploaded file to the table in my schema.When i try compiling the package it gives an error.
PL/SQL: ORA-00942: table or view does not exist
The name of the table is wwv_flow_file_objects$
The package is as follows-
CREATE OR REPLACE PACKAGE BODY Text_File_Pkg AS
FUNCTION get_file_lines (
p_file_name IN VARCHAR2,
p_lines IN OUT line_tab_type,
p_rec_sep IN VARCHAR2 DEFAULT dos_new_line
) RETURN INTEGER
IS
v_binary_file BLOB;
v_text_file CLOB;
v_dest_offset INTEGER := 1;
v_src_offset INTEGER := 1;
v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
v_warning INTEGER;
v_rec_sep_len CONSTANT INTEGER := LENGTH(p_rec_sep);
v_start_pos INTEGER := 1;
v_end_pos INTEGER := 1;
v_line_num INTEGER := 1;
v_file_length INTEGER;
BEGIN
IF p_file_name IS NULL
THEN
RETURN 1;
END IF;
IF p_rec_sep IS NULL
THEN
RETURN 2;
END IF;
SELECT blob_content
INTO v_binary_file
FROM wwv_flow_file_objects$
WHERE NAME = p_file_name
AND (mime_type = 'text/plain' OR mime_type = 'application/octet-stream')
AND doc_size > 0;
DBMS_LOB.createtemporary(v_text_file, TRUE);
DBMS_LOB.converttoclob(v_text_file, v_binary_file,
DBMS_LOB.lobmaxsize, v_dest_offset,
v_src_offset, DBMS_LOB.default_csid,
v_lang_context, v_warning);
IF v_warning = DBMS_LOB.warn_inconvertible_char
THEN
-- Unable to convert file.
RETURN 3;
END IF;
v_file_length := DBMS_LOB.getlength(v_text_file);
LOOP
EXIT WHEN v_start_pos > v_file_length;
v_end_pos := DBMS_LOB.INSTR(v_text_file, p_rec_sep, v_start_pos);
IF v_end_pos = 0
THEN
v_end_pos := v_file_length + 1;
END IF;
IF (v_end_pos - v_start_pos) > 4000
THEN
-- Line exceeds 4000 characters.
RETURN 4;
END IF;
p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file, v_end_pos - v_start_pos, v_start_pos);
v_line_num := v_line_num + 1;
v_start_pos := v_end_pos + v_rec_sep_len;
END LOOP;
RETURN 0;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN 5;
END get_file_lines;
END Text_File_Pkg;
Any suggestions.
Many Thanks,
Sanjai -
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 :>) -
Not able to create EM repository - ORA-00942: table or view does not exist
-bash-3.00$ emca -config dbcontrol db -repos recreate
STARTED EMCA at 2010-06-02 12:12:29
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: eric1
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
You have specified the following settings
Database ORACLE_HOME ................ /oracle/product/10.2.0/db_1
Database hostname ................ solx
Listener port number ................ 1521
Database SID ................ eric1
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
Do you wish to continue? [yes(Y)/no(N)]: Y
2010-06-02 12:12:52 oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log.
2010-06-02 12:13:02 oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
Could not complete the configuration. Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.So I looked into a log file: /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log
Here is an end of it ( I can paste all log file if necessary but it is very long):
CONFIG: Starting execution: /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Exit value of 51
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: Enter SYS user's password :
Enter repository user password :
Getting temporary tablespace from database...
prepare(SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'): ORA-00942: table or view does not exist (DBD ERROR: error possibly near <*> indicator at char 28 in 'SELECT tablespace_name FROM <*>dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'')
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
CONFIG: stty: : No such device or address
stty: : No such device or address
stty: : No such device or address
stty: : No such device or address
2010-06-02 12:13:05 oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /oracle/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=solx)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=eric1))) -repos_user SYSMAN -action drop -verbose -output_file /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_2010-06-02_12-13-02-PM.log
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
2010-06-02 12:13:05 oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_repos_drop_<date>.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /oracle/product/10.2.0/db_1/cfgtoollogs/emca/eric1/emca_2010-06-02_12-12-29-PM.log for more details.
2010-06-02 12:13:05 oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Error dropping the repository
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:176)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:127)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:142)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:479)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1123)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:463)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:412)...and here I can easly see that error: ORA-00942: table or view does not exist.
But what does it mean to me ? I mean what should I ro to create/recreate missing table or view ?Hi, so here are my tries:
1. admin:
Below Dirs dont not exist:
<ORACLE_HOME>/<hostname_sid>
<ORACLE_HOME>/oc4j/j2ee/OC4J_DBConsole_<hostname>_<sid>
...also it was unable to drop user - does not exist
-bash-3.00$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:55:44 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.2.0 - Production
SQL> sqlplus "/as sysdba"
drop user sysman cascade;
drop role MGMT_USER;
drop user MGMT_VIEW cascade;
drop public synonym MGMT_TARGET_BLACKOUTS;
drop public synonym SETEMVIEWUSERCONTEXT;
SP2-0734: unknown command beginning "sqlplus "/..." - rest of line ignored.
SQL> drop user sysman cascade
ERROR at line 1:
ORA-01918: user 'SYSMAN' does not exist
SQL> drop role MGMT_USER
ERROR at line 1:
ORA-01919: role 'MGMT_USER' does not exist
SQL> drop user MGMT_VIEW cascade
ERROR at line 1:
ORA-01918: user 'MGMT_VIEW' does not exist
SQL> drop public synonym MGMT_TARGET_BLACKOUTS
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
SQL> drop public synonym SETEMVIEWUSERCONTEXT
ERROR at line 1:
ORA-01432: public synonym to be dropped does not exist
{code}
I also tried this:
2. coskan
{code}
-bash-3.00$ sqlplus sys/qaz123@eric1 as sysdba
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Jun 2 12:51:34 2010
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Release 10.2.0.2.0 - Production
SQL> SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE';
SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY' AND status='ONLINE'
ERROR at line 1:
ORA-00942: table or view does not exist
{code} -
Scheduling error causing - ORA-00942: table or view does not exist
Hello
I have the following problem, I created an scenario that its supposed to run every 1 hour, it has an interface that moves an amount of records from one table to another (the amount of records is not fixed it changes). The problem arises when the amount of data to move is so big that the hour between executions is not enough and the scenario is still running when a second execution of the same scenario starts to run (as scheduled), so in the interface when the second process is trying to run the loading step it fails and I got the error ODI-1228 Caused By: java.sql.BatchUpdateException: ORA-00942: table or view does not exists. So the scenario fails and it logs this error. I think the error is due to the table in stage being locked by the first execution of the scenario.
I don't want to change the amount of time between executions because it is usually enough, I just want to avoid the execution of a scenario when there is another execution of the same scenario still running, is there any way to do this?.
Thanks
LJHello
Thanks for your answer, I already have the "Interval between repetitions" property set to 1 hour, but when one execution takes more than one hour the scheduler starts another and I have 2 processes accessing the same table and it is when I have a concurrence error on the staging table.
How can I ensure that I wont have two or more executions of the same scenario running at the same time?.
Thanks,
LJ
Maybe you are looking for
-
Mini displayport to VGA resolution
I use an external monitor with my imac 27" i was using an old Tube style vga monitor so i have a mini DisplayPort adapter to VGA.. i just hooked up one of my LCD monitors with a native resolution of 1680x1050 but it does not seem to give me that opti
-
Safari and also Webkit crashes after opening
Safari and also Webkit crashes after opening Process: Safari [585] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: org.webkit.nightly.WebKit Version: r82096 (82096) Code Type: X86-64 (Native) Parent Process: launchd [101] Date/Time:
-
I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents. When I drag the doc in a line would show up in the past, and if I went above th eline all was good. It doesn't h
-
How do I add actual email accounts to home screen-not just HUB?
How do I add actual email accounts to home screen-not just HUB? Can anyone give me the steps?
-
Problem in decryption of xml file
Hi Friends, I have encrypted an xml file using RSA-1024 (using a public key) . It is encrypted successfully. Now to decrypt the resultant file, I'm using the same algo (using a private key), but it results a blank/empty file instead of original xml f