Import procedure from database

hello all
i have oracle 10g database
and i have full dump file
which contains tables and procedures for all schema's
and i want import only one procedure from this dump file to my new database
is there is any way to do this

murad wrote:
by dump file using export command
fullI'm not aware of an "<tt>export</tt>" command. Did you mean <tt>exp</tt>, or maybe <tt>expdp</tt>?

Similar Messages

  • OBIEE Error while importing table from database

    Hi
    I am getting the following error when i am trying to import table from database.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    Any idea y such error.
    Thanks and Regards,
    Andy

    Looks like an error in the ODBC driver, not OBIEE as such.
    Have you tried googling it?
    Can you post details about your OS and DB.

  • Export/import to/from database

    hi,
    i do not know what is this for. i read the help but still no idea.
    i know to use export/import to/from memory id and also set/get but not export/import to/from database.
    1) what help says it stores data cluster? what is data cluster
    2) can have example of export/import to/from database?
    3) what is the different for export/import to/from memory id and database?
    thanks

    Hi,
    1) A data cluster is a set of data objects grouped together for the purpose of storage in a storage medium(Like database, local memory or shared meomory etc), which can only be edited using ABAP statements like EXPORT, IMPORT and DELETE.
    2) Suppose you want to export the data in a internal table to database.
    Here TABLE_ID is the identifer of your data cluster. You are exporting your data to a SAP table INDX and giving it an ID (TABLE_ID in this case and this ID you are giving it an area by name XY where your data will be stored). EXPORT tab = itab
      TO DATABASE indx(XY)
      CLIENT '000'
      ID 'TABLE_ID'.   
    You can get this data as follows.
    IMPORT tab = itab
      FROM DATABASE indx(xy)
      CLIENT '000'
      ID 'TABLE_ID'.
    3) The difference is simple when you use MEMORY ID the data you export is stored in the application server MEMORY where as in the case of DATABASE it is stored in the database.
    Regards,
    Sesh

  • Import Error - IMPORT hist FROM DATABASE MONI(DB) ID MONIKEY

    Hi,
       Iin my program I am using the statement
    IMPORT hist FROM DATABASE MONI(DB) ID MONIKEY.
    and Internal table structure of HIST is
    DATA: BEGIN OF HIST OCCURS 0,
              DATE LIKE SY-DATUM,
              TIME LIKE SY-UZEIT,
              SIZE      TYPE P,
              FREE      TYPE P,
              USED      TYPE I,
              TABLES    TYPE I,
              INDICES   TYPE I,
              TSIZE     TYPE I,
              ISIZE     TYPE I,
             END OF HIST.
    This IMPORT STatement is giving dump :
    Runtime Errors         CONNE_IMPORT_WRONG_COMP_TYPE
    Except.                CX_SY_IMPORT_MISMATCH_ERROR
    Is that any way to check before this IMPORT statement,that HIST structure should be like this or like that.If I can find out the correct structure.I can change the HIST's structure and avoid the dump.
    Guide me on this.
    Regards,
    Ashok

    please refer to the  SAP note 1000275
    i got the same error so i rectified it by changing  fields type of hist2 .
    below declaration of hist2 data is giving error
    data: begin of hist2 occurs 0,
            date like sy-datum,
            time like sy-uzeit,
            size      type p,     "Changed to 'p'
            free      type p,     "Changed to 'p
            used      type i,
            tables    type i,
            indices   type i,
            tsize     type i,
            isize     type i,
          end of hist2.
    error rectified with below hist2 data( tsize and isize type is changed to p)
    data: begin of hist2 occurs 0,
            date like sy-datum,
            time like sy-uzeit,
            size      type p,     "Changed to 'p'
            free      type p,     "Changed to 'p
            used      type i,
            tables    type i,
            indices   type i,
            tsize     type p,
            isize     type P,
          end of hist2.

  • [nQSError: 46115] - Admin Tools: can't import table from database .

    hi all,
    Need your help, i am using Bi Administration Tool, and i try to import tables from database,but encounter issue:
    (1)."File->import->from database...",select connection type as OCI 10g/11g, type TNS Name,User Name and Password,then click "OK".
    (2).select table "BI_DATA",and then click button "import",it show prompt:"Failed to perform requested action".
    (3).i try to click the symbol "+" on the left of table "BI_DATA", it show below prompt:
    [nQSError: 46115] No Unicode translation is available for some of the input characters for MultiByteWideChar().
    is there anyone can help me? thanks.
    the BI version is:
    Build: 10.1.3.4.1.090414.1900
    Release Version: Oracle Business Intelligence 10.1.3.4.1
    Package: 090414.1900

    I meet the problem, too! I can't solve it. Is anyone who can help me.
    My email is [email protected]
    thanks in avdvanced!

  • How to call a procedure from database executing commandButton...

    Hello.
    I´m using Jdev 10.1.3.2, I´d like to know how can I execute a procedure from database when I click a command button..??
    is that possible?
    thanks again.

    Yes, it's possible.
    Since you don't say anything about technologies you are using, I will assume ADF Business Components and JSF.
    You can write a service method in your application module - see Section 25.5 of the ADF Developer's Guide for Forms/4GL Developers
    Then, you can drag-and-drop the service method from the data control palette on to your JSF page and select ADF Command Button when you drop.
    You will, in all likelyhood, find numerous examples when you search the forum as well.
    John

  • Import/Export   From database

    Hi,
    I am trying to use "FKK_SAMPLE_1720" FM in my program .
    And this FM has a statement 
    Pick up add-on parameters
      IMPORT addons TO h_addons FROM DATABASE rfdt(kk) ID h_runkey.
    1. If want to export values to this id, can any tell me how i can give the code to export the values to this ID? (little more detailed with at least one value appending into structure.)
    2. This FM is calling in other SAP transactions(FPCOPARA) , when other programs also export values to this ID is it going to effect any way when I execute  my program?( like is this export ID is local to every ABAP program?) ..
    Please let me assp.
    Thanks in advance for ur time..
    Rajesh.

    Hi,
    Any one got a chance to look at this issue?
    thanks.

  • Import keywords from database

    I have found the parent XML file that contains my keywords (Adobe Bridge Keywords.XML). Is it possible to add additional files that contain keywords (eg. Adobe Keywords 2.xml) without affecting the existing lists of keywords?
    I have found the ability to import keywords via the keywords panel and a tab delimited file, but I would prefer an XMl format or database structure in which I could preserve the hierarchical (or relational) structure of the keywords sets.
    Is this possible? I am not afraid to write some script if necessary or to learn some XMP coding if necessary but it doesn't seem like it should be that difficult since the keywords seem to simply be xml files.
    Thanks for any suggestions!
    Jordan

    How can statement
    > IMPORT LAST_NUM
    >              PAKOM_TAB
    >              FROM DATABASE COIX_DATA40(KC) ID ID.
    leave the question open
    > Could anyone help me out in finding out from where the internal table PAKOM_TAB is getting filled.
    Thomas

  • Calling a Stored Procedure From Database Using XI.

    Hi,
    Please help in writing a UDF for these fields in mapping, which I need for the object Iu2019m doing currently.
    The fields are like this:
    1) batch_no = "TRUNC((GetMaxObjid('x_txn_sap_parts')-POWER(2,28))/5000)+1",
    2) lot_id = "TRUNC((GetMaxObjid('x_txn_sap_parts')-POWER(2,28))/500)+1",
    3) How to use JDBC connection factory class in the UDF.
    Some logic I can provide which I know i.e. Power (2, 28) means 2 to the power of 28 (2 multiplied 28 times), Trunc means truncate, X_TXN_SAP_Parts is a database table.The Target fields are Batch_no, lot_id & Objid.Actually, objid is mapped initially to a source field i.e. Object ID and in this function it is only being used for the calculation of the batch_no.
    I've tried to use this code but still I'm unable to execute the mapping.
    import java.util.*;
    import com.sap.aii.mapping.lookup.*;
    import com.sap.aii.mapping.lookup.*;
    DataBaseAccessor accessor = null;
    DataBaseResult JDBCOutPayload = null;
    String BusinessSystem="clarify_dev_bizsys";
    //give your business system having channel name
    String CommunicationChannel="JDBC_TO_CDEV";
    //give your channel name
    String InputPayload= " select X_TXN_PRE_SITE_XFACE.nextval from dual;";
    //give your sql query
    try {
    Channel channel =
    LookupService.getChannel(BusinessSystem,CommunicationChannel);
    accessor = LookupService.getDataBaseAccessor(channel);
    DataBaseResult resultSet = accessor.execute(InputPayload);
    for(Iterator rows = resultSet.getRows();rows.hasNext();){
    Map rowMap = (Map)rows.next();
    Object cValue = rowMap.get("batchno");
    //field name of field required , as in database
    catch (Exception e) {}
    finally {
    if (accessor != null)
    accessor.close();
    result.addValue((String)cValue);
    --> I don't know what are the parameters to be used and how to be used in the UDF because this is the first time I'm writing a UDF.
    --> The problem in using this query is that both OBJID & BatchNo. are on the target side and the value for the OBJID is retrieved by a SELECT query from the database.
    Kindly help me how to resolve this query of mine.
    Thanks in Advance.
    Sreedhar.

    Hi,
    The scenario is like I've to get a field (OBJID) value after using a SELECT statement from the database and use the same value for calculating another field values which is BATCHNO & LOTID.
    OBJID, BATCHNO and LOTID are from the same database.
    Thats all I was provided as the input.
    Do let me know if you need anymore information. I'll try to give as much input to the extent I know.
    Sreedhar.

  • Unable to import table from database

    Hi,
    i am getting error connecting to database through oracle forms
    error:the connection has failed
    at the same time i can able to connect through sql devloper.suspected driver problem
    available driver:odbc3.5,oci11g not working
    thanks
    chinu

    Can you check the network connections ,if every thing is working fine then try to connect mannual from command mode
    $sqlplus system/<pwd>@connecting string
    Inmeantime send me error code for both import and network issue.
    Thanks
    satya

  • Execute ORACLE STORE PROCEDURE from DATABASE

    Hi Everyone...
    i have a store procedure, it has a 5 params, 3 are IN parameters and 2 left are OUT parameters, I need execute this store procedure using a SQL Intruction like this
    DECLARE integracion_sia_kac PROCEDURE FOR KACTUS.SP_SIAKAC_NMDHODO
    :ll_horario,
    :ll_ide_doc,
    :ls_con_kac,
    @PINDREGI=:ls_ind_registro output, @PVALERRO=:ls_error_int output
    USING gt_kactus;
    i think this function is using from MSSQL Server, this has a three IN params but the declaration of the OUT params I don't understand.
    HELP ME!!!!!.... I need know way to execute the SP
    Thanks

    Well it is very simple!
    example:
    CREATE OR REPLACE PROCEDURE PROC1 (P1 IN NUMBER, P2 IN NUMBER, P3 OUT NUMBER) IS
    BEGIN
    P3 := P1 + P2;
    END;
    This is how to use PROC1 from, say, PROC2 :
    CREATE OR REPLACE PROCEDURE SomeShema.PROC2 IS
    Var1 NUMBER(15,2);
    Var2 NUMBER(15,2);
    ReturnParamFromPROC1 NUMBER(15,2);
    BEGIN
    Select SomeField INTO Var1 from Table1 where Table1.ID = 10;
    Select SomeField INTO Var2 from Table2 where Table2.ID = 20;
    PROC1(Var1, Var2, ReturnParamFromPROC1);
    DBMS_OUTPUT.PUT_LINE('Returned value from PROC1 is : '||ReturnParamFromPROC1);
    END;

  • Message from procedure from database to forms

    dear all
    how can i send message about error happend will some stored procedure execute in data base sever side to forms
    if any idea please help me

    In DB stored
    EXCEPTION
        WHEN no_data_found THEN
            null;
         WHEN OTHERS THEN
              ROLLBACK;
              raise_application_error(-20001, SQLERRM);
    in an ON_ERROR Trigger(forms)
    IF ( DBMS_ERROR_CODE IN (-20001,-20002,-20003) ) then
    message (DBMS_ERROR_TEXT);

  • IMPORT FROM DATABASE doesn't work in Web Dynpro

    Hi all, I want to use the code at the bottom to get the last packages visited by a user I specify.
    But I'm getting this error:
    IMPORT var_1 ... var_N FROM DATABASE is not supported in the OO
    context. Use IMPORT name_1 TO var_1 ... name_n TO var_n FROM DATABASE
    ... instead. var_n DATABSE ... insted var_n FROM DATABASE.
    Could someone please show me how I can resolve this?
      TYPES : BEGIN OF ty_key,
                uname  TYPE euf4values-uname,
                object TYPE euf4values-object,
              END OF ty_key.
      TYPES : BEGIN OF ty_value_table,   " Last F4 Values
                obj_name    TYPE tadir-obj_name,
                encl_object TYPE tadir-obj_name,
                position    TYPE i,
              END OF ty_value_table.
      DATA : gs_key TYPE ty_key,
             f4_last_values TYPE TABLE OF ty_value_table,
             gs_value_table TYPE ty_value_table.
      gs_key-uname  = item_user.
      gs_key-object = 'K'.
      IMPORT f4_last_values FROM DATABASE euf4values(eu) ID gs_key.

    Did you check the online documentation ? [http://help.sap.com/abapdocu_70/en/ABAPIMPORT_MEDIUM.htm#&ABAP_ALTERNATIVE_4@4@]
    I see your code has differences from the example provided in the standard documentation.

  • Import from database an internal table with generic Type : Web Dynpro ABAP

    Hi everyone,
    i have a requirement in which i'm asked to transfer data flow between two frameworks, from WD Component to another. The problem is that i have to transfer internal tables with generic types. i used the import/ export from database approache but in that way i get an error message saying "Object references and data references not yet supported".
    Here is my code to extract a generic internal table from memory.
        DATA l_table_f4 TYPE TABLE OF REF TO data.
      FIELD-SYMBOLS: <l_table_f4> TYPE STANDARD TABLE.
      DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
      DATA: ls_indx TYPE indx.
      lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->fire_vh_search_action_evt( ).
      ASSIGN l_table_f4 TO <l_table_f4>.
    *-- Import table for Help F4
      IMPORT l_table_f4 TO <l_table_f4> FROM DATABASE indx(v1) TO ls_indx ID 'table_help_f4_ID'.
    The error message is desplayed when last instruction is executed " IMPORT l_table_f4...".
    I saw another post facing the same problem but never solved "Generic Type for import Database".
    Please can anyone help ?
    Thanks & Kind regards.

    hi KIan,
    go:
    general type
    TYPE : BEGIN OF ty_itab,
               field1 TYPE ztab-field1,
               field2 TYPE ztab-field2,
    *your own fields here:
               field TYPE i,
               field(30) TYPE c,
               END OF ty_itab.
    work area
    DATA : gw_itab TYPE ty_itab.
    internal table
    DATA : gt_itab TYPE TABLE OF ty_itab.
    hope this helps
    ec

  • Getting result set from stored procedures in database controls in weblogic

    I am calling a stored procedure from database control which actually returns a result set
    when i call the stored procedure like
    * @jc:sql statement="call PROC4()"
    ResultSet sampleProc() throws SQLException;
    it gives me exception saying
    "weblogic.jws.control.ControlException: Method sampleProc is DML but does not return void or int"
    I would appreciate any help
    Thanks,
    Uma

    Thanks for you reply!
    1) The stored procedure has head
    CREATE OR REPLACE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    cv_1 IN OUT SYS_REFCURSOR
    AS
    err_msg VARCHAR2(100);
    BEGIN
    --Adaptive Server has expanded all '*' elements in the following statement
    OPEN cv_1 FOR
    Select ...
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    err_msg := SQLERRM;
    dbms_output.put_line (err_msg);
    ROLLBACK;
    END;
    If I only run select .. in DBArtisan, it display all 2030,000 rows in 3:44 minutes
    2) But when call stored procedure, it will take 80-100 minutes .
    3) The stored procedure is translated from sybase using migration tools, it's very simple, in sybase it just
    CREATE PROCEDURE X_OWNER.DISPLAY_ADDRESS
    AS
    BEGIN
    select ..
    The select part is exact same.
    4) The perl code is almost exact same, except the query sql:
    sybase verson: my $sql ="exec DISPLAY_ADDRESS";
    and no need bind the cursor parameter.
    This is batch job, we create a file with all information, and ftp to clients everynight.
    Thanks!
    Rulin

Maybe you are looking for