view script that creates a view of another user

How can I see the script for a view?

Thank you

From sqlplus do following:
set pages 0
the value of 10000 long
Select dbms_metadata.get_ddl ('SEE', 'Nom_de_vue') of double;

Tags: Database

Similar Questions

  • Privilege to allow a user to create a view of another user schema

    Hello

    I need allow a user create a view of another user schema.
    Say, log in as the latter and run the statement: "create view USER_B_SCHEMA.myview as select...". »

    Is there a way to achieve this without the agreement of this last privilege to CREATE ANY VIEW? I want to keep it on the profile as low as possible.


    Thank you!

    You can create a stored procedure, here's a test case (not optimized, no free bug):

    SYS@orcl > create user sp_owner identified by sp_owner;
    
    SYS@orcl > grant create any view to sp_owner;
    
    SYS@orcl> create procedure sp_owner.create_view (
      2  view_name varchar2, view_sql varchar2 ) is
      3  begin
      4    execute immediate 'create view '||view_name||' as '||view_sql;
      5  end;
      6  /
    Procedure created.
    
    SYS@orcl > create user test identified by test;
    
    SYS@orcl > grant create session to test;
    
    SYS@orcl > grant execute on sp_owner.create_view to test;
    
    TEST@orcl> execute sp_owner.create_view('scott.emp_vw','select * from scott.emp')
    PL/SQL procedure successfully completed.
    

    HTH

    Enrique

    PS. If your problem has been resolved, consider marking the question as answered.

  • The script that creates the default tabs in the margin of the document.

    I need a script that creates marks (1 cm margins: top, left, right, down and two others in the Center, a vertical and a horizontal) independent of the document size. Would look like this: whenever I create a new document, execute an action which rodadoria the script to create a document with the enclosed area, similar to the figure below: thank you!

    http://zip.NET/brsW9j

    #target photoshop;
    if(documents.length) main();
    
    function main(){
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var cm = activeDocument.resolution/2.54;
    var W =activeDocument.width;
    var H =activeDocument.height;
    guideLine(cm,"Vrtc");
    guideLine(cm,"Hrzn");
    guideLine(W-cm,"Vrtc");
    guideLine(H-cm,"Hrzn");
    guideLine(W/2,"Vrtc");
    guideLine(H/2,"Hrzn");
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;
    }
    function guideLine(position, type){
        var desc27 = new ActionDescriptor();
            var desc28 = new ActionDescriptor();
            desc28.putUnitDouble( app.charIDToTypeID('Pstn'), app.charIDToTypeID('#Pxl'), position );
            desc28.putEnumerated( app.charIDToTypeID('Ornt'), app.charIDToTypeID('Ornt'), app.charIDToTypeID(type) );
        desc27.putObject( app.charIDToTypeID('Nw  '), app.charIDToTypeID('Gd  '), desc28 );
        executeAction( app.charIDToTypeID('Mk  '), desc27, DialogModes.NO );
    };
    
  • Script that returns the name of the user

    Hello, I have a fairly complex script that exports the text of an InCopy document. Is InCopy CS3 and is running on a Windows 2003 platform. It would be useful as this script to find out who is the user, that is who runs the export. Has anyone written a script that removed the username and group ads, the OS, or in fact InCopy. The solution, I think, perhaps by calling an external script that queries the operating system and returns this kind of data. Any thoughts on this topic would be appreciated. Thks, Wil

    On Windows, you can get the name of the user like this:

    Alert ($.getenv ("username"));

    or

    alert ((Folder.temp + "") .slice (12, -14));

    Kasyan

  • only select order granting on the view to another user from db

    Hi Expers,

    I have the table in the schema of xxx

    Dept of ESCR

    number of deptnumber
    name varchar2 (10)

    I created as

    create view insert into select * dept;

    created view.

    using this point of view I can't insert values in the area also table.


    I need to give access to only select to aaaa/scheme user...


    all can tell me how to create the role for the above scenario...

    Thank you...
    revoke dba from your_user_name;
    

    Please try Googling/docs befor posting questions...

  • What script to create a model with a user interface panel

    Hello guys,.

    So I am new to scripting and javascript and I'm trying to keep it simple. I'm a VJ and want to create a script where I get a 'BPM' and a 'beat' lengh and it generate me a comp with the right length and * a layer with a marker ofr each beat.

    I was able to create this script, but I try to make it look a little better with integration of the user interface for AE I wasn't able to make it work right. If anyone can help me or give me some advice. I think that I'm not good with the expression "addComp" in the buildUI function.

    I copy everythin because it is long but you'll be understaind the main idea. My question is how to that the entry in my Advanced UI instead of "the guest".

    Here is my first code that does the job:

    Elements Var Set

    var name = prompt ("membership name");

    var BPM = prompt ("your BPM");

    If (isNaN (BPM)) {}

    Alert ("you must give the model a value");

    }

    Var prompt = beats ("how many times");

    If (isNaN (Beats)) {}

    Alert ("you must give the model a value");

    }

    frameRate var = prompt ("your fps");

    If (isNaN (frameRate)) {}

    Alert ("you must give the model a value");

    }

    term var = (60 / BPM * bat); Automatically generated

    var beat = (60 / BPM);

    Part of creation

    app.project.items.addComp (name, 1920, 1080, 1, duration, frameRate); Create the model with custom Lengh

    App.Project.Item (01).layers.addSolid ([0,0,0], "BG", 1920, 1080, 1, length); Create solid BG

    var firstLayer = app.project.item (1) .layer (1);

    firstLayer.label = 16;

    App.Project.Item (01).layers.addSolid ([0,0,0], "FX", 1920, 1080, 1, length); Create sound FX

    App.Project.Item (01).layers.addNull (Duration); Create the Null object

    var firstLayer = app.project.item (1) .layer (1); Rename the Null object

    firstLayer.enabled = false;

    firstLayer.name = "Beats";

    firstLayer.label = 0;

    Place a marker on the 64 first beat

    var myMarker = new MarkerValue("0");

    firstLayer.property("Marker").setValueAtTime (beat * 0, myMarker);

    Every beat on opacity-keys

    myProperty = firstLayer.opacity;

    myProperty.setValueAtTime (beat * 0, 0);


    For reference, I'm going to place code Dan here and use line numbers, as I explained.

    Fig. A

    var name = prompt("Composition name");
    var BPM =prompt("Your BPM");
    if (isNaN(BPM)) {
        alert("You must give the comp a value");
      }
    
    var Beats = prompt("How Many Beat");
    if (isNaN(Beats)) {
        alert("You must give the comp a value");
        }
    
    var frameRate = prompt("Your fps");
    if (isNaN(frameRate)) {
        alert("You must give the comp a value");
        }
    
    var duration = ( 60  / BPM * Beats ); //Auto Generated
    var beat = (60  / BPM);
    //Creation Part
    var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate); // Create Comp with Custom Lengh
    var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration); // Create BG Solid
    firstLayer.label = 16;
    myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration); // Create FX Solid
    firstLayer = myComp.layers.addNull(duration); // Create Null Object
    firstLayer.enabled = false;
    firstLayer.name = "Beats";
    firstLayer.label = 0;
    // Place a marker on the 64 first beat
    var myMarker = new MarkerValue("0");
    firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
    // Key every Beat on opacity
    var myProperty = firstLayer.opacity;
    myProperty.setValueAtTime(beat*0, 0);
    

    OK, so for your configuration, looks like you're striking four data sets. You have the model name (fig.) At line 1), BPM (lines 2-5 of Fig. (A), (lines 7-10 of Fig. rhythms (A) and the FPS (lines 12 to 15 of Fig. (A). then it comes to the UI, you can change what I had posted to...

    res = "group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
    }"
    

    This will give you all entries in four data for the user interface. It is preferable to assign each control to a new variable for use in your script.

    // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    

    Once you have these variables you can then start the default implementation as appropriate. in this case, the drop-down list should be a starting point for it's selection, so that you can say to use the first default entry as follows.

    //Defaults
      fps.selection = 0;
    

    Now, you can configure your onClick for button createComp feature. This will contain to working part of the Dan code that treats everything (lines 17-33 of Fig. (A). I've added a few lines of options above this (lines B Fig. 1-7) in the below code just to match the variable names so you wouldn't need to change the code.

    Fig. B

    //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    

    Then line 2 Fig. b starts the call onClick for button and assigns a function. Within the function, we run the process. Fig. B Line 4 seizes the compName edit text attribute of the text control, using the Number() function convert us this text to a number for use online B Fig. 9 and 10 and B Fig. 5 line gets the text attribute of the text control edit BPM. Goes same for line 6 of the Fig. B and the beats variable. For line B Fig. 7, a drop-down list requires calling his selection of the attribute, then it is text attribute to get the actual string. The drop was more logical for FPS due to the standard rates that exist. This list can be changed of course to your liking. Now, there is no safety net as I like to call for the modification of the text controls to make sure text is not entered when you need a number and vice versa. It would be something of can check after line 7, Fig. B before trying to run the code in process (Fig. B lines 9-25). I hope that it will be easy enough for you to understand.

    If the script is as follows.

    {
    function myScript(thisObj) {
      function myScript_buildUI(thisObj) {
      var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "My Panel Name", [0, 0, 300, 300]);
    
      res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'fill'],\
      myCompName: EditText{text:'Enter comp name'},\
      myBPM: EditText{text:'Enter BPM'},\
      myBeats: EditText{text:'Enter beats'},\
      myFPS: DropDownList{properties:{items:['23.976', '24', '29.97', '30', '59.97', '60']}},\
      createComp: Button{text:'Create comp'},\
      }"
    
      //Add resource string to panel
      myPanel.grp = myPanel.add(res);
    
      // Control Variables
      var compName = myPanel.grp.myCompName;
      var myBPM = myPanel.grp.myBPM;
      var myBeats = myPanel.grp.myBeats;
      var fps = myPanel.grp.myFPS;
      var createComp = myPanel.grp.createComp;
    
      //Defaults
      fps.selection = 0;
    
      //onClick setups
      createComp.onClick = function(){
      //Gather user entered values
      var name = compName.text;
      var BPM = Number(myBPM.text);
      var Beats = Number(myBeats.text);
      var frameRate = fps.selection.text;
    
      var duration = ( 60  / BPM * Beats );
      var beat = (60  / BPM);
    
      //Creation Part
      var myComp = app.project.items.addComp(name, 1920, 1080, 1, duration, frameRate);
      var firstLayer = myComp.layers.addSolid([0,0,0], "BG", 1920, 1080, 1, duration);
      firstLayer.label = 16;
      myComp.layers.addSolid([0,0,0], "FX", 1920, 1080, 1, duration);
      firstLayer = myComp.layers.addNull(duration);
      firstLayer.enabled = false;
      firstLayer.name = "Beats";
      firstLayer.label = 0;
    
      // Place a marker on the 64 first beat
      var myMarker = new MarkerValue("0");
      firstLayer.property("Marker").setValueAtTime(beat*0, myMarker);
      // Key every Beat on opacity
      var myProperty = firstLayer.opacity;
      myProperty.setValueAtTime(beat*0, 0);
      }
    
      //Setup panel sizing and make panel resizable
      myPanel.layout.layout(true);
      myPanel.grp.minimumSize = myPanel.grp.size;
      myPanel.layout.resize();
      myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
    
      return myPanel;
      }
    
      var myScriptPal = myScript_buildUI(thisObj);
    
      if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
      myScriptPal.center();
      myScriptPal.show();
      }
      }
    
      myScript(this);
    }
    
  • Way around Parental controls so that I can connect on another user?

    Here's the scenario.  I created a time limit on the standard account of my daughter.  No access after 21:00.  At 22:00, while I use my admin account, so I want to restart the computer.  But I get a warning that account my daughter is still connected, and if I restart, then evil and bad calamities happen.  If I pass on his own, but by design, it won't let me log on because it's after 21:00.  So I wait until the next day to connect out, then restart.

    Is there a way to bypass the parental control and I would like to log on to their account so that I can close it and then again?

    your account is an administrator account, correct?  You should be able to go into account management and change the settings so that instead of locking his account at 21:00, it blocks out at 22:00 or later, from here you should be able to change him, user, log (provided you do within the new time allowed) then you can log on to the administrator account and set again as the settings back to 21:00 and it will allow you to reset without a problem

  • Need to call the Shell script that uses SQL loader in APex4.1 / 11g

    Hello!

    I have a requirement in which I need to call a shell script that connects to an external server, FTP to a file and then use sqlloader to load data into our table. We have now the ftp script that accomplishes this task to another program, but is a scheduled task. I wanted to call the script ftp in the APEX. Any suggestions on how this can be done, what is the logic of PL/SQL can we use? I saw online some people using DBMS Scheduler for this?

    Thank you
    Sun

    Hello

    Create some sh script on your computer host oracle where you can join in the external server and run the process.
    something like:

    run_external_sh.sh

    #!/bin/sh
    ssh ext_user@ext_host ./sqlloader/import/import.sh
    

    Then create an external TASK to call it via ORACLE (PL/SQL)

    -Shell Script call.

    BEGIN
      DBMS_SCHEDULER.create_program (
        program_name        => 'external_call_sh',
        program_type        => 'EXECUTABLE',
        program_action      => '/local_host/call_external/sh/run_external_sh.sh',
        number_of_arguments => 0,
        enabled             => TRUE,
        comments            => 'Call external SH script');
    END;
    /
    

    You can now create a regular / or unplanned WORK
    -Job defined by the calendar and an existing program.

    BEGIN
      DBMS_SCHEDULER.create_job (
        job_name      => 'jb_external_call_sh',
        program_name  => 'external_call_sh',
        schedule_name => 'external_call_scheduler', -- created scheduler
        enabled       => TRUE,
        comments      => 'Job defined by an existing external_call_sh program and schedule.');
    END;
    /
    

    You can now call the WORK in the APEX in the process of PL/SQL.

    BEGIN
      -- Run job synchronously.
      DBMS_SCHEDULER.run_job (job_name            => 'jb_external_call_sh');
    END;
    

    Concerning
    J :D

  • Using scripts to create expressions?

    I am trying to automate the creation of a bunch of expressions rather involved.  Is - this it is possible to write a script that creates an expression?  For example, can I write a script that sets the position of a layer to "wiggle (5,10)? 

    And conversely, a script can access the source code of an existing expression?  If I look at the value of a layer that has a wiggle function, I just get the wiggle, not the actual code value generating these random values.

    To set an expression:

    myLayer.property("Position").expression = "wiggle (5,10);

    To retrieve an expression

    var myExpr = myLayer.property("Position").expression;

    Dan

  • queue exception thanks to another user access

    Hello

    Just need a little help for fact and exception queue by another user.

    I have a queue in detail a. (test_q). When messages expire they land in the q of the exception (AQ$ _test_q_E).

    I have a diagram A package that retrieves the message EXPIRES of AQ$ test_q and requeues then the payload once again in the same queue. Then she takes off the expired message from AQ$ _TEST_Q_E to remove the expired entry from test_q.

    The lot above works fine when I run help diagram A.

    But if I try to use this package using user B (after giving subsidies and the creation of synonyms for package and the queue in diagram B), I'm getting ORA-24010: QUEUE SCHEMAB. AQ$ _TEST_Q_E does not exist.

    He seems to be the new message in the main diagram A queue, but failed when deleting the message PASSED from AQ$ _TEST_Q_E figure A.

    NA not find any grant to a queue for the exception that can be given to another user... .only enqueue and dequeue privileges are there in the exception queue, I gave to user B, but it does not seem to recognize the exception queue in the first place.

    Any help or any other way to remove the EXPIRED queue for exception message will be highly appreciated...

    ORA-24010: QUEUE SCHEMAB. AQ$ _TEST_Q_E does not exist

    The scheme, which is prefixed is SCHEMAB. Why is this? May be you must precede the name of schema (SCHEMAA) in your package

  • How to share a workspace customized with another user

    Is it possible to share a personalized workspace FrameMaker with another computer? The workspace is saved as a file somewhere that could be given to another user?

    Search for .cfws files in C:\Users\User_name\AppData\Roaming\Adobe\FrameMaker\xx\WorkSpaces\

  • How to view the activity of another user on the computer

    I want to be able to search the activity of another user, and if I am able to see what they've removed because my son told me it wouldn't matter because it has deleted his old research and e-mail. So I guess my main question is if you can view deleted the activity. I am registered as an administrator. Vista is the operating system that I use

    Set up Parental controls activity reports

    You can use activity reports to see your children's online activities.

    To turn on activity reports

    1. Parental control opened through Control Panel. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. Click the account you want to turn on activity reporting for.

    3. Under Parental controls, click.

    4. The title of the activity tracking, click on, collect information about the use of the computer.

    To view activity reports

    1. Open parental controls in Control Panel. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. Click the account that you want to view activity reports.

    3. Click view reports of activity.

    I hope this helps

    If this post can help solve your problem, please click the 'Mark as answer"If you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Is it possible for me to show some web app from a web application in Details view of another web app?

    Is it possible for me to show some web app from a web application in Details view of another web app?

    -relationship (one) 1-1 with a point of web application and another through custom field data source is an option.

    -Display of the elements of the same classification is another.

    Apart from that, British Colombia has really bad interconnection.

  • I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.

    I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.  I am a novice using Javascript, so what am I doing wrong?

    Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.

  • Trying to create a script that lists all clusters in a data center

    Hello

    I am trying to create a script that exports a vCenter configuration essentially and imports it in a new vCenter. I want the script to run without specifying a center of data manually. All the scripts I've seen you need to manually enter the data center.

    So, how to do a list of all the data centers with clusters in each of them? I also want to create a variable that contains the groups for the respective data centers. Here's a basic idea of what I want to do:

    $Datacenters = get-data center

    foreach ($Datacenter to $Datacenters)

    {

    $cluster = get-Cluster-location $Datacenter

    Write-Host "list of clusters in $Datacenters.

    Write-Host "$Cluster".

    }

    Who will give me the output like this:

    List cluster Datacenter1

    cluster2 CLUSTER1

    List cluster Datacenter2

    cluster3 cluster4

    But I don't know how I can get so I have variable like this:

    $datacenter1 = cluster1, cluster2

    $datacenter2 = cluster3, cluster4

    Did you mean something like this?

    Get-data center | %{

    New-Variable - Name $_. Name - value ([string]: join ("," (Get-Cluster-location $_ | % {$_.}))) Name})))

    }

Maybe you are looking for

  • New hard drive and CMD R does not work

    Hello My old hard drive crashed while I bought a new one.  I tried restoring the internet and it goes through the process, but I just get the apple logo that stays for hours.  Can someone point me in the correct direction.  I am assumeing that I need

  • View a printable Version

    Would it not be possible to add something like "See a printable Version" on this forum (and), as well as in http://www.hpmuseum.org/forum/forum-4.html

  • Laptop HP 2000: password administrator or power on password

    Hello... I've been locked out of my pc... He asks me the administrator password or power on password. The code I get is 86534651. Can someone help me with this problem please?

  • updated drivers for nvidia geforce gt230m for vpccw14fx

    using model vpccw14fxGraphics: Geforce GT230mdriver version: 186.47NVIDIA have officially updated the driver version: 340.52on 2014.7.29 But when I tried to automatically find drivers for my graphics card NVIDIA on their site, it show an ERROR "the m

  • Power supply is turned on, but not fans.

    I have a Gateway with Vista Home 5478. My power supply is on, but the vista system will not start. The power light is on, but that's all. I also noticed that all fans, including the fans inside my diet, are dead. I changed power supplies, increased f