DBMS_DATAPUMP parameter problem

Hello

Try to use the aPL/SQL 11g R1 procedure which did a quick export fo a few tables using dbms_datapump which replaces the same output file whenever it is running, the script below. Problem is that it will not overwrite the existing file - I found that there is a parameter REUSE_DUMPFILES, who works with the command of the expdp line but I am unable to be recognized in my script!

I tried the next line using high - and low of breaks 'Y', but it fails on compiling. What I am doing wrong?

dbms_datapump.set_parameter (handle = > h1, name = > 'REUSE_DUMPFILES', value = > 'y');


Main script

CREATE or REPLACE procedure DCH_ERPM.instant_dump
as
NUMBER of H1;

Start

H1: = dbms_datapump.open (operation = > 'EXPORT', job_mode = > 'TABLE', job_name = > ", version = > 'COMPATIBLE');
dbms_datapump.set_parallel (handle = > h1, degree = > 1);
dbms_datapump.set_parameter (handle = > h1, name = > 'KEEP_MASTER', value = > 0);
dbms_datapump.metadata_filter (manage = > h1, name = > 'SCHEMA_EXPR', value = > 'IN ("DCH_ERPM")');
dbms_datapump.metadata_filter (manage = > h1, name = > 'NAME_EXPR', value = > 'IN ("PF00_INDICATORS", "PF01_ANNUALCRIT", "PF02_VALUES")');
dbms_datapump.add_file (handle = > h1, filename = > 'ERPM_quick' | to_char (sysdate, 'YYMMDDHH24MISS') |'.) (DMP", directory = >"DATA_PUMP_DIR", filetype = > 1);
dbms_datapump.set_parameter (handle = > h1, name = > 'INCLUDE_METADATA', value = > 1);
dbms_datapump.set_parameter (handle = > h1, name = > 'DATA_ACCESS_METHOD', value = > "AUTOMATIC").
dbms_datapump.set_parameter (handle = > h1, name = > "ESTIMATION", value = > 'BLOCKS');
dbms_datapump. START_JOB (handle = > h1, skip_current = > 0, abort_step = > 0);
dbms_datapump. Detach (handle = > h1);

end;

Hi Steve,.

You may need to call external shell program to remove the existing files of the procedure. Maybe following help.

http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:16212348050

Concerning

Tags: Database

Similar Questions

  • URL parameter problem

    Hello

    I'm new to the development of blackberry applications. I try to access a Web service, I can access using the http connection. When passing a parameter in the URL includes only one word then it works fine and answers correctly, but when I pass the same variable with a different value that contains several words separated by space, then it generates an error. I tried to pass the same URL in the browser, but the browser gives me good performance.

    I believe strongly that there is a problem when the parameter is sent. Please help me

    Thanks in advance

    If you only want to add parameters using percent encoding:

    http://en.Wikipedia.org/wiki/percent-encoding

  • Data parameter problem

    Hello

    I am facing a problem with the parameter Data;

    I can't able to query the data for different dates in the range, but I am able to query the data for the same date in the range.

    Select the statement-

    Select RCT.GL_DATE in the RCT RA_CUST_TRX_LINE_GL_DIST_ALL

    where TO_CHAR (TRUNC (RCT.GL_DATE), 'DD-MON-YY')

    between TO_CHAR (TRUNC (TO_DATE(:P_GL_DATE_LOW)), 'DD-MON-YY')

    AND TO_CHAR (TRUNC (TO_DATE(:P_GL_DATE_HIGH)), 'DD-MON-YY');

    I am able to get the data for the date range - 05-JAN-2015/05-JAN-2015, 07-JAN-2015/07-JAN-2015 and so on...

    I'm not able to get the data for the date range - 05-JAN-2015/07-JAN-2015, 07-JAN-2015/09-JAN-2015 and so on...

    Can someone help me on this issue.

    Thanks in advance!

    Dilip Manon

    As John pointed out, use the date data type to compare dates:

    Select RCT.GL_DATE in the RCT RA_CUST_TRX_LINE_GL_DIST_ALL

    where RCT.GL_DATE

    (between TO_DATE(:P_GL_DATE_LOW)), 'DD-MON-YYYY')

    (AND TO_DATE(:P_GL_DATE_HIGH)), 'DD-MON-YYYY');

    Using TO_CHAR to compare dates, not only do you risk to make mistake and forget certain values, but also in this case stop you an index on GL_DATE may be used.

  • Parameter problem library persistence using associations

    Hello

    I have recently begun to use the Cairngorm persistence library and ran into a problem with the settings sometimes doesn't work does not correctly when you are using associations.  I use the library of persistence 0.10, 3.5 Flex and AIR 2.0.

    The problem seems to be related to parameter names, and I was able to get around by renaming some of my settings.  I write about this here to try to determine the cause (and if it's a bug, hopefully get it fixed).

    Here's a simplified example where I see the problem.

    I create two classes, ObjectAssociatedWithPath and access path:

    package
    {
        public class Path
        {
            [Id]
            [Mapped]
            public var pathId:int;
    
            [Mapped]
            public var path:String = "C:/";
    
            public function Path()
            {
            }
        }
    }
    

    package
    {
        public class ObjectAssociatedWithPath
        {
            [Id]
            [Mapped]
            public var objectId:int;
    
            [Association]
            public var path:Path;
    
            public function ObjectAssociatedWithPath()
            {
            }
        }
    }
    

    In my SqlMap, I have statements to create and insert elements into an array of path and a table OBJECTASSOCIATEDWITHPATH:

    <grammar:Create id="createPathTable">
         CREATE TABLE IF NOT EXISTS PATH( PATHID INTEGER PRIMARY KEY, PATH TEXT )
    </grammar:Create>
    
    <grammar:Create id="createObjectAssociatedWithPathTable">
         CREATE TABLE IF NOT EXISTS OBJECTASSOCIATEDWITHPATH( OBJECTID INTEGER PRIMARY KEY, PATHID INTEGER )
    </grammar:Create>
    
    <grammar:Insert id="insertPath" type="{ Path }">
         INSERT INTO PATH ( PATH ) VALUES ( :path )
    </grammar:Insert>
    
    <grammar:Insert id="insertObjectAssociatedWithPath" type="{ ObjectAssociatedWithPath }">
         INSERT INTO OBJECTASSOCIATEDWITHPATH ( PATHID ) VALUES ( :pathId )
    </grammar:Insert>
    

    Finally, I have a function that creates the tables and inserts an object in each of them:

    private function parameterTest():void
    {
         var sqlSession:ISqlSession = persistenceClient.createSqlSession();
    
         sqlSession.beginTransaction();
    
         sqlSession.create("createPathTable", new CreateResponder(resultHandler, faultHandler));
         sqlSession.create("createObjectAssociatedWithPathTable", new CreateResponder(resultHandler, faultHandler));
    
         var path:Path = new Path();
         var objectAssociatedWithPath:ObjectAssociatedWithPath = new ObjectAssociatedWithPath();
         objectAssociatedWithPath.path = path;
    
         sqlSession.insertItem("insertPath", path, new InsertResponder(insertResultHandler, faultHandler));
         sqlSession.insertItem("insertObjectAssociatedWithPath", objectAssociatedWithPath, new InsertResponder(insertResultHandler, faultHandler));
    
         sqlSession.commitTransaction(new CommitTransactionResponder(resultHandler, faultHandler));
    }
    
    private function resultHandler():void
    {
    }
    
    private function insertResultHandler(rowId:Number, rowsAffected:Number):void
    {
    }
    
    private function faultHandler(error:SQLError):void
    {
         var errorMessage:String = "Message: " + error.message + "\nOperation: " + error.operation + "\nDetails: " + error.details;
         Alert.show(errorMessage);
    }
    

    When I run this function, I get the following error:

    Mismatch in parameter count. Found 1 in SQL specified and 2 value(s) set in parameters property.
    Expecting values for ':pathId'
    

    When attempting to execute the instruction at 'insertObjectAssociatedWithPath '.  If I rename "pathId' to 'thePathId' property, or specify a different setting for this property, i.e., name

            [Id]
            [Mapped(parameter="thePathId")]
            public var pathId:int;
    

    It seems to work correctly.

    For the association of the way, I think the constructor parameter to add pathId AND path to the settings property, even if I'm only using the pathId parameter.

    Anyone have any idea why this is happening?

    Thank you

    Jay

    This is caused by the hasNamedParameter @ NamedParameterBuilder function that checks for the existence of the already added parameters.

    You have already added the 'path' parameter in your mapping, unfortunatelly hasNamedParameter() checks if sqlStatement.text.indexOf (parameter) >-1

    and because *: pathId *.indexOf(":path") >-1 the pathId is omitted.

  • Parameter problem (Date)

    Hi experts
    I use developer and oracle 10 g database
    work on oracle RBA ERP R12

    My problem in date

    If I have a transaction July 31, 2010, but it doesnot show when I gave my parameter as values

    : P_DATE_FROM = JULY 1, 2010
    : P_DATE_TO = JULY 31, 2010

    If the passage of a parameter value as this

    : P_DATE_FROM = JULY 1, 2010
    : P_DATE_TO = AUGUST 1, 2010

    July 31, 2010 transaction then shows...

    my code
    SELECT MMT.TRANSACTION_DATE,
         TRIM('-' FROM (ACC.SEGMENT1 || '-' || ACC.SEGMENT2 || '-' || ACC.SEGMENT3 || '-' ||
         ACC.SEGMENT4 || '-' || ACC.SEGMENT5 || '-' || ACC.SEGMENT6 || '-' ||
         ACC.SEGMENT7 || '-' || ACC.SEGMENT8 || '-' || ACC.SEGMENT9 || '-' ||
         ACC.SEGMENT10 || '-' || ACC.SEGMENT11 || '-' || ACC.SEGMENT12)) ACCOUNT_CODE,
         APPS.GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION(ACC.CHART_OF_ACCOUNTS_ID, ACC.CODE_COMBINATION_ID, 'Y') ACCOUNT_DESCRIPTION,
         MCB.SEGMENT1 || '-' || MCB.SEGMENT2 || '-' || MCB.SEGMENT3 ITEM_CATEGORY,
         MSIB.SEGMENT2 ITEM_CODE, MSIB.DESCRIPTION ITEM_DESCRIPTION, 
         SUM(MMT.TRANSACTION_QUANTITY) PRIMARY_QUANTITY,
         SUM(NVL(ACC.ACCOUNTED_DR, 0) - NVL(ACC.ACCOUNTED_CR, 0)) AMOUNT
    FROM 
         (
              SELECT SOURCE_ID_INT_1, ENTITY_ID
              FROM XLA_TRANSACTION_ENTITIES_UPG 
              WHERE APPLICATION_ID IN (555, 707)
              AND ENTITY_CODE IN ('MTL_ACCOUNTING_EVENTS', 'INVENTORY')
         ) XTE, 
         (
              SELECT EVENT_ID, AE_HEADER_ID
              FROM XLA_AE_HEADERS
              WHERE EVENT_TYPE_CODE IN 
                   ('MISC_RECEIPT', 'MISC_ISSUE', 'MOVE_ORDER_ISSUE', 'MOVE_ORDER_XFER', 'MISC_RCPT', 'MOVE_ORDER_TXFR')
         ) XAH, 
         (
              SELECT XAL.CODE_COMBINATION_ID, XAL.AE_HEADER_ID, GCC.CHART_OF_ACCOUNTS_ID,
              XAL.ACCOUNTED_DR, XAL.ACCOUNTED_CR,
              GCC.SEGMENT1, GCC.SEGMENT2, GCC.SEGMENT3, GCC.SEGMENT4, GCC.SEGMENT5, 
              GCC.SEGMENT6, GCC.SEGMENT7, GCC.SEGMENT8, GCC.SEGMENT9, GCC.SEGMENT10, 
              GCC.SEGMENT11, GCC.SEGMENT12, GCC.SEGMENT13, GCC.SEGMENT14, GCC.SEGMENT15
              FROM XLA_AE_LINES XAL, GL_CODE_COMBINATIONS GCC
              WHERE GCC.CODE_COMBINATION_ID = XAL.CODE_COMBINATION_ID
              AND NVL(GCC.SEGMENT1, '%') BETWEEN NVL(:P_SEG1_FROM, NVL(GCC.SEGMENT1, '%')) 
                  AND NVL(:P_SEG1_TO, NVL(GCC.SEGMENT1, '%'))
              AND NVL(GCC.SEGMENT2, '%') BETWEEN NVL(:P_SEG2_FROM, NVL(GCC.SEGMENT2, '%')) 
                  AND NVL(:P_SEG2_TO, NVL(GCC.SEGMENT2, '%'))
              AND NVL(GCC.SEGMENT3, '%') BETWEEN NVL(:P_SEG3_FROM, NVL(GCC.SEGMENT3, '%')) 
                  AND NVL(:P_SEG3_TO, NVL(GCC.SEGMENT3, '%'))
              AND NVL(GCC.SEGMENT4, '%') BETWEEN NVL(:P_SEG4_FROM, NVL(GCC.SEGMENT4, '%')) 
                  AND NVL(:P_SEG4_TO, NVL(GCC.SEGMENT4, '%'))
              AND NVL(GCC.SEGMENT5, '%') BETWEEN NVL(:P_SEG5_FROM, NVL(GCC.SEGMENT5, '%')) 
                  AND NVL(:P_SEG5_TO, NVL(GCC.SEGMENT5, '%'))
              AND NVL(GCC.SEGMENT6, '%') BETWEEN NVL(:P_SEG6_FROM, NVL(GCC.SEGMENT6, '%')) 
                  AND NVL(:P_SEG6_TO, NVL(GCC.SEGMENT6, '%'))
              AND NVL(GCC.SEGMENT7, '%') BETWEEN NVL(:P_SEG7_FROM, NVL(GCC.SEGMENT7, '%')) 
                  AND NVL(:P_SEG7_TO, NVL(GCC.SEGMENT7, '%'))
              AND NVL(GCC.SEGMENT8, '%') BETWEEN NVL(:P_SEG8_FROM, NVL(GCC.SEGMENT8, '%')) 
                  AND NVL(:P_SEG8_TO, NVL(GCC.SEGMENT8, '%'))
              AND NVL(GCC.SEGMENT9, '%') BETWEEN NVL(:P_SEG9_FROM, NVL(GCC.SEGMENT9, '%')) 
                  AND NVL(:P_SEG9_TO, NVL(GCC.SEGMENT9, '%'))
              AND NVL(GCC.SEGMENT10, '%') BETWEEN NVL(:P_SEG10_FROM, NVL(GCC.SEGMENT10, '%')) 
                  AND NVL(:P_SEG10_TO, NVL(GCC.SEGMENT10, '%'))
              /*AND NVL(GCC.SEGMENT11, '%') BETWEEN NVL(:P_SEG11_FROM, NVL(GCC.SEGMENT11, '%')) 
                  AND NVL(:P_SEG11_TO, NVL(GCC.SEGMENT11, '%'))
              AND NVL(GCC.SEGMENT12, '%') BETWEEN NVL(:P_SEG12_FROM, NVL(GCC.SEGMENT12, '%')) 
                  AND NVL(:P_SEG12_TO, NVL(GCC.SEGMENT12, '%'))
              AND NVL(GCC.SEGMENT13, '%') BETWEEN NVL(:P_SEG13_FROM, NVL(GCC.SEGMENT13, '%')) 
                  AND NVL(:P_SEG13_TO, NVL(GCC.SEGMENT13, '%'))
              AND NVL(GCC.SEGMENT14, '%') BETWEEN NVL(:P_SEG14_FROM, NVL(GCC.SEGMENT14, '%')) 
                  AND NVL(:P_SEG14_TO, NVL(GCC.SEGMENT14, '%'))
              AND NVL(GCC.SEGMENT15, '%') BETWEEN NVL(:P_SEG15_FROM, NVL(GCC.SEGMENT15, '%')) 
                  AND NVL(:P_SEG15_TO, NVL(GCC.SEGMENT15, '%'))*/
         ) ACC,
         MTL_MATERIAL_TRANSACTIONS MMT, XLA_EVENTS XE, MTL_SYSTEM_ITEMS_B MSIB, 
         MTL_ITEM_CATEGORIES MIC, MTL_CATEGORIES_B MCB, MTL_CATEGORY_SETS MCS
    WHERE 
         XTE.SOURCE_ID_INT_1 = MMT.TRANSACTION_ID
         AND XTE.ENTITY_ID = XE.ENTITY_ID
         AND XE.EVENT_ID = XAH.EVENT_ID
         AND XAH.AE_HEADER_ID = ACC.AE_HEADER_ID
         AND MMT.INVENTORY_ITEM_ID = MSIB.INVENTORY_ITEM_ID
         AND MMT.ORGANIZATION_ID = MSIB.ORGANIZATION_ID
         AND MMT.INVENTORY_ITEM_ID = MIC.INVENTORY_ITEM_ID
         AND MMT.ORGANIZATION_ID = MIC.ORGANIZATION_ID
         AND MIC.CATEGORY_ID = MCB.CATEGORY_ID
         AND MIC.CATEGORY_SET_ID = MCS.CATEGORY_SET_ID
         AND UPPER(MCS.CATEGORY_SET_NAME) LIKE '%IIL%INVENTORY%'
         AND MMT.TRANSACTION_DATE BETWEEN NVL(:P_DATE_FROM, '01-JAN-1000') AND NVL(:P_DATE_TO, '31-DEC-4712')
         --AND NVL(MSIB.SEGMENT2, '%%') BETWEEN NVL(:P_ITEM_FROM, NVL(MSIB.SEGMENT2, '%%')) 
         --     AND NVL(:P_ITEM_TO, NVL(MSIB.SEGMENT2, '%%'))
    GROUP BY MMT.TRANSACTION_DATE,
         TRIM('-' FROM (ACC.SEGMENT1 || '-' || ACC.SEGMENT2 || '-' || ACC.SEGMENT3 || '-' ||
         ACC.SEGMENT4 || '-' || ACC.SEGMENT5 || '-' || ACC.SEGMENT6 || '-' ||
         ACC.SEGMENT7 || '-' || ACC.SEGMENT8 || '-' || ACC.SEGMENT9 || '-' ||
         ACC.SEGMENT10 || '-' || ACC.SEGMENT11 || '-' || ACC.SEGMENT12)),
         APPS.GL_FLEXFIELDS_PKG.GET_CONCAT_DESCRIPTION(ACC.CHART_OF_ACCOUNTS_ID, ACC.CODE_COMBINATION_ID, 'Y'),
         MCB.SEGMENT1 || '-' || MCB.SEGMENT2 || '-' || MCB.SEGMENT3,
         MSIB.SEGMENT2, MSIB.DESCRIPTION--, MMT.TRANSACTION_QUANTITY

    If you're dealing with dates, treat them as dates and not as strings.

    for example

    this:

         AND MMT.TRANSACTION_DATE BETWEEN NVL(:P_DATE_FROM, '01-JAN-1000') AND NVL(:P_DATE_TO, '31-DEC-4712')
    

    should be this:

         AND MMT.TRANSACTION_DATE BETWEEN NVL(to_date(':P_DATE_FROM','DD-MON-YYYY'), to_date('01-JAN-1000','DD-MON-YYYY')) AND NVL(to_date(':P_DATE_TO','DD-MON-YYYY'), to_date('31-DEC-4712','DD-MON-YYYY'))
    
  • Primary key several columns with Date - parameter problem

    All,
    I'm having a problem where I can not find the answer to. I looked upstairs and down nothing helps. Help, please.

    The issue is that I have a table that has a primary key of several columns and a column is a date, and the other is a string. I have a simple search and I want a picture update of the results table that users can click on and go to another page to update this record. The question is when I launch an appeal based on the updated image, I also want to define the settings based on the record that I have selected. So I put the string parameter and that works very well. The problem is with the date. When I put the setting date this market but he chops off the coast of the timestamp. Later when I try to access this setting "("dateParameter") pageContext.getParameter"; that it will bring a date as December 15, 2008 but I need the whole date and time stamp (i.e., December 15, 2008 10:20:33) to properly identify the record.

    Help, please!

    Thank you
    Colby J

    Hello

    because each parameter go into url as a format string, so you will never get the full date with timestamp setting, the solution would be to

    1.) set a fire on the photo update action, give his name to the event as "update."

    (2.) by clicking Update photograph fires this event.

    (3.) processFormrequest in the controller method

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If ("update".equals (pageContext.getParameter ("event")))
    {
    This will give you the select line when you click Update

    String rowReference = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Line VORowImpl = (EmployeeSummaryVORowImpl) am.findRowByRef (rowReference);
    Timestamp sdateVal = (String) row.getAttribute ("Date value");

    This will transfer the values to the next page
    pageContext.putTransactionTransientValue ("transferdvalue", sdateVal);

    }

    and in the next page, you can get the value as follows

    timestamp getDateVal = pageContext.getTransactionTransientValue ("transferdvalue" l);

    hope this will solve your problem, please let me know if you face any problem

    thanx
    Pratap

  • On VMware Service Manager 9 parameter problem

    Hi guys,.

    I have vCD1.51 to build a few days ago, and I would like to integrate VSM9 vCD.

    I am facing a problem, I downloaded it as the graph.

    I tried to enter vCD UserID and password, but I still can't get. He always the failure of authencation pop-up windows.

    Who can tell me what I should input in the field ID and password or is something wrong?

    VSM9.jpg

    Sincerely

    Rocky

    Hey Rocky,.

    It is really good news that finally you understood the question and he got resloved. Now enjoy the service manager magic!

    Kind regards

    MG

  • Report parameter problem

    Hi all

    I have a rdf report version 10g, recorded in oralce Apps 11i. I have a setting for the report.

    When I pass the value for this setting of SRS window, report does not exit.

    But when I pass as the value of returned null value. Its a character type parameter. I checked the token in the definition of oracle concurrent program and its fine.

    Also when I run the report using report bulder its market very well in both cases.

    Any suggestion, which cause the setting issue.

    Thank you

    I deleted the previous parameter and created the same setting again and it worked.

    Thank you

    Vikas

  • parameter problem...

    I had a form for our JOBORDER society...
    This joborder entry takes place at autour in 23 place all over the country...
    Now, I have a field called LOCATION in my joborder form...
    Whenever I have create a joborder I must specify the location...
    I want to edit my forms so that... .at first page I get to select the location (IE pass parameter)... He (location selected on the first page) should automatically enter in the: joborder location field and it must be constant for all new joborder in the selected location.
    can any1 help me how...? /

    Hello
    An idea of my side as you say the location of the recording of the first should be come new records automatically.
    1. create a parameter form say called P_LOC.
    2. in the location field, create a WHEN-VALIDATE-ITEM called trigger and use code like this...

    :PARAMETER.P_LOC:=:LOCATION_FIELD;
    

    3. create a trigger on called WHEN-CREATE-RECORD at the block level and use the code like this...

    :LOCATION_FIELD:=:PARAMETER.P_LOC;
    

    -Clément

  • stored - procedure parameter problem table

    Hello

    I have the Oracle database version: 11.1.0.7
    I downloaded ojdbc5.jar for this version.
    and...

    I have stored procedure:
    PROCEDURE procedure_name (
     
         param1         IN       table1.objectid%TYPE,
         param2         IN       table1.objecttype%TYPE,
         param3         IN       table2.tariffid%TYPE,
         param4         IN       DATE,
         param5         IN       DATE,
         param6         IN       table3.saleschannelid%TYPE,
         param7         IN       rulemasteridtable,           
         param8         OUT      ruleid_table,
         param9         OUT      INT
        ); 
     
     
    type     SCHEMA.RULEMASTERIDTABLE as table of number(15 ,5)
     
    TYPE ruleid_table IS TABLE OF table4.rulemasterid%TYPE
    INDEX BY BINARY_INTEGER;
    As you can see the most interesting parameters are param7 and param8.

    I want to call this procedure using JDBC. I tried this way:
    OracleCallableStatement stmt = (OracleCallableStatement)connection.prepareCall(
     
                            "CALL SCHEMA.PKG.procedure_name(?, ?, ?, ?, ?, ?, ?, ?, ?)"); 
     
     
                stmt.setLong("param1", new Long(27167));
                stmt.setString("param2", new String("SOME_STRING")); 
                stmt.setLong("param3", new Long(27167)); 
     
                java.util.Date date = new java.util.Date();
                stmt.setDate("param4", new Date(date.getTime())); 
     
                java.util.Date date2 = new java.util.Date();
                stmt.setDate("param5", new Date(date2.getTime()));
     
                stmt.setLong("param6", new Long(1)); 
     
                ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("SCHEMA.RULEMASTERIDTABLE", connection);
                stmt.setArray("param7", new ARRAY(descriptor, connection, new Long[]{})); 
     
                stmt.registerOutParameter("param8",OracleTypes.PLSQL_INDEX_TABLE); 
     
                stmt.registerOutParameter("param9", Types.INTEGER); 
     
                stmt.executeUpdate();
    When I run this code I get an exception:
    Exception in thread "main" java.sql.SQLException: Missing IN or OUT parameter at index:: 8
          at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
           ....
    I don't know why I get this exception. Could you explain to me what's wrong with my code?
    I think OracleTypes.PLSQL_INDEX_TABLE for my param8 is ok. If I use different type I get Exception: number or types of evil...

    Please help me and thank you in advance.
    Hubert

    I've never seen an OracleTypes.PLSQL_INDEX_TABLE in action before. Documentation:

    http://download.Oracle.com/docs/CD/E11882_01/Java.112/e10590/typesupp.htm

    "Note: there is a PLSQL_INDEX_TABLE type, but it does not appear to be used outdoors."

    You could look at using a registerIndexTableOutParameter.

    For an example, see:

    http://www.Oracle.com/technology/sample_code/tech/Java/sqlj_jdbc/files/Oracle10g/plsqltables/Readme.html

  • Index value of parameter problem on ComboBox

    I'm running into a problem with the definition of the index on a drop-down list box. I'll try to give as much detail as possible. From what I can tell, it must work and do, but only for a single item. If anyone can suggest another group to publish on, let me know. I can't find a solution anywhere.

    I have the following code to display a combobox control. The figures are from a configuration XML file. The combobox itself works very well and in fact shows all the data from the XML configuration file.

    < mx:HBox >
    < mx:Label text = 'Status' width = "55" / >
    < mx:ComboBox id = "uxstatus" dataProvider = "{_xmlVulnStatus}" = 'status' labelField / >
    < / mx:HBox >

    The part of the XML config file that is used to populate the combobox control.

    < mainconfig >
    < vulnstatus >
    < status > Open < / status >
    < status > current < / status >
    < status > Closed < / status >
    < / vulnstatus >
    < / mainconfig >

    Now, when a user selects an item in a separate DataGrid, on change, I have run the following function. The function reads the data, analysis and compares the value of "status" of the info of datagrid with the options of 'status' in the configuration XML file. When it matches, it sets the combobox's index number so that it shows the right data. My problem is the function below.

    public void parseMSVulnStatus(evt:Event):void {}
    var xmlMSV:XML = XML (msdetailed.selectedItem); the host of dataProvider item
    trace ("status Vuln MS =" + xmlMSV.status);
    for (var MSVi:Number = 0; MSVi < _xmlVulnStatus.length (); MSVi++) {//loop over the in the dataProvider}
    var sDataValueCurMSV:String is _xmlVulnStatus [MSVi] .valueOf ();. get the current value of the item.data
    If (sDataValueCurMSV == xmlMSV.status) {//compare desired value current value of the item.data
    mx.controls.Alert.show ("match found - status Vuln MS =" + xmlMSV.status + "and MSVi ="+ MSVi ");
    msstatus.selectedIndex = MSVi; the value of the seletedIndex from the drop-down list box
    }
    else {msstatus.selectedIndex = - 1}
    }
    If (msdetailed.selectedItem.falsepos == 'Y') {msfalsepos.selected = true ;}
    }

    The problem. If the value of the data grid is 'Closed', it shows the index as being '2' and sets the index of the combobox in a proper way and shows 'closed '. The alert box is displayed (for testing) to display the values.

    If the value of the data grid is "Open" or "Ongoing", it shows the appropriate index as being equal to 0 or 1, respectively and shows the alert box. However, it seems that the drop-down list, the value - 1. I checked that data are set correctly in the database (which is what fills the datagrid control).

    Any ideas on that? According to my alert box, it seems that the data are properly seen and he knows how to set the index of the combobox... it simply not happen (unless it is 'closed').

    Thanks in advance.

    Chris

    It seems you need to add a break to your loop when he finds a positive match. This would explain why it works for the last item in your xml file, but fails for others.

    msstatus.selectedIndex = MSVi; the value of the seletedIndex from the drop-down list box
    break;

    Vygo

  • Parameter problem to the airport Time Capsule

    Already, we currently have a WiFi system with a NetGear router and a modem from Time Warner.

    I just want to use the airport Time Capsule to back up my Mac.  My husband has a PC.  I followed the instructions but the airport still comes up in the utility.

    Mac OS X El Capitan 10.11.6 and the latest 802.11 ac 3 TB so I don't know what I'm doing wrong.  I plug an Ethernet cable at the airport, then in the Modem - nothing after I plug the power - Amber flashing light.  I have changed ports unplugged and plugged back in French - restart the Modem.  Nothing works.  I bought it so it would work straight out of the box - so far, I have spent a lot of time trying to understand it.

    Any help would be so appreciated!

    Hello

    Try the help in this support article > Wifi hotspot: understand and resolve a blinking light of amber status - Apple supported

  • Workspace URL parameter problem!

    I have a URL like this:

    http://localhost: 8080 / Workspace? startEndpoint = HelpDeskProcess.InitiationForm

    The process name is HelpDeskProcess and the endpoint name is initForm

    But when I type this URL in the browser it opens the workspace but it shows an error "'endpoint Invalid Id". "

    Any suggestions?

    Nith

    Sorry, I meant check the TaskManager endpoint point :-) Endpoint Management

    I don't check with IE8. However, IE 6 works for me. Can you try to lower the security settings of the browser or may be trying to add this : http://server: port in your list of trusted sites and see if that makes a diff. I know that IE8 has a lot of increased security constraints.

  • function (value = &gt; parameter) problem...

    I created the example function:
    < em > < color = "#808080" > create or replace function ttt (number of p) return number
    is
    Start
    return p + 1;
    end;
    < / police > < /em >
    < p >
    < color = "#000000" > and I wonder why
    < / make >
    < em > < color = "#999999" > start
    dbms_output.put_line (ttt (p = & gt; 2));
    end; < / make >
    < /em >
    works, but

    < color = "#999999" > < em > select ttt (p = & gt; 2) twice; < /em >
    < / make >
    doesn't work.

    Can someone explain to me?

    Pawel
    < /p >

    Hello

    See this link [http://decipherinfosys.wordpress.com/2008/03/04/using-named-notations-in-functions-in-oracle-11g/] I think it could be useful.

    Kind regards

  • Error when performing procedure a TOAD that contains the parameter and dblink

    Hi all
    I get the error while executing the following code in the TOAD and APEX.

    It contains the parameter (start_date and end_date) and dblink (@TO_FUT).
    When I hardcode the values of the parameters, it works very well.
    When I give values hard-coded in the procedure, the error comes.
    When I commented that the lines as much as setting comes, the error always comes.

    I don't know if it's parameter problem or question dblink or some other problem

    Everyone is having no idea about this error?
    Your help is very appreciated.

    Code:
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE, END_DATE DATE DATE)
    AS
    BEGIN
    RUN IMMEDIATELY 'TRUNCATE TABLE OUTPUT_TABLE;
    INSERT INTO OUTPUT_TABLE
    (FIRST_NAME, LAST_NAME, HIDDEN, EFF_DT, CID, PLAN, FLAG)
    SELECT
    TEMP1. FIRST NAME,
    TEMP1. LAST_NAME,
    TEMP1. HIDDEN,
    TEMP1. EFF_DT,
    TEMP1. CID,
    TEMP1. PLAN,
    NVL ((SELECT ' Y'))
    OF FADMIN. MEMI_TABLE@TO_FUT MCQUEEN
    WHERE MCQUEEN. MEME_CK = TEMP1. MEME_CK
    AND MCQUEEN. TXN_EFF_DT = TEMP1. EFF_DT
    AND MCQUEEN. PBP = TEMP1. PLAN
    AND MCQUEEN. MEMI_TXN_CD IN ('AC', ARE ')
    AND MCQUEEN. MEMI_SEQ_NO = (SELECT MAX (MI. MEMI_SEQ_NO)
    OF FADMIN. MEMI_TABLE@TO_FUT MI
    WHERE MI. MEME_CK = MOUGEOT. MEME_CK
    AND MI. TXN_EFF_DT = MOUGEOT. TXN_EFF_DT
    AND MI. PBP = MOUGEOT. PBP
    AND MI. MEMI_TXN_CD IN ('AC', ARE ')
    AND MI. (MEMI_INTF_STS = 03)), 'N') AS FLAG
    Of
    (SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK
    OF FADMIN. METR_TABLE@TO_FUT M1,
    (SELECT M3. HIDDEN, M3. FADMIN EFF_DT. METR_TABLE@TO_FUT M3
    WHERE M3. TYPE IN ('60 ', ' 61')
    AND M3. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M3. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M3. SYIN_INST = (SELECT MAX (M4. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M4
    WHERE M4. HID = M3. HID
    AND M4. TYPE IN ('60 ', ' 61')
    AND M4. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M4. EFF_DT) = TRUNC (M3. EFF_DT))
    ) TEMP
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE = "011"
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE = "011"
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    AND M1. HID = TEMP. HID (+)
    AND M1. EFF_DT = TEMP. EFF_DT (+)
    AND TEMP. HIDDEN IS NULL
    --------
    UNION
    --------
    SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK

    OF FADMIN. METR_TABLE@TO_FUT M1
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    ) TEMP1;
    END;
    /

    The error:
    ORA-00918: column ambiguously defined
    ORA-02063: preceding the line of TO_FUT
    ORA-06512: at "PROC_ENR_ACC", line 5
    ORA-06512: at line 5

    Good,

    Please can just as a test you try this and see what happens

    WITH variables AS
    (SELECT /*+ MATERIALIZE */
            TO_DATE(:START_DATE) start_date,
            TO_DATE(:END_DATE) end_date
     FROM dual)
        SELECT   TEMP1.FIRST_NAME,
                TEMP1.LAST_NAME,
                TEMP1.HID,
                TEMP1.EFF_DT,
                TEMP1.CID,
                TEMP1.PLAN,
                NVL (
                     (SELECT   'Y'
                      FROM   MEMI_TABLE MEMI
                      WHERE       MEMI.MEME_CK = TEMP1.MEME_CK
                      AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
                      AND MEMI.PBP = TEMP1.PLAN
                      AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
                      AND MEMI.MEMI_SEQ_NO = (SELECT   MAX (MI.MEMI_SEQ_NO)
                                              FROM   MEMI_TABLE MI
                                              WHERE   MI.MEME_CK = MEMI.MEME_CK
                                              AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
                                              AND MI.PBP = MEMI.PBP
                                              AND MI.MEMI_TXN_CD IN ('AC', 'RE')
                                              AND MI.MEMI_INTF_STS = 03)
                      ),'N') FLAG
       FROM (SELECT   M1.FIRST_NAME,
                      M1.LAST_NAME,
                      M1.HID,
                      M1.EFF_DT,
                      M1.CID,
                      M1.PLAN,
                      (SELECT   MEME.MEME_CK
                       FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                       WHERE       MEME.M_HIN = M1.HID
                       AND MEME.GRGR_CK = GRGR.GRGR_CK
                       AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
             FROM   METR_TABLE M1,
                    (SELECT   M3.HID, M3.EFF_DT
                     FROM   METR_TABLE M3
                     WHERE   M3.TYPE IN ('60', '61')
                     AND M3.REPLY IN ('117', '118')
                     AND TRUNC (M3.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
                     AND M3.SYIN_INST = (SELECT   MAX (M4.SYIN_INST)
                                         FROM   METR_TABLE M4
                                         WHERE   M4.HID = M3.HID
                                         AND M4.TYPE IN ('60', '61')
                                         AND M4.REPLY IN ('117', '118')
                                         AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
                     ) TEMP
             WHERE   M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
             AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
             AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                 FROM   METR_TABLE M2
                                 WHERE       M2.HID = M1.HID
                                 AND M2.TYPE IN ('60', '61')
                                 AND M2.REPLY = '011'
                                 AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            AND M1.HID = TEMP.HID(+)
            AND M1.EFF_DT = TEMP.EFF_DT(+)
            AND TEMP.HID IS NULL
            UNION
            SELECT   M1.FIRST_NAME,
                     M1.LAST_NAME,
                     M1.HID,
                     M1.EFF_DT,
                     M1.CID,
                     M1.PLAN,
                     (SELECT   MEME.MEME_CK
                      FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                      WHERE       MEME.M_HIN = M1.HID
                      AND MEME.GRGR_CK = GRGR.GRGR_CK
                      AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
            FROM   METR_TABLE M1
            WHERE   M1.TYPE IN ('60', '61')
            AND M1.REPLY IN ('016', '017', '022', '023')
            AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
            AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                FROM   METR_TABLE M2
                                WHERE   M2.HID = M1.HID
                                AND M2.TYPE IN ('60', '61')
                                AND M2.REPLY IN ('016', '017', '022', '023')
                                AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            ) TEMP1;
    END;
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

Maybe you are looking for

  • Change the video recording in the camera mode?

    Just bought an iPad 9.7 inch Pro. I can't believe that they did not provide a way to switch between video and recording slo - mo resolutions and cadences of the camera app. I can go slipping between video and Slo - Mo and the amount of time, but I ca

  • 15-r014TX HP: hp support assistant stopped working

    HP support Assistant has stopped working on my hp 15 laptop r014tx. After this problem I uninstall hp support assistant and download the new assistant hp support Setup and intall but problem sloved not it still does not.I have upload a screenshot tha

  • HP not on s 4540

    Hi I have a hp probook 4540 s, when I put the charger it shows light load but if I press the power button lap top doesnot turn on.any solution please.

  • Upgrade the hard drive of DV6500t

    Hello I want to upgrade the hard drive Western Digital WD1200BEVS existing to another hard disk Western Digital.  The laptop I have is a Pavillion DV6500t. Help, please. Thank you kaialii

  • HP Photoshop Essential has stopped working

    Tried to install the necessary drivers for Photosmart 735 digital camera.  Since then, received message "HP essential Photoshop has stopped working".  Also received HP error "the procedure entry point hpqpsapp.exe could not be located in dynamic link