ORA-43856 when using DBMS_LOB. FRAGMENT_DELETE

BANNER
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

We are pulling a CLOB value on a table and then trying to shave the first line using DBMS_LOB. FRAGMENT_DELETE. However, once reached this call, Oracle throws the error: ORA-43856: not supported for operation SECUREFILE LOB LOB type.

I was unable to find anything on the web, although I see that Dan Morgan is facing problems with this call as well (Oracle 12 c DBMS_LOB demos).

"Clearly there is a problem here so I open an SR to MOS (February 5, 2014) '

I don't see any solution (or any what section of the knowledge base of SUPPORT. ORACLE.COM).

Here is a code snippet:

FUNCTION PROCESS_UPLOADED_FILE (ac_UploadedFileID IN SPAN_PARAMETER_WEB_UPLOAD. UPLOAD_ID % TYPE ( )

RETURN VARCHAR2

IS

CURSOR lcsr_GetFilePayload IS

SELECT FILE_PAYLOAD

OF SPAN_PARAMETER_WEB_UPLOAD

WHERE UPLOAD_ID = ac_UploadedFileID

UPDATE OF THE FILE_PAYLOAD;

lclb_FilePayload CLOB.

ln_ReturnPos NUMBER: = - 1;

ln_StartPos NUMBER: = 1;

BEGIN

OPEN lcsr_GetFilePayload.

SEEK lcsr_GetFilePayload INTO lclb_FilePayload;

CLOSE Lcsr_GetFilePayload;

-Ignore the first line because it's a header

ln_ReturnPos: = DBMS_LOB. InStr (lob_loc = > lclb_FilePayload,)

model = > Chr (10),

offset = > ln_StartPos)-1;

ln_StartPos: = (ln_ReturnPos + 2);

DBMS_LOB. FRAGMENT_DELETE (lclb_FilePayload, 1, ln_StartPos);

-ERROR EXERCISE HERE

...

END;

Someone has some ideas (or workarounds)?

Thank you

-Joe

We are pulling a CLOB value on a table and then trying to shave the first line using DBMS_LOB. FRAGMENT_DELETE. However, once reached this call, Oracle throws the error: ORA-43856: not supported for operation SECUREFILE LOB LOB type.

The error seems clear enough to me.

You can perform operations of FRAGMENT if the CLOB using no storage SECUREFILE.

By default, LOB columns are created as BASICFILE LOB.

You are most likely in this case. You can check for your table using, for example, DBMS_METADATA. GET_DDL.

Example of work using SECUREFILE:

SQL > create table (test_clob)

integer id 2

3, doc clob

4)

craft store 5 (doc) as navigation;

Table created.

SQL > insert into test_clob values (1, to_clob ('head' |)) Chr (10) | ((' ABC'));

1 row inserted.

SQL > commit;

Validation complete.

SQL > select doc from test_clob where id = 1;

DOC

--------------------------------------------------------------------------------

head

ABC

SQL >

SQL > declare

2

slider 3 c is

4. Select doc

test_clob 5

6 where id = 1

7 for the update;

8

9 v_doc clob.

number of 10 v_returnpos: = - 1;

Number 11 v_startpos: = 1;

12

13. begin

14

Open from 15 c;

16 fetch c into v_doc;

17 close c;

18

19. ignore the first line because it's a header

20 v_returnpos: = dbms_lob.instr (lob_loc-online v_doc

21, model-online Chr (10)

22, offset-online v_startpos).

23

24 dbms_lob.fragment_delete (v_doc, v_returnpos, 1);

25

26 end;

27.

PL/SQL procedure successfully completed.

SQL > select doc from test_clob where id = 1;

DOC

--------------------------------------------------------------------------------

ABC

Is therefore:

-Re-create the table using SECUREFILE (needs a time out)

-migrate columns LOB using DBMS_REDEFINITION

Or, if you cannot perform all these operations, the solution is to copy the data after the first line in an another CLOB and to update the table with the new.

Tags: Database

Similar Questions

  • ORA-01194 and ORA-00604 when using backup controlfile set #2

    Oracle 11.2.0.1 database version
    Enterprise Linux 5.4
    Database is in archivelog mode.

    I'm trying to recover a database according to a backup controlfile to trace #2. Create the controlfile works very well, but recover the database fails.

    From what I understand, the recovery fails because it cannot roll forward - 39 sequence is in the online missing redo log file. However, the database opens with the restlogs option and I understand that it should use the archivelogs in order to roll back. Since it is a new controlfile he does not know the archivelogs, but he does not accept to register or use archivelog files.

    The recovery as shown in set #2 doesn't seem to work as expected. Any ideas?

    Following errors:
    SQL>  CREATE CONTROLFILE REUSE DATABASE "RCAT" RESETLOGS  ARCHIVELOG etc.
    Control file created.
    
    Tyring to register on of the archivelogs does not work:
    SQL>  ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc';
     ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc'
    *
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level
    
    
    Applying an existing archivelog during recovery does not work:
    
    SQL> recover database using backup controlfile until cancel
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc
    ORA-00310: archived log contains sequence 33; sequence 39 required
    ORA-00334: archived log:
    '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc'
    
    
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u02/RCAT/datafile/o1_mf_system_6959kz7l_.dbf'
    
    
    ls -l /u02/fra/RCAT/archivelog/2010_09_19:
    -rw-r----- 1 oracle dba 49313280 Sep 19 00:01 o1_mf_1_33_69bfo5tx_.arc
    -rw-r----- 1 oracle dba   312320 Sep 19 00:03 o1_mf_1_34_69bft63b_.arc
    -rw-r----- 1 oracle dba 20343808 Sep 19 02:10 o1_mf_1_35_69bo6y6j_.arc
    -rw-r----- 1 oracle dba    40960 Sep 19 02:12 o1_mf_1_36_69boc9t8_.arc
    -rw-r----- 1 oracle dba    20992 Sep 19 02:13 o1_mf_1_37_69bofng4_.arc
    -rw-r----- 1 oracle dba   794624 Sep 19 02:15 o1_mf_1_38_69bokwbf_.arc
    Thank you
    Markus

    Markus Waldorf wrote:
    I think that I am aware and do not suggest to use the hidden setting.

    What worries me is that the value #2 of the controlfile to trace the contours of the database backup can be recovered even with the lack of recovery online newspapers, but apparently this is not the case. What I also don't understand, is why he simply not restore using the information of the archivelogs. The database was not shut down properly, but isn't always the case when you lose again-online newspapers?

    Here is the text of the controlfile.sql

    -Set #2. RESETLOGS case
    --
    -The following commands will create a new control file and use
    -to open the database.
    -The data used by the Recovery Manager will be lost.
    -The content of online newspapers will be lost and all backups
    -be invalidated. Use this option only if online newspapers are damaged.

    Published by: Markus Waldorf Sep 20, 2010 09:34

    You are right. But it is especially the case.perform, create the new database and will stop immediately (without demolition) and remove newspapers online OS level. And try to recover the database using backup controlfile until cancel or just recover database until cancel then enter Word Cancel and resetlogs option database open. It will work. Because it actually do not need any recovery operation. But your case you need to recover the database. You consider backup restore las and perform incomplete recovery. I think you can do the first test.

  • ORA-31011 when using XMLElement.getblobval)

    Hi all

    We have recently updated our server Oracle of Oracle Database 10 g Release 10.2.0.2.0 - Production of Oracle Database 10 g Release 10.2.0.5.0 - Production, and now we are getting the following error in one of our procedures in XML.

    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00230: invalid 0 (U + 0000) character in a name a Nmtoken
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 156

    I found 2 things, the first is that if I delete as 8 characters of XMLElement that is ITI selected fine works, so my guess is that the value is too large, but to dig deeper the problem I discovered at the end of XMLElement there is a .getBlobVal (1), so when noting that I get no error.

    no idea why this phenomenon occurs? is this something related to the nls_character_Set? I tried with others with no luck

    Thanks in advance
  • ORA-19504: cannot create file when using rman

    Hello
    on 10g bR2 on windows machine my rman backup failed on a drive mapped with following error message:
    ORA-19504: cannot create file when using rman

    What do you suggest me?

    I heard that RMAN cannot write to the mapped file system. Is this true? Some people proposed:

    OracleService must be run by OS user with permissions

    But what oracle service? Target or RMAN catalog database database?

    Thank you.

    You must change your environment, on metalink:

    How to configure RMAN to write about readers shared on Windows NT/2000
    DOC - ID: Note: 145843.1

    Werner

  • Exception during the update of a value of clob using dbms_lob.fragment_insert

    Hello
    This is the query
    procedure tempProc (str3 in varchar2) is
    CLOB QI;
    -LOB (QI) STORE DO securefile;
    v_cursor refcursor;
    Str varchar2 (50);
    i the number '30' default;
    Start
    Open v_cursor for select b.OCEAN_RATE_XML.getClobVal (B TNMAB_OCEAN_RATE_XML)
    WHERE (XMLCast (XMLQuery (' declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder";))) ( :  :) ObjectID/OceanOfferRate /'
    PASSING B.OCEAN_RATE_XML REFERRING CONTENT) AS NUMBER (20))) = 200000000000050;
    extract v_cursor in IQ;
    close v_cursor;
    dbms_output.put_line ('ABCD' |) DBMS_LOB. GetLength (QI));
    DBMS_LOB.fragment_insert (QI, 3, DBMS_LOB.getlength (QI) - 17, "< abc / > '");
    dbms_output.put_line (' ' inserted ');
    DBMS_LOB. READ (QI, I, DBMS_LOB.getlength (QI) - I, str);
    -DBMS_LOB. Read (QI, 20, DBMS_LOB. GetLength (QI) - 20, STR);
    dbms_output.put_line ('jobs read');
    dbms_output.put_line (STR);


    end tempProc;

    I get the exceptionError report below:

    ORA-43856: LOB unsupported type for operation SECUREFILE LOB
    ORA-06512: at "SYS." DBMS_LOB", line 1076
    ORA-06512: at "TNM_PLSQL. TNM_AB_QI_UPDT_PKG', line 377
    ORA-06512: at line 5
    ORA-06512: at line 9 level

    < OceanOfferRate xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" xmlns = "http://com.oocl.schema.tnm.agreementbuilder" >
    < ObjectID > 200000000000050 < / ObjectID >
    < RateID > 2 < / RateID >
    < > 00000002 AgreementID < / AgreementID >
    < StartingVersion > 0 < / StartingVersion >
    < EndingVersion > 0 < / EndingVersion >
    < EffectiveFrom > 2010-05-16T 00: 00:00.000000 < / EffectiveFrom >
    < EffectiveTo > 2010-06-30T 00: 00:00.000000 < / EffectiveTo >
    < RateStatus > QuoteExpired < / RateStatus >
    Approved < ApprovalStatus > < / ApprovalStatus >
    < flags > 3 < / Flags >
    < rates > 015 < / rates >
    < BaseRates >
    20GP < SizeType > < / SizeType >
    < amount > 65 < / amount >
    < currency > $ < / currency >
    < EffectiveFrom > 2010-05-16T 00: 00:00.000000 < / EffectiveFrom >
    < EffectiveTo > 2010-06-30T 00: 00:00.000000 < / EffectiveTo >
    < flags > 0 < / Flags >
    < / BaseRates >
    < BaseRates >
    40GP < SizeType > < / SizeType >
    < amount > 100 < / amount >
    < currency > $ < / currency >
    < EffectiveFrom > 2010-05-16T 00: 00:00.000000 < / EffectiveFrom >
    < EffectiveTo > 2010-06-30T 00: 00:00.000000 < / EffectiveTo >
    < flags > 0 < / Flags >
    < / BaseRates >
    < BaseRates >
    40HQ < SizeType > < / SizeType >
    < amount > 100 < / amount >
    < currency > $ < / currency >
    < EffectiveFrom > 2010-05-16T 00: 00:00.000000 < / EffectiveFrom >
    < EffectiveTo > 2010-06-30T 00: 00:00.000000 < / EffectiveTo >
    < flags > 0 < / Flags >
    < / BaseRates >
    default < ShippingPartyGroupName > < / ShippingPartyGroupName >
    default < CustomerContactGroupName > < / CustomerContactGroupName >
    default < NamedCustomerGroupName > < / NamedCustomerGroupName >
    < LastSentDate > 2010-06-14T 22: 42:48.536000 < / LastSentDate >
    < ValidityDays > 30 < / ValidityDays >
    < ValidityExpirationDate > 2010-06-30T 00: 00:00.000000 < / ValidityExpirationDate >
    < GuidelineRateReference >
    < trunk >
    < RateID > 100001510668470 < / RateID >
    < SurchargeIDs > 684172719752758 < / SurchargeIDs >
    < SurchargeIDs > 626856918161564 < / SurchargeIDs >
    < SurchargeIDs > 680028613161439 < / SurchargeIDs >
    < SurchargeIDs > 679555629913553 < / SurchargeIDs >
    < SurchargeIDs > 673382151283681 < / SurchargeIDs >
    < SurchargeIDs > 679789705628181 < / SurchargeIDs >
    < SurchargeIDs > 653835218283772 < / SurchargeIDs >
    < SurchargeIDs > 653955477367768 < / SurchargeIDs >
    < SurchargeIDs > 653955477367759 < / SurchargeIDs >
    < / trunk >
    < / GuidelineRateReference >
    < CreatedOn > 2010-05-16T 13: 40:29.201344 < / CreatedOn >
    < CreatedBy > KRISHSA < / CreatedBy >
    < vendor > COOKBR < / seller >
    < BureauVentes > PHE < / BureauVentes >
    < LastUpdated > 2010-06-30T 00: 13:06.000000 < / LastUpdated >
    < LastUpdatedBy > TNM_APPLN < / LastUpdatedBy >
    < origins >
    < ID_Wrappers >
    < value > 100000000026067 < / value >
    < / ID_Wrappers >
    < ID_Wrappers >
    < value > 100000000008923 < / value >
    < / ID_Wrappers >
    < ID_Wrappers >
    < value > 100000000024173 < / value >
    < / ID_Wrappers >
    < / origins >
    < destination >
    < ID_Wrappers >
    < value > 100000000008923 < / value >
    < / ID_Wrappers >
    < ID_Wrappers >
    < value > 100000000024173 < / value >
    < / ID_Wrappers >
    < ID_Wrappers >
    < value > 100000000013006 < / value >
    < / ID_Wrappers >
    < ID_Wrappers >
    < value > 100000000046704 < / value >
    < / ID_Wrappers >
    < / destination >
    < DeliveryMode > YY < / DeliveryMode >
    < TradeLane > IAT < / TradeLane >
    < product >
    < description > cotton for test < / Description >
    < CargoNatureGroup > 32 < / CargoNatureGroup >
    < / product >
    < RateLevel > 1 < / RateLevel >
    < / OceanOfferRate >

    An adviser if there is other ways to update the clob with additional information at the end of the XML file before < / OceanOfferRate >?

    Hello

    Funny approach ;)

    I'm sure that you will find this more easy and much more supported:

    SELECT appendChildXML( ocean_rate_xml
                         , '/OceanOfferRate'
                         , xmltype('')
                         , 'xmlns="http://com.oocl.schema.tnm.agreementbuilder"' )
    FROM tnmab_ocean_rate_xml
    WHERE XMLCast(
            XMLQuery('declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; /OceanOfferRate/ObjectID'
                     PASSING ocean_rate_xml RETURNING CONTENT)
            AS NUMBER(20)
          ) = 200000000000050
    ;
    

    If your real goal is to update the column back, then you can do in a single statement:

    UPDATE tnmab_ocean_rate_xml
    SET ocean_rate_xml =
           appendChildXML( ocean_rate_xml
                         , '/OceanOfferRate'
                         , xmltype('')
                         , 'xmlns="http://com.oocl.schema.tnm.agreementbuilder"' )
    WHERE ...
    ;
    

    (BTW, to serialize the document use XMLSerialize rather than the old method of getClobVal function.)

    In addition, new in version 11.2.0.3:

    SELECT XMLQuery(
            'declare default element namespace "http://com.oocl.schema.tnm.agreementbuilder"; (: :)
             copy $d := /OceanOfferRate modify ( insert node  as last into $d ) return $d'
            passing ocean_rate_xml
            returning content
           )
    FROM tnmab_ocean_rate_xml
    WHERE ...
    

    Published by: odie_63 on Dec 19. 2011 21:30 - added update of XQuery example

  • 'LOB not supported for type' error occurs when executing DBMS_LOB. FRAGMENT_INSERT

    Hi all
    I'm trying to launch DBMS_LOB. FRAGMENT_INSERT, but got error saying:
    ORA-43856: Unsupported LOB type for SECUREFILE LOB operation
    Suppose I have the following code:
    declare
    note_clob clob;
    note_clob2 clob;
    note_bfile bfile;
    buffer varchar2(10000);
    note_var varchar2(10000);
    warning int;
    dest_off int:=1;
    src_off int:=1;
    lang_ctx int:=0;
    amount int:=1500;
    
    begin
    --Create temp
    dbms_lob.createtemporary(note_clob,true);
    
    --Initialize BFILE
    note_bfile:=bfilename('TEMP_DIR','note.txt');
    --Open bfile
    dbms_lob.fileopen(note_bfile);
    
    dbms_lob.loadclobfromfile(note_clob,note_bfile,dbms_lob.lobmaxsize,dest_off,src_off,0,lang_ctx,warning);
    
    dbms_lob.fileclose(note_bfile);
    
    --Fragement Insert
    amount:=3;
    dest_off:=10;
    buffer:='end';
    dbms_lob.fragment_insert(note_clob,amount,dest_off,buffer); <==LINE 30
    
    --Read
    amount:=50;
    dbms_lob.read(note_clob,amount,1,note_var);
    
    dbms_output.put_line(note_var);
    end;
    /
    and I got:
    ERROR at line 1:
    ORA-43856: Unsupported LOB type for SECUREFILE LOB operation
    ORA-06512: at "SYS.DBMS_LOB", line 1076
    ORA-06512: at line 30
    What did I miss?

    Better subject.
    TA.

    only recently switched to 11g and 10g DBMS_LOB have FRAGMENT stuff

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28278/e43750.htm suggests

    ORA-43856: not taken object Type supported for operation SECUREFILE LOB
    Question: A SECUREFILE Lob operation was published on an unsupported object type.

    Action: Don't use this function for BASICFILE LOBs.

    Seems DBMS_LOB. FRAGMENT procedures work with LOB secure files only. :(

    Concerning

    Etbin

  • RMAN-04014: failed to start: ORA-16019: cannot use LOG_ARCHIVE_DEST_1

    Hello

    I am facing a problem during the cloning of production TEST environment.

    Please see the below given error:

    ' RMAN-04014: failed to start: ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST.

    And I used the following script to retrieve.

    ==========================================================================================

    ------------------------------------------------------------------

    VI initTEST.ora

    * .db_name = 'TEST '.

    * .db_unique_name = 'TEST '.

    SQL > startup nomount

    =============================

    Auxiliary RMAN.

    run

    {

    allocate auxiliary CHANNEL c1 device type disk;

    allocate auxiliary CHANNEL c2 device type disk;

    allocate auxiliary CHANNEL c3 device type disk;

    allocate auxiliary CHANNEL c4 device type disk;

    the value of newname for tempfile 1 to ' / testdata/R12/TEST/datafile/temp01.dbf';

    the value of newname for tempfile 2 to ' / testdata/R12/TEST/datafile/temp02.dbf';

    the value of newname for tempfile 3 to ' / testdata/R12/TEST/datafile/temp03.dbf';

    the value of newname for tempfile 4 to ' / testdata/R12/TEST/datafile/temp04.dbf';

    the value of newname for tempfile 5 to ' / testdata/R12/TEST/datafile/temp05.dbf';

    data duplicated in the 'TEST' backup location ' / backup/PROD_BKP_01_Nov_15 / '.

    SPFILE

    Define db_name = 'TEST '.

    Set db_unique_name = 'TEST '.

    Set cluster_database = "false".

    Set use_large_pages = 'false '.

    Set remote_listener = "

    Set local_listener = "

    Set listener_networks = "

    Set control_files='/testdata/R12/TEST/controlfile_TEST.ctl"

    Set diagnostic_dest ='/ oracle/app /'

    Set log_archive_dest = "/ testdata/R12/archive.

    Set audit_file_dest='/oracle/app/product/11.1.0/db_1/rdbms/audit/"

    Db_file_name_convert '+ DATA_P/PROD/DATAFILE', set ' / testdata/R12/TEST/datafile.

    Set log_file_name_convert '+ DATA_P/PROD/ONLINELOG', ' / testdata/R12/TEST/datafile ', '+ RECO_P/PROD/ONLINELOG', ' / testdata/R12/TEST/datafile;

    switch tempfile;

    }

    -----------------------------------------------------------------

    Then please suggest a solution?

    With thanks and greetings

    Ngoyi

    ------------

    This is what Oracle says:

    ORA-16019: can't use string with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST

    Cause: One of the following events caused a mismatch:

    (1) setting LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST was in use when the LOG_ARCHIVE_DEST_n specified (n = 1.. 31) or parameter DB_RECOVERY_FILE_DEST occurred during extraction of initialization parameters.

    (2) LOG_ARCHIVE_DUPLEX_DEST or LOG_ARCHIVE_DEST parameter was used when an attempt is made to use an ALTER SYSTEM or ALTER SESSION command to set a value for the specified parameter LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST.

    (3) a command ALTER SYSTEM ARCHIVE LOG START FOR was in effect when the specified parameter LOG_ARCHIVE_DEST_n met during extraction of initialization parameters.

    (4) an ALTER SYSTEM ARCHIVE LOG START FOR order was in effect when an attempt is made to a command ALTER SYSTEM or ALTER SESSION allows you to set a value for the specified parameter LOG_ARCHIVE_DEST_n.

    Action: Eliminate all inconsistent parameter definitions.

  • ORA-1403 when change the type of file to APEX_APPLICATION_TEMP_FILES browser storage

    Hi all

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    Thank you, Dorothy

    DorothySG wrote:

    I'm new to APEX.  I use APEX 5.0 and try in site APEX Oracle using load data wizard to download the csv file.

    I managed to download data when the browser file storage type is obsolete WWV_FLOW_FILES.

    However, when I change the type of storage of Table APEX_APPLICATION_TEMP_FILES, system will prompt ORA-1403 when I click 'Next' to the Source of data loading page.

    Exception logging: Sqlerrm: ORA-01403: no Backtrace data: ORA-06512: at the "APEX_050000.WWV_FLOW_DATA_UPLOAD", line 564 ORA-06512: to the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 975 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS_NATIVE", line 1172 ORA-06512: to the 'APEX_050000.WWV_FLOW_PLUGIN', line 2017 ORA-06512: at the "APEX_050000.WWV_FLOW_PROCESS", line 188

    Someone able to guide how to diagnose this problem?

    It's bug #21478903: error when changing from APEX_APPLICATION_TEMP_FILES to download files

    Use the deprecated option for now.

  • Error link database to MySQL when using variables

    Hi guys

    I currently have a database of hava link to MySQL. I can read, insert, delete and update without any problem when using literals. However when I try to perform the same actions using pl/sql variables, I get the following error:

    ORA-02055: distributed update operation failed. Rollback required
    ORA-02068: following a serious error of AAA1
    ORA-28511: interruption of the RPC connection to heterogeneous remote agent using SID = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ProdDB.btl)(PORT=1527) .net) (CONNECT_DATA = (SID = AAA1)))
    ORA-06512: at line 15 level

    You kindly give me some suggestions?


    PL/SQL code

    Declare

    MSISDN2 tank (8);
    IMSI2 number (28.0);
    ICC2 number (28.0);
    CNT number (28.0);

    Begin

    MSISDN2: = 610-0850';
    IMSI2: = 8950167090300132451;
    ICC2: = 702670161017765;


    Delete "SUBSCRIBERS"@AAA1 where "MSISDN" = MSISDN2; -'ICC' = ICC2 or 'IMSI' = IMSI2;

    End;


    -----------------------------------------------------------------------------------------------------------
    System information:

    Oracle Database 10.2.0.5.0 under Redhat Linux 64-bit

    Database portals Oracle ODBC 11.2.0.1.0 on the same machine as above

    UnixODBC - 3.2.1 compiled in 64-bit on the same machine so

    MySQL ODBC connector DriverVer:05.02.0002

    ------------------------------------------------------------------------------------------------------
    ODBC DSN

    ;
    ; ODBC.ini configuration for MYODBC and MYODBC 3.51 drivers
    ;

    [ODBC data sources]
    AAA1 = pilot 5.2.2 MyODBC DSN

    [AAA1]
    Driver = /usr/lib64/libmyodbc5w.so
    Description = driver MYODBC DSN 5.52
    SERVER = 10.50.18.89
    USER = tytancc2
    Password = xxxxxx
    Database = radiator
    OPTION = 3
    CHARSET = latin1
    Trace = yes
    Trace file = /tmp/unixodbc.sql.log
    Debug = 1
    Debugfile = /tmp/unixodbc.debug.log

    ---------------------------------------------------------------------------------------
    File hs
    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = AAA1
    #HS_FDS_TRACE_LEVEL = 255
    HS_FDS_TRACE_LEVEL = DEBUG
    #HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5w.so
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so.2
    HS_FDS_SQLLEN_INTERPRETATION = 32
    #HS_LANGUAGE = AMERICAN_AMERICA. AL32UTF8
    #HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P15
    #HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_LANGUAGE = AMERICAN_AMERICA. LATIN1
    HS_FDS_FETCH_ROWS = 1
    #HS_NLS_NCHAR = UCS2
    #HS_OPEN_CURSORS = 10


    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/u01/oracle/.odbc.ini
    Set ODBCINSTINI=/etc/odbcinst.ini


    #
    # Required for the non-Oracle system environment variables
    #
    set LD_LIBRARY_PATH = / usr/lib64


    --------------------------------------------------------------------------------------------
    Trace file

    Oracle Corporation - 22:01:40.555 Friday, February 8, 2013


    Heterogeneous Agent release
    11.2.0.1.0




    Oracle Corporation - 22:01:40.549 Friday, February 8, 2013

    Version 11.2.0.1.0

    Hgogprd entries
    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'DEBUG '.
    Hgosdip entries
    default assignment of 50 HS_OPEN_CURSORS
    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
    HS_FDS_RECOVERY_PWD layout to the default
    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
    HS_IDLE_TIMEOUT layout to the default 0 value
    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
    layout by default «AL32UTF8» HS_NLS_NCHAR
    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
    layout HS_FDS_DATE_MAPPING default 'DATE '.
    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
    HOSGIP returned the value of '1' for HS_FDS_FETCH_ROWS
    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
    parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
    parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
    The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
    HOSGIP returned the value "32" for HS_FDS_SQLLEN_INTERPRETATION
    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
    HS_FDS_WORKAROUNDS layout by default "0".
    Release of hgosdip, rc = 0
    ORACLE_SID is "AAA1.
    Product information:
    Port RLS / Upd:1 / 0 PrdStat:0
    Agent: Oracle Database Gateway for ODBC
    : Installation
    Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: AAA1
    Release of hgogprd, rc = 0
    Hgoinit entries
    HOCXU_COMP_CSET = 1
    HOCXU_DRV_CSET = 31
    HOCXU_DRV_NCHAR = 873
    HOCXU_DB_CSET = 31
    HOCXU_SEM_VER = 102000
    Entry hgolofn to 2013/02/08-22: 01:40
    HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/lib64/libodbc.so.2 '.
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a08f61
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a090e5
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a09c18
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0b6dc
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a17bc4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a182e8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1bc40
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1dad8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1e6dc
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a20bae
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a20bd0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a22f44
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a276d4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a27b90
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2a4a4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2b574
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2b99c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2e65c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2ecd0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a31db8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a31ac0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0c47c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0e884
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a14943
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1714a
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a19327
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1d2ce
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1f648
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a210c7
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a23990
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2414c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a25d26
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a26cc0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a288a8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a28c67
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a29e88
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2c51e
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2ccfa
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2d5c0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2de92
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2f088
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a33fa4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a315fe
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a36de2
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a380ec
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Release of hgolofn, rc = 0 to 2013/02/08-22: 01:40
    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
    treat_SQLLEN_as_compiled = 0
    Release of hgoinit, rc = 0 to 2013/02/08-22: 01:40
    Entry hgolgon to 2013/02/08-22: 01:40
    name: tytancc2, reco:0, tflag:0
    Entry hgosuec to 2013/02/08-22: 01:40
    Release of hgosuec, rc = 0 to 2013/02/08-22: 01:40
    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
    using tytancc2 as the default value to "HS_FDS_DEFAULT_OWNER".
    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
    Entry hgocont to 2013/02/08-22: 01:40
    HS_FDS_CONNECT_INFO = "AAA1.
    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
    Entry hgogenconstr to 2013/02/08-22: 01:40
    DSN:AAA1, name: tytancc2
    OPTN:
    Entry hgocip to 2013/02/08-22: 01:40
    DSN:AAA1
    Release of hgocip, rc = 0 to 2013/02/08-22: 01:40
    Release of hgogenconstr, rc = 0 to 2013/02/08-22: 01:40
    Entry hgolosf to 2013/02/08-22: 01:45
    Release of hgolosf, rc = 0 to 2013/02/08-22: 01:45
    DriverName:libmyodbc5w.so, DriverVer:05.02.0002
    Name of DBMS: MySQL, DBMS Version: 5.1.66 - community-newspaper
    Release of hgocont, rc = 0 to 2013/02/08-22: 01:45
    SQLGetInfo Returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
    Release of hgolgon, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoulcp to 2013/02/08-22: 01:45
    Entry hgowlst to 2013/02/08-22: 01:45
    Release of hgowlst, rc = 0 to 2013/02/08-22: 01:45
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    Able TXN: isolation 3, Option: 0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns (0 x 60) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo Returns Y for SQL_COLUMN_ALIAS
    16 functions for instance will be uploaded
    context: 0x00000000, capno:1964, add info: 0
    context: 0x00000000, capno:1989, add info: 0
    context: 0x0001ffff, capno:1991, add info: 0
    «"" context: 0x0001ffff, capno:1992, info-add: 1, translation:»»»
    context: 0x00000000, capno:3042, add info: 0, translation: "42".
    context: 0x00000000, capno:3047, add info: 0, translation: "57."
    context: 0x00000000, capno:3049, add info: 0, translation: "59".
    context: 0x00000000, capno:3050, add info: 0, translation: "60".
    context: 0x00000000, capno:3066, add info: 0
    context: 0x00000000, capno:3067, add info: 0
    context: 0x00000000, capno:3068, add info: 0
    context: 0x00000000, capno:3069, add info: 0
    capno:3500, context: 0x00000001, add info: 91, translation: "42".
    capno:3501, context: 0x00000001, add info: 93, translation: "57."
    capno:3502, context: 0x00000001, add info: 107, translation: "59".
    capno:3503, context: 0x00000001, add info: 110, translation: "60".
    Release of hgoulcp, rc = 0 to 2013/02/08-22: 01:45
    Entry hgouldt to 2013/02/08-22: 01:45
    NO translation of DD for instance have been downloaded
    Release of hgouldt, rc = 0 to 2013/02/08-22: 01:45
    Entry hgobegn to 2013/02/08-22: 01:45
    tflag:0, original: 1
    Hoi:0x9671a48, ttid (len 26) is...
    00: 54595441 4E2E6438 32323564 62642E32 [TYTAN.d8225dbd.2]
    10: 3433 33313031 [9.7.310143] 392E372E
    tbid (len 10) is...
    0: 1-000700 7FBB0400 0104 [...]
    Release of hgobegn, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopdsc to 2013/02/08-22: 01:45
    Describing the procedure SUBSCRIBERS
    Output hoada
    hgopdsc, line 1406: NO hoada to print
    Release of hgopdsc, rc = 942 to 2013/02/08-22: 01:45
    Entry hgodtab to 2013/02/08-22: 01:45
    number: 1
    Table: SUBSCRIBERS
    Allocate hoada [0] @ 0x3a23590
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    The hoada for SUBSCRIBERS table follows...
    hgodtab, line 876: print hoada @ 0x3a23590
    MAX: 8, REAL: 8, BRC:1, WHT = 6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 8 0 / 0 0 0 200 MSISDN
    -5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
    -5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
    1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
    1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
    -5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
    -5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
    -5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
    Release of hgodtab, rc = 0 to 2013/02/08-22: 01:45
    Entry hgodafr, cursor IDs 0 to 2013/02/08-22: 01:45
    Free Hoada @ 0x3a23590
    Release of hgodafr, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:45
    type: 0
    Text SQL hgopars, id = 1, len = 134...
    45 00: 53454 C 43542041 53495344 312E604D [SELECT A1.'MSISD]
    10: 4E602C41 4 534960 2C41312E 312E6049 [NO, A1.] "IMSI', A1.]
    20: 60494343 602C 4131 2E604348 45434B 41 ['ICC', A1' COACHA]
    30: 54545260 60524550 4 594154 2C41312E [TTR ', A1' REPLYAT]
    40: 5452602 C 54494 45 4 454654 41312E60 [TR ', A1' TIMELEFT]
    50: 602C 4131 2E60454C 494D494E 41544544 [', A1.'] ELIMINATED]
    60: 602C 4131 2E605355 5350454E 44454460 [', 'SUSPENDED' A1.]
    70: 4 206053 55425343 52494245 2046524F [A ' SUBSCRIBE]
    80: 52536020 4131 [RS A1]
    Release of hgopars, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoopen, id of cursor 1 to 2013/02/08-22: 01:45
    hgoopen, line 86: NO hoada to print
    Delayed open until the first fetch.
    Release of hgoopen, rc = 0 to 2013/02/08-22: 01:45
    Entry hgodscr, id of cursor 1 to 2013/02/08-22: 01:45
    Allocate hoada @ 0x3a23538
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    hgodscr, line 880: print hoada @ 0x3a23538
    MAX: 8, REAL: 8, BRC:1, WHT = 5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 8 0 / 0 0 0 200 MSISDN
    -5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
    -5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
    1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
    1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
    -5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
    -5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
    -5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
    Release of hgodscr, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoclse, id of cursor 1 to 2013/02/08-22: 01:46
    Release of hgoclse, rc = 0 to 2013/02/08-22: 01:46
    Entry hgodafr, id of cursor 1 to 2013/02/08-22: 01:46
    Free Hoada @ 0x3a23538
    Release of hgodafr, rc = 0 to 2013/02/08-22: 01:46
    Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:46
    type: 0
    Text SQL hgopars, id = 1, len = 56...
    45 00: 44454 C 54452046 60535542 524F4D20 [DELETE OF ' SUB]
    10: 53435249 42455253 60205748 45524520 [OF THE TRUSQUINS WHERE]
    20:60535542 53435249 602E604D 42455253 ["SUBSCRIBERS". AM]
    30: 53495344 4E603D3F [SISDN'=?]
    Release of hgopars, rc = 0 to 2013/02/08-22: 01:46
    Entry hgoexec, id of cursor 1 to 2013/02/08-22: 01:46
    octype = 3 (REMOVE)
    hgoexec, line 108: print hoada @ 0x3a23538
    MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 0 0 / 0 31 0 200?
    Entry hgoprbv to 2013/02/08-22: 01:46
    hgoprbv, line 145: print hoada @ 0x3a23538
    MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 0 0 / 0 31 0 200?
    Release of hgoprbv, rc = 0 to 2013/02/08-22: 01:46

    Could you please put the table in the MySQL table definition is defined in the MySQL database and the way she is described using the database link (desc 'SUBSCRIBERS"@AAA1)
    What happens when you comment the gateway init parameter:
    HS_FDS_SQLLEN_INTERPRETATION = 32?

    Thank you
    Klaus

    Published by: kgronau on February 11, 2013 07:37

    Successfully tested the DG4ODBC 11.2.0.3 by the definition of a table in MySQL:
    drop table CUSTOMERS;
    create table CUSTOMERS (MSISDN char (8), numeric (28.0) IMSI2, ICC2 numeric (28.0), NTC numeric (28.0));
    insert into CUSTOMERS values (610-0850', 8950167090300132451, 702670161017765, NULL);

    and by using this code:
    SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;

    COUNT (*)
    ----------
    1

    SQL > declare
    2
    3 MSISDN2 tank (8);
    4 IMSI2 number (28.0);
    5 ICC2 number (28.0);
    6 NTC number (28.0);
    7
    Begin 8

    9 10 MSISDN2: = 610-0850';
    11 IMSI2: = 8950167090300132451;
    12 ICC2: = 702670161017765;
    13
    14 remove from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB where"MSISDN"= MSISDN2;
    15 ' ICC' = ICC2 or "IMSI" is IMSI2;.
    16
    End 17;
    18.

    PL/SQL procedure successfully completed.

    SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;

    COUNT (*)
    ----------
    0

    Published by: kgronau on February 11, 2013 07:51

    Also successfully tested using DG4ODBC Oracle 11.2.0.1 database and 10.2.0.5

  • get ORA-01403: when it should not

    Hello, I apologize in advance for my spelling, name (takes 6 hours to change) and the headaches you migth get, however,.
    I bring you the following code and test results:
    -----------------------------------------------------------
    -The procedure that throws the error.
    -----------------------------------------------------------
    create or replace
    procedure P_COLEGAS(x in number) as
    ctipo varchar2(20);
    asd varchar2(20);
    
    cursor curnombre is
    select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo and elemento.ciudad=asd);
    
    begin
    select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x and elemento.id_elem=x;
    for blah in curnombre loop
    DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
    end loop;
    end;
    -what i get when executing the procedure-
    Error que empieza en la línea 1 del comando:
    exec p_colegas(19)
    Informe de error:
    ORA-01403: no data found
    ORA-06512: at "BD00.P_COLEGAS", line 9
    ORA-06512: at line 1
    01403. 00000 - "no data found"
    *Cause:
    *Action:
    -----------------------------------------------------------
    -the real problem-
    -----------------------------------------------------------
    in the case of this procedure I had to write
    (1)
    select unidad.tipo into ctipo from unidad where unidad.id_elem=x;
    (2)
    select elemento.ciudad into asd from elemento where elemento.id_elem=x;
    Instead the single query I wrote, we get the following:
    (1) wonderful works, gets only error when there is no match for x.
    (2) throws the error that I was before.

    However when I do the following query in the spreadsheet and run it:
    (3)
    select elemento.ciudad from elemento where elemento.id_elem=x;
    I get what I expect to get 1 row 1 column. (Yes it has data)
    Note: (3) the only difference is that I remove the clause, and x is the same number that I used when I run the procedure.

    -----------------------------------------------------------
    --------------------the question------------------------
    -----------------------------------------------------------
    Why in the procedure, the failure of the (2) query to retrieve the data, the same which data the query (3) doesn't fail to pick up?
    I get ORA-01403, when I shouldn't?
    is there a work around for this problem?

    -----------------------------------------------------------
    --------------------what i try------------------------------
    -----------------------------------------------------------
    Nestled the request with its own handle exception error, get the same results, a few screenshots of the error with a different treatment.

    used tool: sql developer

    ----------
    -Example of data-
    ----------
    tested the procedure with the following sample data in a new workspace, make the same mistake.
    --------------------------------------------------------
    --  DDL for Table ELEMENTO
    --------------------------------------------------------
    
      CREATE TABLE "ELEMENTO" 
       (     "ID_ELEM" NUMBER, 
         "CIUDAD" VARCHAR2(20), 
         "TIPO" CHAR(1), 
         "X" NUMBER, 
         "Y" NUMBER, 
         "FECHAHORA_CREACION" TIMESTAMP (6)
       ) ;
    /
    --------------------------------------------------------
    --  DDL for Table UNIDAD
    --------------------------------------------------------
    
      CREATE TABLE "UNIDAD" 
       (     "ID_ELEM" NUMBER, 
         "PORCENTAJE_SALUD" NUMBER, 
         "NOMBRE" VARCHAR2(20), 
         "TIPO" VARCHAR2(20)
       ) ;
    /
    REM INSERTING into ELEMENTO
    SET DEFINE OFF;
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (12,'Infernalia','U',10,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (15,'Infernalia','U',10,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (19,'Infernalia','U',15,9,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (23,'Infernalia','U',16,8,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (27,'Infernalia','C',15,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (52,'Humania','U',26,10,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (58,'Humania','U',24,9,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (62,'Humania','U',27,11,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (64,'Humania','C',25,8,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (78,'GruntVille','U',47,32,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (84,'GruntVille','U',42,28,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (89,'GruntVille','U',43,29,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (91,'GruntVille','C',44,37,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (29,'Infernalia','C',16,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (90,'GruntVille','U',49,36,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    REM INSERTING into UNIDAD
    SET DEFINE OFF;
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (12,100,'Grang','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (15,100,'Krout','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (19,100,'Warf','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (23,100,'Puaj','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (52,100,'Marcelus','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (58,100,'Claudius','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (62,100,'Arturius','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (78,100,'Klaknot','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (84,100,'Staisht','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (89,100,'Bjorkson','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (90,100,'Sknot','Médico');
    --------------------------------------------------------
    --  Constraints for Table ELEMENTO
    --------------------------------------------------------
    
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_CHK1_TIPO" CHECK (TIPO IN ('U', 'C')) ENABLE;
     
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
     
      ALTER TABLE "ELEMENTO" MODIFY ("ID_ELEM" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("CIUDAD" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("TIPO" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("X" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("Y" NOT NULL ENABLE);
     
      ALTER TABLE "ELEMENTO" MODIFY ("FECHAHORA_CREACION" NOT NULL ENABLE);
    /
    --------------------------------------------------------
    --  Constraints for Table UNIDAD
    --------------------------------------------------------
    
      ALTER TABLE "UNIDAD" MODIFY ("ID_ELEM" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("PORCENTAJE_SALUD" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("NOMBRE" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" MODIFY ("TIPO" NOT NULL ENABLE);
     
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
    /
    --------------------------------------------------------
    --  Ref Constraints for Table ELEMENTO
    --------------------------------------------------------
    
    --------------------------------------------------------
    --  Ref Constraints for Table UNIDAD
    --------------------------------------------------------
    
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_ELEMENTO_FK1" FOREIGN KEY ("ID_ELEM")
           REFERENCES "ELEMENTO" ("ID_ELEM") ENABLE;
     
    /
    Edited by: 975362 04:47 12/06/2012

    Published by: BluShadow on December 6, 2012 12:51
    addition of {noformat}
    {noformat} tags for readability of code/data.  Please read {message:id=9360002} and learn to do this yourself in future.
    
    Edited by: 975362 on 06-12-2012 05:44 AM
    added example data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    This is because you use X as the parameter to the procedure, and X is a column in the table :)

    So use a table alias in the query or use another name for the parameter.

    Published by: ascheffer on December 6, 2012 15:04

  • ORA-39250 - when it provides the TBS guidelines transportable export version parameter.

    Try to expdp/impdp transportable tablespace of source 11.2.0.1.0 - 64-bit RedHat to destination 11.1.0.6.0 - 64-bit RedHat 5.6 5.6.

    Getting ORA-39250 when providing the version parameter:

    expdp userid = "system / *' directory = mon_repertoire transport_tablespaces = some_tbs_to_export = some_tbs_dumpfile.dmp log = some_tbs_dumpfile.log version = 11.1" dumpfile

    Export: Release 11.2.0.1.0

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39250: use the version to downgrade a portable work is not supported

    How to export this transportable tablespace to agree to import in the 11.1.0.6.0?

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39250: use the version to downgrade a portable work is not supported

    How to export this transportable tablespace to agree to import in the 11.1.0.6.0?

    My source also version 11.2.0.1.0.

    11 GR 1 binary material allows to connect to the database of GR 11, 2.

    House of 11 GR 1 matter of export and

    $expdp system/***@11gR2_db = mon_repertoire transport_tablespaces = some_tbs_to_export dumpfile directory = some_tbs_dumpfile.dmp log = some_tbs_dumpfile.log

    See also * compatibility and New features when transporting Tablespaces with export and import [291024.1 ID] *.

    Published by: CKPT on 20 March 2012 21:07

  • dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,

    We use Oracle 11.2.0.2. We intend to implement dbms_crypto to encrypt some columns. Clone us the production data at the lower environment (DEV, QC).

    The lowest environments, we do not want to obtain the sensitive data from production and do not plan to use the same key. Instead of getting an error when using different keys, is it possible to get a different set of results.

    In other words, we want the implementation will be same in environments but use a different key in lower environment and obtain different results (or garbage).

    Any suggestions would be greatly appreciated.

    The test of this logic, I get following error when using the different keys to decrypt. It works fine if I use the same key.
    Error on line 1
    ORA-28817: PL/SQL function has returned an error.
    ORA-06512: at "SYS." DBMS_CRYPTO_FFI', line 67
    ORA-06512: at "SYS." DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
     
     l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
    
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
    
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l_key);
    
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
    
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l2_key); --**Using different key to decrypt
    
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;
    Thank you.

    In general, you can't get different results in different environments, no.

    Of course, you could write your routine to decrypt so that it intercepts it and returns a random string of RAW.

    However, this is not normally the way people go on hiding sensitive data in environments below. It would be much more common to use a tool that is designed for this tool. For example, Oracle has a Pack of masking of data for Enterprise Manager that allows to replace sensitive data with false, but realistic data as part of the updating of the environments below. There are also data from third-party tools like masqueur datamasking.

    Justin

  • ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables

    When I drop the simple control panel drop I get this error.


    ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables

    solution

    This error come when you deposit QUEUE_TABLE with normal drop table command.

    To remove the queue table, you should use DBMS_AQADM. DROP_QUEUE_TABLE procedure.

    BEGIN
    DBMS_AQADM. DROP_QUEUE_TABLE ("the queue table name", TRUE);
    END;
    /

  • using DBMS_LOB. LOADCLOBFROMFILE

    Hi all
    I had some difficulty in trying to use DBMS_LOB. LOADCLOBFROMFILE. Suppose I have this procedure that load an OS in a CLOB and read, however I get an error message saying that
    ERROR at line 1:
    ORA-22275: invalid LOB locator specified
    ORA-06512: at "SYS.DBMS_LOB", line 890
    ORA-06512: at "HR.SOME_PROC", line 14
    ORA-06512: at line 1
    This is the procedure:
    create or replace procedure some_proc is
    note_clob clob;
    note_bfile bfile;
    note_var varchar2(10000);
    warning int;
    dest_off int:=1;
    src_off int:=1;
    lang_ctx int:=0;
    amount int:=dbms_lob.lobmaxsize;
    begin
    note_clob:=empty_clob();
    note_bfile:=bfilename('TEMP_DIR','note.txt');
    dbms_lob.fileopen(note_bfile);
    dbms_lob.loadclobfromfile(note_clob,note_bfile,1000,dest_off,src_off,0,lang_ctx,warning);
    --dbms_lob.read(note_clob,amount,1,note_var);
    dbms_lob.fileclose(note_bfile);
    --dbms_output.put_line(note_var);
    end some_proc;
    /
    I comment on the part which reads and prints for debugging purposes. Could someone remind me where I did wrong on LOADCLOBFROMFILE?

    Best regards
    Val

    Indicate below the line before loading into the target...

    DBMS_LOB.CREATETEMPORARY(note_clob,true);
    
  • ORA-01552: cannot use rollback for non-system tablespace system segment

    I'm getting following error, according to a previous thread under request.

    ORA-01552: cannot use rollback for non-system tablespace system segment
    select SEGMENT_NAME, TABLESPACE_NAME, INITIAL_EXTENT,STATUS
    from dba_rollback_segs SEGMENT_NAME                   TABLESPACE_NAME                INITIAL_EXTENT         STATUS           ------------------------------ ------------------------------ ---------------------- ---------------- SYSTEM                         SYSTEM                         114688                 ONLINE           _SYSSMU1$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU2$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU3$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU4$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU5$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU6$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU7$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU8$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU9$                      UNDO_TS                        131072                 OFFLINE          _SYSSMU10$                     UNDO_TS                        131072                 OFFLINE          _SYSSMU11$                     UNDO_TS                        131072                 OFFLINE          _SYSSMU12$                     UNDO_TS                        131072                 OFFLINE          _SYSSMU13$                     UNDO_TS                        131072                 OFFLINE          _SYSSMU14$                     UNDO_TS                        131072                 OFFLINE          15 rows selected
    How can I get them online, I can get them online does this error?

    Maybe you should also mention that you make no effort to look for the error in the documentation online or anywhere else.
    You get this when your database uses rollback segments, and you have spaces of multiple tables.
    To be able to create spaces of multiple tables, you must first create a rollback segment in the system tablespace.

    That's why you get the error.
    The resolution is clear.

    Unfortunately, 99.9 percent of all the people posting here refused to make any effort to resolve errors.

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

Maybe you are looking for

  • Why the Personal Hotspot from my mobile phone appears in my list of list wifi networks if it is disabled on my phone?

    Why the Personal Hotspot from my mobile phone appears in my list of list wifi networks if it is disabled on my phone? On my iMac, there is an icon for a list of available to join Wifi networks. One of these Wifi networks is my iPhone Personal Hotspot

  • How will I know that I have a virus on my iPhone?

    I was in the internet on my phone when it opens a tab that says "You have 1 new message" I was confused what it was and I accidentally press ok. I don't know if it was a virus and I'm super worried that he had my private info. is there a way to know

  • Internet IP Ping failed

    Hi, I received a windows update, but since it is installed I don't have an internet connection. I ran a diagnosis and the internet IP Ping couldn't whatever that means and how to fix? I tried many suggestions on the forum but nothing helps. The probl

  • DeskJet 3050 took in a loop

    E-print, printer and wireless were all works well in the few weeks I've owned this printer: HP3050a runs on Mac OS 10.7.5. Came to do my first scan and it wouldn't communiocate the scanner. HP Web site supposed to repair permissions... did this, no d

  • I'm trying to understand the terminology and underlying process

    I have a few question. I created three separate applications. One of the three acts as a navigation application, the user of their choice of the other two applications of staging. I know that everyone has their own jad/cod files. Are the files of cod