ACL connect privileges ORA-01422 ORA-06512

Application Express Installation Guide
3.3.6.1 Granting Connect Privileges
The following example demonstrates how to grant connect privileges to any host for the APEX_030200 database user.
DECLARE
ACL_PATH VARCHAR2(4000);
ACL_ID RAW(16);
BEGIN
-- Look for the ACL currently assigned to '*' and give APEX_030200
-- the "connect" privilege if APEX_030200 does not have the privilege yet.
SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
-- Before checking the privilege, ensure that the ACL is valid
-- (for example, does not contain stale references to dropped users).
-- If it does, the following exception will be raised:
EXCEPTION
-- When no ACL has been assigned to '*'.
WHEN NO_DATA_FOUND THEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
'ACL that lets power users to connect to everywhere',
'APEX_030200', TRUE, 'connect');
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
END;
COMMIT;return:
ORA-01422:
ORA-06512: line 8
SELECT * FROM sys.DBA_NETWORK_ACLS
WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
"HOST"     "LOWER_PORT"     "UPPER_PORT"     "ACL"     "ACLID"
"*"     ""     ""     "/sys/acls/users.xml"     "(RAW)"
"*"     ""     ""     "/sys/acls/power_users.xml"     "(RAW)"My Apex says login XDB Password
Sqlplus.exe "SYS/oracle@orcl AS SYSDBA" @epgstat.sql
All OK
Help
APEX 3.2
11g Rel1

Um , i have implemented the following pl/sql. It seem to kick the person out BUT (now this is a big BUT) within the grid control it mentions :
Details          Failed to connect to database instance: ORA-00604: error occurred at recursive SQL level 1.
create or replace trigger session_access
DECLARE
v_username sys.v_$session.username%type;
v_osuser sys.v_$session.osuser%type;
BEGIN
select s.username ,s.osuser into v_username,v_osuser
from v$session s where s.username='SUSANJO' and s.osuser='oracle';
IF (v_username ='SUSANJO' AND V_OSUSER='oracle' )
THEN
RAISE_APPLICATION_ERROR(-20001, 'You are not allowed to login using the program');
END IF;
END session_access;
Output :
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Mar 23 12:36:43 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning and Data Mining options
SQL> connect susanjo
Enter password:
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: You are not allowed to login using the program
ORA-06512: at line 10
Warning: You are no longer connected to ORACLE.
SQL>
I did conduct a research which was not all that helpful too. So i am back to square one again.
regards
Susan John

Similar Messages

  • ORA – 01031:, ORA – 06512:

    Hello All,
    I am writing a security package with a procedure.
    I got a following TOAD Error message.
    ORA – 01031: insufficient privileges
    ORA – 06512: at “SYS.DBMS_SESSION”, line 90
    ORA – 06512: at “PRJ.PRJ_SEC_PKG”, line 22
    ORA – 06512: at line 2
    What I am doing wrong?
    Thanks,
    NYC

    Hi,
    Capital of World  wrote:
    Thank Guru Frank Kulash'
    When I comment out following couple line, no more error.
    DBMS_SESSION.SET_CONTEXT(‘PRJ_CTX’, ‘USER_NAME’, ‘V_PRJ_USERNAME’);
    DBMS_SESSION.SET_CONTEXT(‘PRJ_CTX’, ‘USER_ROLE’, ‘V_PRJ_ROLE’);
    If this involves set_context, is this the package named in the CREATE CONTEXT command?
    According to my knowledge, answer is NO.Then that's the problem, unless this procedure is being called from that package.
    Set_context can only be called by the trusted package. It can be called indirectly (that is, the trusted package can
    (1) call set_context itself,
    (2) call something else, that calls set_context,
    (3) call something else, which calls yet another procedure, which calls set_context
    ... and so on.
    The trusted package must always be in the calling stack when set_context is called.
    Post the results of "SELECT * FROM all_context WHERE namespace = 'X';" where X is the namespace in question.
    Please tell me more about the namespace.[CREATE CONTEXT in the SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5002.htm#sthref5947] is a good place to start.
    Are all the privileges you need granted directly to the package owner, and not just to some role?
    How I can check it?Query the data dictionary view all_tab_privs.
    In the case of EXECUTE privileges, the table_name column will contain the package (or function, or procedure) name.
    Please give me example command to grant.
    GRANT EXECUTE ON dbms_session TO capital;

  • ORA-00604/ORA-01422/ORA-06512 Error on trigger

    Hi,
    I have an database which is of version 10.2.0.3.0 on Enterprise Edition.
    I want to restrict a user from usage of an schema . Therefore i have written a trigger but i have encountered with another errors:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 5
    Trigger Being::
    SQL> create or replace trigger session_access
    2 after logon on database
    3 declare
    4 v_username varchar2(30);
    5 v_osuser varchar2(30);
    6 begin
    7 select username,osuser into v_username,v_osuser from v$session;
    8 if v_username = 'SUSANJO' and v_osuser= 'ORACLE' then
    9 raise_application_error (-20001,'Access restricted for this USER');
    10 end if;
    11 end;
    12 /
    Trigger created.
    SQL> show errors;
    No errors.
    SQL> connect susanjo
    Enter password:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 5
    Warning: You are no longer connected to ORACLE.
    i have run out of ideas of whats to be done onto the trigger now.
    Regards.
    Susan John

    Um , i have implemented the following pl/sql. It seem to kick the person out BUT (now this is a big BUT) within the grid control it mentions :
    Details          Failed to connect to database instance: ORA-00604: error occurred at recursive SQL level 1.
    create or replace trigger session_access
    DECLARE
    v_username sys.v_$session.username%type;
    v_osuser sys.v_$session.osuser%type;
    BEGIN
    select s.username ,s.osuser into v_username,v_osuser
    from v$session s where s.username='SUSANJO' and s.osuser='oracle';
    IF (v_username ='SUSANJO' AND V_OSUSER='oracle' )
    THEN
    RAISE_APPLICATION_ERROR(-20001, 'You are not allowed to login using the program');
    END IF;
    END session_access;
    Output :
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Mar 23 12:36:43 2009
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning and Data Mining options
    SQL> connect susanjo
    Enter password:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-20001: You are not allowed to login using the program
    ORA-06512: at line 10
    Warning: You are no longer connected to ORACLE.
    SQL>
    I did conduct a research which was not all that helpful too. So i am back to square one again.
    regards
    Susan John

  • ORA-00604 error occured at recursive level1,ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,ORA-06512

    Dear All,
         I created one table like
    create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
    after performing some operations I want to delete the same.
    At that time i got following error. Please help me and tell what is the reason for the error.
    ORA-00604 error occured at recursive level1
    ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
    ORA-06512 at line no 2
    Thanks and Regards
    Prasad

    26bffcad-f9a2-4dcf-afa0-e1e33d0281bf wrote:
    Dear All,
         I created one table like
    create table cls_lrn_tab_unique (F_no number unique UK_F_NO );
    after performing some operations I want to delete the same.
    At that time i got following error. Please help me and tell what is the reason for the error.
    ORA-00604 error occured at recursive level1
    ORA-20123 Insufficient privileges: you cannot drop table cls_lrn_tab_unique TABLE,
    ORA-06512 at line no 2
    Thanks and Regards
    Prasad
    ORA-20123 is a localized/customized error code & message; therefore any solution depends upon what is unique inside your DB now.
    I suspect that some sort of TRIGGER exists, which throws posted error, but this is just idle speculation on my part.
    How do I ask a question on the forums?
    https://forums.oracle.com/message/9362002#9362002

  • ORA-06508,ORA-06512, why I should re-connect and after that it runs well?

    I have 2 package.
    package A depends on B.
    I call the package A in c++ code. At the begining, all work well.
    I compile package B successfully.
    But when I call package A in c++ code using a existing connection to the oracle, I get
    ORA-06508: PL/SQL:
    ORA-06512: 在 "PARTY.PKG_TRANSACTION", line 102
    ORA-06512: 在 "PARTY.PKG_CFMMC", line 1186
    when I kill this session in database server side and re-connect to the database, it runs well.
    what is wrong, why I should re-connect and then it runs well, and in the mean time, it does raise errors above if I use the old connection?

    It appears sometimes. But sometimes it does not appear.
    you can create 2 package.
    package a, package b.
    A depends on b.
    You can call the package A in the client side using c++ code.
    then compile the b(do not change and code of b, just recompile it) successfully.
    If you are lucky you can see the errors.

  • Getting Error ORA-01422&ORA-06512 while clicking distributions of invoice

    Hi,
    I am Getting Error ORA-01422&ORA-06512 when i query the invoice and click on the All distributions.
    However i am getting this error only for some invoices and not for all.
    Any suggestion on this is highly appreciated.
    Regards,
    Shreyans

    Hi,
    What is the application release? If you are on R12, please refer to these documents.
    Note: 580014.1 - R12 Invoices FAQs - (16. Why do the Errors ORA-01422 and ORA-06512 Show when Clicking on the [All Distributions] Button?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=580014.1
    Note: 559199.1 - Error ORA-01422 ORA-06512 Raises when Click On [All Distributions] Button
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=559199.1
    Regards,
    Hussein

  • 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 one scenario, but in another scenario, it doesn't.
    Here is the Code, I am passing in two variables, First, I pass in the table_name and then i pass in the schema.
    If I am doing this with the "user" connected and it's looking in it's own schema, it's find the results, like so, but if i try to execute this code while not
    connected to the same user i am searching on i get this error.
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 -  "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    This code works only of you are connected to the user that you are searching on.
    But if you search for another user tables, it's blows up and gives the XML error above...
    SET SERVEROUTPUT ON
    exec DBMS_OUTPUT.ENABLE(1000000);
    VAR search_string VARCHAR2(28)
    EXEC :search_string := '^[0-9]{3}-[0-9]{2}-[0-9]{4}$'
    COLUMN "Searchword"     FORMAT A28
    COLUMN "Table"     FORMAT A9
    COLUMN "Column/Value" FORMAT A50
    SELECT DISTINCT SUBSTR (:search_string, 1, 28) "Searchword",
                     SUBSTR (table_name, 1, 14) "Table",
                     SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
        FROM   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 ('ROWSET/ROW/*'))) t
      --WHERE  table_name IN ('FIND_TEST')
      WHERE table_name = upper('&TABLE_NAME')
      AND OWNER = upper('&SCHEMA_NAME')
      ORDER  BY "Table"
    Can someone please explain how (DBMS_XMLGEN) works, and why it's throwing that error??
    thanks,
    Xev.

    It has nothing to do with DBMS_XMLGEN.GETXMLTYPE. It simply means user executing your SQL has no select privilege on table &SCHEMA_NAME.&TABLE_NAME.
    SY.

  • Exception occured during invocation of JCA binding ORA-01403: no data found ORA-06512: at line 1

    Dear Legends,
    My requirement is to call store procedure from BPEL. So for I created a BPEL with 2 assign activity and 1 Invoke activity to Invoke the DB adapter. After Deploying I tested the process but it shows the following error:
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DB_SBL_SPROCS1' failed due to: Interaction processing error.
    Error while processing the execution of the SIEBEL.PORTAL_SPROCS.ACP_CONREGISTRATIONLOOKUP_WRAP API interaction.
    An error occurred while processing the interaction for invoking the SIEBEL.PORTAL_SPROCS.ACP_CONREGISTRATIONLOOKUP_WRAP API. Cause: java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.  To classify it as retriable instead add property nonRetriableErrorCodes with value "-1403" to your deployment descriptor (i.e. weblogic-ra.xml).  To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff.  All properties are integers.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary></part><part name="detail"><detail>ORA-01403: no data found
    ORA-06512: at line 1
    </detail></part><part name="code"><code>1403</code></part></bindingFault></bpelFault></fault><faultType>
    <message>0</message></faultType></messages></details></event><event sid="BpPrc0.1" cat="2" n="16" date="2013-08-08T05:39:39.121-04:00" type="4"><message>"BPELFault" has not been caught by a catch block.</message></event><event sid="BpPrc0.1" cat="2" n="17" date="2013-08-08T05:39:39.270-04:00" type="3"><message>The transaction was rolled back. The work performed for bpel instance "960968" was rolled back, but the audit trail has been saved for this instance.If this is a sync request, please resubmit the request from the client. If it is an async request, please recover from the recovery console by resubmitting the invoke message.</message></event></audit-trail>
    What does the above error says?
    1. Whether concern Grant or Execute Privileges is not properly provided to the user?
    2. Is there any Dangling Privileges are prevailing?
    3. Is that the Store Procedure to be Handled with an Error Handling by means of Exception?
    4. Is that I have been giving wrong test data?
    5. Is that No data being existing in the Procedure?
    6. Is that anything related to XA and NON-XA Data Source?
    Any kind of help would be much appreciated. Thanks in Advance.
    Thanks,
    Karthik

    Can you check the following ?
    a. Hopefully the when you execute the procedure using sql tool it works fine and returns data.
    b. Is there any input parameter available for procedure ?
    c. IF yes, is the parameter is mapped with the procedure parameter and populated with value before calling the procedure ?
    d. In the audit trial, you can see from the invoke activity to see whether the parameter is populated with value or not ?
    e. Check the input parameter by executing the procedure with sql tool to see whether this request is receiving any data in return or not ?
    Thanks,
    Vijay

  • OBIEE/EBS R12 - works, except for one user - ORA-06512 error

    OBIEE 10.3.1.4 / EBS 12.0.4
    Oracle 11g
    HPUX 11.31 64 bit Itanium
    We are successfully using EBS integration with OBIEE, but for one user that we have created it doesn't work. When they try to access OBIEE from EBS we get this error in NQServer.log:
    *[nQSError: 13011] Query for Initialization Block 'EBS Security Context' has failed.*
    *[nQSError: 17001] Oracle Error code: 6510, message: ORA-06510: PL/SQL: unhandled user-defined exception*
    ORA-06512: at "APPS.APP_SESSION", line 313
    at OCI call OCIStmtExecute: call / 101507300 */ APP_SESSION.validate_icx_session('NIOWQbvOlCFpGilcGDvlBIY-:S').*
    *[nQSError: 17011] SQL statement execution failed.*
    This is when the query is run against EBS to authenticate the user:
    select FND_GLOBAL.RESP_ID,
    FND_GLOBAL.RESP_APPL_ID,
    FND_GLOBAL.SECURITY_GROUP_ID,
    FND_GLOBAL.RESP_NAME,
    FND_GLOBAL.USER_ID,
    FND_GLOBAL.EMPLOYEE_ID,
    FND_GLOBAL.USER_NAME from dual
    It is only for one user that has the problem. All others users work fine.
    Has anyone else seen this problem?
    Our EBS DBA has checked that the above sql can be run with the session set to the problem user, and compared with a user who can successfully connect to OBIEE. The results were the same for both.

    I was on the wrong lines with this one.
    The error in the NQServer.log was not from the problem user, it was a separate user.
    The real cause of a specific user not being able to login was a corrupt web catalog (which we're still trying to resolve)

  • Inbound Connection Timeout ORA-3136

    Hi,
    Certain users are getting locked automatically and when I checked the Alert log file I found
    WARNING: inbound connection timed out (ORA-3136)
    I referred to the Metalink doc : 465043.1.
    I increase the SQLNET.INBOUND_CONNECT_TIMEOUT to 120, and still the users are getting locked, there is no network delay, there is no database performance degradation.
    However, I found ORA 600 error in the alert log file along with the following errors
    ORA-00600: ?ف? ??? ???غمش ?غك???? [pfri.c: pfri8: plio mismatch ], [], [], [], [
    ORA-04061: غف م?ف ?غ??ظظ فµ ??غ? package body "HR_BASE.PN$LEAVE_BALANCE" ?غفك?ك?
    ORA-04065: غف م?ف ?غ?µطم?ش ?ف ???مغ ?ك ??ظ?? package body "HR_BASE.PN$LEAVE_BALA
    NCE"
    Sat Jan 3 14:35:01 2009
    Errors in file /u01/app/oracle/admin/central/udump/central_ora_5902.trc:
    ORA-00600: ?ف? ??? ???غمش ?غك???? [pfri.c: pfri8: plio mismatch ], [], [], [], [
    Sat Jan 3 14:35:24 2009
    Errors in file /u01/app/oracle/admin/central/udump/central_ora_5902.trc:
    ORA-00600: ?ف? ??? ???غمش ?غك???? [pfri.c: pfri8: plio mismatch ], [], [], [], [
    Sat Jan 3 14:40:01 2009
    Thread 1 advanced to log sequence 1987 (LGWR switch)
    Current log# 3 seq# 1987 mem# 0: /oradb/oradata/central/redo03a.log
    ORA-12012: ??? طم ?غ?µطم? ?غ?غم غغك?مط? 37
    ORA-01403: غف م?ف ?غ??ك? ?غل ?م? ?م?µ??
    ORA-06512: ?µ? "HR_BASE.BSH$PAYROLL", line 143
    ORA-06512: ?µ? line 1
    Sun Jan 25 12:26:47 2009
    Errors in file /u01/app/oracle/admin/central/bdump/central_j000_6523.trc:
    ORA-12012: ??? طم ?غ?µطم? ?غ?غم غغك?مط? 37
    ORA-01403: غف م?ف ?غ??ك? ?غل ?م? ?م?µ??
    ORA-06512: ?µ? "HR_BASE.BSH$PAYROLL", line 143
    ORA-06512: ?µ? line 1
    Sun Jan 25 12:30:48 2009
    Errors in file /u01/app/oracle/admin/central/bdump/central_j000_6523.trc:
    ORA-12012: ??? طم ?غ?µطم? ?غ?غم غغك?مط? 37
    ORA-01403: غف م?ف ?غ??ك? ?غل ?م? ?م?µ??
    ORA-06512: ?µ? "HR_BASE.BSH$PAYROLL", line 143
    ORA-06512: ?µ? line 1
    Sun Jan 25 12:31:38 2009
    Thread 1 advanced to log sequence 3184 (LGWR switch)
    PLEASE Help!!!

    Thanks for your reply,
    Could you please tell me how to recompile a set of objects, can I recompile the objects using utlrp.sql script?
    and there are some other errors as well
    *ORA-00604: error occurred at recursive SQL level 1
    ORA-01801: date format is too long for internal buffer
    RMAN-08132: WARNING: cannot update recovery area reclaimable file *
    for all those errors I need to contact Oracle support?

  • ORA-13033 ORA-06512 at 11.1.0.7

    I have a single shape that seems to cause ORA-13033 at 11.1.0.7 but not at 11.1.0.6. Wondering if I am missing something stupid, or if anyone else has seen this problem. I did a quick search of the posts, but didn't find anything. It could also be that spatial has a problem on the 11.1.0.7 server...
    Thanks
    --on 11.1.0.7
    SQL> drop index foo_spatial_index;
    Index dropped.
    SQL> drop table foo;
    Table dropped.
    SQL> delete from user_sdo_geom_metadata where table_name = 'FOO';
    1 row deleted.
    SQL>
    SQL> create table foo (shape sdo_geometry);
    Table created.
    SQL> insert into foo values (SDO_GEOMETRY(3002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY(484893.192, 1845442.68
    , 0, 484881.786, 1845444.7, .5, 484871.639, 1845450.28, 1)));
    1 row created.
    SQL> insert into user_sdo_geom_metadata values('FOO', 'SHAPE', SDO_DIM_ARRAY(SDO_DIM_ELEMENT(NULL, 484719.102, 484904.266, .0000005), SDO_DI
    M_ELEMENT(NULL, 1845366.11, 1845513.86, .0000005), SDO_DIM_ELEMENT(NULL, 0, 5368.70912, .0000005)), null );
    1 row created.
    SQL> create index foo_spatial_index on foo(shape) indextype is mdsys.spatial_index;
    create index foo_spatial_index on foo(shape) indextype is mdsys.spatial_index
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAFV8VAAHAAAGUtAAA] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    --on a different 11.1.0.6
    SQL> drop index foo_spatial_index;
    drop index foo_spatial_index
    ERROR at line 1:
    ORA-01418: specified index does not exist
    SQL> drop table foo;
    drop table foo
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> delete from user_sdo_geom_metadata where table_name = 'FOO';
    0 rows deleted.
    SQL>
    SQL> create table foo (shape sdo_geometry);
    Table created.
    SQL> insert into foo values (SDO_GEOMETRY(3002, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 4, 1, 1, 2, 2), SDO_ORDINATE_ARRAY(484893.192, 1845442.68
    , 0, 484881.786, 1845444.7, .5, 484871.639, 1845450.28, 1)));
    1 row created.
    SQL> insert into user_sdo_geom_metadata values('FOO', 'SHAPE', SDO_DIM_ARRAY(SDO_DIM_ELEMENT(NULL, 484719.102, 484904.266, .0000005), SDO_DI
    M_ELEMENT(NULL, 1845366.11, 1845513.86, .0000005), SDO_DIM_ELEMENT(NULL, 0, 5368.70912, .0000005)), null );
    1 row created.
    SQL> create index foo_spatial_index on foo(shape) indextype is mdsys.spatial_index;
    Index created.

    There are a couple of things wrong with your geometry.
    The specs says that for compound geometries (sdo_etype = 4) the SDO_INTERPRETATION (in this case with sdo_etype = 4) gives the numeber of subelements. This must be bigger then 1:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_objrelschema.htm#BGHDGCCE
    4
    n > 1
    Compound line string with some vertices connected by straight line segments and some by circular arcs. The value n in the Interpretation column specifies the number of contiguous subelements that make up the line string.
    The next n triplets in the SDO_ELEM_INFO array describe each of these subelements. The subelements can only be of SDO_ETYPE 2. The last point of a subelement is the first point of the next subelement, and must not be repeated.
    In your case you either have single line string which makes the first triplet incorrect or even unnecessary in the SDO_ELEM_INFO, or you are missing a third triplet in the SDO_ELEM_INFO.
    You should always validate your geometries first, if you do that also on your 11.1.0.6 version you will get:
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
    54506 Point:0,Edge:2,
    ORA-54506: compound curve not supported for 3-D geometries
    Cause: The 3-D geometry contained one or more compound curves, which are not
    supported for 3-D geometries.
    Action: Remove all compound curves from the geometry.
    As you will see additionally compound curveare not supported in 3D geometries.
    IF it is not a compound (so with SDO_ELEM_INFO_ARRAY = (1,2,2), you will see that this geometry will validate.
    Looks like the validation might be incorporated now in the index creation in 11.1.0.7.
    Edited by: lucvanlinden on Mar 20, 2009 9:07 AM

  • Errors ORA-39002,ORA-39070, ORA-29283, ORA-06512, ORA-29283 during import

    Hi all,
    I am getting errors during import to 10g database using impdp command.
    D:\>impdp nisa_lt/abc123@objtel1 directory=dtpump dumpfile=20120208_expobj.dmp full=y logfile=dbblog.log
    Import: Release 10.2.0.1.0 - Production on Monday, 13 February, 2012 17:16:05
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 488
    ORA-29283: invalid file operation
    dmpfile history:
    Starting "NISA_LT"."SYS_EXPORT_SCHEMA_01": nisa_lt/********@OBJ schemas=nisa_lt directory=dtpump dumpfile=20120208_expobj.dmp logfile=20120208_expobj.log
    Master table "NISA_LT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for NISA_LT.SYS_EXPORT_SCHEMA_01 is:
    /oradb/OBJ/oraarch/20120208_expobj.dmp
    Job "NISA_LT"."SYS_EXPORT_SCHEMA_01" successfully completed at 15:04:36
    and the dump file was done ftp with bin mode set.
    It'll be really helpful if some one can guide me on this.

    Hi all,
    I was trying to import into a database which i have only the details, but i have no access to db machine, which i think was the problem.
    dmp file easily got imported to database present in the systems which i had access.
    Following are my conclusions based on the experiments, correct me if I'm wrong:
    1. Basically these are errors when db system cant read/write/access the directory structure pointed by directory in database.
    2. This can be achieved by mounting the directory in which dmp is present to the system where database is present.
    2. We cannot import using impdp just by having tns details of the db, we need to have access to db system.
    Thanks
    Avi :)

  • Import job failes with ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT

    Hello everyone,
    I need a help on importing data from a schema in server 1 to the same schema in server 2 via network link. I receive following error when I try to submit a job on Enterprise Manager:
    Import Submit Failed
    ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 5806 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 7812 ORA-06512: at "SYSMAN.MGMT_JOB_ENGINE", line 8608 ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT_JOBS", line 273 ORA-06512: at "SYSMAN.MGMT_JOBS", line 86 ORA-06512: at line 1
    Sql of the job:
    declare
    h1 NUMBER;
    begin
    h1 := dbms_datapump.open (operation => 'IMPORT', job_mode => 'FULL', remote_link => 'B_PROD_LINK', job_name => 'BIMPORTFRMPRDTORPT4', version => 'COMPATIBLE');
    dbms_datapump.set_parallel(handle => h1, degree => 1);
    dbms_datapump.add_file(handle => h1, filename => 'IMPORT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
    dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
    dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
    dbms_datapump.set_parameter(handle => h1, name => 'REUSE_DATAFILES', value => 0);
    dbms_datapump.set_parameter(handle => h1, name => 'TABLE_EXISTS_ACTION', value => 'TRUNCATE');
    dbms_datapump.set_parameter(handle => h1, name => 'SKIP_UNUSABLE_INDEXES', value => 0);
    dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
    dbms_datapump.detach(handle => h1);
    end;
    It says network link is active when I test the network link to make sure its connectivity. I create the network link as a system account. I'm trying to do an import from an Oracle database 10.2.0.2 to 11.2.0.1. My 10g database is on ms windows 2003x64 while my 11g database is on OEL 5.4x64.
    What should I do for now?
    Thank you.
    Edited by: user12144220 on Nov 4, 2012 5:02 AM

    It will be wise to run the Oracle supply streams health check script to check your existing streams environment.
    From the result, you can also open a tar with Oracle to see if they can help you with the setup.
    In addition to the ORA-01403 error, you can also run some of the Oracle Streams packages (Managing Apply Errors) to see the full detail of what is missing that caused the Ora-01403 error.
    I will also try to implement a smoke test using the simple heartbeat table suggested by Oracle Streams, if that is working, then you can begin your full scale setup in your environment knowing that the base Streams Structure is setup correctly.
    HTH

  • Getting ORA-06512: at "APPS.FND_MSG_PUB", line 279 error in Oracle Sourcing

    Hi,
    We have recently applied Sourcing Rollup 2 J patch in our instance. After this, when the users change their timezone, the system behaves weirdly. The Server timezone and Client timezone are set to Dubai timezone (GMT+4) at site level. If the user is using this timezone, there is no issues. But when the user changes the timezone to something else (anything > GMT+4 or anything < GMT+4), he cannot publish auctions. He is getting error like:
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MSG_PUB", line 279
    ORA-06512: at "APPS.HZ_TIMEZONE_PUB", line 877
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MSG_PUB", line 279
    ORA-06512: at "APPS.HZ_TIMEZONE_PUB", line 1088
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.PON_OEX_TIMEZONE_PKG", line 41
    ORA-06512: at "APPS.PON_AUCTION_PKG", line 1052
    ORA-06512: at line 1
    We feel like this is some issues with the system. Some times, this works, sometimes different kind of errors are seen. When user is trying to log in, another error like the following is seen:
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SQL_PLSQL_ERROR. Tokens: ROUTINE = AppsConnectionManager.appsInitialize(int,int,int,int,Connection):-1,-1,-1,0,oracle.jdbc.driver.OracleConnection@192a848; REASON = java.sql.SQLException: ORA-20001: Oracle error -6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    has been detected in FND_GLOBAL.INITIALIZE.
    ORA-06512: at "APPS.APP_EXCEPTION", line 70
    ORA-06512: at "APPS.FND_GLOBAL", line 64
    ORA-06512: at "APPS.FND_GLOBAL", line 1028
    ORA-06512: at "APPS.FND_GLOBAL", line 541
    ORA-06512: at line 1
    When we bounced server, this error went away. But the first error still persists. What could be the reason for this?
    Regards,
    Arun

    I traced through the packages. Here is the result:
    1. PON_AUCTION_PKG line 1052;
    x_newstarttime := PON_OEX_TIMEZONE_PKG.CONVERT_TIME(p_open_bidding_date,x_oex_timezone,x_timezone);
    'x_oex_timezone' is the 'Server Timezone' profile value at site level. 'x_timezone' is the user's timezone. If the user's timezone is not a valid zone (checking done in PON_OEX_TIMEZONE_PKG.VALID_ZONE procedure), this param is assigned the value of 'x_oex_timezone'.
    2. The PON_OEX_TIMEZONE_PKG.CONVERT_TIME procedure calls the procedure HZ_TIMEZONE_PUB.Get_Time(), and I hope here the issue starts. The OUT parameters to this procedure are toDate, status, msg_count and msg_data. Note that here the msg_data is defined as VARCHAR2(100).
    3. Within the procedure HZ_TIMEZONE_PUB.Get_Time(), the error is raised from line 877. This is a WHEN OTHERS case of this procedure. This is from the API ;
    FND_MSG_PUB.Count_And_Get(
    p_encoded => FND_API.G_FALSE,
    p_count => x_msg_count,
    p_data => x_msg_data);
    4. Next error from FND_MSG_PUB is from line 279. This is within the procedure FND_MSG_PUB.Count_And_Get, when executing the following statement:
    p_data := Get ( p_msg_index => G_FIRST ,
    p_encoded => p_encoded );
    5. The 'GET' procedure, sets the value from global table 'G_msg_tbl( G_msg_index ).encoded_message ' to the p_data variable, and here is a potential slippage. The global variable can hold a value of upto 2000 characters. But the p_data is originally defined to be of size VARCHAR2(100). I think this can cause the issue. I am not sure what is the message getting assigned to the global variable here.
    Could this be the problem? Inside the code, some assignments to fnd_mesage are done. But some of those messages are not present in our database (fnd_new_messages). Any clue on this would be greatly helpful.
    Thanks,
    Arun

  • Insertin Data useing SQL Procedure Getting Error ORA-00942 and ORA-06512

    I have two Schemas ISYS and ISYSTWO
    I had created a Stored Procedure RECINC2 in Schema ISYS
    as
    procedure recinc2(cName IN CHAR,cWhere IN CHAR,cTable in CHAR)
    AS
    cQry VARCHAR2(1000);
    BEGIN
    cQry := 'INSERT INTO '||cName||'.'||cTable||' SELECT * FROM '||cTable|| ' WHERE ||cWhere;
    dbms_output.put_line(cqry);
    EXECUTE IMMEDIATE cQry;
    end;
    NOW WHEN in Run it gives error
    SQL> begin
    2 recinc2('ISYSTWO','CODE=4','AGENTS');
    3 end;
    4 /
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    begin
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "ISYS.RECINC2", line 8
    ORA-06512: at line 2
    BUT IF I EXECUTE
    the DBMS output
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    it executes and gives fine result
    Please help
    Thanks
    Chaand kackria

    SQL> conn ISYSTWO/ISYSTWO
    Connected.
    SQL> grant all on agents to isys;
    Grant succeeded.
    SQL> conn isys/isys
    Connected.
    SQL> exec recinc2('ISYSTWO','CODE=4','AGENTS');
    INSERT INTO ISYSTWO.AGENTS SELECT * FROM AGENTS WHERE CODE=4
    PL/SQL procedure successfully completed.

Maybe you are looking for

  • Sql is too long for DBMS_SQL.EXECUTE()

    The code as the following works. However if I run it with my original SQL statement(in quotes), this procedure does not have results shown. How to solve the problem? create or replace procedure dynamic_sql(p_fail IN tab.DisFai1_1%type) IS v_counter N

  • Did the new agp drivers help anyone with the problems with 9700PRO

    just wondering if the new agp drivers from via fixed any issues with people with MSI and/or radeon 9700PRO I used to experience crashes in games only when I overclock to 333FSB but none at 266FSB. I did get 600 more 3dmark2001SE points by using the n

  • Parsing a partial XML list

    Ok, so I have a news section on a site that looks to an XML file to load the news. And there are about 20 news headlines in there, and the scrollbar is getting way too tiny. So, what I would like to do is have it display 10 of the headlines and then

  • ChooseFromList for Customers by Screen Painter

    Hi, I don't know how to start on just adding a ChooseFromList for customers on my Screen Painter form. Any tutorials, videos anything out there to show me how to compelte this task ?

  • How do I speed up a video in iMovie 11?

    If anyone can explain to me how to speed up or slow down a video in iMovie 11, it'd be appreciated.