Extract only grant sentences

Hi all,
I've a full export from one 9i database. I've to import all in my new 11R2. I want do it in different steps if is possible.
I'll create the same tablespaces on my new db. After it, I want create the different users and, apply all the grants between then.
Know you if exist any way to obtain from sqlplus or from my dump file, all the sql sentences to apply it on my new db?
Best regards,
dbajug

Finally, I'm using the dbms_metadata package to collect all database structure, and after it, I'm applying it into the new one.
Thanks you all!!
dbajug

Similar Messages

  • How can I extract only the audio as an aiff file?

    Using a Sony DSC-N2 Cybershot Camera I recorded video that was saved as “MOV01606.MPG”. The video plays back with sound in Quicktime Pro and iTunes but how can I extract only the audio as an aiff file?

    Use MPEG Streamclip (free) to convert your .mpg files to QuickTime formats.
    QuickTime can't extract audio from muxed file formats.

  • Custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_YYMMDD_0023.cr2?  I cannot find a way to structure the date in Aperture as such, as well as extract only the camera file

    Please advise how to custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_120816_0023.cr2?  I cannot find a way to structure the date in Aperture as such (YYMMDD), as well as extract only the camera file (0023, for example).  Adobe Bridge CS5 can do this, but NONE of the Adobe software is retina optimized, and is terrible to look at.

    In Aperture you are limited to renaming files by the entries in the File Naming preset window.
    At what point are you looking to rename, import or export? It might be possible to do what you are looking to do external to Aperture either via a script or other software.
    regards

  • Need to extract only file name from path.........

    Hi All,
    I have a parameter.This calls the function
    "CALL FUNCTION 'F4_FILENAME' to get the file from C drive.
    After selecting the file the path is displayed in the Parameter field.
    My problem is I need to extract only file name from the path.Please advice.
    Example : Prameter  id    C:\folder\file.xls  
    I shd extract only file.xls from the path.Please advice.

    Hi,
    Use the below logic:
    data: begin of itab,
               val    type  char20,
            end of itab.
    SPLIT  l_f_path  AT  '\'  INTO  TABLE itab.
    The last record of the internal table holds the file name.
    describe table itab lines l_f_lines.
    read itab index l_f_lines.
    l_f_filaname = itab-val.
    Hope this helps u.

  • Way to extract only the DDL out of an 8i Database?

    Hello -
    Is there a way in Oracle 8i to extract only the DDL (using a package, etc.) of a database? I know this can easily be done in 10g with Data Pump, but I have to have this done in 8i.
    Thanks,
    Mike

    You can use export and import to generate the DDL.
    exp <user>/<password> file=<file_name> owner=<schema>
    imp <user>/<password> file=<file_name> indexfile=<filename>
    This will generate a file that contain the ddl to create the indexes. The table ddl is included but commented out.
    See the docs for more information on the INDEXFILE parameter of import.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652/ch02.htm#1005500
    Also check out the thread on AskTom:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1995108178664252119::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:1464804639878

  • Still only grants me "Guest" privileges!?

    OK the problem I have was briefly touched upon in another thread, but that seems to be dead at this stage.
    I am trying to connect (over a wireless router connection) the shared documents folder of a PC running XP Home, with my Macbook running the latest update of leopard 10.5.3.
    Once networking is configured in XP, the computer running Windows XP will come up automatically in Finder. You can click on the Shared computer and it will connect as "Guest". When you hit "Connect As," it gives you the option to connect as the registered user (the XP username and password on the other computer). When I do that, it STILL only grants me guest privileges, NOT Registered User privileges (can't delete, move files, etc).
    Please can anyone help?

    Here are my results - found the server and 2 printers but not the other PCs on the network:
    Laptop:~ greghasking$ nmblookup -M -- -
    querying _MSBROWSE_ on 192.168.1.255
    192.168.1.163 _MSBROWSE_<01>
    192.168.1.35 _MSBROWSE_<01>
    169.254.25.129 _MSBROWSE_<01>
    Laptop:~ greghasking$ smbclient -g -p 139 -NL 192.168.1.35
    session request to 192.168.1.35 failed (Called name not present)
    session request to 192 failed (Called name not present)
    Domain=[GENIESERVER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    Disk|ProSolv|
    Disk|E$|Default share
    IPC|IPC$|Remote IPC
    Disk|SharedDocs|
    Disk|Genie|
    Disk|Users|
    Disk|Applications|
    Disk|Temp|
    Disk|F$|Default share
    Disk|ADMIN$|Remote Admin
    Disk|C$|Default share
    Disk|Holter|
    Laptop:~ greghasking$ smbclient -g -p 139 -NL 192.168.1.163
    session request to 192.168.1.163 failed (Called name not present)
    session request to 192 failed (Called name not present)
    Domain=[QUINTON] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
    IPC|IPC$|Remote IPC
    Disk|print$|Printer Drivers
    Disk|SharedDocs|
    Disk|Imported Patients|
    Disk|ADMIN$|Remote Admin
    Disk|C$|Default share
    Disk|xmlreports|
    Printer|Printer|Printrex MP200 for XP
    Laptop:~ greghasking$ smbclient -g -p 139 -NL 169.254.25.129
    timeout connecting to 169.254.25.129:139
    Error connecting to 169.254.25.129 (Operation already in progress)
    Connection to 169.254.25.129 failed

  • Datapump sqlfile option to extract only PK

    Is there any way to generate a sqlfile using Datapump that contains only Primary Key (I don't want the Check and Foreign Key constraints)
    There are lot of Chk and Fk, so editing is not an option
    I am able to generate the FK script by using " include=CONSTRAINT/REF_CONSTRAINT "
    Is there any way to extract only PK DDL's ??
    -Thanks,

    I can get you one step closer: export with "include=CONSTRAINTS" and import with "exclude=REF_CONSTRAINT". Then you can filter checks manually. Like this:
    $ expdp user/pass directory=MY_DIR dumpfile=teste.dmp include=CONSTRAINT
    $ impdp user/pass directory=MY_DIR dumpfile=teste.dmp exclude=REF_CONSTRAINT sqlfile=teste.sql

  • Nakisa OrgChart 3.0 SP1- Staged extracting only active employee

    Hi Experts,
    We have OrgChart 3.0 SP1 Staged environment. It extracts only active employees. Itu2019s not extracting other employee having other employment status (say inactive- employee who are on maternity leave for example).
    How we can set extraction so that we can see all the employee in organization irrespective to the employment status?
    Thanks
    Dave

    Luke is right about STAT2 being employment status and how to remove it.  But rather than simply removing it, then confirm your requirement more clearly by looking at the various employment statuses you have defined and which ones you can need (or can exclude).
    Also you might need to extract PA2001 (Absences) if you have a requirement around maternity leave (although I would still expect these to be 3 - "Active" employees!) and write some explicit logic in the joinconfiguration.xml to include employees you wish to see in the OrgChart and exclude those you don't.
    Regards,
    Stephen

  • How to import only grants

    Hello,
    Does anyone know how to import only grants from a .dmp file?
    1. We did a full export of the source schema.
    2. During our 1st import run, we imported the tables only.
    3. Now we would like to import only grants.
    Is this (step 3) possible with the datapump import/export utility?
    Thank you for your help!

    OrionNet,
    Thanks for the link. It was a good doc, which helped me to understand the datapump with sqlfile parameter.
    I did a test run of generating sqlfile with impdp, and was able to get the sql script with grant only.
    Here is what I did:
    1. Run the following:
    impdp system/***** parfile=test_imp_grant_only.param
    2. Below is what's in the parameter file (test_imp_grant_only.param)
    DIRECTORY=datapump
    SCHEMAS=ABC
    Include=grant
    sqlfile=datapump:test_imp_grant_only.sql
    DUMPFILE=datapump:test_export_ABC.dmp
    3. The sql script (test_imp_grant_only.sql) will be generated under datapump directory.
    Thanks!

  • Function to extract only numeric value

    Hi
    I have a column which contains alphanumeric number like LAX4308720
    Is there any function in oracle so that I could extract only the numeric values like
    4308720 from that string..?
    Please provide me some solutions
    Shelly

    You can use translate as demonstrated above.
    You just have to make sure you translate out all the characters that you don't want that may appear in the string. e.g. if the only other characters are uppercase A-Z then you can just use:
    SQL> ed
    Wrote file afiedt.buf
      1* select replace(translate('LAX4308720', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789','??????????????????????????0123456789'),'?') from dual
    SQL> /
    REPLACE
    4308720
    SQL>

  • Program to extract only changed/new records

    Hi,
    Is there any program in R/3 to extract only changed/new records into a flat file?
    babu

    Magesh,
    you could use a generic extractor and use the delta functionality and using RSA3 you can export it to Excel ??? but then if you want to automate - you can have the same done in a function module extractor and point the output to a flat file.
    Arun
    Assign points if useful

  • Extracting only Scale value ..how to do this

    Hi,
    How to fetch only scale value from a number value..?
    example from 1000.1212 i have to select 1212 only..
    I want any oracle supplied function to do this..
    i tried substr and instr but i want can we do this a function available in oracle
    Thanks
    asp

    No you have to use the existing sql functions:
    SQL> select to_char(sysdate,'YYYY') from dual;
    TO_C
    2006
    SQL> select to_char(to_date('2003-08-22','YYYY-MM-DD'),'YYYY') from dual;
    TO_C
    2003
    which you can include in your own function:
    create or replace function extract (p_1 in varchar2,p2 in varchar2) return integer is
    begin
      declare v_return varchar2(30);
      begin
        if p_1 = 'YEAR FROM DATE' then
          select to_char(to_date(p2,'YYYY-MM-DD'),'YYYY')
          into v_return
          from dual;
        end if;
        return to_number(v_return);
      end;
    end;
    /SQL> select extract('YEAR FROM DATE','2003-08-22') from dual;
    EXTRACT('YEARFROMDATE','2003-08-22')
    2003

  • Extract only SP 16 SRM notes for SRM 550

    Hi all
    Hiw can i extract SP 16 notes only from sap market place related to SRM
    muthu

    Hi Muthu
    This link is working
    https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/spat/index.htm?sp1=SAPKIBKT16
    There are total 444 notes released in this SP.
    Regards
    Kiran

  • HFM Extended Analytics Extract - Only for Data at Review Level 6 and up?

    Hello, I have a requirement to Extract Data from HFM as Flat Files in order for them to be picked up by a separate process.
    In order to do this I have used Extended Analytics to create the extracts I require.
    The issue I have is that users are only supposed to be able to extract data that has been approved up to Review Level 6 and above, and at the moment they can choose any POV regardless of the Review Level the combination of the 4 dimensions has.
    Is there a recommended or easy way to achieve this?
    I have looked into a few possibilities including:
    1. Restricting the LOV drop-downs (via re-creating metadata via a custom script)
    2. Having a process "catch" the fact that the POV is not approved upon export (perhaps using a taskflow with a "Process Management Action" stage, or by creating a Rule that can be applied to the EA Exract?)
    3. Including in the Extracted data file a "header" row with the POV Review Level value (so the next process in the chain can handle validating this)
    4. A custom API method
    I am quite in-experienced with HFM so any advice or pointers would be very much appreciated.
    Many Thanks,
    Martin

    Terri,
    Doesn't EIS require a parent-child/recrusive table for the dimensions? If it could read HFM EA's tables as they are natively organized, then I guess EIS would be an approach although unfortunately it is not possible in the environment in question. I am at a loss as to why HFM EA doesn't output tables as required for Essbase, especially given the Essbase option in exporting, but it is what it is.
    I got an answer over on Network54 suggesting how to build those tables in Oracle. Again, unfortunately, I'm in a SS 2000 environment so that means extra work for my SQL resource as I think it requires a stored procedure (am not, never have, and will likely never claim to have more than a 'SELECT * FROM' level of SQL knowledge) but at least it's a start.
    The original thought I had was to get these Essbase-ready parent-child dimension tables and build the cubes from them. Are you interested in EIS because it has better automation?
    Regards,
    Cameron Lackpour

  • RSA3 is extracting fine but in BI site Its extracting only 10000 records

    Hi Experts,
    h4.
    I made Generic data-source based on function module. When I am extracting data from this data-source in RSA3 itu2019s fetching all records. Its nearly are 7 lacks records.
    h4.
    But after replicating this data-source in BI site when I am extracting data from this data source its fetching only 10000 records. What mistake I might be did here or is there is any setting for FM based data source.
    Advance thanks

    My Issue is in RSA3 datasource is working fine and giving all records but when i am extracting data from same data source in BIW site its giving maximum 10000 records. I am using full load with n selection parameter.
    This datasource is based on function module. below is the code of data-source
    . * Auxiliary Selection criteria structure
      DATA: L_S_SELECT TYPE SRSC_S_SELECT.
    Maximum number of lines for DB table
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    counter
              S_COUNTER_DATAPAKID LIKE SY-TABIX,
    cursor
              S_CURSOR TYPE CURSOR.
      STATICS: V1 TYPE I,
                      V2 TYPE I.
            TYPES: BEGIN OF ty_data,
               matnr       TYPE matnr,
               MTART       TYPE MTART,
               PARTCODE    TYPE IDNRK,
               WERKS       TYPE WERKS_D,
               quantity    TYPE BGESWERT,
               vrkme       TYPE vrkme,
             END OF ty_data,
             BEGIN OF ty_parts,
               mandt       TYPE mandt,
               matnr       TYPE matnr,
               werks       TYPE werks_d,
               spdpartcode TYPE matnr,
               partcode    TYPE matnr,
               parttext    TYPE maktx,
               quantity    TYPE BGESWERT,
               vrkme       TYPE vrkme,
             END OF ty_parts,
             BEGIN OF ty_partvalue,
               mandt       TYPE mandt,
               regio       TYPE regio,
               spdpartcode TYPE matnr,
               value       TYPE abgergeb,
               waers       TYPE waers,
             END OF ty_partvalue.
      DATA: it_mara TYPE STANDARD TABLE OF mara,
            wa_mara TYPE mara,
            it_data  TYPE STANDARD TABLE OF ty_data,
            wa_data  TYPE ty_data,
            it_t005s TYPE STANDARD TABLE OF t005s,
            wa_t005s TYPE t005s,
            l_index  TYPE sy-tabix,
            it_parts TYPE STANDARD TABLE OF ty_parts,
            wa_parts TYPE ty_parts,
            it_partvalue TYPE STANDARD TABLE OF ty_partvalue,
            wa_partvalue TYPE ty_partvalue,
            wa_makl  TYPE mkal.
      DATA: it_t001w TYPE STANDARD TABLE OF t001w,
            wa_t001w TYPE t001w.
      DATA: it_stb TYPE STANDARD TABLE OF stpox,
            wa_stb TYPE stpox,
            it_stb1 TYPE STANDARD TABLE OF stpox,
            wa_stb1 TYPE stpox,
            it_stb2 TYPE STANDARD TABLE OF stpox,
            wa_stb2 TYPE stpox,
            it_stb3 TYPE STANDARD TABLE OF stpox,
            wa_stb3 TYPE stpox.
      DATA: it_bom type standard table of EXTRACT_STRUCT,
            wa_bom type EXTRACT_STRUCT.
    Select ranges
    ranges: L_R_MATNR for MARA-MATNR,
             L_R_MTART for MARA-MTART.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE I_DSOURCE.
          WHEN 'Z_BOM'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3).         ENDIF.
    this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE   = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    Fill range tables BW will only pass down simple selection criteria
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'MATNR'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_MATNR.
            APPEND L_R_MATNR.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'MTART'.
            MOVE-CORRESPONDING L_S_SELECT TO L_R_MTART.
            APPEND L_R_MTART.
          ENDLOOP.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          SELECT werks INTO CORRESPONDING FIELDS OF TABLE it_t001w
                   FROM t001w
                   WHERE j_1bbranch NE '' AND
                         pkosa      = 'X'.
         DELETE it_t001w WHERE werks = 'HSPG'.
          SELECT matnr INTO CORRESPONDING FIELDS OF TABLE it_mara
                   FROM mara
                   WHERE matnr IN L_R_MATNR AND
                         mtart IN L_R_MTART AND
                         lvorm = ''     AND
                         mstae = ''.
            IF SY-SUBRC = 0.
        REFRESH: it_data.
         LOOP AT it_mara INTO wa_mara.
          LOOP AT it_t001w INTO wa_t001w.
            SELECT SINGLE * INTO wa_makl
                            FROM mkal
                            WHERE matnr = wa_mara-matnr AND
                                  werks = wa_t001w-werks.
              IF sy-subrc = 0.
              REFRESH: it_stb2.
              CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
                EXPORTING
                  capid                 = 'PP01'
                  datuv                 = sy-datum
                  mktls                 = 'X'
                  mehrs                 = 'X'
                  mmory                 = '1'
                  mtnrv                 = wa_mara-matnr
                  svwvo                 = 'X'
                  werks                 = wa_t001w-werks
                 werks                 = 'HSPG'
                  vrsvo                 = 'X'
                TABLES
                  stb                   = it_stb2
                EXCEPTIONS
                  alt_not_found         = 1
                  call_invalid          = 2
                  material_not_found    = 3
                  missing_authorization = 4
                  no_bom_found          = 5
                  no_plant_data         = 6
                  no_suitable_bom_found = 7
                  conversion_error      = 8
                  OTHERS                = 9.
              IF sy-subrc <> 0.
               MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ELSE.
                IF it_stb2 IS NOT INITIAL.
                 it_stb1 = it_stb2.
                IT_STB1 will have first level components
                 DELETE it_stb1 WHERE stufe NE 1.
                IT_STB2 will have second and higher level components
                 DELETE it_stb2 WHERE stufe EQ 1.
                 CLEAR: lv_flag.
                 LOOP AT it_stb1 INTO wa_stb1.
                   l_index = sy-tabix.
                   LOOP AT it_stb2 INTO wa_stb2 WHERE vwegx = wa_stb1-wegxx.
                     APPEND wa_stb2 TO it_stb3.
                     lv_flag = 'X'.
                   ENDLOOP.
                   IF lv_flag = 'X'.
                     DELETE it_stb1 INDEX l_index.
                     CLEAR: lv_flag.
                   ENDIF.
                 ENDLOOP.
                IT_STB2 will have only second level components
                 it_stb2 = it_stb3.
                 APPEND LINES OF it_stb1 TO it_stb2.
                  APPEND LINES OF it_stb2 TO it_stb.
                  REFRESH: it_stb1, it_stb2, it_stb3.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDLOOP.
          LOOP AT it_stb INTO wa_stb.
            wa_data-matnr    = wa_mara-matnr.
            wa_data-mtart    = wa_stb-mtart.
            wa_data-werks    = wa_stb-werks.
            wa_data-partcode = wa_stb-idnrk.
            wa_data-quantity = wa_stb-MENGE.
            wa_data-vrkme    = wa_stb-MEINS.
            APPEND wa_data TO it_data.
          ENDLOOP.
          REFRESH: it_stb.
        ENDLOOP.
       ENDIF.
        V1 = 1.
        V2 = S_S_IF-MAXSIZE.
    ENDIF.
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
       FETCH NEXT CURSOR S_CURSOR
                  APPENDING CORRESPONDING FIELDS
                  OF TABLE E_T_DATA
                  PACKAGE SIZE S_S_IF-MAXSIZE.
       IF SY-SUBRC <> 0.
         CLOSE CURSOR S_CURSOR.
         RAISE NO_MORE_DATA.
       ENDIF.
        CLEAR: wa_data.
        LOOP AT it_data INTO wa_data.
          IF SY-TABIX GE V1 AND SY-TABIX LE V2.
            APPEND wa_data TO E_T_DATA.
            CLEAR wa_data.
          ENDIF.
        ENDLOOP.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
        IF E_T_DATA[] IS INITIAL.
          RAISE NO_MORE_DATA.
        ENDIF.
        V1 = V2 + 1.
        V2 = V2 + S_S_IF-MAXSIZE.
    ENDIF.
    *}   INSERT
    ENDFUNCTION.
    Edited by: damawat on Aug 26, 2011 2:20 PM

Maybe you are looking for

  • Mini Display / Thunderbolt to Monitor

    Hi, So I currently have a 2010 MacBook pro which I connect to my monitor with a NEET cables mini display - HDMI adapter. I am planning on getting a 2013 MacBook Air soon; will this cable still work or will I need a completely new thunderbolt - HDMI a

  • OBIEE Ipad App HD 11.1.1.7

    Hello, Current version of OBIEE we are using is 11.1.1.6.6. I had been using OBI Ipad HD app version 11.1.1.6.2.1238 . And it was working just fine. Oracle recently updated their mobile HD app to support 11.1.1.7. And so I update it in my IPad. Now r

  • Extract external image in layers & Color path

    Hi there! I am new here, i am portuguese, i am 22 years old, and to finish my multimedia engeneering course i have choose a computer animation. That computer animation is a join of a scenario made in sketchUp&Cinema4D and the animatio made in Reallus

  • I don't have a mac book but I bought some programs for it.

    I bought Transmit 4.1.5 Stuff it ult apple care dv kitchen I need a good picture program. Like acdsee pro. I saw it for $160. What are you guys using to browse pictures with? I am going to be on a 17in screen. I also wanted to know Once you take out

  • Internal error 500.0 when trying access my email via owa

    Hello, i am get following error when try to access email through OWA Http Error 500.0-internal error module "Exppw" could not be found. this mesaage appear after unistall IIS and reinstall becuse i have problem initialization failed after fix initili