Another question about dbms_metadata.get_ddl

Hello

Recorded in as 'sys as sysdba' I tried to get the DDL for the EMP table in the SCOTT schema. Here is the output I got:
  1* select scott.dbms_metadata.get_ddl('TABLE', 'EMP') from dual
SQL> /
select scott.dbms_metadata.get_ddl('TABLE', 'EMP') from dual
       *
ERROR at line 1:
ORA-00904: "SCOTT"."DBMS_METADATA"."GET_DDL": invalid identifier
Remove the reference to SCOTT, we get another error (no surprise):
ORA-31603: object "EMP" of type TABLE not found in schema "SYS"
Question: How the ADMINISTRATOR bring the DDL for a table without having to sign in as a user that owns the schema?

Thank you

John.

He must inform the owner of this object when running DBMS_METADATA of SYS.

If we describe DBMS_METADATA

FUNCTION GET_DDL RETURNS CLOB
 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
 OBJECT_TYPE                    VARCHAR2                IN
 NAME                           VARCHAR2                IN
 SCHEMA                         VARCHAR2                IN     DEFAULT
 VERSION                        VARCHAR2                IN     DEFAULT
 MODEL                          VARCHAR2                IN     DEFAULT
 TRANSFORM                      VARCHAR2                IN     DEFAULT

So there must be another SCHEMA parameter when running DBMS_METADATA of SYS.

Tags: Database

Similar Questions

  • Another question about Dates

    Hi, I have another question regarding the use of the field date in Adobe Designer 8.  I have the updated domain in place so that the person can enter the date, lets say, 12/12/11 and it will convert to December 12, 2011, or, the user can click on the calendar that is attached to the date field and make a date selection.  My question is this.  Is there a way that can not only the calendar go to any date by selecting < or >, but can also go to an exercise < < or > >?  We have contracts that extend from 2 to 3 years and want this option to be available.

    Thanks for any help you can provide.

    Here is how I currently have my date fields in place.

    In the field section:

    View model: MMMM D, YYYY

    Edit pattern: M-D-AA

    Section of the value:

    MMMM D, YYYY

    Date must be entered as per example, 12 January 2012

    Liaison section:

    MMMM D, YYYY

    The calendar widget allows you to select other years.

    When you open the calendar, click on the name of the month, the calendar will show you every month of the current year.

    When you then click on the year, it shows you all the years of the current decade.

  • Another question about the redesign or the future of

    Hello

    When you read a topic about the removal of 'Preview' of the name of the software, staff responded that Adobe sought to 'take the best features of reflow and their integration into other tools.

    We are currently looking to use reflow as befits our very good business model. Currently, use us Photoshop for Desktop models, but is not a preview of the designs with versicles mode, which is exactly what reflow.

    It lacks some details of Photoshop, like ToolTips, detailing the size in pixels of the area being created and being able to move groups elements of item with the keys - we are likely to see the reflow being improved to include these, or the app that may disappear?

    I left a question in an above section if breakpoints for various devices would then appear in Photoshop if the statement made by the staff of Adobe had to happen, but had no response (I assume that this is always decided on?).

    Please let me know where we are until we invest time in structuring around these applications.

    Thank you

    Hi Ben,

    The honest answer is that Adobe is unlikely to make all invest more in the characteristics of reflow. I don't know about the future PS feature, so I can't comment on those. I don't know that the PS is invest in their space of design focused on the web, UX and mobile designers, so you could make requests about features he. Here is the forum:

    Photoshop Design space (overview)

    Thank you

    Joan Lafferty

    Product Manager

  • Another question about hard drive setup

    Thank you all for the info on PC and installation material.  I have download the first CS4 trial version and it is awesome!  I have one last question? I read the rules for storage and editing platform.

    I noticed in the project settings, as there

    captured video

    Audio captured

    video excerpts

    Audio previews

    And in the preferences

    media database cache

    media cache files

    Correct me if this is incorrect

    Drive a my OS and files in project

    My second drive pagefile and media cache database and media file cache.

    Third disc captured video & audio and video previews and audio previews

    This system uses a combination of DV, AVCHD material.  I would add another hard drive?  I may be using raid 0 for the audio captured video edge.

    No problem. Especially for raid0 configuration, you can easily use the on-board raid functions. No sense getting a controller separated for this card.

  • Another question about removing icons from home page

    the User Guide says I can delete unwanted icons from my homepage pulling them to the trash... However, I have no trash on my homepage... I hit all the panels, but no trash. The guide shows one... What don't get me?

    Thank you all... it will be questions for tonight...

    Jackson

    Jackson,

    The trash can will appear instead of the circle (between the dialer and contacts buttons) that pulls the apps is, after you press and hold the widget or icon

    you want to remove.

  • Another question about AVCHD

    Hello

    Response to the question I asked here yesterday Re: transferring to 11 items Prem AVCHD movies can I just clarify that if I record in AVCHD mode and editing mode AVCHD in Prem 11 items, I need a Blu - Ray player in order to enjoy the benefits of the audio/visual of this shooting mode?

    If I don't have a Blu - Ray player, which I did not, I can still film and editing AVCHD but I need to save the file as an MPEG-2 file and then burn this file on a standard DVD for playback on a standard TV DVD player?

    Thanks again.

    Steve

    Steve,

    Thanks for the reply with precision.

    1. regarding the customization of your publication + share/computer/AVCHD with Presets = MP4 H.264 1920 x 1080 p 24...

    Advanced tab button/video...

    Please define Pixel Aspect Ratio 'Square pixels' instead of what you have set in your screenshot (screen 16:9 wide).

    2 save it in: you show in your export the screenshot dialog box now has export from the timeline by clicking a .mp4 file in the Documents folder. Don't forget the OpenDVD folder and VIDEO_TS folder related to burn on DVD-VIDEO on DVD and what will be on this disk after burning of. You don't do that here. You export the contents of your calendar to a file with the extension (.mp4) file and video compression (AVCHD).

    3. When you want to burn your AVCHD.mp4 (1080p50) to a large display of DVD VIDEO to DVD disc, then

    a. you would be important as AVCHD.mp4 in a Premiere Elements project with the project 1080p50 preset

    and

    b. use Publish + share/Disc/DVD disc with preset = DVD PAL_Widescreen_Dolby to get your PAL DVD-VIDEO screen wide format of DVD disc you should be able to play on your computer or DVD TV player.

    Major thought is that you can import your source and then export it in various formats of difference that have unique properties for themselves.

    Please let me know if you're OK with the above. If any necessary clarification, do not hesitate to ask.

    Thank you.

    RTA

  • Yet another question about the update with the shutters tab

    I am quite new to this, but I've been scouring the boards and try many different things, and I decided to ask for advice.

    There are other threads similar to my problem such as:

    http://supportforums.BlackBerry.com/T5/Java-development/SetFocus-issue-with-tabbed-screen-page/m-p/6...

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-delete-a-Manager-or-a-field-that-is-c...

    I have a set up tabbed pane based on the example and everything works fine until I have delete a line from a VerticalFieldManager. It is by default the focus on the first item on the screen, and I get this. My problem is trying to substitute or replacement behavior.

    My screen implements the FocusChangeListener for the buttons on the tab (custom LabelFields).

    I tried many different variations - I tried to manage the update completely manual and ended with a bit of a mess. I tried to capture the event navigationUnclick() and coding of the focusChanged() method to manually switch the update, but it seems that the focusChanged() method is called before the focusChanged(), which doesn't help me.

    As I said I am pretty new to this so I could do something very stupid, but I don't really understand the focus handling implementation. A kick in the right direction would be appreciated.

    Thank you.

    You can have a NullField in your managers before all other areas - in this way, even if you delete the rest, the NullField might keep the focus.

    If this does not help, try the substitution of sublayout for your managers, call super.sublayout and then explicitly setFocus to your NullField (the deletion of any field causes a display Manager to rearrange).

  • Another question about regular expressions with String.matches

    don't match String.matches () method expressions when a substring of the string matches, or must match the whole string? So if I have the string '123ABC', and I ask match "1 or more letters" will be it fail because there are other that the letters in the string, but then spend if I add "1 or more letters AND numbers 1 or more? Thus, in the second case each character in the string is recorded in the research, as opposed to the first. Is that correct, or are there ways to JUST matching a substring in the string instead of all this? I'll do some examples too... but that makes sense?

    It must match the entire string. Use Matcher.find () to match on just a sub-string)

  • Yet another question about VCP, training materials

    Hi guys,.

    I'm sure you asked this several times, but I hear that the best study materials are unique to VMware .pdf but who exactly those? There are thousands!

    I would be correct in saying the .pdf is available for download on this page would be a good starting point?

    http://www.VMware.com/support/pubs/vi_pages/vi_pubs_35.html

    I just finished CBT of Elia Khnaser (very good) and also bought the VCP Exam Cram book which I'll go through once my knowledge base is preferable.

    Reserved (e) to participate in the day 4 training this month, but seeks to focus on the good material so far here. If you know of any other material which is good please let me know.

    Not interested in brain shocks - the reason for the test is if it forces me to learn the in-depth product!

    -Is it possible to book your exam prior to attending the training and the calendar for after training?

    Thanks in advance for your answers.

    Matt MC

    Yes - URL is the place for the PDF files, you will need to study for and yes it is possible to book your exam before taking the class.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Another question about variable presentation

    Hello

    I have a new requirement on variable presentation.
    for example
    A single column, year of guest. anothor column, year1 to demand.
    I want to get/see a value of all if the prompt is empty. Is it possible to do that?

    Kind regards
    Anne

    Published by: anne on November 14, 2011 02:17

    Hi Anne,.

    To manage the "all choices" Null values and try this, add two filters with OR clause (using filter->-> convert this advanced SQL filter)

    Cast (CALENDAR." (YEAR' as varchar (10)) = ifnull (' @{year} ',' ') or ifnull (' @{year} ',' ') =' '

    OR

    CALENDAR. ' ' YEAR ' as ' @{year} {%}'

  • Another question about printing with Adobe Reader 10.1.2

    I use Adobe Reader with Windows 7 (32 bit) 10.1.2 to print on my HP Officejet 6000 and was very happy to see that she is automatically printed on both sides of the paper and paused to give clear instructions on how to reload the paper to print on the other side, and everything worked fine. Until one day, with the same settings (unless I accidentally hit something) printing returned to his old ways: Although the dialog box print on both sides of the selected paper, it print on one side. I resorted to the ancient practice of trick the printer by limiting the paper, then when he expired, put in the pages had been printed on one side, to print on the other.

    How can I restore drive 10.1.2 to his original behavior?

    It might be the setting of the printer was set to ensure that duplex printing is more would be and its replacing the printer dialog box settings.

    The printer, check to make sure that duplex printing is turned on.

  • Another question about the color in required fields change

    I have 4 fields.

    The customer must enter a country name Field1

    If it's 'NL', that of Field2, Field3 and Field4 becomes necessary.

    I did it with FormCalc

    if (Field1 == "NL") then
    Field2.validate.nullTest="error"
    Field3.validate.nullTest="error"
    Field4.validate.nullTest="error"
    else
    Field2.validate.nullTest="disabled"
    Field3.validate.nullTest="disabled"
    Field4.validate.nullTest="disabled"
    endif
    
    
    

    Here's my problem:

    When field2 and field3 field4 are requered, they change color (red fill color) when it is empty

    And when they are not needed, they did not have to change color

    Can someone help me with this problem?

    Hello

    Here is a sample script to change the visual appearance of an object. Please note that the script in this example is JavaScript. https://Acrobat.com/#d=xHziYOr8zapKWtuVhWUk0w

    Hope that helps,

    Niall

  • Another question about choppy playback

    Hi, I use a new laptop from 64-bit Windows with processor i7-720QM Quad Core (1.6 GHz - up to 2.8 with turbo boost). I have a 6 GB ddr3 video card with memory and nVidia GeForce GT 230 M 1 GB dedicated graphics. I use a camcorder AVCHD (Canon VIXIA HF20). I get choppy playback. It is considerably improved when I changed my screen resolution of that recommend the EP 8, but playback is not quite there yet. All my AVCHD clips will play back fine with Windows Media Player. Firstly, my computer must be able to handle this, right? If so, so what exactly should I do to get the turbo boost to kick for this extra processing power? Any other advice would be greatly appreciated.

    -Patrick

    With a single HARD drive, even if a disk RPM 72 K, will fight to get there - the operating system, program, Page file, media files and make files. Things will be slow.

    Good luck

    Hunt

  • Another question about the display of out parameters

    I put a ref cursor in my procedure and used variable bind. If I trace through the procedure using the debugger in sql navigator I see the variable values of the print output, but they still have empty values. What should I do to show them now. It's my current procedure:

    PROCEDURE Retrieve_Item_And_MeasureUOM
    (
    -parameters passed in
    p_wr_item_oid in NUMBERS
    p_wr_measure_oid in NUMBERS
    p_measure_uom OUT VARCHAR2,
    p_report_item_measure_uom OUT VARCHAR2,
    p_report_ref1 ON ref_cur
    )

    As
    -local variables
    v_sql1 varchar2 (500): = ";
    v_report_name varchar2 (200): = "reportname";
    v_wr_item_oid NUMBER;
    v_measure_oid NUMBER;
    v_report_item_measure_uom VARCHAR2 (50);
    v_measure_uom VARCHAR2 (50);


    BEGIN

    v_sql1: =.
    "SELECT."
    FM.wr_item_oid, fm.wr_measure_oid, fm.default_display_uom as Report_Item_Measure_UOM,
    m.Default_UOM_App_Code as Measure_UOM

    Of
    wr_form_measure fm
    JOIN IN-HOUSE
    m wr_measure ON m.wr_measure_oid = fm.wr_measure_oid
    WHERE
    FM.wr_item_oid =: itemoid and fm.wr_measure_oid =: measure_oid AND
    FM.wr_form_oid =' | Retrieve_FormOID_From_Name (v_report_name);


    PUT_LONG_LINE (v_sql1);

    P_report_ref1 OPEN for v_sql1
    With the HELP of p_wr_item_oid, p_wr_measure_oid;


    EXCEPTION

    WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR (-20999, "no data found. Possible error in the form OID.') ;

    END Retrieve_Item_And_MeasureUOM;



    Thanks again

    Since you ask again I'll answer again. I have replyied to your other post that is answered.

    CREATE OR REPLACE PROCEDURE retrieve_item_and_measureuom ( -- parameters passed in
                                            p_wr_item_oid             IN     NUMBER,
                                            p_wr_measure_oid          IN     NUMBER,
                                            p_measure_uom                OUT VARCHAR2,
                                            p_report_item_measure_uom    OUT VARCHAR2
                                           )
    AS
      -- local variables
      v_wr_item_oid             NUMBER;
      v_measure_oid             NUMBER;
    BEGIN
      SELECT fm.wr_item_oid,
             fm.wr_measure_oid,
             fm.default_display_uom AS report_item_measure_uom,
             m.default_uom_app_code AS measure_uom
      INTO   v_wr_item_oid,
             v_measure_oid,
             p_report_item_measure_uom,
             p_measure_uom
      FROM     wr_form_measure fm
             INNER JOIN
               wr_measure m
             ON m.wr_measure_oid = fm.wr_measure_oid
      WHERE      fm.wr_item_oid = p_wr_item_oid
             AND fm.wr_measure_oid = p_wr_measure_oid
             AND fm.wr_form_oid = retrieve_formoid_from_name (v_report_name);
    EXCEPTION
      WHEN NO_DATA_FOUND
      THEN
        raise_application_error (-20999,
                                 'No data found. Possible error in Form OID.'
                                );
      WHEN OTHERS
      THEN
         raise_application_error (-20998,
                                 SQLERRM
                                );
    END retrieve_item_and_measureuom;
    

    Published by: Marcus AFS on February 24, 2010 15:16

  • A question about the restoration of cold backup (backup of control file is not clear)

    Hello

    I had another question about restoring from backup to cold. My database is in noarchivelog mode and after that take a consistent backup of cold, all I have to do is restore the backup right? -Why I got this question is because: when I save my control to trace file, I see statements like this: -.
    -Orders to recreate the table of the incarnation
    -Under journal names MUST be replaced by names of existing files
    -disc. The log files from each branch can be used for
    -re - create the folders of the incarnation.
    -LOGFILE of REGISTRY ALTER DATABASE ' / uo1/app1/arch1_1_647102958.dbf';
    -Recovery is required if any of the data files are restored backups.
    - or if the last shutdown was not normal or immediate.
    RECOVER THE DATABASE
    -Database can now be opened normally.
    ALTER DATABASE OPEN;
    -----
    My database is in noarchivelog mode now so don't know why these statements (of the registry the logfile) is there in the backup of the control file? so when I restore the cold backup of this database, it will still work OK? (there is no log file I only have the CRD files in cold don't backup - no log file archive.)

    Thank you
    Cedric

    It is a generic message in trace control file. It's not affect you.

Maybe you are looking for

  • HP Pavilion Notebook PC g6: IDT Audio PC stopped working

    Hello A few days ago I upgraded my Version of the OS of Windows 8 for Windows 10, now the question is the dolby sound system broke down. from the pc speaker sounds are too loud, I tried to display dolby at default settings but his error showing that

  • If I buy a used ipad can get the changed password

    If I buy an ipad 2 opportunity get the password changed so the seller forgot it?

  • Compatibility of the DSC runtime 8.6 and Windows 7

    Does anyone know if DSC 8.6.1 DURATION has a problem in Windows 7-64 bit OS similar to software development?

  • Adschena extension

    Our client would like to know what exactly the Adschema Setup Announces. The specific files they are interested are: Avdirmonex2k.ldf Omnigateway.ldf Vpimgateway.ldf Voicegateway.ldf AmisProps.ldf In addition, if you can point me in the direction of

  • Flight Mode Windows 7

    I'm going on a plane later in the day and I need to use my laptop to type some work. My laptop Toshiba, Windows 7, I can't seem to understand how to activate flight mode can someone help me? See you soon