SQL Developer usage (newbie) question - using for script development

I'm new to Oracle, but not to SQL (used MS SQL Server off and on for 3 years prior). SQLDeveloper (v1.5.1) was recommended as a dev tool for the work that I'm doing in in Oracle 10.2.0.4. I'm looking to write some scripts to eventually become stored procedures. The problem I'm having is it seems i can only execute one line even though there are multiple statements in the "Enter SQL Statement" window pane.
ie.
select id, Full_Name, unique_name, user_id from srm_resources;
select id, user_name, last_name, first_name from cmn_sec_users;
when i highlight those two lines and click the "Excecute Statement" button, only the top line generates results.
I'm used to using MS SQL's Query Analyzer where I could select one statement or multiple statements to execute, even non-SELECT statements (variable assignments, math, control loops). It does not appear that I have this kind of functionality in SQL Developer - or an I not using the tool correctly?
Thanks
Brian

I'm assuming you're meaning the SQL worksheet here. The green arrow icon is execute statement (F9) The tiny green arrow is execute script (F5). I'm currently on 1.5.4 of SQL Developer.
Hope this helps some. I would download the documentation also.
http://download.oracle.com/docs/cd/E12151_01/index.htm
Evita

Similar Messages

  • Can sap ps be used for product development  for cost monitoring?

    sap-pp is configured but client insisting for product development they want sap-ps ,can sap ps be used for product development  for cost monitoring in textile industry?and how to configure with reference to sap-pp?
    venkatdas vanga

    Hi,
    SAP PS has good Integration with PP and FI CO modules. So goes well along the ETO scenario.
    The normal process is that Project is created and goes in to design phase , where we design product as per customer's requirement . Design BOM helps in this.Once you design is ready you can generate Production Orders base on MRP generated with reference to Projects.
    All the cost including overheads are charged to the Project as actual cost.
    These costs are later settled to Cost Center.
    Refer this link for detailed information http://www50.sap.com/businessmaps/76FC9D515D244754A09308BA54E97C42.htm
    Thanks,
    Nitin

  • Why sql sever database design is used for essbas?

    Hi
    I am new to the Hyperion technology . i would like to know why do we use any RDBM like sql sever database design for essbase which is itself is the database.What is the main difference between these two databases?
    My understanding is that Essbase act as same as SSAS for cube and dimension building.And they use database design for storing the tables and other information.
    Thanks

    A relational database can be used for a number of reasons with Essbase (and is required in some instances). These include
    1. a repository for system tables for Shared services, EAS, Studio,EPMA, Workspace, Financial Management etc
    2. A data source for loading Essbase
    3. A work area for transformations

  • Connecting BI Web Server with SQL Server Express / Visual Studio Express for Report Development

    Hi,
    My company is using the Report Builder 3.0 to build the BI Reports ( I guess based on SQL Server 2008 R2). Our software vendor has provided us the web URL to access the BI Server. I want to generate the BI Reports with SQL Server Express or  Visual
    Studio Express instead of Report Builder 3.0. Need some guidance in this regard.
    regards, BI.Developer.

    Hi,
    Based on my research, if we want to open the report from report server to Business Intelligence Development Studio, we should download the report from report manager, then add this item in Business Intelligence Development Studio. For more details, please
    see the following steps:
    Type the URL in IE browser to access the repot manager.
    Browse to the RDL file folder or location.
    Hover over the report, and click the drop-down arrow near the RDL file.
    Click on download button, the download window will pop up now. Then save the rdl file.
    Click Manage option in the drop-down list, make a note of its Data Source Connection string.
    Create a Report Server Project in Business Intelligence Development Studio.
    Right-click the Reports folder to open the Add Existing Item dialog box, navigate to the location where you saved the .rdl file for the report, and then click Add.
    Right-click the Data Source to verify the connection string is correct.
    Besides, please make sure that software vendor had assigned ‘View reports’, ’Manage reports’, ‘Manage folder’ and ‘Manage data sources’ tasks for your account, so that you can download the report and view the data source.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Newbie question on FindChangeByList script (REVISED)

    Hi...I'm using FindChangeByList (the Javascript version) and I have a question. The default behavior of this script seems to be the following:
    1. If text is selected, then run the script on the text
    2. Otherwise, run the script on the entire document.
    By looking at the script (which I'm pasting below), I can see that the script is intentionally set up this way. I'm totally new to scritping, but by reading the remarks I think these are the relevent lines:
    //Something was selected, but it wasn't a text object, so search the document.
         myFindChangeByList(app.documents.item(0));
    and
    //Nothing was selected, so simply search the document.
       myFindChangeByList(app.documents.item(0));
    MY GOAL:  I want to prevent the script running on my entire document by mistake if I mistakenly don't have the Text tool active.
    I have a feeling that would be very easy to write, but since I know nothing about scripting, I appeal to this forum. Thanks.
    If you need it, the entire script is pasted below. (It's also a standard sample script built into CS4).
    //FindChangeByList.jsx
    //An InDesign CS4 JavaScript
    @@@BUILDINFO@@@ "FindChangeByList.jsx" 2.0.0.0 10-January-2008
    //Loads a series of tab-delimited strings from a text file, then performs a series
    //of find/change operations based on the strings read from the file.
    //The data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash.
    //More complex example:
    //text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    main();
    function main(){
    var myObject;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         myFindChangeByList(app.documents.item(0));
      else{
       //Nothing was selected, so simply search the document.
       myFindChangeByList(app.documents.item(0));
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});
    with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
       with(dialogColumns.add()){
        staticTexts.add({staticLabel:"Search Range:"});
       var myRangeButtons = radiobuttonGroups.add();
       with(myRangeButtons){
        radiobuttonControls.add({staticLabel:"Document"});
        radiobuttonControls.add({staticLabel:"Selected Story", checkedState:true});
        if(app.selection[0].contents != ""){
         radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(myRangeButtons.selectedButton){
       case 0:
        myObject = app.documents.item(0);
        break;
       case 1:
        myObject = app.selection[0].parentStory;
        break;
       case 2:
        myObject = app.selection[0];
        break;
      myDialog.destroy();
      myFindChangeByList(myObject);
    else{
      myDialog.destroy();
    function myFindChangeByList(myObject){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/FindChangeList.txt")
    if(myFindChangeFile != null){
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0,5)=="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;
    Message was edited by: JoJo Jenkins. Proper script formatting was used and the question was revised and made more concise.

    You can't check which instrument is active in InDesign by script (although you can select it, but it's not useful in your case).
    I suggest you  the following approach: check if a single object is selected and if it's a text frame — if so, make a search without showing the dialog.
    Notice that use
    myFindChangeByList(app.selection[0].parentStory.texts[0]);
    instead of
    myFindChangeByList(app.selection[0]);
    this allows me to process threaded and overset text.
    function main(){
         var myObject;
         //Make certain that user interaction (display of dialogs, etc.) is turned on.
         app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
         if(app.documents.length > 0){
              if(app.selection.length == 1 && app.selection[0].constructor.name == "TextFrame"){
                   myFindChangeByList(app.selection[0].parentStory.texts[0]);
              else if(app.selection.length > 0){
                   switch(app.selection[0].constructor.name){
                        case "InsertionPoint":
                        case "Character":
                        case "Word":
                        case "TextStyleRange":
                        case "Line":
                        case "Paragraph":
                        case "TextColumn":
                        case "Text":
                        case "Cell":
                        case "Column":
                        case "Row":
                        case "Table":
                             myDisplayDialog();
                             break;
                        default:
                             //Something was selected, but it wasn't a text object, so search the document.
                             myFindChangeByList(app.documents.item(0));
              else{
                   //Nothing was selected, so simply search the document.
                   myFindChangeByList(app.documents.item(0));
         else{
              alert("No documents are open. Please open a document and try again.");

  • Newbie Question: Command for only Y or N in a column.

    I am just starting on SQL developer and need to know how to enter the command to change a table so that it will only accept a Y or N in the column. I know this is exceedingly simple but how do do it appears nowhere in my textbook.
    Thank you!

    Hi,
    Welcome to the forum!
    What you need is a Check Constraint , like this:
    CREATE TABLE     table_x
         complete_flag     VARCHAR2 (1)     
                   CONSTRAINT x_complete_flag_chk
                   CHECK     ( complete_flag     IN ('Y', 'N')
    );For details, look up "Check constraints" in the SQL Language manual:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/clauses002.htm#sthref3031
    This question actually doesn''t have anything to do with SQL Developer or SQL*Plus, which are front-end tools for communicating with the database. In the future, you'll be better off posting questions like this in the SQL and PL/SQL forum:
    PL/SQL
    I know it's not easy to tell them apart when you're just beginning. When in doubt, it's probably best to guess that it's a SQL question, and post it in the forum above.

  • [SOLVED] Question: procedure for official developer/trusted user keys

    A simple question, I hope:
    I've generated my key, signed the 5 master keys, and granted `marginal' trust to each. Afterwards when updating, pacman asks if I'd like to `import' several keys attached to names that I recognize from the developer community.
    My question: After importing in this way, am I finished? Were these new keys confirmed to be signed by 3 or more master keys?
    Thanks in advance for your insight.
    Last edited by Eye4anIrony (2012-04-01 16:17:07)

    Arch Wiki wrote:The official developer and TU keys are signed by the master keys, so you do not need to use pacman-key to sign them yourself. Whenever pacman encounters a key it does not recognize, it will ask you if you want to download it from a keyserver. Once you have downloaded a developer key, you will not have to download it again, and it can be used to verify any other packages signed by that developer.
    https://wiki.archlinux.org/index.php/Pa … loper_keys
    Last edited by jasonwryan (2012-04-01 04:38:48)

  • BSP Usage,  is it recommeded for newer developements?

    Hi All,
    in case of new developments (new projects), is bsp recommended to use. if yes, for what purposes?
    i heard that web-dynpro abap is newer web based UI development tool and BSP is has become older.
    are there any use cases, in which we still recommend to use BSPs?
    are there any specific purposes for which we must use BSPs?
    btw, i follow the scn content created by Thomas Jung. it seems, in recent years, he is lot more active in webdynpro abap or other stuff (and not much in bsp).. so got an impression that BSPs are not much encouraged by SAP.
    thanks,
    Madhu_1980

    Hi
    I have used BSP almost 5 years back. Its certainly not recommended now. But then it also depends on your requirement and the skillset your team has.
    If you just plan to display some reports or capture some details, BSP is not a bad option. The best thing about BSP is, its as simple as creating a webpage using HTML and you can call all your ABAP routines.
    On the other hand, if you have good knowledge of Dynpro, you should definitely go with ABAP dynpro, Its the latest and the much better than BSP.
    Rgds.
    jhakumar

  • Can mac book pro useful for java developer

    hi iam a java developer and interested to buy mac book pro.
    My question is can i do java projects and programming on mac book pro 13?

    mviplav,
    yes, you could. Versions of the JDK for OS X can be downloaded from Oracle.

  • What email to use for iOS developer program for company

    Hi, I'm planning to register to iOS developer program as a company. My question is, should I use my company email to create the Apple ID? If sometime in the future I leave the company, can the Apple ID email be changed ?

    I would recommend you to use Blowfish, but if you think you dont need a very strong algorithm and prefer to focus on performance(speed),then a 56-bit DES would be adequate.
    You need the javax.crypto.* and javax.crypto.spec.* packages.
    If you will store the information in a file, after you encrypt the data, base64 encode it.
    (there are base64 encode/decode classes in sun.misc package)
    I show u a method implementing that:
    public String encryptTxt(String txt,String key){
       try{
          SecretKeySpec specKey=new SecretKeySpec(key, "Blowfish");
          Cipher cipher=Cipher.getInstance("Blowfish"););
          cipher.init( Cipher.ENCRYPT_MODE, specKey);
          return new String(  new BASE64Encoder().encodeBuffer( cipher.doFinal(txt.getBytes())) );
       }catch(Exception e){return txt;}
      }HTH

  • Hosting application server useful for running developed applications?

    Hi,
             For my online applications, I am going to host the application to run on internet using hosting server.
    My doubt is, as like my local application server , Will i be apply to use the hosting server to run the application?
    Or I need to use my local application server in that hosting server to exclusively run the applications ?
    Pls suggest regarding this.
    - TechniM

    You shouldn't, Developer Release is currently 11g Fusion Middleware.
    see http://www.oracle.com/support/library/brochure/lifetime-support-middleware.pdf, support for 9i ended 4 years ago.

  • What to use for NW04s development systems

    Hi all,
    till now we were developing on NW04, with the devlopers having XP (SP2) laptops with an installed WebAS 6.40, Portal, KMC running with an MSDE(MSSQL 2000). So far so good. But we now have to switch to NW04s. Looking into service.sap.com/swdc I find unter update just Updatemasters for Win Server not XP. Therefore I also get an error while installation that this setup is not ment to be used with this OS. Is it possible at all to install 04s under XP? Where do I get the installation files from? How are you guys doing it? WE do have a develop server ( unix)  in place which is attached to the NWDI - but it is not very handy with a bunch of webdynpro developers to all do the testing on one server. Maybe somebody can help me on this - would appreciate it!

    Hi Christian,
    Well you should download SR2 cd's How to get into it.
    service.sap.com/swdc. This is the software distribution center. Go to download and down load by application group. select netweaver and then NW2004s. There you get the option of selecting the OS and inside a particular OS you have the option to chose your database. You get a list of cd's. Here you can select the Instalation master, export, database, kernel, java, Components cd. Rest of the choice is your's. Proceed to download.
    Remember that this SR2 is the SPS09 level. While the current release is SPS11. So hence forth you can go to service.sap.com/sp-stacks and select the patches of your choice moving quite the same way and then download those patches and further apply them using JSPM. Ensure that your SDMKIT.JAR and kernel files are included in the list.
    To use JSPM you should login as sidadm and also place all the contents under trans/EPS/in folder.
    DO reward good points as it helps keeping the spirit of the forum alive.

  • Newbie question: Using the pen tool

    Hi, I drew a shape with the pen tool in Flash CS4. When I double click on  the line it highlights the entire shape, but I can't fill for some  reason.  If I single click, only part of the line is highlighted (before it  changes angle). How can I get this line to connect as a shape to invoke  fill on it?
    Thanks, Mike

    also check out the "close large gaps" option when using the paintbucket tool
    http://www.wonderhowto.com/how-to-close-large-gaps-fill-color-adobe-flash-cs4-305979/

  • Newbie Question,preferences for saving images

    Brand new to PS, CS5, how do I change or set preferences so all images, pictures, masters and versions are saved to external hard drive and not the pictures library in iphoto? Thanks in advance.  r ahrens

    Is the limitation of 1000 pixels something that's intended to sell Premiere Pro for people wanting true HD resolution?
    The 1000 x 750 suggestion is for an SD/DVD-Video Project. With a BD Project, you would bump that up to match your intended output, say 1440 x 1080, with a bit of room to Pan on a Zoomed out image.
    Personally, for an SD Project, I will Scale the vast majority of the images to the exact size that I need - 720 x 480. When I have a few images that will be Panned on, while Zoomed out, I will calculate the movement that I need and resize to those dimensions. The 1000 x 750 size takes the possibility of the Pan into account. I like to match things up as perfectly as I can, even if it means Scaling some image to one size, and others to another. Many just want something that will probably work for all images and just Scale to one size for everything.
    The larger the image vs the Project's Frame Size, the more processing power will be needed, and the more Scaling that will be heaped onto PrE, resulting in slightly lower quality, as opposed to resizing in Photoshop.
    I'm not positive about the limit in PrE, but in its "big-brother," PrPro, the limit is 4096 pixels in the largest dimension. Obviously, there are not many instances where one would want images that large, unless they needed to do a major Pan, while Zoomed out. It would not take too many such images, before the program is bogged down too much to function. If someone had such images, I would strongly advise that they look into Adobe AfterEffects to do the animations, and then output as a DV-AVI, or appropriate intermediate format, to be Imported into the NLE.
    Hope that this helps and good luck,
    Hunt

  • There is any Scripting languages is used for mobile application development

    Is there is any Scripting languages is used for mobile application development?
    For example java script,vb script is used for web development.Like that is there is any scripting language is used for mobile application development along with J2me.
    Thanks & Regards, Sivakumar.J

    806437 wrote:
    .. is there is any scripting language is used for mobile application development along with J2me.If you are talking about javax.script,
    google ( [url http://www.google.com/search?q=java+me+javax.script]java me javax.script ) gave me http://sourceforge.net/projects/rhinoj2mecldc/

Maybe you are looking for