How to set multiple parameters in a sql EXECUTE IMMEDIATE

I want to set nls_language and nls_date_language and set them as different languages. fnd_global.set_nls_context () does not work. So I think I can use the EXECUTE IMMEDIATE and add them together into a single statement. But I don't know how to make that happen. Can someone help me? Thank you very much.

PS: It must be done in a single call.

928091 wrote:
Hey, thanks for your reply, I forgot to mention that it should be in the begin-end block, do you know how?

EXEC is a more SQL API which can be used to execute the PL/SQL code. What it does is put the PL/SQL code in a BEGIN block... END of block and run.

So, you can also manually put code in a BEGIN block... END of block and run like that.

SQL> begin
  2     execute immediate q'[begin execute immediate 'alter session set nls_date_language = ''AMERICAN'''; execute immediate 'alter session set nls_language = ''AMERICAN'''; end;]';
  3  end;
  4  /

PL/SQL procedure successfully completed.

SQL> 

And I don't understand what possible benefit he made a single run in a BEGIN block... Terminate during execution of multiples.

Why this code is not in your interest, something like this

begin
     execute immediate 'alter session set nls_date_language = ''AMERICAN''';
     execute immediate 'alter session set nls_language = ''AMERICAN''';
end;
/

Tags: Database

Similar Questions

  • How to set the parameters of width image scroller

    I followed a tutorial on how to build an image thumb wheel. In this tutorial the scrolling of the image extends from one side of the stage to the other, i.e. flash to the edge. I want to shorten in width, as 50 pixels or the other side of the stage. How to set these parameters? What would be a line of code to cut where I want? Here's what I have for the construction of the wheel:

    /////Build Scroller MovieClip to Contain Each Image
    var scroller:MovieClip = new MovieClip();
    var padding:Number = 10;//creating a var for padding to be used later on in easier calculations
    
    this.addChild(scroller);
    scroller.y = 600;
    scroller.x = padding;
    

    (I tried scroller.x - but he only positioned the scrolling differently on the stage. Once it scrolls on mouse over it yet completely jumps to the left, and in any case it doesn't take care of the right edge)

    Chances are that you only need to add a mask for the scroller object.  Create a rectangle that is as wide as you want the thumbs on the stage that it becomes a movieclip/sprite and assign it an instance name.  Then assign it just like a mask for scrolling using the: scroller.mask = masksInstanceName;

    You may need to adjust the code of a scroller for use limits of the mask instead of the scene if it currently specifies limits for scrolling.

  • How to set the parameters of the Justification

    Hello

    I'm trying to set the parameters of the justification of a paragraph using a different Set of IJustificationStyle accessor methods, but the paragraph does not reflect the changes I put in the Set accessor methods. I can see using the IJusificationStyle-> GetWordspace method that the value has been changed.

    I tried to recompose the wax using IFramelistComposer-> RecomposeThruNthFrame() method after setting the values, but still the paragraph will not reflect the change in values.

    Any help is much appreciated, thank you!

    -Jeff

    Treat existing attributes that you got through query... () as readonly.

    For changes, use a command. See for example BuildApplyTextAttrCmd, Mike post.

    Dirk

  • How to set the parameters of scanning on Officejet 6500 connected to a Mac?

    I'm trying to scan documents and pictures using the following:

    Scanner: HP Officejet 6500 E710n-z all-in-one
    Computer: Macbook Pro retina
    Operating system: OS X mount Lion
    Application: "HP Scan" (this application was provided by HP)

    Whenever I have analyze anything, it comes out in grayscale at 300 dpi resolution.  At least, this is what HP Scan tells me when I click on the "Info" button in the lower right.

    I would like to be able to scan things in color rather than just in grayscale, and I wish I could choose the resolutions other than 300PPI.  But I looked everywhere in the graphical interface of the HP scanning application, and I can't find anywhere to adjust these settings.

    Did anyone here know how to change these settings?

    Unfortunately, the link you provided is a version of the software much older than what I have currently installed.

    HP_Installer_Inkjet_Full_Group02_10.3.dmg was published on 14/09/2009, and it is intended for OS X 10.6, aka Snow Leopard.  When I installed the printer installation CD had software pretty much at this time, and he refused to install on MTN. Lion.  Instead it asked me to download the latest version from the HP website.  What is installed on my machine is a file named HP_Mountain_Lion_Ink_SW_v12.23.18.dmg.  Unfortunately, I neglected to save the URL I downloaded from, and I can't seem to find him.  But I saved a copy of the .dmg file in case I ever need to reinstall.

    Meanwhile, I managed to find the answers on my own.  Part of my problem is that, although I'm fairly familiar with Linux and Windows, I am new to the GUI of Mac and his metaphor interface and GUI desktop is different, enough of these I'm familiar with what my instincts are sometimes not a lot of help.  Then, it took me days to notice the only critical button that made all the selections, I was looking for visible.

    HP Scan DO allows you to set things like the Type of Scan (photo or Document), Mode (color, grayscale, black & white), resolution and a number of other parameters.  But we must first click on the "Scan" button... ", and then click on the widget of the arrow to the right of the selection of the Scanner.  By clicking on the arrow pointing downwards in fact all other settings appear.

    If you change the Type of Scan of photo of the Document, it automatically changes color in grayscale Mode, which does not want to create a color PDF.  But you can change the Mode back to color.  And you can save this document as a PDF searchable to call the I.R.I.S. OCR software on it.

    To create a multiple page PDF, or let the software analyzes all sheets in the document feeder, or place another page on the window and click on the button 'Add' in the lower left corner of the window, how it displays the same dialog box that is displayed when you click 'Scan '. ».  You can click on the arrow down and change the settings for each page or leave them alone and they will remain the same as the parameters of the previous page.

    When you have analysed all the pages that you want in a single document, click 'send '.  This displays the usual selection of files box.  At this point, if you set the 'Searchable PDF', or 'PDF' format a checkbox will appear marked "save all items in a single file.

    Thus, it seems that HP Scan works with MTN. Lion, it provides all the features that Capture of Image and seen I.R.I.S. integrated in it, it provides OCR features that Capture of Image is not.

  • How to set the parameters of "Configuration ThinPro" via the HP Device Manager

    Hello

    Maybe I'm blind, but how can I set the settings in "Setup ThinPro', accessible from

    ThinPro Control Center-->

    Control Panel-->

    Setup-->

    Configuration ThinPro

    through the HP Device Manager? These parameters allows to use a very strict kiosk mode, which we want to deploy. So far I found just to solve this problem through a complete picture, but this isn't a solution for me.

    I hope that I have forget something or you have another clue.

    Concerning

    Looks like there is no direct way via the HP Device Manager. Now, I manually configure a thin Client and save the registry.xml that I can ride with other devices.

    Concerning

  • How to set multiple values clustered with local variable?

    Hi all

    Okay, I made my way through Labview for everyone and have some basic concepts down. I can see with a cluster, if acting directly on it, you can ungroup, change values, rebundle, etc..

    I try something a little more complex... and just do not know how to start on this.

    I have a menu menu ring set. I created this with a typedef, with 4 values.  I used this typedef 7 times, more a few LED bool, in a cluster. I made this cluster a typedef.

    Therefore, in my main vi, I started designing, I put an example posted here... and inside, I have two instantiations of the typedef cluster commands selection of left and right.

    I dropped in this vi, a copy of the menu ring typedef (same typedef as in clusters, values) called reset all tubes.

    Now, I am trying to understand how, with an event to change the value to 'reset all the tubes'... that I can start with the left switch and change all tubes (here is the menu ring selector) to the same value as what has been selected with the ring of menu 'Reset all the tubes'.

    I created a local variable for the selector on the left. It is configured to read values. (I'll be doing the same thing with the right too, but just to start with the left).

    In the examples I've seen where access to a cluster, you could ungroup the cluster... browse and change the values... maybe pull out all the "hits" in a table and go through to update the values.  And when you group or ungroup the bunch... you can see the values, etc., when you stretch on the block diagram.

    With the local variable... I do not see to 'stretch' it as I expected... so I can access the values "tubes"... and all at the value of the 'reset all the tubes' ring menu value.

    Someone can put me on the path on the best way to do... or is it a component structure I'm missing here?  Am that I on the right track everything first here?

    It seems pretty basic to me, but miss me just something here on the way to start...

    Thank you in advance,

    Cayenne

    You can't do this with a for loop of how the Department is structured, but why make it so complicated?  Just group the new value in the cluster, as shown below:

    If you do not want to use a loop for example, consider the restructuring of your cluster.  Group ring and a Boolean value in a cluster, and then unmold 7 of those in the cluster of selector.  Then you can use 'cluster to the table' and 'picture of cluster' for all elements of the external cluster will be of the same type.

    Also, be careful when using rings in the form of type definitions.  You probably want to use an enumeration instead.  The elements of a ring do not update the when you update the type definition because they are considered to be cosmetics. the elements of a definition of enumeration type update, because the elements of an enumeration are considered as part of the data type.

  • How to set multiple home pages without also getting the page General options?

    I have two tabs with the sites I want as my home page. To set them as my homepage I have to open the tab options to access the general Panel. If I click on the button "use current Pages", it also saves the options under my home page page, that I don't want. I tried with the "open new windows in a new tab instead" checked and unchecked with the same results.

    Hmm, this looks like something that should be fixed.

    For now, I think you need to delete manually on: preferences in the list. Assuming that this is the third tab, click in the home page address box and press the end key to move the cursor to the right. You can use the BACKSPACE key to delete all: preferences and the last. separator. Does it work?

  • How to set the parameters of the AKD with LABVIEW driver?

    Hello

    I am looking for a simple example to set or read the AKD with Labview driver settings.

    The AKD has ethernet communication and control is analog - AKD-P00306-NBAN-0000

    I want to use Labview to read the paramerters even as Kollmorgen WorkBench

    Thanks for your help

    Thank your for your help

    I found a solution with the TELNET Protocol

  • How to set the parameters of release of flash 10.1

    Hello

    In the last Flash Professional CC, you can set the document to Flash 10.3 and more, but to download a Flash banner for advertisers, for example Google, it should be Flash 10.1 or lower.

    I see no possibility of downgrade my 10.1 file or lower.

    What should I do to fix this?

    Thanks in advance.

    GR, Marco

    Re: Flash Pro CC can publish for flash player 9?

  • How to set the parameters of the ipmi/ILO for feeding from a script management?

    I have an installation script entirely work for our guests esx4, the only thing missing is implemented ipmi/ILO settings.

    I searched and can't find answers for this, anyone know how to do it from a script?

    If it is ESX, so part of your kickstart could generate the thumbprint and download these results on a NFS server including vMA has access to perhaps a list of host names + digital fingerprint. You could write a small script which basically monitors a directory for updates and then automatically add to vCenter once the system is ready to go, you can probably do something similar with ESXi, but it will be more complicated that you have not a real way to "launch" the host. However, you can change the image and put your own scripts such as a python script to extract the footprint and again do the same thing by dumping at the exit of a volume shared including vMA has access to.

    If you are interested in editing script ESXi, take a look at 4 part of Maish's article on how you can configure the ESXi ping to a management host host - http://technodrone.blogspot.com/2010/04/esxi-deployment-solution-beginning.html

    =========================================================================

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Q: how to set the parameters of entry and exit

    How can I simple create document that accepts an input parameter (number) and return a value (small/medium/large)? I created in word:

    < pre >
    [p2] Variable_number [value]
    [p1] Variable_value [return value]
    The return value is low if
    less than 10
    return value = "small".
    The return value is average if
    less than 100
    return value = "middle".
    The return value is great if
    less than 1000
    return value = "large".
    < / pre >
    But when I want to test it, I expect this 'value' is a parameter and "return value" output.

    I need these rules of type, which will be accessible as a Web service. I can't you interactie screens.

    Marc

    Marc,

    This can be done simply enough with a table of rules, as follows

    Variable_number[value]
    Variable_text[return value] 
    
    -------------------------------
    | Return Value                 |
    -------------------------------
    | "Small"     | value < 10     |
    -------------------------------
    | "Medium"    | value < 100    |
    -------------------------------
    | "Large"     | value < 1000   |
    -------------------------------
    | Uncertain | Otherwise      |
    -------------------------------
    

    Edited by: frank.hampshire may 20, 2010 02:33 amended the definition of "return value" to variable_text

  • How to set the parameters of starting the server with WLST?

    I have scripts WLST create my WebLogic 10.0, managed servers, resources, etc. I want to add code to set the server start but I can't find the properties related to the launch of server as root, java House, arguments, classpath, etc..

    The relevant part of the script here I have at the moment is:

    def createManagedServer (d, noManagedServers, managed_server_port):
    Katia = DOMAINHOME + ' / ' + d
    readDomain (DOMAINHOME + "/" + d)
    x = 0
    While x < noManagedServers:
    MS = d + 'Man' + str(x+1)
    Create (ms, 'Server')
    CD ("servers /" + ms)
    LP = managed_server_port + (x * 10)
    Set ('ListenPort', LP)
    Set ('AutoRestart', 'true')
    Set ('AutoKillIfFailed', 'true')
    Set ('AutoRestart', 'true')
    Set ('IgnoreSessionsDuringShutdown', 'true')
    Set('GracefulShutdownTimeout',30)
    CD('/')
    x = x + 1
    updateDomain()
    closeDomain()

    Sorry, I forgot to say that we do in online mode.

    Online mode means that my server admin works and I've connected via connect() in my WLST, right?

    Yes, the server must be running.

  • Re: How to set the parameters of the screen?

    This computer screen is too bright. The manual is all in Chinese, which is not so useful for me. If anyone knows, please let me know.
    Thank you

    First of all, it would be interesting to know what model of laptop you have.

    Second, if you use the OS preinstalled Toshiba then the FN keys should work and so you can try the FN + F6 to decrease and FN + F7 to increase the brightness of the screen

  • How to set multiple images as a background?

    Hello world

    I have the task of creating a Web site on Muse and was to include a background that changes randomly to different images. I don't know if this is possible in Muse because it doesn't seem to be an option. I tried to use a slideshow widget to do this, but it does not work well (problems of scaling)

    Is there a way to get around this? I understand that I may need to copy some css coding in Muse to do something like that but I'm not sure what--I'm not really an expert when it comes to coding html/css or javascript. I'm a bit new to Muse aswell however have found ways around most of the problems so far except for this one.

    All useful responses are appreciated thank you!

    This is the file of Muse for you to study. https://DL.dropboxusercontent.com/u/35542090/slideshow.rar

  • How to set the zoom settings menu for lecroywaverunner 6050A

    Hello

    I am trying to initialize the zoom settings of a track of the labview on a Lecroy WaveRunner 6050 A fft. I found how to set the parameters of the fft with the manual of the remote control for LeCroy scopes  http://cdn.lecroy.com/files/manuals/wm-rcm-e_rev_d.pdf ) but I have not found how to set the menu zoom settings.

    I also tried with find command using the command of automation of Lecroy. ( http://cdn.lecroy.com/files/manuals/automation_command_ref_manual_wr.pdf ). but I think that there is a problem with the settings of the commands I send to the scope.

    I just need to put the horizontal and vertical centers and scales.

    If anyone can help,

    Thank you.

    Hello

    I use F1 as my FFT here track.

    Commands to change the scales are:

    Vertical Center: VBS ' app. Math.F1.Zoom.VerCenter = XXXX"

    Portrait/div scale: VBS ' app. Math.F1.Zoom.VerScale = XXXX"

    Horizontal at the Center: VBS ' app. Math.F1.Zoom.HorCenter = XXXX"

    Horzontal scale/div: VBS ' app. Math.F1.Zoom.HorScale = XXXX"

    I also want to point you to an application on the scope that will help you.

    If you go to the file menu and select cut, to the office, there is a shortcut to an application called "XStream Browser"

    The browser is an interactive application that will present all automation methods and properties that are available on the scope.  He acually connects to the scope of the request, so you can use it to test various components to see what they do on the scope.  It is very intuitive and I use it exclusively. (this is where I went looking for the commands above for you).

    Here is a link to Chapter 1 of the manual of automation: http://cdn.lecroy.com/files/manuals/04_xstreamautomation_ch1.pdf

    Page 1 - 5 has a quick introduction to the browser and its use.

    I hope that it becomes operational.

    Kind regards

    Leonard Brown

    LeCroy sales engineer

    1-800-5LeCroy

Maybe you are looking for