ORA-00150: duplicate transaction ID ?

Hi guys,
I am calling a sql program from within my shell script and passing two parameters but I keep getting SQL Error Code -150. Any ideas about what this is ?
Thanks

This is from a perious thread ... but since the error is new, I am going to explain it here.
I have a shell script which calls two .sql programs student_load_a.sql and student_load_b.sql. I am getting the Sequence Number First and then passing it to student_load_a.sql to create the Control file which is being used by the SQL*Loader. The SQL*Loader then loads the table and student_load_b.sql does the main processing.
# Accept system input parameters
p_user_id=$1
p_job_id=$2
p_seqno=`sqlplus.exe -s $p_user_id <<_EOF_
set feedback off
set linesize 100
whenever sqlerror exit failure;
set lines 150
set pages 0
set head off
col p_seqno NEW_VALUE p_seqno
select request_number_seq.nextval p_seqno from dual;
exit;
_EOF_`
exit_status=$?
check_command
# Create control files for sqlload
sqlplus -s $p_user_id @student_load_a.sql $p_job_id $p_seqno
exit_status=$?
# Do sqlloads
sqlldr userid=$p_user_id control=student_load-$p_job_id.ctl \
       log=student_load-$p_job_id.log \
       bad=student_load-$p_job_id.bad
exit_status=$?
# Main processing
sqlplus -s $p_user_id @student_load_b.sql $p_user_id $p_job_id $p_seqno
exit_status=$?
exit 0If I remove the last parameter and don't accept a 3 rd input parameter in student_load_b.sql, then my program works fine and I do not get the 150 error. However, if I run it with the $p_seqno, get the error.
I tried running it locally and I now get an error at command line:
The semi colon in Line 9 looks odd.
$ student_load.sh abc/xyz@sumatra 1022
old   7:   t_user_id := '&1';
new   7:   t_user_id := 'abc/xyz@sumatra';
old   8:   t_job_id := &2;
new   8:   t_job_id := 1022;
old   9:   p_seqno := &3;
;ew   9:   p_seqno := 1421
; p_seqno := 1421
ERROR at line 9:
ORA-06550: line 9, column 23:
PLS-00103: Encountered the symbol "" when expecting one of the following:
* & = - + ; < / > at in is mod not rem <an exponent (**)>
<> or != or ~= >= <= <> and or like between ||
The symbol "" was ignored.Here is what student_load_b.sql looks like:
set serveroutput off
whenever oserror  exit oscode      rollback
whenever sqlerror exit sql.sqlcode rollback
declare
  t_user_id               varchar2(20);
  t_job_id                number(10);
  t_seqno                number(10);
begin
  -- Accept system input parameters
  t_user_id := '&1';
  t_job_id := &2;
  t_seqno := &3;
  exception
     when others then
        null;
end;
exit 0;Edited by: RDonASnowyDay on Feb 5, 2010 10:36 AM
Edited by: RDonASnowyDay on Feb 5, 2010 11:11 AM

Similar Messages

  • Creation and checkout errors, duplicate transactions using iPhoto print projects?

    My fiance and I have been using iPhoto to create calendars to give away as gifts for a couple years. I have had multiple problems with the latest iPhoto. They occurred on two Macbooks on two different wireless networks (an old white MB from 2006 running Snow Leopard, and the other an MBP running Lion), both with the latest iPhoto. Apple Support told me I should have used Time Capsule to avoid the first two of these errors (which, I was told, are documented bugs in their software). I was bummed because I initially spent around over 8 hours building the print book project!
    - Fonts changing when opening journal print book projects (fixed by completely restarting an 80 page book :-/ )
    - Pages cannot be rearranged in print books - they actually swap rather than drag and drop (fixed by again, completely restarting the project!)
    - When checking out, in calendars have an unspecified error and I have to cancel and fix individual photos (fixed by canceling
    - Photos randomly become blank icons and I have to reupload the photos
    - Photos that are dragged and dropped into a calendar don't show up in a random spot in the project and I have to go find them
    - When ordering calendars for this holiday season, errors when uploading have resulted in 16 duplicate transactions on my debit card resulting in over $400 of pending transactions that have been unable to be resolved by Apple Support
    Has anyone else experienced these problems? Any real fixes?

    If you're using iPhoto 5 as you say then, yes, 24k photos is heading close to the Limit of 25k. iPhoto 6 is good for 250,000 images, iPhoto 11 is good for 1,000,000.
    I'm going to guess that's a typo and that you have iPhoto 9.5.
    I've simply never heard of "too many photos" causing the problem you describe. You don't need more memory. You don't need to break up the Library. "Flushing Memory" is a non-isssue. One of the big improvements in 10.9 is in memory management.
    There are a couple of ways to break up a Library while preserving everything. It's dead easy with Aperture - export projects as Library - you can do it with iPhoto simply by duplicating the Library and deleting from the two libraries or use iPhoto Library Manager.
    But, as I say, 24k is a small Library. My main library is more than twice the size of that.
    Are Aperture and iPhoto using the same Library?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Post back with the result.

  • ORA-13223: duplicate entry for string in SDO_GEOM_METADATA table and

    I got the above error while trying to insert a record into the table SDO_GEOM_METADATA. However, when querying this table I did find any duplicate table_name, column_name pair that match with the error.
    Here are the steps that I worked on:
    1. Add a geometry column into an existing table.
    ALTER TABLE GEO_MAP ADD (ORG_GEOM mdsys.sdo_geometry);
    2. Register the new column into mdsys
    insert into USER_SDO_GEOM_METADATA
    values ('GEO_MAP','ORG_GEOM',
    mdsys.sdo_dim_array(
    mdsys.sdo_dim_element('LONG',-180,180,0.00005),
    mdsys.sdo_dim_element('LAT',-90,90,0.00005)
    8307)
    I got the error ORA-13223: duplicate entry for string in SDO_GEOM_METADATA table even there was no such record in there.
    3. I inserted values in the column ORG_GEOM fine.
    4. However, when I tried to create the index for this column I got the error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read
    Please help.
    Thanks.

    SQL> select * from mdsys.sdo_geom_metadata_table;
    SDO_OWNER SDO_TABLE_NAME
    SDO_COLUMN_NAME
    SDO_DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
    SDO_SRID
    QW_USER1 GEO_REF
    LOC_GEOM
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONG', -180, 180, .00005), SDO_DIM_ELEMENT('LAT',
    -90, 90, .00005))
    SDO_OWNER SDO_TABLE_NAME
    SDO_COLUMN_NAME
    SDO_DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
    SDO_SRID
    8307
    MDSYS SDO_CMT_CBK_RTREE_TAB
    GEOM
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', -180, 180, .000000005), SDO_DIM_ELEMENT('Y',
    SDO_OWNER SDO_TABLE_NAME
    SDO_COLUMN_NAME
    SDO_DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
    SDO_SRID
    -90, 90, .000000005))
    The situation is we have 2 tables (GEO_MAP, and GEO_REF) that have spatial columns. Everything worked fine until when one of the queries that searched through the table GEO_MAP ran so slow, we decided to rebuild the related spatial index by dropping and recreating it. However, after I dropped it I could not recreated. Keep getting the error:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    ORA-13203: failed to read
    Any help is very much appreciated.

  • ORA-00164: autonomous transaction disallowed within distributed transaction

    I have been trying to solve this problem for weeks now, I have posted this question everywhere I can think of, but I havent really received and answer that has helped, so now I am going to post it here hoping for an answer.
    We are running 9iAS on Solaris and when the following stuff is run we are getting ORA-00164 errors. If you refresh the page a bunch of time the problem goes away. But it comes back the next time you try to execute the procedure again. Here are the cases when the problem shows up.
    Editing the style:
    PROCEDURE : PORTAL30.wwpob_app_style.edit_style
    Saving changes to the banner for a page
    PROCEDURE : PORTAL30.wwptl_banner.savecustom
    Logging out
    PROCEDURE : PORTAL30.wwsec_app_priv.logout
    After setting the default user group and applying the changes:
    PROCEDURE : PORTAL30.wwsec_app_user_mgr.edit_user
    Creating a new group:
    PROCEDURE : PORTAL30.wwsec_app_group_mgr.create_group
    Opening the add portlet screen:
    PROCEDURE : PORTAL30.wwv_main.main
    There are a few other places but I don't have them documented. In ALL cases the problem goes away once we start and stop the Apache using the following comands:
    /app/oracle/n_portal/Apache/Apache/bin/apachectl stop
    ps -ef | grep httpd | grep n_portal
    /app/oracle/n_portal/Apache/Apache/bin/apachectl start
    After starting and stopping Apache the problem is gone for a little while (20-30 mins) then it starts coming back slowly (sometimes the problem is there then it is not). Once the problem is back if you continually press refresh on the browser (5-10 times) the page might appear, if the page does not appear you will see the
    ORA-00164: autonomous transaction disallowed within distributed transaction
    The following error appears in apache log (50% of the time) when Autonomous Transaction error shows up on the screen:-
    DSHttpSessionBindingListenerImpl.valueUnbound : closing DS session : DSSession id = 5225534324468880950975536484
    215 PortalSession id = 521335001720MERAJ
    DSHttpSessionBindingListenerImpl.valueUnbound : closing DS session : DSSession id = -638034231325135430097553725
    8001 PortalSession id = 992335001711JDALGLIESH
    These errors might be related to dynamic services but we were had the problem long before Dynamic services was installed.
    We want to start pre-production user testing as we have just had 11 developers building portlets for the company, but we cant do much with this error popping up every time a user wants to test it. We have one of the Oracle consultants here and he has asked the oracle developer group what the problem could be, and they seem to think it might be related to our use of DB links however, we never get the problem when we try to run a portlet that uses a database link.
    Please help.
    Jeff Dalgliesh
    null

    Jay,
    My name is Craig McCauley. I'm an Oracle Technical Manager working onsite at Unocal Indonesia. I'm with the Portal group in ATS.
    When I got here the first thing we did was bump up init.ora parameters and apache confif parameters as suggested by the iPlatform group. We have thes sessions parameter (in init.ora) bumped up from 100 to 700. I'm watching v$session and the get these AT messages with as few as 70 total db sessions. Any help your group can give will be greatly appreciated.
    Unocal is planning on implementing Oracle Portal globally - as a common interface. They have similar installs in Thailand and Houston and thus far have not seen the AT messages (although there has not been much development going on at those sites).
    Thanks,
    Craig

  • Error Oracle Mobile ORA-30023 Duplicate undo tablespace specification

    Hi,
    I have the following mobile application (Oracle Mobile 10g R3):
    - Win32 (Forms 6i) App.
    - snapshots (12 updateable, 36 read-only)
    I have a successfully compilation of my form connected to the mobile database. However when I put a value over a textitem, my WHEN-VALIDATE-ITEM trigger send me an error:
    ORA-30023 Duplicate undo tablespace specification
    How can I solve this???, It seems like there is a parameter that I have to change.
    The WHEN-VALIDATE-ITEM trigger only has a basic select over a "readonly" table.
    Please help.
    Regards,
    Santiago

    I think the problem is the following,
    I need to convert a date to julian format, example:
    to_char(sysdate,'j')
    The problem is that it seems like Oracle Mobile connot support this kind format convertion.
    So, How can I get the number of days between 01-jan-4712 BC and other date????
    I found this function TO_DATE('-4712-01-01', 'SYYYY-MM-DD'), but it doesn´t works on Oracle Mobile.
    If someone have any idea about how can I get the number of days between 01-jan-4712 BC and other day without using the format 'SYYYY'......please help

  • Data subsetting [ORA-00957: duplicate column name]

    I want to select only rows with a certain id from a table.
    The code for the publication :
    SELECT * FROM ZOO.ANIMAL A, ZOO.TYPE_ANIMAL TA, ZOO.ANIMAL_EMPLOYE AE WHERE A.IDTYPEANIMAL = TA.IDTYPEANIMAL AND TA.IDTYPEANIMAL = AE.IDTYPEANIMAL AND AE.IDEMPLOYE = :employe
    When i publish with .jar, i have this error :
    ORA-00957: duplicate column name
    What is the problem ? The query works in iSQL*Plus !
    Thanks
    Message was edited by:
    user460585

    Hi,
    I guess that you are tired or something …
    01 update requisicoes set
    02 requisicao_num = '4321',
    03 requisicao_desc = 'dfgb',
    04 empresa_id = 3,
    05 posicao_id = 2, -- equals to 14
    06 solicitante = 'dfvsdfv',
    07 centrodecusto_solicitante = '5131',
    08 centrodecusto_executante = '5151',
    09 centrodecusto_aplicacao = '5141',
    10 data_saida = to_date('12/12/2004', 'dd/mm/yyyy'),
    11 data_desejada = to_date('12/12/2004', 'dd/mm/yyyy'),
    12 prioridade_id = 1,
    13 observacao = 'sgfbfdgbdfgb',
    14 posicao_id = 2
    15 where requisicao_id = 3
    Don’t you have:
    posicao_id = 2 in 5th line and in the 14th line ??
    Bye,
    Vitor

  • ORA-00957: duplicate column name

    When I am enableversioning of a table, I get following error messages:
    SQL> execute dbms_wm.enableversioning('transcript');
    BEGIN dbms_wm.enableversioning('transcript'); END;
    ERROR at line 1:
    ORA-00957: duplicate column name
    ORA-06512: at "SYS.LTDDL", line 399
    ORA-06512: at "SYS.LTDDL", line 1117
    ORA-06512: at "SYS.LT", line 7181
    ORA-06512: at line 1
    I checked the column name that will be add by dbms_wm package and did not see any column which would cause this problem.
    Could some one give me the list of reserved column names for dbms_wm package?
    Thanks
    Ashley

    Ashley
    These are some the reserved words used by OWM in its internal views. These can also conflict on enable versioning
    statements.
    RIDCHILD RIDBASE RIDPARENT CHILDSTATE PARENTSTATE BASEDS CHILDDS PARENTDS
    FIRSTCHILDVER CHILDVER PARENTVER POS RID VERSION NEXTVER DELSTATUS
    LTLOCK
    In the release after 9iR2, we have augmented reserved words with a prefix that will commonly not conflict with
    user schema column names.
    Let me know if you were able to identify the reserve word conflict.
    Arun
    [email protected]

  • Duplicate transaction in interface table

    Hi Consultants,
    We need to delete the duplicate transactions from pa_transaction_interface_all table as we are getting duplicate transaction from OTL and some of them are processed into PA and some of them are rejected and stay in interface table. now we want to indentity those duplicate transaction in interface and need to delete them from interface table.
    anyone have look on my below query for one project#'MA0304007' and correct me. thanks in advance.
    SELECT *
    FROM pa_transaction_interface_all int
    WHERE 1=1
    AND EXISTS
    (SELECT 1
    FROM apps.PA_PROJECTS_ALL PA,
    apps.PA_PROJECT_STATUSES PST
    WHERE PA.PROJECT_STATUS_CODE =PST.PROJECT_STATUS_CODE
    AND PST.PROJECT_STATUS_NAME NOT IN ('Abandoned','Closed','Rejected')
    AND project_number = 'MA0304007'
    AND transaction_status_code = 'R'
    AND EXISTS
    (SELECT 1
    FROM apps.PA_EXPENDITURE_ITEMS_ALL XA,
    apps.PA_EXPENDITURES_ALL XE
    WHERE XA.EXPENDITURE_ID =XE.EXPENDITURE_ID
    AND XA. TRANSACTION_SOURCE ='GOLD'
    AND XA.PROJECT_ID = ( select project_id
    from pa_projects_all
    where segment1 = int.project_number)
    AND XA.TASK_ID = ( select task_id
    from pa_tasks
    where task_number =int.task_number
    and project_id = ( select project_id
    from pa_projects_all
    where segment1 = int.project_number) )
    AND TRUNC(XA.EXPENDITURE_ITEM_DATE) = TRUNC(INT.EXPENDITURE_ITEM_DATE)
    AND XA.EXPENDITURE_TYPE = INT.EXPENDITURE_TYPE
    AND XA.QUANTITY = int.quantity
    AND XA.ORIG_TRANSACTION_REFERENCE =int.ORIG_TRANSACTION_REFERENCE
    Thanks,
    Ashok.

    Hi
    PA_TRANSCTION_INTERFACE table will have all unique records, I would recommed you to extract all transactions for that particular project in xls sheet, identify the duplicate ones and take the transaction reference and now put a joining condition on the transaction-reference field and get rid of the same
    Thanks
    Krishna

  • ORA-00164 Autonomous transaction when creating batch of users

    Hi,
    I ran the script posted earlier in this forum to create a batch of users, I got some errors, support people told me that is appears to be database errors :
    ORA-00164 Autonomous transaction disallowed with distributed transaction.
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 669 ORA-06502: PL/SQL: numeric or value error.
    We use 8.1.7.2 database, Portal 3.0.9.8.
    Anyone having a solution for that problem, I don't want to create 250 users manually.
    Thank's

    i'm getting the same thing, but i'm using hardcoded input,
    so i have no dblinks or anything of the sort.
    this is my entire exception line:
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", line 323 ORA-06512: at "SYS.HTP", line 859 ORA-06512: at "SYS.HTP", line 974 ORA-06512: at "SYS.HTP", line 992 ORA-06512: at "SYS.HTP", line 40 ORA-06512: at "PORTAL30_SSO.WWSEC_UI", line 568 ORA-06512: at "PORTAL30_SSO.WWSSO_APP_USER_MGR", line 576 ORA-06512: at line 1
    any idea what is causing this?

  • ORA 600, duplicate from RAC to NON-RAC

    Hi Experts,
    I'm trying to restore Production database for development purpose point in time recovery
    environment:
    ASM: 11gR1
    DB: 10gR2
    At the end of internal duplicate steps i have faced error
    contents of Memory Script:
    Alter clone database open resetlogs;
    executing Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/16/2010 05:37:06
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01152: file 3 was not restored from a sufficiently old backup
    ORA-01110: data file 3: '+DG1/dev/datafile/sysaux.534.737875511'Later i try to apply archives from production.. i have copied those and i started recovery .. i faced internal errors.
    SQL> recover database using backup controlfile;
    ORA-00283: recovery session canceled due to errors
    ORA-00600: internal error code, arguments: [kcvhvdf_1], [], [], [], [], [], [],
    [], [], [], [], []after a lot of workaround i found one doc from metalink
    *Duplicate from active database raises ORA-01194 if one thead is closed [ID 1059699.1]*
    but i checked thread status by gv$thread.. it is looking open from last month..
    any other way to find closed threads?
    so what could be the reason.
    I have no time to raise an SR now.. any ideas will be highly appriciated.
    Thanks
    Edited by: CKPT on Dec 17, 2010 11:09 PM

    I am about to use this hidden parameter (_allow_resetlogs_corruption=true
    ) due to the almost identical problem you experienced.
    What are the risks and what next to do when I open the database?There is lot of RISK
    I tried to recover manually using existing archives, But no use.
    Raised an SR. as a last option provided by support and used that parameter, But this parameter is not suggestible, Before doing such thing, better to take backup of database(mount - cold backup).
    This thread is almost 7 months old, if you have any issue create a new thread.

  • ORA-00164 Autonomous Transactions in Distributed Env

    Hi,
    We are on 8.1.7 on AIX. We get ORA-00164 when we attempt to call an Autonomous transaction procedure whilst the main transaction has read a remote table.
    In 8.1.6.0.0 this used to check us out with Ora-600, In 8.1.7 it gives error 164. I have read some postings stating that this limitation is expected to be fixed in Oracle server 8.2 or Oracle 9i Release 2.
    Can somebody confirm this,
    BTW what would 9i Release 2 mean - 9.2 or 9.0.2 ?
    Also, is 8.2 out?
    null

    Is this question specific to Oracle9iAS Portal?

  • Works in sql not in apex: ORA-02049 distributed transaction waiting lock

    Hi,
    I get this error
    failed to parse SQL query:
    ORA-02049: timeout: distributed transaction waiting for lockwhen trying to run this query from it's page. But it works fine if I run it in the SQL console...
    failed to parse SQL query:
    ORA-select distinct n.notif_no,
           n.maint_work_centre,
           n.maint_work_centre_text,
           n.raised_by,
           n.notif_text,
           (select  (SAP_LONG_TEXT.NOTIFICATION_TEXT_1||SAP_LONG_TEXT.NOTIFICATION_TEXT_2||SAP_LONG_TEXT.NOTIFICATION_TEXT_3||SAP_LONG_TEXT.NOTIFICATION_TEXT_4||SAP_LONG_TEXT.NOTIFICATION_TEXT_5||SAP_LONG_TEXT.NOTIFICATION_TEXT_6||SAP_LONG_TEXT.NOTIFICATION_TEXT_7||SAP_LONG_TEXT.NOTIFICATION_TEXT_8||SAP_LONG_TEXT.NOTIFICATION_TEXT_9||SAP_LONG_TEXT.NOTIFICATION_TEXT_10||SAP_LONG_TEXT.NOTIFICATION_TEXT_11||SAP_LONG_TEXT.NOTIFICATION_TEXT_12||SAP_LONG_TEXT.NOTIFICATION_TEXT_13||SAP_LONG_TEXT.NOTIFICATION_TEXT_14||SAP_LONG_TEXT.NOTIFICATION_TEXT_15||SAP_LONG_TEXT.NOTIFICATION_TEXT_16||SAP_LONG_TEXT.NOTIFICATION_TEXT_17||SAP_LONG_TEXT.NOTIFICATION_TEXT_18||SAP_LONG_TEXT.NOTIFICATION_TEXT_19||SAP_LONG_TEXT.NOTIFICATION_TEXT_20||SAP_LONG_TEXT.NOTIFICATION_TEXT_21||SAP_LONG_TEXT.NOTIFICATION_TEXT_22||SAP_LONG_TEXT.NOTIFICATION_TEXT_23||SAP_LONG_TEXT.NOTIFICATION_TEXT_24||SAP_LONG_TEXT.NOTIFICATION_TEXT_25||SAP_LONG_TEXT.NOTIFICATION_TEXT_26||SAP_LONG_TEXT.NOTIFICATION_TEXT_27||SAP_LONG_TEXT.NOTIFICATION_TEXT_28||SAP_LONG_TEXT.NOTIFICATION_TEXT_29||SAP_LONG_TEXT.NOTIFICATION_TEXT_30||SAP_LONG_TEXT.NOTIFICATION_TEXT_31||SAP_LONG_TEXT.NOTIFICATION_TEXT_32||SAP_LONG_TEXT.NOTIFICATION_TEXT_33||SAP_LONG_TEXT.NOTIFICATION_TEXT_34||SAP_LONG_TEXT.NOTIFICATION_TEXT_35||SAP_LONG_TEXT.NOTIFICATION_TEXT_36||SAP_LONG_TEXT.NOTIFICATION_TEXT_37||SAP_LONG_TEXT.NOTIFICATION_TEXT_38||SAP_LONG_TEXT.NOTIFICATION_TEXT_39||SAP_LONG_TEXT.NOTIFICATION_TEXT_40||SAP_LONG_TEXT.NOTIFICATION_TEXT_41||SAP_LONG_TEXT.NOTIFICATION_TEXT_42||SAP_LONG_TEXT.NOTIFICATION_TEXT_43||SAP_LONG_TEXT.NOTIFICATION_TEXT_44||SAP_LONG_TEXT.NOTIFICATION_TEXT_45||SAP_LONG_TEXT.NOTIFICATION_TEXT_46||SAP_LONG_TEXT.NOTIFICATION_TEXT_47||SAP_LONG_TEXT.NOTIFICATION_TEXT_48||SAP_LONG_TEXT.NOTIFICATION_TEXT_49||SAP_LONG_TEXT.NOTIFICATION_TEXT_50) from sap_long_text@genadm where sap_long_text.notification = n.notif_no) "long",
           n.notif_date,
           n.funct_loc,
           n.order_no,
           n.notif_status,
           n.room,
           n.notif_type
    from   notifications@amt n, SAP_LONG_TEXT@genadm
    where  instr(':'||:P9_NOTIFTYPE||':',':'||n.NOTIF_TYPE||':')>0 and
           instr (':'||:P9_SITE||':',':'||n.site||':') > 0 and
           n.notif_date BETWEEN :P9_DATEFROM and :P9_DATETO and
           n.notif_status not like '%NOCO%'I've had this error before but I don't remember why/what happened. The page has been working fine, the error just randomly cropped up today.
    And a secondary question, is there a better way to write the query (it's a copy/paste from an older query). That select within the select is ugly...

    Hello,
    Take a look at the following thread -
    help ORA-02049
    Is it really necessary that you always query across the DBLink? Is using local materialized views not an option for you?
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • Duplicate transactions in GL tables

    Hi
    We have noticed that some of the transactions in our GL tables are duplicate , we get the data from the Third parties which directly insert into gl_interface and which in turn flows to gl base tables.
    Now the transactions are in different batches and its very difficult to find those and remove them .Could anyone provide a simple solution to remove the entries from the GL tables or if there is any other way out.
    Thanks
    Rishabh

    Rishabh,
    First, we would focus on the issue here,
    you say single line appears thrice in the system, i.e. 1 Line sent by Third party application to GL Interface is appearing as 3 Lines in Oracle General Ledger when imported...? Also you say these lines are different Journal Batches, and not the same or single batch ...
    From my perspective, this is caused due to absence of validation checks when the data from Third Party system is interfaced to GL Interface ... Ideal action plan is to take the journal batches that has duplicates, look carefully whether you can spot a trend in them ... and revist the validations on scripts in the pre-interface or staging tables ....
    Also make sure to purge the GL interface in a test run ...
    For the issue in hand, i.e. to correct the incorrect journal lines ... deleting those will not be the right thing, since if there are duplicate lines causing excess debit there would be suspense posting offsetting the credit side of it ...Hence run the account analysis report and trial balance report and find out the amount that needs to be reversed and pass a Single Manual Journal entry. (I agree it is not a easier exercise, highly time consuming as well ...)
    The above is my view, I anticipate better suggestions from other members as well ....
    Regards,
    Ivruksha

  • Problem with ORA-02046: distributed transaction already begun

    I can use db link from the source machine but not the vice versa, throws ORA-02046. I restarted Oracle, rebooted the
    machine, yet ORA-02046 persists. No entries in dba_2pc_pending in any (target, db-linking) machines. Can anybody suggest how
    can I resolve this issue? It is eating out our production time.
    Thanks in advance,

    I had already checked the link, Thanks.
    I bounced Oracle in the suspicious (one that was doubted to have started the distributed transaction) machine, then it resolved the issue.
    Thanks

  • Duplicate Transactions in Reports

    I have been battling this miraculous scenario for a while and it is becoming frustrating. Oracle reports keep duplicating transactions that are not really duplicates. If I check the posted journa1, it will show once but if I run any report, oracle picks some dates and duplicate the transactions for those dates making my balances extremely abnormal. Has anybody experienced this before. Please help!
    Edited by: user10692643 on Apr 27, 2009 7:09 AM
    Edited by: user10692643 on Apr 27, 2009 7:54 AM

    Rishabh,
    First, we would focus on the issue here,
    you say single line appears thrice in the system, i.e. 1 Line sent by Third party application to GL Interface is appearing as 3 Lines in Oracle General Ledger when imported...? Also you say these lines are different Journal Batches, and not the same or single batch ...
    From my perspective, this is caused due to absence of validation checks when the data from Third Party system is interfaced to GL Interface ... Ideal action plan is to take the journal batches that has duplicates, look carefully whether you can spot a trend in them ... and revist the validations on scripts in the pre-interface or staging tables ....
    Also make sure to purge the GL interface in a test run ...
    For the issue in hand, i.e. to correct the incorrect journal lines ... deleting those will not be the right thing, since if there are duplicate lines causing excess debit there would be suspense posting offsetting the credit side of it ...Hence run the account analysis report and trial balance report and find out the amount that needs to be reversed and pass a Single Manual Journal entry. (I agree it is not a easier exercise, highly time consuming as well ...)
    The above is my view, I anticipate better suggestions from other members as well ....
    Regards,
    Ivruksha

Maybe you are looking for

  • Variable assignment not working?

    Hello All, I am having a difficult time getting the value from an xpath to assign to a variable. I posted this question before and thought I got a good answer but to my surprise it doesn't work. I have created a variable 'CustNo' with the following x

  • How do I get music without having to answer my security questions?

    I am trying to buy music but it keeps asking for my security answers but I don't remember them

  • Apple TV streaming from my NAS with DNLA

    I would like to know if it is possible to stream content from my NAS server directly to my Apple TV (3g) ... or is it not DNLA supported? Now i am using all kinds off tools, like Airplyer , to see the video and photo`s on my TV?

  • I cannot use Siri on my ipad3 - it is not under settings?

    I cannot get siri to work on my ipad3. was working prior to upgrading to IOS 6. Not even under the settings heading to allow it to be opened.

  • Displaying Summary Column Values

    I have just learned about summary columns in Developer 2000...But I can't complete the task... I'd like to display the # of records for each value in the status column of my report. I have created the break group with Status column. Then I added a su