ORA-55312: échec de l'analyse du triplet

Hi,
I'm using Oracle 11g especially it's semantic's part, Jena and JenaAdaptor.
I've created a table called "owltst" and fill it with millions of triples via a java program using jena adaptor apis:
String query = "INSERT INTO owltst VALUES(1, sdo_rdf_triple_s('owltst', 'http://foo.com/name/John', 'http://www.w3.org/2002/07/owl#sameAs', 'http://foo.com/name/JohnQ'))"
oracle.executeQuery(query);
For some reasons I had to remove all the data.
For this purpose I have empty this table ("owltst") using SQL Developper User interface : right-click on the table's name -> table -> Empty.
So my table is now empty.
But since then I can't directly insert any new triple:
The first time I try to insert a triple, all the ressources are inserted into the RDF_VALUE$ table, but nothing into owltst.
The following exception is throwed :
Exception in thread "main" java.sql.SQLException: ORA-55312: échec de l'analyse du triplet : id-form : 2798728205642892634 834132227519661324 4016149533173549788
ORA-06512: à "MDSYS.MD", ligne 1723
ORA-06512: à "MDSYS.MDERR", ligne 38
ORA-06512: à "MDSYS.SDO_RDF_INTERNAL", ligne 3052
ORA-06512: à "MDSYS.OWLTST_INS", ligne 37
ORA-04088: erreur lors d'exécution du déclencheur 'MDSYS.OWLTST_INS'
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at oracle.spatial.rdf.client.jena.Oracle.executeQuery(Oracle.java:352)
at oracle.spatial.rdf.client.jena.Oracle.executeQuery(Oracle.java:315)
at oracle.spatial.rdf.client.jena.Oracle.executeQuery(Oracle.java:291)
at AjoutsTriplets_NT.main(AjoutsTriplets_NT.java:55)
But the second time I try to insert the same triple, it's correctly inserted without any exceptions.
Does someone know how to resolve this problem?

Hi,
Are you using concurrent sessions to insert these triples? If so, this thread might have more information:
Re: error commiting update
Regards,
Vladimir

Similar Messages

  • SDO_SAM 13390: error in spatial analysis and mining function

    Hi All,
    I have an arror, when I try to run function SDO_SAM.COLOCATED_REFERENCE_FEATURES.
    I'm executing in this way:
    BEGIN
    SDO_SAM.COLOCATED_REFERENCE_FEATURES(
    'CITIES', 'GEOM', 'POP2000 > 12000',
    'CRIMES', 'GEOM', null,
    'distance=20 unit=km', 'COLOCATION_TABLE', 20);
    END;
    At the begining I created tables CITIES and CRIMES with column GEOM SDO_GEOMETRY() type.
    After that I inserted to USER_SDO_GEOM_METADATA values:
    INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('CRIMES', 'GEOM',
    MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('X', 575977.125000000, 577368.125000000, 0.500000000),
    MDSYS.SDO_DIM_ELEMENT('Y', 1195219.125000000, 1196522.000000000, 0.500000000)
    32648);
    COMMIT;
    INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
    VALUES ('CITIES', 'GEOM',
    MDSYS.SDO_DIM_ARRAY
    (MDSYS.SDO_DIM_ELEMENT('X', 575977.125000000, 577368.125000000, 0.500000000),
    MDSYS.SDO_DIM_ELEMENT('Y', 1195219.125000000, 1196522.000000000, 0.500000000)
    32648);
    COMMIT;
    and I also defined table COLOCATION_TABLE (tid NUMBER, rid1 VARCHAR2(24), rid2 VARCHAR2(24))
    After that I was created spatial indexes.
    When I'm trying to run as above I have an error:
    Error report:
    ORA-13390: error in spatial analysis and mining function: [INSERT INTO COLOCATION_TABLE VALUES ( :tid, :rid1, :rid2 )]
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_SAM", line 547
    ORA-06512: at line 2
    13390. 00000 - "error in spatial analysis and mining function: [%s]"
    *Cause:    There was an internal error in the specified analysis function.
    *Action:   Contact Oracle Customer Support for more help.
    Can anyone offer any thoughts or guidance?
    Many thanks in advance.
    Wojtek

    When I run query
    SELECT rowid1, rowid2
    FROM TABLE(mdsys.prvt_sam.Predicated_Join('CRIMES', 'GEOM', 'CITIES', 'GEOM', NULL, 'POP2000 > 12000',
    'distance=20 unit=km'));
    I have error:
    ORA-13390: error in spatial analysis and mining function: [SELECT a.rowid1, a.rowid2 from  table(mdsys.RtreeJoinFunc(cursor(SELECT * from  table(sdo_rtree_admin.sdo_rtree_descrids('WOJTEE', 'CRIMES_SDX', 1)),  table(sdo_rtree_admin.sdo_rtree_descrids('WOJTEE', 'CITIES_SDX', 2))), SYS.ODCIINDEXINFO('WOJTEE', 'CRIMES_SDX', SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('WOJTEE','CRIMES', '"GEOM"', 'SDO_GEOMETRY', 'MDSYS', null)), null, 0, 1),SYS.ODCIINDEXINFO('WOJTEE', 'CITIES_SDX', SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('WOJTEE','CITIES', '"GEOM"', 'SDO_GEOMETRY', 'MDSYS', null)), null, 0, 1), 2, 'ANYINTERACT', ' :dst_spec ',  :tab1_predicate,  :tab2_predicate)) a ]
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.PRVT_SAM", line 234
    13390. 00000 - "error in spatial analysis and mining function: [%s]"

  • ORA SP very slow against ORA 9/10 while fine against ORA8, why ?!?

    I'm facing a very strange problem at a customer's site.
    They have a Gupta Team Developper application that relies
    heavely on a SP to transfer information from the client to the Oracle DB
    server.
    The SP has many parameters as shown below:
    If SqlPLSQLCommand( hSUpdate, "PROC_UPD_PNO_V3( stCPER[0], stCPID[0],
    ntNUM1[0], ntNTSF[0], stCIPE[0],
    stCIPI[0],ntNLSQ[0],ntNMSQ[0],ntQIWE[0],ntQIWO[0],stCACS[0],stCSBO[0],dttDCRE[0],
    dttDUPD[0], stLUSE[0], stCDEL[0],
    stCPER[1], stCPID[1], ntNUM1[1], ntNTSF[1], stCIPE[1],
    stCIPI[1],ntNLSQ[1],ntNMSQ[1],ntQIWE[1],ntQIWO[1],stCACS[1],stCSBO[1],dttDCRE[1],
    dttDUPD[1], stLUSE[1], stCDEL[1],
    stCPER[2], stCPID[2], ntNUM1[2], ntNTSF[2], stCIPE[2],
    stCIPI[2],ntNLSQ[2],ntNMSQ[2],ntQIWE[2],ntQIWO[2],stCACS[2],stCSBO[2],dttDCRE[2],
    dttDUPD[2], stLUSE[2], stCDEL[2],
    stCPER[3], stCPID[3], ntNUM1[3], ntNTSF[3], stCIPE[3],
    stCIPI[3],ntNLSQ[3],ntNMSQ[3],ntQIWE[3],ntQIWO[3],stCACS[3],stCSBO[3],dttDCRE[3],
    dttDUPD[3], stLUSE[3], stCDEL[3],
    stCPER[4], stCPID[4], ntNUM1[4], ntNTSF[4], stCIPE[4],
    stCIPI[4],ntNLSQ[4],ntNMSQ[4],ntQIWE[4],ntQIWO[4],stCACS[4],stCSBO[4],dttDCRE[4],
    dttDUPD[4], stLUSE[4], stCDEL[4],
    nRet)")
    The same SP is very slow on ORA 9 or 10, yet performed well on ORA8.
    After heaving testings to rule out a performance impact on the ORA server
    side, it appears that the same SP behaves differently when executed against
    ORA 8 or ORA 9/10
    On ORA 8, all parameters are sent in one network parameter, while on ORA
    9/10, network traffic analysis shows each parameter seems to be sent in
    it's own network packet (at least network analysis shows there's much more
    network traffic on ORA 9/10 vs ORA 8).
    SQLNet has not changed.
    So what could cause above mentionned change in behavior when connecting
    to ORA8 vs ORA9/10 ?
    Any parameter we could try to set in the client app in order to change
    the SP's behavior ?
    Any other hint, suggestion, ... would be very much appreciated :)
    TIA and best regards,

    I understand the importance of the optimiser, resp. the plan.
    Yet it shouldn't have that much importance for a SP that mainly retrieves data from the client and stores it in the DB.
    (I'll post the SP code ASAP, I don't have it handy).
    In our case, network analysis DID show a huge difference in network traffic (one packet as oposed to many).
    The performance issue is also mainly noticed when connecting over the WAN (from remote location(s), as opposed to the internal LAN, which again points at network traffic as the bottleneck.
    Thanks for your input anyway, and keep the ideas flowing :)

  • Spatial analysis

    what are the steps needed to create a jdbc theme which uses a spatial function like 'intersection' so that Mapviewer can view the returned result? I'd like to visualize the returned sql data using mapviewer....
    thanks
    Peter

    When I run query
    SELECT rowid1, rowid2
    FROM TABLE(mdsys.prvt_sam.Predicated_Join('CRIMES', 'GEOM', 'CITIES', 'GEOM', NULL, 'POP2000 > 12000',
    'distance=20 unit=km'));
    I have error:
    ORA-13390: error in spatial analysis and mining function: [SELECT a.rowid1, a.rowid2 from  table(mdsys.RtreeJoinFunc(cursor(SELECT * from  table(sdo_rtree_admin.sdo_rtree_descrids('WOJTEE', 'CRIMES_SDX', 1)),  table(sdo_rtree_admin.sdo_rtree_descrids('WOJTEE', 'CITIES_SDX', 2))), SYS.ODCIINDEXINFO('WOJTEE', 'CRIMES_SDX', SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('WOJTEE','CRIMES', '"GEOM"', 'SDO_GEOMETRY', 'MDSYS', null)), null, 0, 1),SYS.ODCIINDEXINFO('WOJTEE', 'CITIES_SDX', SYS.ODCICOLINFOLIST(SYS.ODCICOLINFO('WOJTEE','CITIES', '"GEOM"', 'SDO_GEOMETRY', 'MDSYS', null)), null, 0, 1), 2, 'ANYINTERACT', ' :dst_spec ',  :tab1_predicate,  :tab2_predicate)) a ]
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.PRVT_SAM", line 234
    13390. 00000 - "error in spatial analysis and mining function: [%s]"

  • PL/SQL Block with Cursor

    I was trying to create a PL/SQL block where I am trying to call all the SQL Plans and then drop them one by one. Here is how I am doung -
    SET SERVEROUT ON;
    DECLARE
    EXECSTR VARCHAR2(50);
    v_plans_dropped pls_integer;
    CURSOR C1 IS SELECT SQL_HANDLE FROM DBA_SQL_PLAN_BASELINES;
    BEGIN
    FOR I IN C1 LOOP
    EXECSTR := ''''||I.SQL_HANDLE||'''';
    v_plans_dropped:=dbms_spm.drop_sql_plan_baseline(sql_handle=>EXECSTR);
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR while dropping SQL PLAN: ' || SQLCODE || ' : ' || SQLERRM);
    END;
    This is giving me error like - ERROR while dropping SQL PLAN: -38131 : ORA-38131: specified SQL handle
    'SYS_SQL_1470897e7b72c982' does not exist
    Whereas this SQL Plan is there in the baseline - SELECT sql_handle FROM dba_sql_plan_baselines;
    SQL_HANDLE
    SYS_SQL_1470897e7b72c982
    SYS_SQL_75ac336a8071cb06
    SYS_SQL_269cdcd4862f8685
    SYS_SQL_269cdcd4862f8685
    SYS_SQL_0ffdb3bddbe422e2
    SYS_SQL_14d81bbae4a7cc93
    SYS_SQL_5c512b58e7795ba2
    SYS_SQL_33515785e80b75d0
    Above PL/SQL block should be same as like deleting it one by one -
    DECLARE
    v_plans_dropped pls_integer;
    BEGIN
    v_plans_dropped:=dbms_spm.drop_sql_plan_baseline(sql_handle=>'SYS_SQL_1470897e7b72c982');
    END;
    If I run this then it will be sucessul but when I run under a PL/SQL block using cursor then it is giving me error ORA-38131.
    Can you please tell me where I am going wrong here.
    Thanks for your time!

    I have this PL/SQL block -
    DECLARE
    v_plans_dropped pls_integer;
    CURSOR C1 IS SELECT SQL_HANDLE FROM DBA_SQL_PLAN_BASELINES;
    BEGIN
    FOR I IN C1 LOOP
    v_plans_dropped:=dbms_spm.drop_sql_plan_baseline(sql_handle=>I.SQL_HANDLE);
    END LOOP;
    END;
    Requirement - This PL/SQL block should read all the records from DBA_SQL_PLAN_BASELINES table and drop all the plans one by one.
    Problem - It gives me error like this -
    SQL> 2 3 4 5 6 7 8 9 DECLARE
    ERROR at line 1:
    ORA-38131: specified SQL handle SYS_SQL_45c1170505dda9a9 does not exist
    ORA-06512: at "SYS.DBMS_SPM", line 2444
    ORA-06512: at line 6
    Analysis: When I ran it 4 times, it showed me that the remaining records after the pl/sql run was like -
    SQL> SELECT COUNT(*) FROM DBA_SQL_PLAN_BASELINES;
    After First Run -
    COUNT(*)
    33429
    After Second Run -
    COUNT(*)
    33255
    After Third Run -
    COUNT(*)
    33228
    After Fourth Run -
    COUNT(*)
    32988
    So, it deletes records but errors out in between. Is it because the PL/SQL block/cursor is not structured properly?
    Thanks for your advice!

  • Error commiting update

    Hello again,
    We have a function that executes periodically, updating semantic data (removing and adding triples of different resources).
    But occasionally, that same method has thrown the exception listed below, with is strange because nothing changes in each iteration.
    Any idea about this? Thanks
    com.hp.hpl.jena.shared.JenaException: java.sql.SQLException: ORA-55312: parse failed for triple: id-form: 1155603932193326894 5351557915217640050 4442928618316056940
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 38
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 5341
    ORA-06512: at "MDSYS.OFERTAFORMATIVA_INS", line 37
    ORA-04088: error during execution of trigger 'MDSYS.OFERTAFORMATIVA_INS'
         at oracle.spatial.rdf.client.jena.OracleTransactionHandler.commit(OracleTransactionHandler.java:110)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.commit(ModelCom.java:1080)
         at org.fundacionctic.ogd.data.service.OracleJenaService.addResource(OracleJenaService.java:112)
         at org.fundacionctic.ogd.data.service.OracleJenaService.addRDF(OracleJenaService.java:418)
         at org.fundacionctic.ogd.data.XMLDataSource.updateData(XMLDataSource.java:59)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
         at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:76)
         at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.sql.SQLException: ORA-55312: parse failed for triple: id-form: 1155603932193326894 5351557915217640050 4442928618316056940
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 38
    ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 5341
    ORA-06512: at "MDSYS.OFERTAFORMATIVA_INS", line 37
    ORA-04088: error during execution of trigger 'MDSYS.OFERTAFORMATIVA_INS'
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1008)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
         at oracle.jdbc.driver.OraclePreparedStatement.sendBatch(OraclePreparedStatement.java:3753)
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3652)
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3680)
         at oracle.spatial.rdf.client.jena.OracleTransactionHandler.commit(OracleTransactionHandler.java:106)
         ... 13 more

    More details about this...
    We detected most of the exceptions thrown were related with locale issues. For our locale, ES-es, we inserted doubles values with a comma decimal delimiter, this way:
    resource.addProperty(prop,"-5,866197",(RDFDatatype) XSDDatatype.XSDdouble);
    That worked most of the time. But we noticed that some of our threads did not get the correct locale sometimes when were launched. We think that was the cause of the problem. When we fixed that, the vast majority of exceptions have gone away.
    Except in just two cases... when we get again one of the exceptions described above. For example, the insertion of this triple...
    [http://oracleto:8080/asturias/comun/gobierno/Direccion/592, http://www.w3.org/2003/01/geo/wgs84_pos#lat, "43,5353225"^^http://www.w3.org/2001/XMLSchema#double]
    throws the exception below:
    com.hp.hpl.jena.shared.JenaException: java.sql.SQLException: ORA-55312: fallo en el análisis para el triple: id-form: 5214721031104623137 5351557915217640050 5511382174874133559
    ORA-06512: en "MDSYS.MD", línea 1723
    ORA-06512: en "MDSYS.MDERR", línea 38
    ORA-06512: en "MDSYS.SDO_RDF_INTERNAL", línea 5341
    ORA-06512: en "MDSYS.LOCALIZACION_INS", línea 37
    ORA-04088: error durante la ejecución del disparador 'MDSYS.LOCALIZACION_INS'
         at oracle.spatial.rdf.client.jena.OracleTransactionHandler.commit(OracleTransactionHandler.java:110)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.commit(ModelCom.java:1080)
         at org.fundacionctic.ogd.data.service.OracleJenaService.addResource(OracleJenaService.java:119)
         at org.fundacionctic.ogd.data.service.OracleJenaService.addRDF(OracleJenaService.java:434)
         at org.fundacionctic.ogd.data.service.OracleJenaService.addRDF(OracleJenaService.java:460)
         at org.fundacionctic.ogd.data.D2RDataSource.updateData(D2RDataSource.java:69)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
         at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:76)
         at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:66)
         at java.util.TimerThread.mainLoop(Timer.java:512)
         at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.sql.SQLException: ORA-55312: fallo en el análisis para el triple: id-form: 5214721031104623137 5351557915217640050 5511382174874133559
    ORA-06512: en "MDSYS.MD", línea 1723
    ORA-06512: en "MDSYS.MDERR", línea 38
    ORA-06512: en "MDSYS.SDO_RDF_INTERNAL", línea 5341
    ORA-06512: en "MDSYS.LOCALIZACION_INS", línea 37
    ORA-04088: error durante la ejecución del disparador 'MDSYS.LOCALIZACION_INS'
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1008)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
         at oracle.jdbc.driver.OraclePreparedStatement.sendBatch(OraclePreparedStatement.java:3753)
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3652)
         at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3680)
         at oracle.spatial.rdf.client.jena.OracleTransactionHandler.commit(OracleTransactionHandler.java:106)
         ... 14 more
    And it is strange, because when we add that triple in a simple junit test, the insertion is finished with no problems. The test code:
              Oracle oracle = new Oracle(jdbcUrl, null, null);
              ModelOracleSem m = ModelOracleSem.createOracleSemModel(oracle,modelo);
              Resource r = m.createResource("http://oracleto:8080/asturias/comun/gobierno/Direccion/129");
              Property p = m.createProperty("http://www.w3.org/2003/01/geo/wgs84_pos#long");
              RDFNode o = m.createTypedLiteral("43,5353225",(RDFDatatype) XSDDatatype.XSDdouble);
              Statement stmt = m.createStatement(r, p, o);
              m.begin();
              m.add(stmt);
              m.commit();
              oracle.dispose();
    Any idea?

  • [10G2 on XP PRO] Rename file script returns error

    Hi,
    I mistakenly created a "Users03" datafile without the .dbf extension.
    Now I would like to add it in order to use wildcards in scripts.
    Here is the "Rename" script:
    >
    alter tablespace users rename datafile
    'l:\oracle\product\10.2.0\oradata\oracompta\users01.dbf',
    'l:\oracle\product\10.2.0\oradata\oracompta\users02.dbf',
    'l:\oracle\product\10.2.0\oradata\oracompta\users03'
    to
    'l:\oracle\product\10.2.0\oradata\oracompta\users01.dbf',
    'l:\oracle\product\10.2.0\oradata\oracompta\users02.dbf',
    'l:\oracle\product\10.2.0\oradata\oracompta\users03.dbf'
    Here are the output from the "dba_datafiles" view and error message for the rename:
    >
    SQL> @c:\jb\data\sources\oracle\dba\datafiles
    ...[RETURN].......
    FILE_NAME TABLESPACE_NAME AUTO MAXBYTES INCREMENT_BY
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\EXAMPLE01.DBF EXAMPLE YES 34359721984 80
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\SYSAUX01.DBF SYSAUX YES 34359721984 1280
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\SYSTEM01.DBF SYSTEM YES 34359721984 1280
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\UNDOTBS01.DBF UNDOTBS1 YES 34359721984 640
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\UNDOTBS02.DBF UNDOTBS2 YES 629145600 12800
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\USERS01.DBF USERS
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\USERS02.DBF USERS
    L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\USERS03 USERS
    8 ligne(s) sélectionnée(s).
    SQL> @c:\jb\data\sources\oracle\dba\renamefile
    alter tablespace users rename datafile
    ERREUR à la ligne 1 :
    ORA-01525: échec du changement de noms de fichier de données
    ORA-01523: impossible de renommer le fichier de données en 'l:\oracle\product\10.2.0\oradata\oracomp
    Maybe there is some limit to the input line length in SQL*Plus?
    I can't find how to rename a datafile from the OEM console.
    Looks like I'll have to create a "usersbis" tablespace and copy every object into it, then drop users tablespace.
    Or I'll find an inocuous DBA command to test the correct syntax for referencing datafiles names under Windows.
    Many thanks for your help :-)

    Hi,
    I tried your commands after a cold backup.
    Here is the SQL*PLUS output:
    ******************** QUOTE ********************************************
    SQL> startup mount
    Instance ORACLE lancée.
    ...[RETURN].......
    Total System Global Area 272629760 bytes
    Fixed Size 1248504 bytes
    Variable Size 100664072 bytes
    Database Buffers 167772160 bytes
    Redo Buffers 2945024 bytes
    Base de données montée.
    SQL> alter tablespace users rename datafile
    2 'l:\oracle\product\10.2.0\oradata\users03'
    3 to
    4 'l:\oracle\product\10.2.0\oradata\users03.dbf';
    alter tablespace users rename datafile
    ERREUR à la ligne 1 :
    ORA-01109: base de données non ouverte
    SQL> alter database open;
    alter database open
    ERREUR à la ligne 1 :
    ORA-01157: impossible d'identifier ou de verrouiller le fichier de données 7 - voir le fichier de tr
    ORA-01110: fichier de données 7 : 'L:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACOMPTA\USERS03'
    SQL> alter tablespace users rename datafile
    2 'l:\oracle\product\10.2.0\oradata\users03'
    3 to
    4 'l:\oracle\product\10.2.0\oradata\users03.dbf';
    alter tablespace users rename datafile
    ERREUR à la ligne 1 :
    ORA-01109: base de données non ouverte
    ********************** END QUOTE ********************************************
    I must have done something wrong.
    I'll try renaming the file from DOS and open the database.
    Many thanks for your reply.

  • Problem cmsxdb

    hi,
    question for Running the application using standalone OC4J
    when i Load Servlet files
    % loadjava -user cmsadmin/cmsadmin@HostName:Port:SID -verbose -force -order -resolve -thin -grant public <SAMPLE_HOME>\src\oracle\otnsamples\cmsxdb\admin\Resource.java <SAMPLE_HOME>\src\oracle\otnsamples\cmsxdb\admin\SearchResult.java <SAMPLE_HOME>\src\oracle\otnsamples\cmsxdb\dbmanager\*.java <SAMPLE_HOME>\src\oracle\otnsamples\cmsxdb\exception\CMSAccessException.java
    I have this error
    granting : execute on source oracle/otnsamples/cmsxdb/exception/CMSAccessExcepti
    on to public
    granting : execute on class oracle/otnsamples/cmsxdb/exception/CMSAccessExceptio
    n to public
    Error while computing shortname of oracle/otnsamples/cmsxdb/exception/CMSAccessE
    xception
    ORA-29516: Θchec d'assertion Aurora : Assertion failure at eox.c:232
    Uncaught exception Root of all Java exceptions: java.lang.NullPointerException
    ORA-06512: α "SYS.DBMS_JAVA", ligne 213
    ORA-06512: α ligne 1
    The following operations failed
    source oracle/otnsamples/cmsxdb/admin/Resource: creation
    source oracle/otnsamples/cmsxdb/admin/SearchResult: creation
    source oracle/otnsamples/cmsxdb/dbmanager/CMSXDBServletOnDB: creation
    source oracle/otnsamples/cmsxdb/dbmanager/CMSXDBServletUtils: creation
    source oracle/otnsamples/cmsxdb/dbmanager/SearchServlet: creation
    source oracle/otnsamples/cmsxdb/dbmanager/TransformServlet: creation
    source oracle/otnsamples/cmsxdb/exception/CMSAccessException: creation
    exiting : Failures occurred during processing
    can you help me
    thank you.

    Uraigli,
    Please provide the following info :
    Database Version :
    Operating System :
    Regards
    Pushkala

  • ORA-00314, ORA-00312 during restore

    Hi.
    I have (I should say I had) a database in archivelog mode.
    Arch logs multiplexed on c:, e:.
    Online redo logs multiplexed on c:, e:.
    Controlfile multiplexed on c:, e:.
    I also had a copy of spfile on e:
    I also made a backup on e:
    configure default device type to disk;
    configure retention policy to redundancy 1;
    configure channel device type disk format 'e:\backup\ora_040506_%t_s%s_s%p';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to 'e:\backup\sp%F';
    configure backup optimization on;
    backup database format 'e:\backup\ora_040506_%t_s%s_s%p';
    Then I had a problem on c: (lost local datafiles, controlfiles), and wanted to restore.
    So I stopped db, copied controlfile, spfile, archive logs and redo logs from e: to c:
    I ran:
    rman nocatalog target / @restoredb.sql
    and restoredb holds:
    restore database;
    recover database;
    exit;
    In alert log I can read:
    Mon Dec 06 11:23:18 2010
    Full restore complete of datafile 2 C:\ORACLEXE\ORADATA\XE\UNDO.DBF. Elapsed time: 0:00:15
    checkpoint is 1853242
    Full restore complete of datafile 4 C:\ORACLEXE\ORADATA\XE\USERS.DBF. Elapsed time: 0:00:19
    checkpoint is 1853242
    Mon Dec 06 11:23:50 2010
    Full restore complete of datafile 1 C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF. Elapsed time: 0:00:47
    checkpoint is 1853242
    Full restore complete of datafile 3 C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF. Elapsed time: 0:00:55
    checkpoint is 1853242
    Mon Dec 06 11:24:05 2010
    alter database recover datafile list clear
    Mon Dec 06 11:24:05 2010
    Completed: alter database recover datafile list clear
    Mon Dec 06 11:24:05 2010
    alter database recover datafile list
    1 , 2 , 3 , 4
    Completed: alter database recover datafile list
    1 , 2 , 3 , 4
    Mon Dec 06 11:24:05 2010
    alter database recover if needed
    start
    Media Recovery Start
    Mon Dec 06 11:24:06 2010
    Errors in file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_3860.trc:
    ORA-00314: journal 1, thread 1, numéro de séq. attendu 78 ne correspond pas à 58
    ORA-00312: journal en ligne 1 thread 1 : 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_5F60S79R_.LOG'
    Mon Dec 06 11:24:08 2010
    Media Recovery failed with error 314
    ORA-283 signalled during: alter database recover if needed
    start
    What happens?
    I can't recover a database in archivelog!

    Iam going to be more complete:
    XE on windows
    I have a laptop.
    Install XE, as default.
    HDD on c:, sd card on e:
    I have
    * put db in archivelog,
    * created online redo log groups #3,4,5, with members on c: and e:
    * dropped default online redo log groups 1 and 2
    * set up 2 controlfile multiplexing on c:, e:
    * set up 2 archive log dest (one on c: and one on e:)
    * copied spfile to e:
    * set up a backup to e: every 2 weeks.
    The laptop has worked one year then laptop crashed (hdd down), but I still have My sd card to restore datas.
    => To restore I installed a new laptop, the default XE install, stopped db, overwrite from e: -> c: :
    * the controlfile
    * the spfile
    * archivelog and redolog
    then startup mount.
    select * from v$logfile;
    => Show only groups 1 and 2 (and 1 is stale)
    select * from v$log;
    => sequences are 78,79 ( and 79 is current)
    The archive logs I have go from 77->106.
    +++++++++++++++++++++++++++++++++++++++++++++
    1st issue (or bug?): redo log groups 3,4,5 are declared in control file but not taken into account when restoring controlfile!
    I stopped new db, copied controlfile from e: (with redo logs 3,4,5 declared) to the one on c:, then restarted db.
    Can someone tell me if I can do this without "guessing" which were the redo log member names and typing ALTER DATABASE ADD LOGFILE GROUP..., then repeat (alter system switch logfile; alter database drop logfile; and drop groups 1 and 2) (and repeating this several times while group 1 or 2 still exists).
    +++++++++++++++++++++++++++++++++++++++++++++
    =>rman target /
    restore database;=>OK no error but v$logfile still shows only groups 1 and 2 (and 1 is stale)
    recover database;=>error on screen:
    dÚmarrage de la rÚcupÚration aprÞs dÚfaillance matÚrielle
    Úchec de la rÚcupÚration aprÞs dÚfaillance matÚrielle
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: Úchec de la commande recover Ó 12/23/2010 17:13:49
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: erreur lors de l'analyse ou de l'exÚcution d'une instruction SQL : a
    lter database recover if needed
    start
    ORA-00283: session de rÚcupÚration annulÚe pour cause d'erreurs
    ORA-00314: journal 1, thread 1, numÚro de sÚq. attendu 78 ne correspond pas Ó 42
    ORA-00312: journal en ligne 1 thread 1 : 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_
    AREA\XE\ONLINELOG\O1_MF_1_5F60S79R_.LOG'
    Gestionnaire de rÚcupÚration (Recovery Manager) terminÚ.
    and in alert_log:
    Full restore complete of datafile 3 C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF. Elapsed time: 0:00:56
    checkpoint is 1853242
    Thu Dec 23 17:13:45 2010
    alter database recover datafile list clear
    Thu Dec 23 17:13:45 2010
    Completed: alter database recover datafile list clear
    Thu Dec 23 17:13:45 2010
    alter database recover datafile list
    1 , 2 , 3 , 4
    Completed: alter database recover datafile list
    1 , 2 , 3 , 4
    Thu Dec 23 17:13:45 2010
    alter database recover if needed
    start
    Media Recovery Start
    Thu Dec 23 17:13:46 2010
    Errors in file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_2080.trc:
    ORA-00314: journal 1, thread 1, numéro de séq. attendu 78 ne correspond pas à 42
    ORA-00312: journal en ligne 1 thread 1 : 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_5F60S79R_.LOG'
    Thu Dec 23 17:13:48 2010
    Media Recovery failed with error 314
    ORA-283 signalled during: alter database recover if needed
    start
    => The problem is not seq 78.
    Where does # 42 come from?
    Is it possible to dump the controlfile?
    I loiked into archive logs:
    in # 77 in beginning I have: Seq# 0000000077, SCN 0x0000001bf6b3-0x0000001c473a
    in # 78 in beginning I have: Seq# 0000000078, SCN 0x0000001c473a-0x0000001c96eb
    in # 79 in beginning I have: Seq# 0000000079, SCN 0x0000001cb0bf-0x0000001cffc4
    in # 80 in beginning I have: Seq# 0000000080, SCN 0x0000001cffc4-0x0000001d5a56
    Furthermore:
    If I look at dates; arch log 77 & 78 dates are newer than 79 and next ones. Probably they have been crashed due to question above (redo log groups)?
    Regards,
    Alain

  • Kerberos Authentication between Sharepoint 2013 Foundation - SSRS 2012 - Oracle 11g failing with ORA-12638: Credential retrieval failed

    I have set up SharePoint 2013 Foundation, SharePoint Reporting Services and SQL Server 2012 in a single server. I then created a Data Connection to Oracle 11g. Upon testing the connection, it throws the error “ORA-12638: Credential retrieval failed”.
    Given below are the steps of installation and configuration.
    Installation till basic authentication:
    The installation has been done in a
    single server.
    Installed SQL Server 2012 (Developer version).
    Selected only the following features:
    Database Engine Services
    Analysis Services
    Reporting Services – SharePoint
    Reporting Services Add-in for SharePoint Products
    Management Tools – Basic
    - Management Tools - Complete
      2. Installed SQL Server 2012 SP1.
      3. Installed SQL Server 2012 SP2.
      4. Installed SharePoint Foundation 2013.
      5. Created web application (without Kerberos; we did not even create the SPNs).
          The application pool has been configured to use Reporting Services account since it is a single server installation. This account has been registered as a managed
    account.
      6. Created Site Collection.
      7. Verified that Reporting Services is not installed.
      8. Installed SharePoint Reporting Services from SharePoint 2013 Management Shell.
      9. Verified that Reporting Services is installed.
     10. Created a new SQL Server Reporting Services Service Application and associated the Web Application to the new SQL server Reporting Services Service Application.
      11. Verified that SQL Server Reporting Services Service Application and its proxy have started. Reset IIS.
      12. Created a Site.
      13. Created a Data Connection library with “Report Data Source” content type.
      14. Created a Report Model library with “Report Builder Model” content type.
      15. Created a Report library with “Report Builder Report” content type.
      16. Uploaded an SMDL to the Report Model library.
      17. Added the top level site to Local Intranet instead of as a Trusted Site in the browser settings.
      18. Able to create and save a report using Report Builder.
    Hence, basic authentication is working and SSRS is able to connect to Oracle database.
    Next we have to configure Kerberos settings between SharePoint and SQL Server.
    Implementation of Kerberos authentication
    In the Report Server machine, opened the file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\WebServices\Reporting\rsreportserver.config  and added the Authentication Types of RSWindowsNegotiate
    and RSWindowsKerberos.
     2.  Set up the following SPNs.
                   a) SQL Server Database Engine service (sqlDbSrv2):
                    setspn -S MSSQLSvc/CER1110:1433 CERDEMO\sqlDbSrv2
                    setspn -S MSSQLSvc/CER1110.cer.demo.com:1433 CERDEMO\sqlDbSrv2
                 In the Delegation tab of the account, selected "Trust this user for delegation to any service (Kerberos only)".
    b) Account: SharePoint Setup Admin account (spAdmin2)
         setspn -S HTTP/CER1110:9999 CERDEMO\spAdmin2
                    setspn -S HTTP/CER1110.cer.demo.com:9999 CERDEMO\spAdmin2
                    In the Delegation tab of the account, selected "Trust this user for delegation to any  service
    (Kerberos only)".
    c) Account: SQL Server Reporting Service account (sqlRepSrv2)
                       setspn -S HTTP/CER1110 CERDEMO\sqlRepSrv2
                       setspn -S HTTP/CER1110.cer.demo.com CERDEMO\sqlRepSrv2
                       In the Delegation tab of the account, selected "Trust this user for delegation to any service
    (Kerberos only)".
      3. Configure the Web Application to use “Negotiate (Kerberos)”.
      4. Logged in as SharePoint Administrator to the SharePoint server and opened the top level site in the IE browser.
         The Event Viewer logged the login process for the SharePoint Administration account as
    Negotiate and not Kerberos.
      5. Implemented Kerberos for Oracle database and client.
         Able to connect to the Oracle database via Kerberos authentication using SQL Plus.
      6. Turn on Windows Firewall.
      7. While testing the site's data connection using Kerberos settings, got the error
    “Can not convert claims identity to windows token. This may be due to user not logging in using windows credentials.”
          Note: The Data Connection for basic authentication still worked.
      8. Created a Claims to Windows Token Service account (spC2WTS2).
      9. Started the Claims to Windows Token Service.
     10. Registered the Claims to Windows Token Service account as a Managed Account.
     11. Changed the Claims To Windows Token Service to use the above managed account.
     12. Verified that the Claims to Windows Token Service account (spC2WTS2) is automatically added to the WSS_WPG local group on the SharePoint box.
          Note: The Reporting Services service account is also a part of the WSS_WPG local group.
     13. Added the Claims to Windows Token Service account (spC2WTS2) to the Local Admin Group on the machine having the SharePoint App Server.
     14. In the SharePoint box, added the Claims to Windows Token Service account (spC2WTS2) in the Act as part of the operating system policy right.
     15. The Claims to Windows Token Service account (spC2WTS2) has the WSS_WPG group configured.
          When the C2WTS service was configured to use the managed account Claims to Windows Token Service account (spC2WTS2) earlier, the spC2WTS2 account was automatically
    added to the WSS_WPG local group on the SharePoint box. The WSS_WPG group in turn is configured in c2wtshost.exe.config file.
     16. Verified that the Reporting Services account is a managed account and part of the WSS_WPG group.
     17. Earlier Service Application Pool - SQL Server Reporting Services App Pool service was associated with the SharePoint Admin account.
          Changed this to associate the Reporting Service account with the Service Application Pool - SQL Server Reporting Services App Pool service.
     18. Changed the delegation of the Reporting Service account to constrained delegation with Protocol Transitioning. This is because we are transitioning from one authentication scheme (Claims) to another (Windows Token).
          For this, the delegation has been changed to "Trust this user for delegation to specified services only". Also, selected the sub radio button "Use
    any authentication protocol". Selected the Oracle Kerberos service as the service to which this account can present delegated credentials.
          Note: The Reporting Service account already had an HTTP SPN.
     19. Next, the goal was to make the Claims To Windows Token Service account match the Reporting Service account.
           For this, we created a fake SPN for the Claims To Windows Token Service account since the delegation tab was missing.
           The delegation has been changed to "Trust this user for delegation to specified services only". Also, selected the sub radio button "Use any
    authentication protocol". Selected the Oracle Kerberos service as the service to which this account can present delegated credentials.
     20. Restarted the SharePoint server.
     21. Tested the data connection with the Kerberos settings again.
           Got the error
    “ORA-12638: Credential retrieval failed”.
    Can anyone tell me what is wrong with this setup?

    http://www.freeoraclehelp.com/2011/10/kerberos-authentication-for-oracle.html
    Problem4: ORA-12638: Credential retrieval failed
    Solution:  Make sure that SQLNET.KERBEROS5_CC_NAME is set in sqlnet.ora and okinit has been run before attempting to connect to the database.
    Do check 
    http://webcache.googleusercontent.com/search?q=cache:5a2Pf3FH7vkJ:externaltable.blogspot.com/2012/06/kerberos-authentication-and-proxy-users.html+&cd=5&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/

  • Need help on Analysing the oracle code.

    Hi,
    Here i try to frame question, pls understand and give the best way to solve this.
    We have running 20 to 30 unix scripts on daily basis. Each script has connected to oracle session and execute the corresponding packages & procedures. Some scripts are running at the same time. At this time oracle code in the script is not executed due to the table locking in other script. We have oracle trace files whenever the oracle code is not executed it shows the error and terminates the oracle session.
    Examples:
    Below the sample oracle execution log file. where we get the error and terminate the oracle session for your reference.
    ==================================================================================
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 06:18:45 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> SQL>
    Session altered.
    SQL> 2 3 4 5 6 7 8 9 begin
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
    ORA-06512: at "SIEB7P04.P_ARCHIVE_TBL", line 42
    ORA-06512: at line 4
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    goin into RunProcedures Function
    0
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Dec 10 06:19:19 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> SQL>
    Session altered.
    SQL> 2 3 4 5 6
    PL/SQL procedure successfully completed.
    SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    goin into Check error report Function
    Pkg_Tfm_If_Merge OK
    ==========================================================================
    When you observe the above code, in unix script we try to connect to the oracle instance 2 times,
    1st instance it was terminated with some error.
    2nd instance it was successfully executed the oracle code.
    By analysing the above log we found where the error was occured and the reson behind this also we know.
    Assume the script called the procedure 'P_ARCHIVE_TBL' 5 times and the procedure works on different parameter(we could say different table) each time it was called.
    Is it possible for us to know in which procedure call, it is errored out.
    For any information pls revert us or ping me to this mail [email protected],
    Regards,
    Mani.

    Hi,
    You would need to have an exception block in your pl/sql code. You should also save table name in a variable when this procedure is called for every table. You should return/print the error code from exception block alongwith the table name and then you will be able to know that during which call of this procedure, the error was returned.
    Salman

  • Web Analysis Reports using a Relational Database

    I would like to create a Web Analysis report using data from an Oracle database. From Web Analysis, I try to create a new database connection. I select Oracle as the Driver type. In the Database Connection String field, I replace {HOST-NAME} with the Host information from the TNSNAMES.ORA file. I've confirmed the Port number is correct. When I test the connection, it fails. What am I missing? The format of the Database Connection String that is defaulting into the field is:
    jdbc:oracle:thin:@{HOST-NAME}:1521:ORCL
    Is there anything else I need to include besides the Host name and Port number, for example, do I need to include the SID?
    Thanks.
    Terri T.

    The ojdbc14.jar currently exists in the following directories:
    bea\weblogic81\server\lib
    oracle\product\10.2.0\client_1
    bea\weblogic81\server\ext\jdbc\oracle\920
    There is a ojdbc14_g.jar that exists in:
    bea\weblogic81\server\ext\jdbc\oracle\10g
    bea\weblogic81\server\ext\jdbc\oracle\920
    The classes12.jar file exists in:
    oracle\product\10.2.0\client_1\oui\jlib
    So from your response, I assume I need to copy classes12.jar to a directory under bea\weblogic81?
    Thanks.
    Terri T.

  • Error in HRPAD31 ( Short dump Analysis )

    Hi friends,
    When i am changing the existing qualification or adding new qualification it is showing this error in short dump
    Pls advise me if there is some relationship i am missing in 031 ?
    here is the description of short dump
    Runtime Error  DBIF_RSQL_SQL_ERROR 
    Exception        CX_SY_OPEN_SQL_DB                                   
    Occurred on     10.09.2008 at   10:48:39                                                                               
    An SQL error occurred when accessing a table.                                                                               
    What happened?                                                                               
    What can you do?                                                                               
    Make a note of the actions and input which caused the error.                                                                               
    To resolve the problem, contact your SAP system administrator.                                                                               
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer   
    termination messages, especially those beyond their normal deletion        
    date.                                                                               
    Error analysis                                                                               
    An exception occurred. This exception is dealt with in more detail below   
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB',  wasneither                                                                   
    caught nor passed along using a RAISING clause, in the procedure"ADATA_DB" "FORM)"                                                                  
    Since the caller of the procedure could not have expected this exception to occcur, the running program was terminated.                                 
    The reason for the exception is:                                                                               
    How to correct the error                                                                               
    The exception must either be prevented, caught within the procedure "ADATA_DB" 
    "(FORM)", or declared in the procedure's RAISING clause.                       
    To prevent the exception, note the following:                                  
    Database error text........: "ORA-01653: unable to extend table SAPR3.HRPAD31 by 80 in tablespace PSAPSTABD"        
    Internal call code.........: "RSQL/INSR/HRPAD31"                
    Please check the entries in the system log (Transaction SM21).                                                                               
    You may able to find an interim solution to the problem           
    in the SAP note system. If you have access to the note system yourself, use the following search criteria:                                                                               
    "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC                                       
    "SAPLRHAP" or "LRHAPF1K"                                                       
    "ADATA_DB"                                                                     
    System environment                                                                               
    SAP Release.............. "620"                                                                               
    Application server....... "Development"                                    
    Network address.......... "200.200.200.10"                             
    Operating system......... "Windows NT"                                 
    Release.................. "5.2"                                        
    Hardware type............ "2x IA64 Level 3"                            
    Character length......... 8 Bits                                       
    Pointer length........... 64 Bits                                      
    Work process number...... 1                                            
    Short dump setting....... "full"                                                                               
    Database server.......... "Development"                                    
    Database type............ "ORACLE"                                     
    Database name............ "VC3"                                        
    Database owner........... "SAPR3"                                                                               
    Character set............ "English_United State"                                                                               
    SAP kernel............... "640"                                        
    Created on............... "Aug 16 2007 23:23:39"                       
    Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
    Database version......... "OCI_920_SHARE "                                                                               
    Patch level.............. "196"                                        
    Patch text............... " "                                                                               
    Supported environment....                                              
    Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 
    User, transaction...                                                                               
    Client.............. 600                                                      
    User................ "HUSER"                                                
    Language key........ "E"                                                      
    Transaction......... "PP01 "                                                  
    Program............. "SAPLRHAP"                                               
    Screen.............. "MP100100 6000"                                          
    Screen line......... 16                                                                               
    Information on where terminated                                                                               
    The termination occurred in the ABAP program "SAPLRHAP" in "ADATA_DB".        
    The main program was "MP100100 ".                                                                               
    The termination occurred in line 57 of the source code of the (Include)  program LRHAPF1K"                                                           
    of the source code of program "LRHAPF1K" (when calling the editor 570).       
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the  procedure "ADATA_DB" "(FORM)" but was not handled locally, not declared in the RAISING clause of the procedure.                                              
    The procedure is in the program "SAPLRHAP ". Its source code starts in line 8  of the (Include) program "LRHAPF1K ".                                                                               
    PLS LET ME KNOW IF I NEED TO CHECK ALL MY CONFIGURATION ?

    Hi Ted,
    It is working, i just logged off and logged in. Now there is no error.
    Thanks for all your support. I am struggling on this isse from 3 days and could not sort it out.
    I appreciate on more time for your knowledge.
    I have rewarded the points also....  
    Regards
    HR user

  • Multi-row sub query returns  ORA-00904 :invalid identifier error

    I am creating a report from two tables that I am not joining. I want a single line for every row in table1 that meets a date range. Table2 can contain none or many rows for each recored in table1. I want to get up to two fields from table2.
    I was using a case statement to check if there was data and then an in-line query or subquery. Once again, the idea is to have a single line on the report for each table1 record.
    I get this error with the code below. It seems the nested multi-row subquery can not see the a.cr_mas_cr_no identifier.
    ORA-00904: "a"."cr_mas_cr_no": invalid identifier
    Any help is greatly appreciated,
    Sam
    select
    a.cr_mas_cr_no "CRNO", a.cr_mas_type "TYPE", a.cr_mas_status "CR Status",
    a.cr_mas_date_logged "Logged date", a.CR_REL_REQ_APP_DATE "RTP approved",a.CR_REL_REQ_RTP_DATE "RTP Date",
    a.cr_accepted_date "Complete", a.cr_mas_submitted_by "Requester",
    select doc_user FROM crrm_cr_documents WHERE doc_cr_number =a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'BD' ) "Bus Design",
    (select doc_user FROM crrm_cr_documents WHERE doc_cr_number = a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'TD' ) "Tech Design",
    (select doc_user FROM crrm_cr_documents WHERE doc_cr_number = a.cr_mas_cr_no and rownum = 1 and DOC_TYPE = 'TE' ) "User acceptance test",
    case
    when (select count(appr_user) from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') > 0
    then (select appr_user from (select * from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    end
    "RTP #1",
    case
    when (select count(appr_user) from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') > 1
    then (select appr_user from (select * from crrm_cr_approvals where appr_cr_no = a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 2)
    end
    "RTP #2",
    a.CR_REL_REQ_RTP_BY "Released by",
    a.CR_ACCEPTED_BY "Post RTP User Acceptance",
    a.cr_mas_title "Title", a.cr_mas_id "ID"
    from
    crrm_crmaster a
    where
    (a.CR_REL_REQ_RTP_DATE >= :P1109_BEGDATE and (a.CR_REL_REQ_RTP_DATE <= :P1109_ENDDATE) and
    (a.cr_mas_status = 'Complete' or (a.cr_mas_status = 'Release Approved'and a.CR_REL_REQ_APP_DATE < :P1109_ENDDATE))
    Message was edited by:
    slavanaway

    Iceman,
    Thanks for the reply I will try your suggestion.
    I will try and explain why I think two subqueries (an in-line query with a subquery?) are required. I will use the creation of the column RTP #1 as the example as the RTP #2 column is only different in the rownum selected.
    Looking only at the lines that fail, here is my analysis. (If I rem out the two case lines the query runs, I just don't get two columns of data I need.) I will only examine the first case as the second is changed to extract the second approval via the rownum = 2 criteria. The first statement checks there is at least one RTP approval stored for the request and then gets the user who approved the request if the test is true.
    case when
    (select count(appr_user) from crrm_cr_approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP') > 0
    then
    The above part works fine and the correct count of approvals is returned.
    (select appr_user from (select * from crrm_cr_approvals where appr_cr_no=a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    end
    "RTP #1",
    I moved the parenthesis to the correct location. There can be multiple approvals for a given parent record. Some parent records need one, some need two approvals. If I replace
    (select appr_user from (select * from crrm_cr_approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP') where rownum = 1)
    with
    (select appr_user from approvals where appr_cr_no =a.cr_mas_cr_no and appr_type = 'RTP' and rownum = 1)
    The correct result is returned because it returns exactly one row as rownum=1 limits the query. When rownum = 2 then the query returns null as the rownum never gets to two as the rownum column is built via the set created by the second subquery.
    The subquery builds a set of approvals for a specific "cr_no" and appr_type of "RTP". the outer query then looks at the rownum of the second query
    Here is where I got the rownum information from;
    http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    So here is what I think is happening;
    1. Main query From and Where are processed. This should provide the "set" for the query
    2.The from subqueries for RTP #1 and RTP #2 should be able to access the a.cr_mas_cr_no field and build a set from the approvals table.
    3.The RTP #1/2 subquery (inline maybe a better description?) would then get the correct row from the from subquery.
    The error "invalid identifier" refers to the a.cr_mas_cr_no field. I assume it means it can not resolve the table alias inside the subquery.
    So maybe your grouping would help, I will try.
    Sam

  • Error while running package ORA-06553: PLS-553 character set name is not re

    Hi all.
    I have a problem with a package, when I run it returns me code error:
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-553: character set name is not recognized
    The full context of the problem is this:
    Previously I had a developing data base, then was migrated to a new server. After that I started to receive the error, so I began to check for the solution.
    My first move was compare the “old database” with the “new database”, so I check the nls parameters, and this was the result:
    select * from nls_database_parameters;
    Result from the old
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     US7ASCII
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.1.0
    Result from the new
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     US7ASCII
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.1.0
    As the result was identical, I decided to look for more info in the log file of the new database. What I find was this:
    Database Characterset is US7ASCII
    Threshold validation cannot be done before catproc is loaded.
    Threshold validation cannot be done before catproc is loaded.
    alter database character set INTERNAL_CONVERT WE8MSWIN1252
    Updating character set in controlfile to WE8MSWIN1252
    Synchronizing connection with database character set information
    Refreshing type attributes with new character set information
    Completed: alter database character set INTERNAL_CONVERT WE8MSWIN1252
    alter database character set US7ASCII
    ORA-12712 signalled during: alter database character set US7ASCII...
    alter database character set US7ASCII
    ORA-12712 signalled during: alter database character set US7ASCII...
    Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_3132.trc:
    Regards

    Ohselotl wrote:
    Hi all.
    I have a problem with a package, when I run it returns me code error:
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-553: character set name is not recognized
    The full context of the problem is this:
    Previously I had a developing data base, then was migrated to a new server. After that I started to receive the error, so I began to check for the solution.
    My first move was compare the “old database” with the “new database”, so I check the nls parameters, and this was the result:
    select * from nls_database_parameters;
    Result from the old
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     US7ASCII
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.1.0
    Result from the new
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     US7ASCII
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.1.0
    As the result was identical, I decided to look for more info in the log file of the new database. What I find was this:
    Database Characterset is US7ASCII
    Threshold validation cannot be done before catproc is loaded.
    Threshold validation cannot be done before catproc is loaded.
    alter database character set INTERNAL_CONVERT WE8MSWIN1252
    Updating character set in controlfile to WE8MSWIN1252
    Synchronizing connection with database character set information
    Refreshing type attributes with new character set information
    Completed: alter database character set INTERNAL_CONVERT WE8MSWIN1252
    *********************************************************************This is an unsupported method to change the characterset of a database - it has caused the corruption of your database beyond repair. Hopefully you have a backup you can recover from. Whoever did this did not know what they were doing.
    alter database character set US7ASCII
    ORA-12712 signalled during: alter database character set US7ASCII...
    alter database character set US7ASCII
    ORA-12712 signalled during: alter database character set US7ASCII...
    Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_3132.trc:
    RegardsThe correct way to change the characterset of a database is documented - http://docs.oracle.com/cd/B19306_01/server.102/b14225/ch11charsetmig.htm#sthref1476
    HTH
    Srini

Maybe you are looking for

  • How can I set my iphone to prompt for a password when viewing a selected email account?

    I can see a lot of people complaining about adhoc password entry when using email but nothing where people actually want to be prompted for a password.  If I have multiple email accounts and a phone where others can pick up and enter the top level se

  • Can I upgrade to Mac Lion for free again?

    Hi I bought my Macbook Pro in June 2011, and beacse I bought it between a certian timeframe, I was able to upgrade to OS X lion for free from the app store durring a promo or something. All I had to do was put in my Mac serial number to confirm it wa

  • Elements freezing

    I am running the free trial of Elements 12 on a Mac version 10.9.2.  It keeps freezing up on me.  My worry is it will do this if I buy it.  Anyone have any ideas of what I might be doing to cause it to free up? Trista

  • Dispose report after closing

    <p>Hi,</p><p>I'm a java programmer and I have developed an application based on struts that managed to retreive data from the data base in order to generate on line report, my application is based on Tomcat 5. My problem is the following:</p><p> Tomc

  • BIP & trying to auto-set the current date for a parameter

    I'm trying to allow for a date selector as a parameter for one of my reports. This is BIP 11.1.1.5. I've set up a field for the parameter and can pass it into the report but want to see if I can auto-fill this field with today's date, and then set th