CREATE FUNCTION, getting ORA-00942

Trying to create the function as the user system

create or replace
FUNCTION get_num_roles (iUser to VARCHAR, iRole in VARCHAR) RETURN NUMBER
IS num_roles NUMBER (11);
BEGIN
Select count (1) in num_roles
of dba_role_privs;
RETURN (num_roles);
END;

and obtains ORA-00942

But:
Select count (1) in the num_roles of dba_role_privs;
as user system works

info from dba_synonyms:
OWNER SYNONYM_NAME TABLE_OWNER, TABLE_NAME
PUBLIC DBA_ROLE_PRIVS SYS DBA_ROLE_PRIVS

Why ORA-00942?

Systems administrator privileges allow the selection of the DBA_ROLE_PRIVS, but creating a stored object requires a direct subsidy.

As SYS:

Grant select on DBA_ROLE_PRIVS to the SYSTEM;

Tags: Database

Similar Questions

  • com.sunopsis.dwg.function.SnpsFunctionBaseException: ORA-00942: table or view does not exist

    Hi all

    I have a problem in the odiwaitfordata component and when I run get the below error

    Code:

    OdiWaitForData "-CONTEXT GLOBAL =" "-GLOBAL_ROWCOUNT = 1" "-LSCHEMA = ORA_LS" "-POLLINT = 1000" '-SQLFILTER = numero_fichier =-1 ""-TIMEOUT = 10000 ""-TIMEOUT_WITH_ROWS_OK = YES ""-INCREMENT_DETECTION = NO ' "-TABLE_NAME = PRACTICE." "" "" "» GENERATION. "

    Error:

    com.sunopsis.dwg.function.SnpsFunctionBaseException: ORA-00942: table or view does not exist

    Thanks in advance

    Kind regards

    Vivek

    Hi 2700773,

    "PRACTICE. GENERATION' is not a valid table name. You must only give the name of the table, not the schema name. You can also give a list of table, separated by a comma, or a table name masks using % and _ like wildcards.

    As for your previous question? Is it resolved? Please give us a feedback or close the message if it's over.

    Kind regards

    JeromeFr

  • Why get ORA-00942 during the validation of PL/SQL cursor

    The database is 10 gr 2.

    ST_PKG_UTILITIES contains a procedure called "p_insert_update_person_info".

    The procedure includes a cursor that selects a view 'CDS_CIS_ETHNICITY '.

    I am logged in as the owner of the schema of the package. The view lies in another schema, but I have the right to SELECT on the view.

    When I try to compile the package, I get "ORA-00942: table or view does not exist", pointing to the CDS_CIS_ETHNICITY view.

    However, if I SELECT directly from the view using a SQL window, it returns information without problem.

    Code view is a SELECT statement on a table across a db_link. However, given that I can select directly from the view, I am not clear why I would get the error because the view is selected, within PL/SQL.

    Note that the table was originally, on the same server that the schema that I am now, so no db_link was necessary. When the schema of the table has been moved to a new server, we added the db_link. However, the package was never changed, we were careful to reproduce the names of objects that are used by the package, when building the db_link.

    Ideas on this issue would be appreciated.

    Thank you
    VP

    Published by: user618800 on December 9, 2008 14:53

    Hello

    Grant privileges directly to the owner of the whole.

    Looks like the privileges that you have about this point of view have been granted to a role, and the owner of the package has this role.
    Roles do not count inside stored procedures. You must have privileges granted directly to the owner (or to the PUBLIC, which probably does not apply in this case).

  • Get ORA-00942 error with the clause, but not when the user sys.

    Hello

    About 3 weeks ago we increased our memary to PGA_aggregate_target = 60 GB, SGA_target = 58 GB Oracle instance. About 1 week ago our cognos user started having errors ORA-00942 for these queries generated with clause, with the same authorization. i.e.

    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' PRINT_BATCH_ID ' 'PRINT_BATCH_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    'BANK_NOTE_ADI_INFO_T '. ' ' RDP_ID ' 'RDP_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' FI_ID ' 'FI_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' DEPOSIT_NB ' 'DEPOSIT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_MACHINE_ID ' 'PROCESS_MACHINE_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' OUTPUT_STACKER_TYPE_CE ' 'OUTPUT_STACKER_TYPE_CE '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PARTITION_KEY ' 'PARTITION_KEY '.
    'BANK_NOTE_ADI_INFO_T '. ' ' LOAD_ID ' 'LOAD_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SERIAL_NUMBER_ID ' 'SERIAL_NUMBER_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SHIFT_NB ' 'SHIFT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' BANK_NOTE_COUNT_NB ' 'BANK_NOTE_COUNT_NB '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "BANK_NOTE_COUNT_NB") 'C_1' "
    , count (1) 'C_2' of 'aBmtQuerySubject4 '.
    After having count (*) > 0)
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1.
    of 'CountResultQuery5 '.
    ;


    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' LOAD_ID ' 'LOAD_ID '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "LOAD_ID") 'C_1' "
    , count (1) 'C_2 '.
    of 'aBmtQuerySubject4' having count (*) > 0
    )
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1' of 'CountResultQuery5 '.
    ;

    -output like:

    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist


    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist

    Since 2 days ago, we get ORA-0403.

    One thing I noticed that the coguser can run above queries correctly after they are run by a user sys...

    Could you please help me on how I can resolve ORA-00942 error?

    Thank you very much, much in advance for all your help and your advice! :-)

    Jihong.

    "One thing I've noticed the coguser can run over queries correctly after they are run by a user sys... »

    Jihong,

    Do you mean that queries can be run successfully as a sys user, or as long as once a sys cognos user user has run the query at least once?

    Gerard

  • ORA-00942 Table or view does not exist when you run a procedure

    Hello

    I have a procedure called FND_GLOBAL under a scheme called APPS and I have granted execute privilege on this procedure to another schema called CIVICA

    However when I run the procedure of the CIVIC scheme I get

    ORA-00942 Table or view does not exist
    ORA-06512 at APPS. FND_CORE_LOG, line 25
    ORA-06512 at APPS. FND_GLOBAL, line 104
    ORA-06512 at APPS. FND_GLOBAL, line 1620
    ORA-06512 at APPS. FND_GLOBAL, line 2171
    ORA-06512 at APPS. FND_GLOBAL, line 2313

    I'm guessing that some of the sub components must also be given to the CIVICA?

    How does work to define rights? Subcomponents should not also be accessible via this procedure being owner / defined by Apps but executed by CIVICA?

    Jim

    Hi, Jim,.

    Jim Thompson wrote:
    Sorry Frank - in order to clarify

    I wanted to CIVICA to be able to execute procedures and functions in applications. Package FND_GLOBAL

    However this package has been defined with the rights of the plaintiff - CIVICA must be explicitly object privilege to all objects used by the package (or packages of sub that he calls, that there are some - it is really a case to view the hierarchy of this package and ensure that each object is explicitly given to CIVICA)

    What do you mean by "explicitly granted to CIVICA"? ". Do you mean granted directly to CIVICA, and not a role that CIVICA has?
    Once more, the privileges granted to the roles are good enough for packages AUTHID CURRENT_USER (also known as the "rights of the applicant"). The only time where you have to say "GRANT."... CIVICA"is when granting a role to the CIVICA; all other privileges may be granted to this role, or some other roles that are granted to the role that CIVICA has.
    Mnight want to create a role that has all the necessary privileges to use the package and grant this role to users like CIVICA.

    ... So, it seems as if I have no choice but to get my pen and paper and trace through the nested packages and objects called by FND_GLOBAL and to ensure that they are explicitly granted to CIVICA! I hate days like these!

    CIVIA want to have all the privileges that has APPS? You can query dba_tab_privs (and oither views in the data dictionary) to find (and write statements of "GRANT... ("for) all these privileges.

    You can also create another packet (let's call it FND_GLOBAL_I) in applications with rights of the author. Specification of package would be identical to the specification of FND_GLOBAL package, except that it says FMD_GLOBAL_I instead of FND_GLOBAL. The FND_GLOBAL_I package body are very similar to the spec. The body of each procedure or function would simply be a call to the corresponding functuion in FND_GLOBAL. Since FND_GLOBAL has hundreds of procedures, it will be a lot of work, but perhaps less work than to find exactly what privileges are needed.

  • Table exists but still error: ORA-00942, isn't able to create indexes: Help

    It's my script... the table FLASH_SALES_BY_STORE_AND_HOUR exist in my database, so why I get the error message.
    ERROR on line 1:
    ORA-00942: table or view does not exist



    Here is my script.

    ASK for IDX_SALES_STORE_DEL

    CREATE INDEX IDX_SALES_STORE_DEL ON FLASH_SALES_BY_STORE_AND_HOUR (STORE_ID, TRUNC (LOCAL_DATE))
    TABLESPACE 'FLASH '.
    STORAGE
    (
    DEFAULT USER_TABLES
    )
    /

    QUICK creation IDX_SALES_STORE_VIEWexit


    CREATE INDEX IDX_SALES_STORE_VIEW ON FLASH_SALES_BY_STORE_AND_HOUR (STORE_ID, TRUNC (LOCAL_DATE), DEPARTMENT)
    TABLESPACE 'FLASH '.
    STORAGE
    (
    DEFAULT USER_TABLES
    )
    /

    Please, re - run the script as the user who owns the table...

    Otherwise, add the schema name before the name of the index (if not index will be created under SYS) and table name (since you missed the creation of synonym).

    HTH,
    Thierry

  • ORA-00942 - create a procedure

    When I create this procedure

    It's a return ORA-00942 on line 6, but I have the privilege to choose on dba_tables.


    CREATE OR REPLACE PROCEDURE p_read_only
    AS
    BEGIN
    FOR x IN (SELECT table_name
    FROM dba_tables
    Owner WHERE = 'MAN')
    LOOP
    RUN IMMEDIATELY ' GRANT SELECT ON SWH.»
    || x.table_name
    || "TO READ_ONLY.
    END LOOP;

    FOR x IN (SELECT view_name
    FROM dba_views
    Owner WHERE = 'MAN')
    LOOP
    RUN IMMEDIATELY ' GRANT SELECT ON SWH. "| x.view_name
    || "TO READ_ONLY.
    END LOOP;
    END;
    /

    Thank you

    Published by: Jx on July 19. 2011 08:10

    In the future please check for errors before you post thereon. This error is with ORA-1031, PLS-201 and ORA-12514 error more popular on this forum, always because people post here never use online resources.

    No, you do not have privilege. You have the privilege, thanks to a role and roles are disabled during the compilation of the procedures as roles can change on the fly.

    You must
    or the other

    (1) create or replace... AUTHID current_user
    (2) grant select privileges directly on dba_tables.

    The last method is not preferable, because you will end up with a myriad of direct privileges which are not included in your export, they are owned by SYS and SYS is not exported.

    Also in DDL in a procedure is generally considered bad because it has all kinds of side effects.
    A regular SQL script should be sufficient.

    ----------------
    Sybrand Bakker
    Senior Oracle DBA

  • Problem with ore.save () - leads to ORA-00942 table or view does not exist

    I get an error when I try to use ore.save () to register a function of R in a data store. This works in our environment of DEV, but for some reason any is not going back to QA. (No not the right to try Prod...)

    What I see:

    -The function to be saved - loadInputData() - is defined

    -A confirmed that the data store exists

    -Tried to save a simple vector - same question

    -Looked directly into RQSYS. RQ$ DATASTOREOBJECT and it seems that he actually recorded? Except call ore.load () for the same object (function loadInputData) also gives the ORA-00942.

    -Both the function and the simple vector see when I call ore.datastoreSummary (), even if the call to ore.save () for both threw the ORA-00942

    -I am connected to a synonym account

    Full traceback from left to right:

    12 .oci. GetQuery (Conn., instruction, data = data = prefetch prefetch,

    bulk_read = bulk_read)

    11 .local (conn, statement,...)

    10 ROracle::dbGetQuery (.ore.con (), qry,...)

    9 ROracle::dbGetQuery (.ore.con (), qry,...)

    8 ore. QueryEnv$ dbGetQuery (qry, healthy = healthy,...)

    7 OREbase:.ore.dbGetQuery (stmt, data = raw.df)

    6.ore.insertObj (get (nm, envir = envir), name, nm, envAsEmptyenv)

    5 FUN ("loadInputData" [[1 L]],...)

    4 lapply (X = X, FUN = FUN,...)

    3 sapply (existingobj.names, function (nm).ore.insertObj (get (nm,

    ((envir = envir), name, nm, envAsEmptyenv))

    2 ore.save (loadInputData, name is MODEL_SAVE_DATASTORE, overwrite = TRUE)

    Question of privilege. The account was missing rights RQADMIN, as well as CREATING of DATA MINING, UNLIMITED TABLESPACE and maybe a few others

  • DBMS_SQL in another schema of table-error of request * ORA-00942

    Oracle experts,

    I think that I have problems with the help of DBMS_SQL in which the function was created in a schema and the query table was created in a different schema.

    We have 2 schemas: S1, S2
    We have 2 tables:
    T1 in the S1 schema
    T2 in the schema S2

    We have a function F1 created by DBA in the S1 schema that uses the dbms_sql as:

    CREATE or REPLACE FUNCTION S1. F1 (v1 in VARCHAR2) return NUMBER IS
    Cursor1 INTEGER;
    BEGIN
    Cursor1: = dbms_sql.open_cursor;
    DBMS_SQL. Parse (cursor1, v1, dbms_sql. NATIVE);
    DBMS_SQL.close_cursor (Cursor1);
    Return (0);
    EXCEPTION
    while others then
    DBMS_SQL.close_cursor (Cursor1);
    return (1);
    END;
    /

    I use jdeveloper 11G. We have a DB Oracle 11 g.
    We have a java program that uses jdbc to talk to our Oracle database.


    Basically, in my program java, I call F1 function to check if the query is valid.
    If this is the case, it returns 0. Otherwise, returns the value 1:

    oracle.jdbc.OracleCallableStatement cstmt = connection.prepareCall (oracle.jdbc.OracleCallableStatement) ("start?: = S1.") F1 (?); end; ») ;
    cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
    cstmt.setString (2, "Select * from S2.") T2');
    cstmt. Execute ();

    Since the table that I run the query T2, created in different pattern of F1 has been created, I got the error:

    * ORA-00942: table or view does not exist

    So my questions are the following:
    -J' use DB Oracle 11g, if I run the query on a table that was created in a different pattern than the function (which uses dbms_sql) appeared, I would get the error ORA-00942?
    -If I run the query on the T1 table in the same schema as the function F1, if I have the same problem (the reason why I ask is that I can't create any table in the S1 schema because the DBA can do; I'm not a DBA)

    -This isn't a problem, but a feature of security due to SQL injection?
    -How to solve this problem, other than creating the table in the same schema as the function that uses DBMS_SQL?

    Kind regards
    Binh

    Copyright (default) stored objects managed by virtue field of safety of the owner of the and ignore privileges based on roles. So whatever that the user logged as function of S1. F1 always runs as a user S1 and ignores the S1 user roles. That's why exeuting instruction in S1. F1:

    Select * from S2. T2

    requires that the S1 user have the right to SELECT on S2. T2 granted to S1 directly, without going through the role.

    SY.

  • DBUM target Recon - java.sql.SQLSyntaxErrorException error: ORA-00942: table or view does not exist

    Hello

    When I run DBUM Targer user reconciliation (recon Filtered) I get the error in the log below.

    We have created an account with privileges below target. y at - it all permisssions more necessary for execution of the reconciliation of the target.

    [2015-10 - 09T 10: 47:45.717 - 07:00] [oimext_server1] [NOTIFICATION] [] [oracle.iam.scheduler.vo] [tid: OIMQuartzScheduler_Worker-4] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18393] [APP: IOM #11.1.2.0.0] details executeJob DBUM Oracle user target reconciliation method

    [2015-10 - 09T 10: 47:45.842 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000 - 1:18558 0000000000000004,] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: parseConnectionProperties: no connection properties

    [2015-10 - 09T 10: 47:45.878 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: dropUnusedSearchAttributes: fall tmpQuota

    [2015-10 - 09T 10: 47:45.879 - 07:00] [oimext_server1] [WARNING] [] [ORG. IDENTITYCONNECTORS. DBUM. DBUMCONNECTOR] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.DBUMConnector: dropUnusedSearchAttributes: fall tmpQuota

    [2015-10 - 09T 10: 47:45.881 - 07:00] [oimext_server1] [ERROR] [] [ORG. IDENTITYCONNECTORS. DBUM. SQLEXECUTIONHANDLER] [tid: Thread-276] [username: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18558] [APP: IOM #11.1.2.0.0] org.identityconnectors.dbum.SQLExecutionHandler: executeAccountSearch: error when searching for user records [[ ]]

    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)

    at org.identityconnectors.dbum.SQLExecutionHandler.searchAccounts(SQLExecutionHandler.java:287)

    at org.identityconnectors.dbum.SQLExecutionHandler.executeAccountSearch(SQLExecutionHandler.java:95)

    at org.identityconnectors.dbum.DBUMConnector.executeQuery(DBUMConnector.java:199)

    at org.identityconnectors.dbum.DBUMConnector.executeQuery(DBUMConnector.java:74)

    at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:118)

    at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:82)

    at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)

    to com.sun.proxy. $Proxy575.search (unknown Source)

    at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:107)

    to com.sun.proxy. $Proxy575.search (unknown Source)

    at sun.reflect.GeneratedMethodAccessor5776.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    to org.identityconnectors.framework.impl.api.BufferedResultsProxy$ BufferedResultsHandler.run (BufferedResultsProxy.java:162)

    ]]

    [2015-10 - 09T 10: 47:45.892 - 07:00] [oimext_server1] [NOTIFICATION] [] [oracle.iam.scheduler.impl.quartz] [tid: OIMQuartzScheduler_Worker-4] [userId: oiminternal] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206: - 8000-0000000000000004, 1:18393] [APP: #11.1.2.0.0 IOM] Job listener, Job was performed QuartzJobListener.jobWasExecuted Description DEFAULT null FullName. DBUM Oracle DBUM Oracle target reconciliation user name reconciliation target user

    [2015-10 - 09T 10: 47:46.116 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '6' for queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206 :-8000-0000000000010 c 79, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.

    [2015-10 - 09T 10: 47:46.517 - 07:00] [oimext_server1] [ERROR] [] [] [tid: Watcher] [username: < anonymous >] [ecid: 0000L19f77uEoIs6wjyWMG1M5jJP000000, 1:18404] error receive challenge server hacked

    [2015-10 - 09T 10: 47:49.271 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '12' to the queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206:-8000-0000000000010c7c, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.

    [2015-10 - 09T 10: 47:49.718 - 07:00] [oimext_server1] [ERROR] [] [] [tid: [ASSETS].] [ExecuteThread: '21' for queue: "(self-adjusting) weblogic.kernel.Default"] [username: xelsysadm] [ecid: 77744a889dde03de:-265ee4b8:15049ac7206:-8000-0000000000010c7e, 0] [APP: IOM #11.1.2.0.0] [IDDM: 0000L1Dd4upEoIs6wjyWMG1M5jJP00000S] could not communicate with one of the server access set up, make sure it is running.

    Thank you

    After changing the logging level for 32 track, filled with the SQL log file.

    The application consisted of a JOIN with two or three tables table (dba_users and dba_quota_tablespaces).

    After providing privileges select on the quota table, I was able to learn from the user.

    Thank you

  • 12 c OEM Error rendering element. Exception: ORA-00942: table or view does not exist

    Hi gurus,

    Need your help to resolve ORA-00942 in OEM 12 c. I am planning Long running with a custom query SQL report and get ORA - error.


    I followed the instructions of MOS ' how to create a Custom Information Publisher report listing the current status of all targets (Doc ID 1682668.1). I also gave all possible permissions for mgmt._view


    Grants-

    Grant select on gv_$ ACTIVE_SESSION_HISTORY to mgmt_view;

    Grant select on gv_$ SQLAREA to mgmt_view;

    Custom - query

    SELECT *.

    OF (WITH test (schema_name, machine, sql_id, executions, elapsed_time, sql_text)

    AS (SELECT b.parsing_schema_name,

    a.machine,

    a.sql_id,

    b.executions,

    To_char (MAX (b.elapsed_time) * 0,000001,)

    ' (999999999999999.999').

    LIKE "time (in seconds)."

    B.SQL_TEXT

    OF ACTIVE_SESSION_HISTORY $ Gv, Gv$ SQLAREA B

    WHERE A.SAMPLE_TIME > = SYSDATE - 1

    AND A.SQL_ID = B.SQL_ID

    AND b.executions > 5

    GROUP OF b.parsing_schema_name, a.machine, a.sql_id, b.executions, B.SQL_TEXT

    ORDER BY DESC 4)

    SELECT DISTINCT

    schema_name,

    machine,

    sql_id,

    SUM (executions) as TOTAL_EXECUTIONS,

    SUM (elapsed_time) as TOTAL_ELAPSED_TIME,

    To_char (SUM (elapsed_time) / SUM (executions), ' 999999999999999.999' ") as AVG_RUN_TIME,

    sql_text

    TEST where lower (sql_text) not like '% select%genre.itemname%genre.itemvalue%retailerslogourl%rights_token%md_basic_info_genre%' and sql_text not like '% Analyze % '.

    GROUP BY schema_name, sql_id, machine, sql_text

    ORDER BY DESC 4)

    WHERE ROWNUM < = 20

    Compared to the 10 g report and reading different articles, type target_user_table_from_sql element is missing from 12 c. Do we need to create 12 c or any other parameter that we must follow in 12 c.

    Thanks in advance.

    Kind regards

    Nikhil Mehta.

    Hi all

    I could solve the problem by following the steps below.

    (1) in order to generate reports on the target DB, inserts under folders sysman schema.

    insert into sysman.mgmt_ip_report_elem_def values ('target_user_table_from_sql', 'database_target_type', 'target_user_table_from_sql', 'oracle.sysman.db.util.reports.TableTargetRenderController', 0, NULL, 'EM', NULL, '10.2.0.1.0');

    Insert SYSMAN. MGMT_IP_ELEM_PARAM_CLASSES (ELEMENT_TYPE_NLSID, ELEMENT_PARAM_CLASS, ELEMENT_NAME_NLSID, DISPLAY_ORDER) values ('target_user_table_from_sql', 'database_target_type ','oracle.sysman.eml.ip.render.elem.HeaderParamController ', 1);

    Insert SYSMAN. MGMT_IP_ELEM_PARAM_CLASSES (ELEMENT_TYPE_NLSID, ELEMENT_PARAM_CLASS, ELEMENT_NAME_NLSID, DISPLAY_ORDER) values ('target_user_table_from_sql', 'database_target_type', 'oracle.sysman.eml.ip.render.elem.SQLStatementParamController', 2);

    Commit;

    (2) checked the privileged references and surveillance powers. Password has been changed. Changed the same and report started running as expected.

  • Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    Mr President.

    jasper test.gif

    Me trying to run a report of jasper in my adf application but to get the message

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    net.sf.jasperreports.engine.JRException: the SQL statement execution error for: empReport

    at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:240)

    at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1114)

    at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:691)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1314)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:931)

    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:873)

    at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:87)

    at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:457)

    at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:864)

    to the view. JasperBean.runReport (JasperBean.java:90)

    to the view. JasperBean.runReportAction (JasperBean.java:39)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at com.sun.el.parser.AstValue.invoke(AstValue.java:254)

    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

    at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1074)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:402)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:407)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1113)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:546)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:603)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:234)

    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:55)

    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:829)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1270)

    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:5010)

    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:5070)

    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1677)

    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:141)

    at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:233)

    ... more than 66

    < 14 March 2015 13:13:20 PKT > < error > < javax.enterprise.resource.webcontainer.jsf.application > < BEA-000000 > < error rendered view [/Welcome]

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    Truncated. check the log file full stacktrace

    >

    < oracle.adf.controller > < AdfcExceptionHandler > < handleException > < NO_EXCEPTION_HANDLER >

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    < oracle.adf.view > < RichExceptionHandler > < _logUnhandledException > < ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase RENDER_RESPONSE 6 >

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    [< 14 March 2015 13:13:20 PKT > < error > < HTTP > < BEA-101020 > < [ServletContext@285463113[app:JasperTest module: JasperTest-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    Truncated. check the log file full stacktrace

    >

    < 14 March 2015 13:13:20 PKT > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" in the module "Module-FMWDFW" with severity "Notice" on the server "DefaultServer" released March 14, 2015 13:13:20 PKT details. Notification:

    WatchRuleType: Journal

    WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))

    [WatchData: DATE = March 14, 2015 13:13:20 PKT SERVER = DefaultServer MESSAGE = [ServletContext@285463113[app:JasperTest module: JasperTest-ViewController-context-spec: null, path root-version: 3.0]] Servlet failed with an Exception

    java.lang.IllegalStateException: strict servlet API: cannot call getWriter() after getOutputStream()

    at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletResponseImpl.java:334)

    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:148)

    at com.sun.faces.context.ExternalContextImpl.getResponseOutputWriter(ExternalContextImpl.java:723)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at javax.faces.context.ExternalContextWrapper.getResponseOutputWriter(ExternalContextWrapper.java:669)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.createResponseWriter(FaceletViewHandlingStrategy.java:938)

    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:377)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

    to org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ ChangeApplyingVDLWrapper.renderView (ViewDeclarationLanguageFactoryImpl.java:338)

    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '6' for queue: MSGID "(self-adjusting) weblogic.kernel.Default" = BEA - 101020 MACHINE = TANVIR-PC TXID = the CONTEXTID = 9e95b0a0-9417-4bdd-a665-16c85bcbc70c-00000094 TIMESTAMP = 1426320800208

    WatchAlarmType: AutomaticReset

    WatchAlarmResetPeriod: 30000

    >

    < oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl > < DiagnosticsDataExtractorImpl > < createADRIncident > < incident created 56 to key problem "DFW-99998 [java.lang.IllegalStateException] [oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView] [JasperTest]" >

    My code is

    JSP page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Welcome.jsf" id="d1">
            <af:messages id="m1"/>
            <af:form id="f1">
                <af:button text="Run Report" id="b1" partialSubmit="false" action="#{Jasper.runReportAction}"/>
                <af:table value="#{bindings.EmpView1.collectionModel}" var="row" rows="#{bindings.EmpView1.rangeSize}"
                          emptyText="#{bindings.EmpView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          rowBandingInterval="0" selectedRowKeys="#{bindings.EmpView1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.EmpView1.collectionModel.makeCurrent}" rowSelection="single"
                          fetchSize="#{bindings.EmpView1.rangeSize}" id="t1">
                    <af:column headerText="#{bindings.EmpView1.hints.EmpId.label}" id="c1">
                        <af:outputText value="#{row.EmpId}" shortDesc="#{bindings.EmpView1.hints.EmpId.tooltip}" id="ot1"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.PhoneNo.label}" id="c2">
                        <af:outputText value="#{row.PhoneNo}" shortDesc="#{bindings.EmpView1.hints.PhoneNo.tooltip}"
                                       id="ot2"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.Desig.label}" id="c3">
                        <af:outputText value="#{row.Desig}" shortDesc="#{bindings.EmpView1.hints.Desig.tooltip}" id="ot3"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.LName.label}" id="c4">
                        <af:outputText value="#{row.LName}" shortDesc="#{bindings.EmpView1.hints.LName.tooltip}" id="ot4"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.MName.label}" id="c5">
                        <af:outputText value="#{row.MName}" shortDesc="#{bindings.EmpView1.hints.MName.tooltip}" id="ot5"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.FName.label}" id="c6">
                        <af:outputText value="#{row.FName}" shortDesc="#{bindings.EmpView1.hints.FName.tooltip}" id="ot6"/>
                    </af:column>
                    <af:column headerText="#{bindings.EmpView1.hints.BankAc.label}" id="c7">
                        <af:outputText value="#{row.BankAc}" shortDesc="#{bindings.EmpView1.hints.BankAc.tooltip}"
                                       id="ot7"/>
                    </af:column>
                </af:table>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:preferred-managed-bean-name:Jasper-->
    </f:view>
    

    report code

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="empReport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b049c1d2-c175-4a8b-b9af-65bcdc99a573">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="0"/>
      <queryString>
      <![CDATA[SELECT
         *
    FROM
         "SCHOOL"."EMP" EMP]]>
      </queryString>
      <field name="EMP_ID" class="java.lang.String"/>
      <field name="PHONE_NO" class="java.lang.String"/>
      <field name="DESIG" class="java.lang.String"/>
      <field name="L_NAME" class="java.lang.String"/>
      <field name="M_NAME" class="java.lang.String"/>
      <field name="F_NAME" class="java.lang.String"/>
      <field name="BANK_AC" class="java.lang.String"/>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="79" splitType="Stretch"/>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="61" splitType="Stretch">
      <staticText>
      <reportElement x="218" y="2" width="100" height="20" uuid="da36d8a4-5af2-40f1-9c0e-06970db5131d"/>
      <text><![CDATA[EMP_ID]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="125" splitType="Stretch">
      <textField>
      <reportElement x="218" y="36" width="100" height="20" uuid="0c47bb5c-e96f-4544-8686-8e19f677cee6"/>
      <textFieldExpression><![CDATA[$F{EMP_ID}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
    </jasperReport>
    

    bean code is

    package view;
    
    
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    
    
    import oracle.binding.BindingContainer;
    
    
    
    
    public class JasperBean {
        public JasperBean() {
        }
    
    
        public String runReportAction() {
            // Add event code here...
            DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("EmpView1Iterator");
                        String empId = empIter.getCurrentRow().getAttribute("EmpId").toString();
                        Map m = new HashMap();
                        m.put("employeeId", empId);
                        try
                        {
                          runReport("empReport.jasper", null);
                        }
                        catch (Exception e)
                        {
                        }
            return null;
        }
        public BindingContainer getBindings()
             {
               return BindingContext.getCurrent().getCurrentBindingsEntry();
             }
             
             public Connection getDataSourceConnection(String dataSourceName)
                 throws Exception
               {
                 Context ctx = new InitialContext();
                 DataSource ds = (DataSource)ctx.lookup(dataSourceName);
                 return ds.getConnection();
               }
             
             private Connection getConnection() throws Exception
             {
               return getDataSourceConnection("hrDS");
             }
             
             public  ServletContext getContext()
               {
                 return (ServletContext)getFacesContext().getExternalContext().getContext();
               }
             public  HttpServletResponse getResponse()
               {
                 return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
               }
             public static FacesContext getFacesContext()
               {
                 return FacesContext.getCurrentInstance();
               }
             public void runReport(String repPath, java.util.Map param) throws Exception
             {
               Connection conn = null;
               try
               {
                 HttpServletResponse response = getResponse();
                 ServletOutputStream out = response.getOutputStream();
                 response.setHeader("Cache-Control", "max-age=0");
                 response.setContentType("application/pdf");
                 ServletContext context = getContext();
                 InputStream fs = context.getResourceAsStream("/reports/" + repPath);
                 JasperReport template = (JasperReport) JRLoader.loadObject(fs);
                 template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
                 conn = getConnection();
                 JasperPrint print = JasperFillManager.fillReport(template, param, conn);
                 ByteArrayOutputStream baos = new ByteArrayOutputStream();
                 JasperExportManager.exportReportToPdfStream(print, baos);
                 out.write(baos.toByteArray());
                 out.flush();
                 out.close();
                 FacesContext.getCurrentInstance().responseComplete();
               }
               catch (Exception jex)
               {
                 jex.printStackTrace();
               }
               finally
               {    
                 close(conn);
               }
             }
             
             public void close(Connection con)
              {
                if (con != null)
                {
                  try
                  {
                    con.close();
                  }
                  catch (Exception e)
                  {
                  }
                }
              }
    }
    

    Concerning

    Mr President.

    I recreate my diagram by connecting as sysdba and opens the my database

    then I do not get this message.

    I think that was the problem with my database it has been locked or is created in use of the system.

  • Fail to load the ODI - ODI-17517: error in the interpretation of the task. ORA-00942: table or view does not exist

    Hi all

    Try to run the loads on the test environment and faced this exception. Guidance on what could be the cause?

    A functioning test environment code development. All models have been migrated using the synonym and the project had to be imported using Mode Duplication.

    The project had two dimension and makes loads... Dimensions has been properly run, its only that all the facts are a failure...

    ODI-1217: CM_PKG_CF_TEST Session (1494702) fails with return code 7000.

    Caused by: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.

    Task: 6

    java.lang.Exception: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    OSB Info: get the joining to the line level columns: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:682)

    Caused by: org.apache.bsf.BSFException: the application script threw an exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    OSB Info: get the joining to the line level columns: column 0: columnNo

    at bsh.util.BeanShellBSFEngine.eval (unknown Source)

    at bsh.util.BeanShellBSFEngine.exec (unknown Source)

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)

    ... 11 more

    -< code printed here >-

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1889)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)

    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1066)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:682)

    An analysis more thrust, found that Repo work had no appropriate grants.

    After adding, it solved the problem.

  • Data import of the AS400/P400 to Oracle using dbms_hs_passthrough throws ORA-00942

    The following code runs successfully, but when I manually delete the table, it fails with the error

    declare
      ret integer;
      c_date VARCHAR2(20);
      n_count number;
    begin
        begin
            EXECUTE IMMEDIATE 'DROP TABLE XXITGI.AGNTPF';
            exception
            when others then
            null;
         end;
        begin
            ret := dbms_hs_passthrough.execute_immediate@P400('drop table ITGDTA.AGNTPF1');
            exception
            when others then
            null;
        end;
            ret := dbms_hs_passthrough.execute_immediate@P400(
              q'|create TABLE AGNTPF1 AS
              (SELECT * FROM AGNTPF WHERE START_DATE >= DEC(REPLACE(CHAR(CURRENT_DATE - 7 DAYS, ISO), '-', ''), 8, 0) ) with data|');
            EXECUTE IMMEDIATE 'CREATE TABLE XXITGI.AGNTPF AS SELECT * FROM AGNTPF1@P400';
            ret := dbms_hs_passthrough.execute_immediate@P400('drop table ITGDTA.AGNTPF1');
            select to_char(CREATED, 'DD-MON-YYYY HH:MI AM') into c_date FROM DBA_OBJECTS where OWNER='XXITGI' AND OBJECT_NAME = 'AGNTPF' ;
            select count(*) into n_count from XXITGI.AGNTPF;
            DBMS_OUTPUT.PUT_LINE('TABLE:XXITGI.AGNTPF  CREATED ON :' || c_date);
            DBMS_OUTPUT.PUT_LINE('TOTAL ROWS IMPORTED :' || n_count);
    end;
    /
    
    
    
    
    

    TABLE: XXITGI. AGNTPF CREATED THE: MAY 21, 2014 12:47

    THE IMPORTED LINES TOTAL: 130

    PL/SQL procedure successfully completed.

    But when I remove the table and run again the block above. I get the error.

    12:47:55 CLONE > drop table xxitgi.agntpf;
    
    Table dropped.
    
    
    
    
    

    ERROR on line 25:

    ORA-06550: line 25, column 47:

    PL/SQL: ORA-00942: table or view does not exist

    ORA-06550: line 25, column 6:

    PL/SQL: SQL statement ignored


    Why his past even if I'm falling off the table in the code itself and recreated.


    Kind regards

    Gerard


    Oracle DB: 11.2.0.1

    Operating system: aix 6.1

    EXECUTE IMMEDIATE 'select count(*) from XXITGI.AGNTPF' INTO n_count
    

    would work.  I wonder still strongly the wisdom to create and delete tables on the fly.  And I'm still confused of what you're trying to accomplish here.  If your goal is to replicate the data, I would use a simple materialized view rather than to create and tables a fall on the two databases.

    Justin

  • ORA-06512: at "SYS." DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey guys, it's Xev.

    I decide to use SQL and XML and it works in a scenario, but in another scenario, is not.

    Here's the Code, I'm passing to two variables, first of all, I spend in the table table_name, and then I spend in the schema.

    If I connected it with "user" and that it seeks it's own pattern, he found the results, as for example, but if I try to run this code while not

    connected to the same user I'm looking for more, I get this error.

    ORA-19202: an error has occurred in the processing of XML

    ORA-00942: table or view does not exist

    ORA-06512: at "SYS." DBMS_XMLGEN", line 288

    ORA-06512: at line 1

    19202 00000 - "an error has occurred in the treatment of XML %s.

    * Cause: An error occurred during the processing of the XML function

    * Action: Check the given error message and resolve the problem appropriate

    /*-------------------------------------------------------------------------------

    This code works only you are connected to the user you are looking on.

    But if you're looking for a different user tables, it is kicking up and gives the above XML error...

    */

    SET SERVEROUTPUT ON

    exec DBMS_OUTPUT. ENABLE (1000000);

    Search_string VAR VARCHAR2 (28)

    EXEC: search_string: = ' ^ [0-9]{3}-[0-9]{2}-[0-9]{4}$']

    COLUMN "Keyword" FORMAT A28

    COLUMN 'Table' FORMAT A9

    COLUMN ' column value / "FORMAT A50

    SELECT DISTINCT SUBSTR (: search_string, 1: 28) "keyword."

    SUBSTR (table_name, 1, 14) "table."

    SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.

    OF dba_tab_cols.

    -where owner = ('& SCHEMA_NAME')

    TABLE

    (XMLSEQUENCE

    (DBMS_XMLGEN. GETXMLTYPE

    ("SELECT" | column_name |)

    'FROM ' | table_name |

    "WHERE REGEXP_LIKE.

    (' | column_name |) ','''

    || : search_string. ''')'

    () .extract (' LINES/rowset / * ""))) t

    -WHERE table_name IN ("FIND_TEST")

    WHERE table_name = upper ('& table_name')

    AND the OWNER = upper ('& SCHEMA_NAME')

    ORDER BY "Table".

    /

    Can someone please explain how works (DBMS_XMLGEN) and why it is throwing this error?

    Thank you

    Xev.

    It has nothing to do with DBMS_XMLGEN. GETXMLTYPE. It simply means the user running your SQL has no select privileges on the table & SCHEMA_NAME. & TABLE_NAME.

    SY.

Maybe you are looking for