Error ORA-29900 when tuning spatial sql statement for tuning task

I am trying to tune a SQL statement and getting ORA-29900: operating binding does not exist and PLS-306 wrong number of arguments in call to SDO_FILTER. Oracle Version 11.1.
Query trying to tune:
Select ROUTE_LINK_ID,ROUTE_ID,ROUTE_SYSTEM_ID,ROUTE_SYSTEM_NAME,ASSIGNED_ROUTES_ID,
GEOGRAPHIC_EXTENT_ID,GEOGRAPHIC_EXTENT_NAME,ROUTE_NAME,ROUTE_DIRECTION,FULL_NAME,
OFFICIAL_NAME,ROUTE_LINK_ID,ORDINAL,DISTANCE,RELATIVE_DIRECTION,TRANSPORT_LINK_ID,
GEOMETRY_GA_TW From IDOTLRS.ROUTE_DETAIL A where (ROUTE_SYSTEM_ID=8) AND
MDSYS.SDO_FILTER(A.GEOMETRY_GA_TW, :GeometryFilter, 'querytype=window') = 'TRUE';
Example query with bind variable populated:
Select ROUTE_LINK_ID,ROUTE_ID,ROUTE_SYSTEM_ID,ROUTE_SYSTEM_NAME,ASSIGNED_ROUTES_ID,
GEOGRAPHIC_EXTENT_ID,GEOGRAPHIC_EXTENT_NAME,ROUTE_NAME,ROUTE_DIRECTION,FULL_NAME,
OFFICIAL_NAME,ROUTE_LINK_ID,ORDINAL,DISTANCE,RELATIVE_DIRECTION,TRANSPORT_LINK_ID,
GEOMETRY_GA_TW From IDOTLRS.ROUTE_DETAIL A where (ROUTE_SYSTEM_ID=1) AND
MDSYS.SDO_FILTER(A.GEOMETRY_GA_TW, SDO_GEOMETRY (2003, 1050010, NULL, sdo_elem_info_array (1, 1003, 3), sdo_ordinate_array (288325, 222066, 326949, 245295 )), 'querytype=window') = 'TRUE';
--Tuning Task that throws error ORA-29900
DECLARE
my_task_name VARCHAR2(30);
my_sqltext CLOB;
BEGIN
GeometryFilter := 'MDSYS.SDO_GEOMETRY(2003,1050010,NULL,MDSYS.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(288325,222066,326949,245295))';
my_sqltext := 'Select ROUTE_LINK_ID,ROUTE_ID,ROUTE_SYSTEM_ID,ROUTE_SYSTEM_NAME,ASSIGNED_ROUTES_ID, GEOGRAPHIC_EXTENT_ID,GEOGRAPHIC_EXTENT_NAME,ROUTE_NAME,ROUTE_DIRECTION,FULL_NAME, OFFICIAL_NAME,ROUTE_LINK_ID,ORDINAL,DISTANCE,RELATIVE_DIRECTION,TRANSPORT_LINK_ID,GEOMETRY_GA_TW From IDOTLRS.ROUTE_DETAIL A where (ROUTE_SYSTEM_ID=1) AND MDSYS.SDO_FILTER(A.GEOMETRY_GA_TW, :GeometryFilter,''MASK=INSIDE'') = ''TRUE'' ';
my_task_name := DBMS_SQLTUNE.CREATE_TUNING_TASK(
sql_text => my_sqltext,
bind_list => sql_binds(anyData.convertChar('MDSYS.SDO_GEOMETRY(2003,1050010,NULL,MDSYS.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(288325,222066,326949,245295))')),
user_name => 'IDOTLRS',
scope => 'COMPREHENSIVE',
time_limit => 240,
task_name => 'lrs_tuning_task_27',
description => 'Task to tune a query on delete');
END;
BEGIN
DBMS_SQLTUNE.EXECUTE_TUNING_TASK( task_name => 'lrs_tuning_task_27' );
END;
any advice would be appreciated to get the tuning task functioning.
thanks in advance.

convertObject allowed EXECUTE_TUNING_TASK to run, but stops with an end of file communication. I need to look and see why.
ORA-03113: end-of-file on communication channel
Process ID: 4676
Session ID: 510 Serial number: 60166
I will try the other option and see what happens.
Will file a bug....
Edited by: Eric Abrams on Sep 27, 2011 7:33 AM
Appears to be logged.
ORA-03113 reported when Enequeueing an ADT which contains a SYS.ANYDATA type [ID 799393.1], unpublished Bug 6830995
Edited by: Eric Abrams on Sep 27, 2011 7:41 AM
Edited by: Eric Abrams on Sep 27, 2011 7:42 AM

Similar Messages

  • Getting ora-0600 when running PROFLOAD.sql

    Hi,
    I was getting ORA-0600 when running PROFLOAD.sql script for DBMS_PROFILER (from SYS account). I am running Oracle 9i personal edition on win98. Did anybody had the same problem??

    Here is the full dump..
    QL> @profload
    Package created.
    Grant succeeded.
    Synonym created.
    create or replace library sys.dbms_profiler_lib wrapped
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []
    create or replace
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [16201], [], [], [], [], [], [], []
    Testing for correct installation
    PACKAGE BODY sys.DBMS_PROFILER - missing or invalid
    PL/SQL procedure successfully completed.

  • Error ORA-06502 When using function REPLACE in PL/SQL

    Hi,
    I have a PL/SQL procedure which gives error 'Error ORA-06502 When using function REPLACE in PL/SQL' when the string value is quite long (I noticed this with a string 9K in length)
    variable var_a is of type CLOB
    and the assignment statement where it gives the error is
    var_a := REPLACE(var_a, '^', ''',''');
    Can anyone please help!
    Thanks

    Even then that shouldn't do so:
    SQL> select overload, position, argument_name, data_type, in_out
      2  from all_arguments
      3  where package_name = 'STANDARD'
      4  and object_name = 'LPAD'
      5  order by 1,2
      6  /
    OVERLOAD   POSITION ARGUMENT_NAME                  DATA_TYPE                      IN_OUT
    1                 0                                VARCHAR2                       OUT
    1                 1 STR1                           VARCHAR2                       IN
    1                 2 LEN                            BINARY_INTEGER                 IN
    1                 3 PAD                            VARCHAR2                       IN
    2                 0                                VARCHAR2                       OUT
    2                 1 STR1                           VARCHAR2                       IN
    2                 2 LEN                            BINARY_INTEGER                 IN
    3                 0                                CLOB                           OUT
    3                 1 STR1                           CLOB                           IN
    3                 2 LEN                            NUMBER                         IN
    3                 3 PAD                            CLOB                           IN
    4                 0                                CLOB                           OUT
    4                 1 STR1                           CLOB                           IN
    4                 2 LEN                            NUMBER                         INI wonder what happened?

  • SQL error 3113 occurred when executing EXEC SQL.

    Hi,
    We are facing one typical problem, One background is failing regularly with
    below dump. as we now got all notes giving information, if database  restarted
    taking backup, these type of failures occur, but our database is only down for backup once in a week, but it is failing with frequenly.
    in this two servers are located in different place, in this job tries to connect
    another server to get material statistics.
    It is giving some error message in sm21 with
    SQL error 3113 occurred when executing EXEC SQL.
    work procees in reconnect mode.
    all notes saying these types of dump occur when database restared, but this dump
    even though database is up.
    below is short dump, please can anyone help me from this problem.
    ABAP runtime errors    DBIF_DSQL2_SQL_ERROR
          Occurred on    08.01.2007 at 00:30:28
    >> Short dump has not been completely stored. It is too big.
    SQL error 3113 occurred when executing EXEC SQL.
    What happened?
    The error occurred in the current database connection "AZ1".
    What can you do?
    Note the actions and input that caused the error.
    Inform your SAP system administrator.
    You can print out this message by choosing "Print". Transaction ST22
    allows you to display and manage termination messages, including keeping
    them beyond their normal deletion date.
    Error analysis
    How to correct the error
    Database error text........: "ORA-03113: end-of-file on communication channel#"
    Triggering SQL statement...: "select mara.groes, mara.brgew, mara.ntgew,
    mara.gewei, mara.volum, mara.voleh, mara.mstae, mara.mstde, mara.prdha,
    marc.matnr, marc.werks, marc.mmsta, marc.mmstd from sapr3.mara, sapr3.m
    where sapr3.mara.mandt = sapr3.marc.mandt and sapr3.mara.matnr =
    Internal call code.........: "[DBDS/NEW DSQL]"
    Please check the entries in the system log (Transaction SM21).
    If the error occurred in a non-modified SAP program, you may be
    able to find a solution in the SAP note system.
    If you have access to the note system yourself, use the following
    search criteria:
    "DBIF_DSQL2_SQL_ERROR"
    "ZM2431216 " or "ZM2431216 "
    "EXTRACT_GENERAL_DATA"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
      To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
      To obtain this, call the system log with Transaction SM21
      and select the "Print" function to print out the relevant
      part.
    3. If the programs are your own programs or modified SAP programs,
      supply the source code.
      To do this, you can either use the "PRINT" command in th
      print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error o
      or which actions and input led to the error.
    System environment
    SAP Release.............. "46C"
    Application server....... "essceu3"
    Network address.......... "172.19.119.198"
    Operating system......... "AIX"
    Release.................. "5.3"
    Hardware type............ "00C7ADBD4C00"
    Database server.......... "ukblx176"
    Database type............ "ORACLE"
    Database name............ "EU3"
    Database owner........... "SAPR3"
    Character set............ "es_ES.ISO8859-1"
    SAP kernel............... "46D"
    Created on............... "Jul 9 2006 20:26:33"
    Created in............... "AIX 1 5 00447C4A4C00"
    Database version......... "OCI_920__OCI_7_API "
    Patch level.............. "2257"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 8.0.5.., ORACLE 8.0.6.., ORACLE
    8.1.6.., ORACLE 8.1.7.., ORACLE 9.2.0.., ORACLE 10.2.0.."
    SAP database version..... "46D"
    Operating system......... "AIX 1 4, AIX 2 4, AIX 3 4, AIX 1 5, AIX 2 5, AIX 3
    5, , System build information:,                                      , LCHN :
    841480"
    User, transaction...
    Client.............. 600
    User................ "MPZMMES"
    Language key........ "S"
    Transaction......... " "
    Program............. "ZM2431216 "
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "ZM2431216 " in
    "EXTRACT_GENERAL_DATA".
    The main program was "ZM2431216 ".
    The termination occurred in line 980
    of the source code of program "ZM2431216 " (when callin
    The program "ZM2431216 " was started as a background jo
    Source code extract
    009500              mara.ntgew,
    009510              mara.gewei,
    009520              mara.volum,
    009530              mara.voleh,
    009540              mara.mstae,
    009550              mara.mstde,
    009560              mara.prdha,
    009570              marc.matnr,
    009580              marc.werks,
    009590              marc.mmsta,
    009600              marc.mmstd
    009610        into :w_ops-groes,
    009620              :w_ops-brgew,
    009630              :w_ops-ntgew,
    009640              :w_ops-gewei,
    009650              :w_ops-volum,
    009660              :w_ops-voleh,
    009670              :w_ops-mstae,
    009680              :w_ops-mstde,
    009690              :w_ops-prdha,
    009700              :w_ops-matnr,
    009710              :w_ops-werks,
    009720              :w_ops-mmsta,
    009730              :w_ops-mmstd
    009740        from sapr3.mara, sapr3.marc
    009750        where sapr3.mara.mandt = sapr3.marc.mandt
    009760          and sapr3.mara.matnr = sapr3.marc.matnr
    009770          and sapr3.mara.mandt = :p_mandt
    009780          and sapr3.mara.matnr = :w_ebs-matnr
    009790          and sapr3.marc.werks = :p_owerks
        >    ENDEXEC.
    009810  endform.                    " extract_general_data
    009820  *&
    009830  *&      Form  append_i_ops
    009840  *&
    009850  *      Appends W_OPS to I_OPS
    009860  *
    009870  form append_i_ops.
    009880    append w_ops to i_ops.
    009890  endform.                    " append_i_ops
    009900  *&
    009910  *&      Form  extract_material_description
    009920  *&
    009930  *      Extracts a Material Description from the remote database an
    009940  *      modifies the current record in I_OPS.
    009950  *
    009960  *        >P_SPRAS  Language Key
    009970  *
    009980  form extract_material_description using    p_spras.
    009990    EXEC sql performing set_langauge.
    Contents of system fields
    SY field contents..................... SY field contents............
    SY-SUBRC 0                            SY-INDEX 0
    SY-TABIX 1                            SY-DBCNT 1
    SY-FDPOS 18                            SY-LSIND 0
    SY-PAGNO 0                            SY-LINNO 1
    SY-COLNO 1
    Chosen variables
    Name.......................... Contents.1........2........3....+..
    W_EBS-PRAT4
                                  2
                                  0
    W_OPS-GROES
                                  22222222222222222222222222222222
                                  00000000000000000000000000000000
    W_OPS-BRGEW                    #######
                                  0000000
                                  000000C
    W_OPS-NTGEW                    #######
                                  0000000
                                  000000C
    regards,
    krishnaiah.

    Hi,
    This is usually a SERVER SIDE DATABASE PROBLEM or SQLNET LISTENER (server side) PROBLEM.  The client side should initially be ignored and instead the server should be investigated. In rare cases, this can be caused by client
    side memory or other resource problem, or a DLL version mismatch, but this is
    unlikely.
    Enlist the assistance of your DBA.  Then reproduce the ORA-3113 error on your
    client application.  Ask your DBA to look at the database side Alert.log and
    trace files and look for ANY activity.  Any activity that coincides with your
    ORA-3113 will be a clue.
    REgards
    Vinod

  • Why I got error ORA-02429 when I tried to drop a tablespace?

    I use the following command to drop the tablespace:
    drop tablespace users including contents and datafiles;The error message is below:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    00604. 00000 -  "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
               (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
               can be corrected, do so; otherwise contact Oracle Support.However, I have removed all the tables and indexes in this tablespace.
    Nothing found when I issued the following enquiries.
    select index_name from user_indexes where TABLESPACE_NAME = 'USERS';
    select table_name from user_tables where TABLESPACE_NAME = 'USERS';Is there anything I missed?
    Thanks in advance.

    999274 wrote:
    Could you please let me know how to purge recyclebin ?It's bad form to hijack someone else's thread for your own questions.
    As for your question
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:

    Hello Guru's
    My backup is getting failed...... and the error description as follows,
    BR0051I BRBACKUP 7.00 (32)
    BR0189W Expiration period equal 0 - backup volumes could be immediately overwritten
    BR0055I Start of database backup: behpdcsz.ant 2012-01-05 11.09.09
    BR0484I BRBACKUP log file: /oracle/SID/sapbackup/behpdcsz.ant
    BR0477I Oracle pfile /oracle/SID/102_64/dbs/initSID.ora created from spfile /oracle/SID/102_64/dbs/spfileSID.ora
    BR0280I BRBACKUP time stamp: 2012-01-05 11.09.10
    BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/SID/sapbackup/cntrlSID.dbf''
    ORA-01587: error during control file backup file copy
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    IBM AIX RISC System/6000 Error: 25: Not a typewriter
    Additional information: 7
    Additional information: 899
    Additional information: 819200
    BR0320E Copying of control file to /oracle/SID/sapbackup/cntrlSID.dbf failed
    BR0314E Collection of information on database files failed
    BR0056I End of database backup: behpdcsz.ant 2012-01-05 11.09.10
    BR0280I BRBACKUP time stamp: 2012-01-05 11.09.10
    BR0054I BRBACKUP terminated with errors
    Please helpme,
    Thanks in Advance.
    lakshmi P.

    Hello Friends,
    Solved.....
    Reason is there is no sufficient space for /oracle/SID/sapbackup
    Lakshmi P

  • BR0301E SQL error -27140 at location db_connect-2, SQL statement: DB13

    Hello All,
    We have ECC 6 with
    Database Oracle: 10.2.0.2.0
    OS: HP-UX
    We are facing problem while running Check and Update Optimizer Statistics in DB13. The Job Log says
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000003, user ID LARJHD01)
    Execute logical command BRCONNECT On host madsappr
    Parameters: -u / -jid STATS20090519130903 -c -f stats -t ALL
    SXPG_COMMAND_EXECUTE(LONG)
    COMMANDNAME = BRCONNECT
    OPERATINGSYSTEM = ANYOS
    TARGETSYSTEM = madsappr
    DESTINATION =
    BR0801I BRCONNECT 7.00 (24)
    BR0805I Start of BRCONNECT processing: ceapnjyf.sta 2009-05-19 13.09.05
    BR0484I BRCONNECT log file: /oracle/PRD/sapcheck/ceapnjyf.sta
    BR0280I BRCONNECT time stamp: 2009-05-19 13.09.07
    BR0301E SQL error -27140 at location db_connect-2, SQL statement:
    'CONNECT /'
    ORA-27140: attach to post/wait facility failed
    BR0310E Connect to database instance PRD failed
    BR0280I BRCONNECT time stamp: 2009-05-19 13.09.07
    BR0301E SQL error -27140 at location db_connect-2, SQL statement:
    'CONNECT /'
    ORA-27140: attach to post/wait facility failed
    BR0310E Connect to database instance PRD failed
    BR0806I End of BRCONNECT processing: ceapnjyf.sta2009-05-19 13.09.07
    BR0280I BRCONNECT time stamp: 2009-05-19 13.09.07
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job finished
    Please throw some light on this error.
    =Alex Daniel=

    Hi,
    Please check below links.
    DB13 Jobs are Failing and Brconnect does not work
    Re: Error in CHECKDB
    http://ora-exp.blogspot.com/2006/12/solution-of-ora-27140-attach-to.html
    Thanks,
    Sushil

  • SQL error -1017 at location BrDbConnect-2, SQL statement:

    Hi,
      I get follwoing error while trying brarchiev.
      How do i fix this ?
    brarchive
    BR0002I BRARCHIVE 7.00 (18)
    BR0252E Function fopen() failed for '/oracle/XID/saparch/adyveabv.sve' at location main-5
    BR0253E errno 13: Permission denied
    BR0121E Processing of log file /oracle/XID/saparch/adyveabv.sve failed
    BR0280I BRARCHIVE time stamp: 2008-09-16 20.13.19
    BR0301W SQL error -1017 at location BrDbConnect-2, SQL statement:
    'CONNECT system/*******'
    ORA-01017: invalid username/password; logon denied
    BR0310W Connect to database instance XID failed
    BR0007I End of offline redo log processing: adyveabv.sve 2008-09-16 20.13.19
    BR0280I BRARCHIVE time stamp: 2008-09-16 20.13.19
    BR0005I BRARCHIVE terminated with errors
    3
    Thansk,
    Suman

    Hi,
    I think you did not specify any user on the command line, then BRCONNECT will use the default "SYSTEM/MANAGER"
    As you change the default, BR* fails.
    1) It is totally NOT recommended to use BR* from the command line, it is prefered to be used from the DB13 scheduling tool.
    2) you have to indicate to the BR* tool the user that has to be "used" to connect to the database. This is done with the parameter:
    -u <user>/<password>
    3) I recommend you to create the ops$<sid>adm user ( see note 361641 and 50088 ) and, if you do not use DB13, call the tool with thecommand
            brarchive -u / -s -p initBWP.sap.ssl2020.dd -c
    Please make sure that you have configured the OPS$ user correctly as per following notes:-
    400241    Problems with ops$ or sapr3 connect to Oracle
    50088    Creating OPS$ users on Windows NT/Oracle
    134592    Importing the SAPDBA role ( sapdba_role.sql)
    If the config of the OPS$ user is done correctly and follow the notes above,the issue will be resolved.
    Thanks & Regards,
    Pradeep Srigiri

  • BR0301W SQL error -1012 at location db_file_switch-15, SQL statement:

    Dear all ,
    offline Backup finished with error .
    kindly find the below logs
    #BEGIN /oracle/IRP/sapdata3/undo_1/undo.data1
    BR0280I BRCONNECT time stamp: 2010-02-07 03.00.28
    BR0307I Shutting down database instance IRP ...
    BR0280I BRCONNECT time stamp: 2010-02-07 03.02.39
    BR0308I Shutdown of database instance IRP successful
    BR0280I BRCONNECT time stamp: 2010-02-07 03.02.39
    BR0301W SQL error -1012 at location db_file_switch-15, SQL statement:
    'SELECT NVL(BYTES, 0) FROM DBA_DATA_FILES WHERE FILE_ID = 2'
    ORA-01012: not logged on
    BR0280I BRCONNECT time stamp: 2010-02-07 03.02.39
    BKI0023I: Time: 02/07/10 03:04:09 Done: 9.766 GB (6.8 %) of 142.774 GB. Estimated end time: 02/07/10 03:58:24.
    BKI0053I: Time: 02/07/10 03:04:09 Object: 1 of 46 done: /oracle/IRP/sapdata3/undo_1/undo.data1 with: 9.766 GB saved with description IRP___A0G5CX5F1D.
    BR0280I BRCONNECT time stamp: 2010-02-07 03.04.11
    #END /oracle/IRP/sapdata3/undo_1/undo.data1
    BR0280I BRCONNECT time stamp: 2010-02-07 03.04.11
    BR0280I BRBACKUP time stamp: 2010-02-07 03.04.11
    #FILE..... /oracle/IRP/sapdata3/undo_1/undo.data1
    #SAVED.... IRP___A0G5CX5F1D
    BKI0027I: Time: 02/07/10 03:04:11 Object: 2 of 46 in process: /oracle/IRP/sapdata2/sr3700_5/sr3700.data5 Size: 4.336 GB, MGMNT-CLASS: WEEKLYMGMTCLASS, TSM-Server: PRODORADB_TDP@10
    BR0280I BRCONNECT time stamp: 2010-02-07 03.04.13
    #BEGIN /oracle/IRP/sapdata2/sr3700_5/sr3700.data5
    BR0280I BRCONNECT time stamp: 2010-02-07 03.04.13
    BR0301W SQL error -1012 at location db_file_switch-15, SQL statement:
    'SELECT NVL(BYTES, 0) FROM DBA_DATA_FILES WHERE FILE_ID = 28'
    ORA-01012: not logged on
    regards

    Hi
    Have a look at note : 1235951
    what version of the Brtools are you running ?
    Mark

  • R0301E SQL error -9218 at location BrInitOraCreate-5, SQL statement

    Hello,
    Could you help me please, I have this issue with the backup online.
    R0484I BRBACKUP log file: E:\oracle\<SID>\sapbackup\behaduyb.anf                                                                               
    R0280I BRBACKUP time stamp: 2011-10-18 03.00.11                                                                               
    R0301E SQL error -9218 at location BrInitOraCreate-5, SQL statement:                                                                         
    /* BRBACKUP AT PROF_CONN */ CREATE PFILE = 'E:\oracle\<SID>\112\database\sap<SID>.ora' FROM SPFILE = 'E:\oracle\<SID>\112\database\spfile<SID>.ora'' 
    RA-09218: sfrfs: failed to refresh file size                                                                               
    SD-04028: unable to write line to file                                                                               
    R0303E Determination of Oracle version failed                                                                               
    R0056I End of database backup: behaduyb.anf 2011-10-18 03.00.11                                                                               
    R0280I BRBACKUP time stamp: 2011-10-18 03.00.11                                                           
    Thanks a lot in advance.

    the problem is resolved
    the E: was full
    thxxx

  • Runtime error ora-12703 when running utl_mail

    hello,
    I call a procedure through push button to use UTL_MAIL.send(..) and I got error ora-12703.
    There is no error during compilation.
    For your info, I manage to execute the same code on stored procedure using TOAD and I received the email sent using TOAD and telnet from my local.
    For info:
    Forms developer version:
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    procedure:
    PROCEDURE test_email IS
    BEGIN
    UTL_MAIL.send (
    sender => '[email protected]',
    recipients => '[email protected]',
    cc => '[email protected]',
    bcc => '[email protected]',
    subject => 'Test',
    MESSAGE => 'Hello World',
    mime_type => 'text; charset=us-ascii',
    priority => 3
    END;
    Could anyone please help me on this.
    Regards,
    Dayang

    Hi All,
    I tried another function that use utl_smtp to send email.
    Again I could recieve email when I execute the function in TOAD but got error ora-12703 when I ran using forms.
    When I ran the form, only "debug 1st" apear, then after that it returned error ora-12703.
    Function:
    FUNCTION SEND_MAIL
    (pIssuer IN VARCHAR2,
    pReceiver IN VARCHAR2,
    pSender IN VARCHAR2,
    pSubject IN VARCHAR2,
    pMessage IN VARCHAR2) RETURN VARCHAR2 IS
    c utl_smtp.connection;
    respuesta utl_smtp.reply;
    pServer VARCHAR2(50) := '10.0.3.79';
    CRLF CHAR(2) := CHR(13) || CHR(10);
    BEGIN
    message('debug 1st');
    -- Abre la conexión al Server de correo
    c := utl_smtp.open_connection(pServer);
    message('debug2nd');
    respuesta := utl_smtp.helo(c, pServer);
    -- Inicia el Issuer del correo.
    respuesta := utl_smtp.mail(c, pSender);
    -- Inicia el Receiver
    respuesta := utl_smtp.rcpt(c, pReceiver);
    respuesta := utl_smtp.open_data(c);
    -- Escribe la cabecera del e-mail
    utl_smtp.write_data(c, 'From: ' || pIssuer || CRLF);
    utl_smtp.write_data(c, 'To: ' || pReceiver || CRLF);
    -- Escribe el Subject
    utl_smtp.write_data(c, 'Subject: ' || pSubject || CRLF);
    -- Escribe el texto del Message.
    utl_smtp.write_data(c, CRLF || pMessage);
    utl_smtp.write_data(c, CRLF || '.');
    respuesta := utl_smtp.close_data(c);
    -- Cierra la conexión
    respuesta := utl_smtp.quit(c);
    RETURN '0';
    EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    utl_smtp.quit(c);
    RETURN sqlerrm;
    --raise_application_error(-20000,
    -- 'El envío del email ha fallado devolviendo el siguiente error: ' || sqlerrm);
    END;
    Regards,
    Dayang

  • Preparing Dynamic SQL statement for inserting in Pro*C

    Hi Friends,
    From quite some time i am struggling writing Dynamic SQL statement for dynamic insert and update in Pro*C.
    Can somebody go through my code and suggest me the rigth way of doing.
    Right now it throws an error saying " Error while updating ORA-00904: invalid column name "
    Please help me.
    Girish.
    int main()
    EXEC SQL BEGIN DECLARE SECTION;
    char *uid ="scott/tiger";
    static char sqlstmt[129];
    struct /* DEPT record */
    int dept_num;
    char dept_name[15];
    char location[14];
    } dept_rec;
    EXEC SQL END DECLARE SECTION;
    EXEC SQL WHENEVER SQLERROR DO sql_error();
    EXEC SQL CONNECT :uid;
    dept_rec.dept_num = 50;
    strcpy(dept_rec.dept_name,"ADMIN");
    strcpy(dept_rec.location,"IN");
    strcpy(sqlstmt,"UPDATE dept set DNAME = dept_rec.dept_name where DEPTNO = dept_rec.dept_num");
    EXEC SQL EXECUTE IMMEDIATE:sqlstmt;
    EXEC SQL COMMIT;
    exit(0);
    void sql_error()
    printf("\nError while updating %s",sqlca.sqlerrm.sqlerrmc);
    EXEC SQL ROLLBACK;
    }

    A bit rusty here but this is how I see it.
    Think of it this way ..
    all Oracle is going to see is:
    UPDATE dept set DNAME = dept_rec.dept_name where DEPTNO = dept_rec.dept_num
    Its NOT going to know what dept_rec.dept_name is or dept_rec.dept_num is ..
    it doesnt go back and fill in those values.
    You need something like
    strcpy(sqlstmt,"UPDATE dept set DNAME = \"");
    strcat(sqlstmt,dept_rec.dept_name);
    strcat(sqlstmt,"\" where DEPTNO = ");
    strcat(sqlstmt,dept_rec.dept_num);
    printf(sqlsmt); # Just to be sure the update statement look right during testing.

  • APP-ALR-04106: Please correct the user-defined SQL statement for this alert

    Hi All,
    I have created an alert for engineering module in R12. It got tested and was working fine. when the user testing it, while trigger the alert getting the error, "APP-ALR-04106: Please correct the user-defined SQL statement for this alert".
    when verified the alert, it got verified and ran also. It parsed the query successfully and when run it fetched few records.
    Need help in resolving the issue.
    Thanks in advance.
    Regards,
    sri
    Edited by: user10939296 on Jan 18, 2010 1:16 AM

    Hi Sri;
    I have already gone through the Note: 948037.1. But this note is related to 11i. The solution provided in the Note is for 11i.
    I am facing this issue in R12. Is this patch applicable to R12?I belive its not. But u can check Solution part 4 for your instance, at least it can give you idea. The other note in metalink related bug and all for R11 too.
    I belive its better way to rise Sr while waiting other forum user response to that thread
    Regard
    Helios

  • Problem with SQL Statement for Result Filtering

    Dear Visual Composer Experts,
    Here is another Question from me: I have a SQL Query that is working as the data service
    Select AB.AgingBandID, AB.AgingBand,
    Sum(Case when priority='Emergency' then '1' Else 0 End) as [Emergency],
    Sum(Case when priority='Ugent' then '1' Else 0 End) as Ugent,
    Sum(Case when priority='High' then '1' Else 0 End) as High,
    Sum(Case when priority='Medium' then '1' Else 0 End) as Medium,
    Sum(Case when priority='Low' then '1' Else 0 End) as Low
    from DimAgingBand AB left outer join
    (Select AgingBandID , priority , yeardesc
    from vNotifications where YearDesc = (select year(getdate())-1)) as vN
    on AB.AgingBandID=vN.AgingBandID
    where AB.AgingBandID<>'1'  
    Group by  AB.AgingBandID, AB.AgingBand
    Order by AB.AgingBandID
    That would return me a table as in the following:
         Agingband     E     U     H     M     L
         < 1week     0     0     0     0     1
         1 - 2 weeks     0     0     0     0     0
         2 - 4weeks     0     0     0     0     1
    > 1month     8     2     1     1     6
    Now that I would like to add some parameters to filter the result, so I modify the query and put it in the SQL Statement input port of the same data service. The query is like this:
         "Select AB.AgingBandID, AB.AgingBand,Sum(Case when priority='Emergency' then '1' Else 0 End) as [Emergency],Sum(Case when priority='Ugent' then '1' Else 0 End) as Ugent,Sum(Case when priority='High' then '1' Else 0 End) as High,Sum(Case when priority='Medium' then '1' Else 0 End) as Medium,Sum(Case when priority='Low' then '1' Else 0 End) as Low from DimAgingBand AB left outer join (Select AgingBandID , priority , yeardesc from vNotifications where YearDesc like '2009%' and Branch like '" & if(STORE@selectedBranch=='ALL', '%', STORE@selectedBranch) & "' and MainWorkCentre like '%') as vN on AB.AgingBandID=vN.AgingBandID where AB.AgingBandID<>'1' Group by AB.AgingBandID, AB.AgingBand Order by AB.AgingBandID"
    However this input port query keeps giving me error as NullPointerException. I have actually specified a condition where the query will run if only STORE@selectedBranch != u2018u2019.
    I have other filtering queries working but they are not as complicated query as this one. Could it be possible that query in the input port cannot handle left outer join?
    Could it be anything else?
    Help is very much appreciated.
    Thanks & Regard,
    Sarah

    Hi,
    Thank you very much for your replys. I've tested if the dynamic value of the condition is integer, it's OK
    But if the ClassID type is not integer, it's string, I write  a SQL Statement like:
    "Select DBADMIN.Class.ClassName from DBADMIN.Class where DBADMIN.Class.ClassID = '1' "
    or with dynamic condition:
    "Select DBADMIN.Class.ClassName from DBADMIN.Class where DBADMIN.Class.ClassID = '"&@ClassID&"'"
    or I write the SQL Statement for insert/update/delete data,
    I always have errors.
    I've tested if the dynamic value of the condition is integer, it's OK
    Do you know this problem ?
    Thank you very much & kindly regards,
    Tweety

  • Error with clob column: "No pl/sql translation for the blind type given for this bind variable"

    This is reports 11g
    I've got a clob column. Reports seems to recognize its type, but if I try to reference it in a format trigger, I get this error at compile time:
    "No pl/sql translation for the blind type given for this bind variable"

    Actually, Reports is in something better than Forms.
    Neither Forms nor Reports do not have "complete" SQL engine (both have only "complete" PL/SQL engine), but have their own SQL parser, which does not understand SQL commands after the database 8.0.
    But, in Reports Data Model - SQL Query Statement, we can write "modern" SQL statement (> database 8.0), because Reports sent it directly to the database, without using their own SQL parser.
    For example, in Reports Data Model - SQL Query Statement, we can write this (scalar subquery expressions, in bold):
    select empno,
           ename,
           deptno,
           (select dname from dept where deptno = emp.deptno) dname
      from emp
    order by empno;
    although scalar subquery expressions was introduced in the database 9.0.1, and in databases 8.0 and 8.1 we should write someting like this:
    select emp.empno,
           emp.ename,
           emp.deptno,
           dept.dname
      from emp,
           dept
    where dept.deptno = emp.deptno
    order by empno;
    Regards,
    Zlatko

Maybe you are looking for

  • Table in a table

    Hi, I have to display per page the following information: - customeraddress (name, street, postcode, country) - articles( this is a table which can contain 1 or more articles) The page can be extended to 2 pages. And the complicated thing is that Cus

  • Need driver for iPod video and Windows Vista

    I had an iPod video and it synched no problem to my computer. There was a hardware issue inside the iPod so i sent it back and got a new one. Now when I connect it to my computer, it brings up the looking for a driver window and says it can't find it

  • To display the list of File Name in a report region from a Directory

    Hello All, Can any one guide me in displaying the list of file name from a file system directory in a report region with link? On click of the link it should display the open/save dialog box. I will appreciate the early solution. (It is bit urgent) T

  • Reg: Selection screen tabstrip

    Hi all,   I need to create a screen with tab strip and inside the tab it should hold a subscreen containing text element and checkbox and a  button. This is to be done using the selection-screen begin of screen method and not as a module pool. SELECT

  • Field Symbols and dinamicaly selecting tables

    I want to be able to select dinamicaly witch table to print. their structure is the very similar but not equal (the order of the elements change) so far im getting a "The data object "<WA_T>" has no structure and therefore no component ..." error how