How to run the SQL...

Hello
It's embarrassing... I've been around my old files post v2 migration SQL encoding problems... but now the statements will not work! In fact I don't get the run option in the spreadsheet at all. With this newly created net of such statements will run. The options at the top of the tab are grayed out. I tried to highlight the SQL, the F9 shortcut block, pull down menus, etc.. No luck.

Any comment appreciated... Please be kind :-)

A

It is something that they went out in 2.1 and there is now an enhancement request to add it to (see Re: 2.1EA2: dialog box connection select is no longer used if no connection).

theFurryOne

Tags: Database

Similar Questions

  • How to run the .sql file

    Hello
    I want to execute .sql files in sql, as well as a fixed location, it may be the network location or to the system drive. so that I can use it on other computers when I'll work on another pc.

    so please tell me for the localization of network and disk solution. by default it look in the BIN directory

    I use oracle 10g.
    Thank you

    Apart from William Robertson's response:
    I'll make sure that I put it for everyone on a network share and map their in their connection to this directory, so it can be accessed as g: or letter that everything that you want. That would keep things manageable.

    For the question of privilege, please set up a separate thread.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to run the type of object...

    HI team,

    Please let me know how to run pl/SQL object type.

    create or replace TYPE  T_PARTY_ID_LIST  AS TABLE OF T_PARTY_ID; 
    create or replace TYPE  T_PARTY_ID AS OBJECT
     (SEQ NUMBER(10,0)
     ,COUNTRY_ID CHAR(2)
     ,ID VARCHAR2(50)
     ,ID_TYPE VARCHAR(3)
     ,DATE_FROM DATE
     ,DATE_TO DATE
     );
    
    create or replace PROCEDURE P_UPDATE_RICA_COUNT_ID
     (A_PARTY_IDS IN T_PARTY_ID_LIST
     ,A_ICAP_ID  IN number
     ) as
    v_id      sa_id_registration_counts.id%TYPE;
    
    --
    BEGIN
        FOR C IN (SELECT X.id_type, X.ID FROM TABLE (CAST(A_party_ids AS T_PARTY_ID_LIST)) X
                 WHERE X.ID_Type IN ('N','P','B')
                 ORDER BY X.ID_Type)
       LOOP
    --
          BEGIN
     --             
             UPDATE sa_id_registration_counts
             SET no_of_registrations = no_of_registrations-1
             WHERE id = V_ID
                   AND id_type = C.ID_Type;
    --
             IF SQL%ROWCOUNT < 1 THEN
                RAISE NO_DATA_FOUND;
             END IF;
    --
          EXCEPTION
             WHEN NO_DATA_FOUND THEN
                BEGIN
    --
                   INSERT
                   INTO sa_id_registration_counts
                      (id ,id_type,exclude_yn,no_of_registrations)
                   SELECT V_ID,C.ID_Type,'N',1 
                   FROM dual;
    --
                EXCEPTION
                   WHEN OTHERS THEN
                      RAISE_APPLICATION_ERROR(-20000,'Error updating RICA ID count ['||SQLERRM||']');
                END;  
          END;
    --
       END LOOP;  
    --
    END;
    --
    

    I'm trying, but receive an error message

    DECLARE
      A_PARTY_IDS SCOTT.T_PARTY_ID_LIST;
      A_ICAP_ID NUMBER :=12323;
    BEGIN
    
    A_PARTY_IDS.extend(1);
      SELECT T_PARTY_ID(1,'1','1','1',null,null) INTO A_PARTY_IDS(1)
       FROM DUAL;
       
      P_UPDATE_RICA_COUNT_ID(
        A_PARTY_IDS => A_PARTY_IDS,
        A_ICAP_ID => A_ICAP_ID );
    
    END;
    Error report -
    ORA-06531: Reference to uninitialized collection
    

    I do not know why you do what you do that is row-by-row (aka slow-by-slow), when you could do all this in a single merge - something like statement:

    create or replace PROCEDURE P_UPDATE_RICA_COUNT_ID
       (A_PARTY_IDS IN T_PARTY_ID_LIST,
        A_ICAP_ID  IN number)
    as
    begin
      merge into sa_id_registration_counts tgt
      using (select x.id_type, x.id, count(*) cnt
             from   table(cast(a_party_ids as t_party_id_list)) x
             where  x.id_type in ('N', 'P', 'B')
             group by x.id_type, x.id) src
         on (tgt.id_type = src.id_type
             and tgt.id = src.id)
      when matched then
        update set no_of_registrations = no_of_registrations - src.cnt
      when not matched then
        insert (tgt.id, tgt.id_type, tgt.exclude_yn, tgt.no_of_registrations)
        values (src.id, src.id_type, 'N', 1);
    end;
    /
    

    You v_id in your procedure, but you never defined anywhere, for as far as I could tell, so I made a few assumptions about the join condition. You will need to change if necessary.

    Meanwhile, for your procedure, you should do something like:

    DECLARE
      A_PARTY_IDS T_PARTY_ID_LIST := t_party_id_list();  -- initialised the collection here
      A_ICAP_ID NUMBER :=12323;
    BEGIN  
    
      A_PARTY_IDS.extend(1);
      A_PARTY_IDS(1) := T_PARTY_ID(1,'1','1','1',null,null); 
    
      P_UPDATE_RICA_COUNT_ID(
          A_PARTY_IDS => A_PARTY_IDS,
          A_ICAP_ID => A_ICAP_ID );
    end;
    /
    

    Another thing - you seem to like selection of the many double - if you're in PL/SQL, then you can just assign variables directly (overall; there are a few exceptions, depending on your version of the database).

  • How to run wfstatus.sql for i-expenses

    How to run wfstatus.sql i-expenses in EBS 11i.

    Select this check box, hope it helps.

    How to find and solve the reports on Internet expenditures within workflow [ID 185004.1]

    How wfstatus.sql to run on a statement of expenses Internet [134895.1 ID]

  • How to run grid sql statements

    Hello

    I would like to run some of the grid control sql statements as tablespace freespace check.

    Grid options could there be to execute the sql statement?

    If so, how to set up the output of the sql for E-mail

    Please I need your suggestion to proceed.

    Version of the grid: 10.2.0.5.0
    Platform: Sun

    Thank you.

    Hello

    no need to run the sql statement of the grid, instead of that you can configure the threshold values.

    for example, if your tablespace capacity 85% complete and then he will send you the email alert that you configured in notifications.

    you will find on the home page - bottom of the page - > manage settings...

    check http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/montune001.htm#CACCIHAB

    http://download.Oracle.com/docs/CD/B19306_01/EM.102/b40002/notification.htm#sthref995

    Thank you

  • How to execute the sql statement in the file beats?

    I want to execute after the statement
    C:\ > sqlplus/nolog
    SQL > conn scott/tiger
    SQL > select * from tab;

    I know I can achieve it following test.bat and testdb.sql file
    test.bat is:
    sqlplus/nolog @testdb.sql

    TestDB.SQL is:
    Conn scott/tiger
    Select * from tab;

    Now I don't want to use the sql file, I want only use bat file, as follows:
    test.bat is:
    sqlplus/nolog
    Conn scott/tiger
    Select * from tab;

    When I run test.bat, I find only one sqlplus /nolog execute statement, do not execute other statements.
    (1) I want to know if there is a method to run the SQL file by fighting without a sql file? How to make it happen?
    (2) if I call the sql file, how to hide the password of user? Because I don't want other people to know scott password, if I use conn scott/tiger in testdb.sql, other person can see testdb.sql and the password. Is there a good way to avoid?

    Thank you!

    It works a bit different in Windows. Create a file is like this:

    (
      echo conn scott/tiger@orcl
      echo spool c:\temp\list.txt
      echo select sysdate from dual;
      echo spool off
      echo exit
    ) | sqlplus -s -l /nolog
    
  • How to run a SQL string to a procedure of forms?

    Hello

    first the background. I have a Varchar2 column in a Table with a SQL string.
    Now I want to read this chain in forms and run the SQL statement - but I don't know how.

    This is the SQL string:
    Select the country from p_1 from countries where country_nr = p_2

    P_1 and p_2 are Variables in the procedure of forms.

    Most people forget that groups Records are excellent tools for dynamic queries like this. Search for Populate_group_with_query.

    Only you need to change your sql, it is not in the sentence, like this:

    Select the country as P_1
    country
    where country_nr = p_2
    and p_3 = p_3
    and p_4 = p_4

    Select name as P_1
    of the customer
    where customer_nr = p_2
    and country_nr = p_3
    and p_4 = p_4

    Your rec group would have a single column, P_1, where the data would be accessible after the query. Get_group_char_cell allows you to retrieve the value of P_1.  I don't know, but you should not "AS P_1" expression in the select, as long as you have created the record group initially with a specific column name.

    The only thing that is not clear, however, is your use of variables in the where clause. You can either hardcode the literal values in the SQL string, like this:

    'where country_nr = ''123'' and...'

    Note as you build your text string SQL, you use two apostrophes instead of one, given that pl/sql uses the apostrophe of beginning and end of the string.

    Or alternatively, you can use bind variables for your where the variables paragraph as follows:

    where customer_nr = :Parameter.var_2
    and country_nr = :Parameter.var_3

    Then, you can move a value in the: parameter values before completing the Group rec. You can use elements in a block of control rather than the settings, too.

    Here is an example of using dynamic query in a record group: Re: dynamic query

  • Lean how to run the stop code when the highest level VI ends

    Hi people.

    I am a newbie of LV with 30 years of experience in embedded SW engineering.  I searched for how to run the stop code when a VI of highest level ends.  I found many examples, but they are horribly complicated.  A little birdie told me that such a model of simple design should not be so compilicated.

    My application is an application of high tension control to disable all HV checkpoints when the SW ends.  My VI code is running in a while loop with a stop button that leads out of the loop.  I can easily accomplish my requirement by programming with a sequence of plate that runs after the end of the main loop.  The technique of flat sequence does not work when the user clicks the Cancel button in the toolbar of façade, more than that market when the user clicks the close button of the application (X button) when you run the exe application.

    Can someone tell me please a simple technique, the code example that can show me a lean and elegant way to accomplish my task?  It doesn't have to be an obvious solution (for example a stop induced watchdog seems simple enough).

    Thank you - John Speth

    1. place this code in a VI:

    (also attached)

    Calling code in your VI of highest level like this:

  • How to run the VI developed in labVIEW 2011 in its previous versions

    Hi all

    I am currently using LabVIEW 2011 in my PC at home.

    But, all my school's computers are installed with LabVIEW 2010 and 2010 SP1.

    How to run the VI developed in LabVIEW 2011 in its previous versions?

    Is there any conveter why?

    Concerning

    Prasanth T

    Open the VI in LabVIEW 2011 and use the file menu option, save for the previous Version.

  • How to run the Extendscript .bat file?

    I have a file with some instructions .bat and I want that it runs from Extendscript.

    How to run the Extendscript .bat file?

    I tried execute(); order and it seems that .bat ran but no result, but when I double click on the .bat file all worksout very well.

    How used runtime.exec () extend the script?

    Can I communicate with Java JDK thru ExtendScript and run commands such as runtime.exec ()?

    can someone please?

    You can do it like this:

    var batFile = new File("C:\\path\\to\\my\\batfile.bat");
    batFile.execute();
    

    Note that this will only work if your system is configured in such a way that by double-clicking the .bat file runs it in reality.

    You can also use

    system.callSystem()
    

    but note that this is only available in AE.

  • What is tdrc.tdrcfacade and how to run the installation wizard?

    What is tdrc.tdrcfacade and how to run the installation wizard?  My desktop creative cloud application does not open properly... it is just a blank window.

    Much obliged,

    Angiecrichards@gmail.com

    ! !

    Are Angie, you a blank white screen? What version of OS are you using?

    Here's what you can try:

    1. Blank white screen. Sign in | Creative cloud Packer
    2. New application Cloud Creative unusable: it is empty!
    3. Creative cloud Packager white screen after the Adobe ID Login
    4. Re: screen creative black cloud

    Waiting for your response.

  • I downloaded items on my mac and it installed. How to run the program?

    I downloaded items on my mac and it installed. How to run the program.

    Hi David,

    You can simply click on the application to launch from the folder "Applications".

  • How to import the .sql file in oracle apex?

    I am new to oracle apex...

    How to import the .sql file in oracle apex?

    I have to import a table in apex...

    This script I have to write in the .sql file...

    pls help...

    Published by: 794244 on January 31, 2011 21:31

    Hi Manu

    You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character

    Andy

  • How to run the repository creation utility (11.1.1.3.3)

    Hi experts, I downloaded utility creation (11.1.1.3.3) at oracle.com repository as I was told to run it before installing Oracle Business Intelligence, v. 11.1.1.3.0, I already unzipped the UCR, my problem is I do not know where and what run.i I ask the name of the file to be executed, the location of this file because there are so many issues after having unpacked the downloaded file. Finally, how to run the file (for example by double-clicking). Thank you

    Visit this link,

    http://obiee101.blogspot.com/2010/08/obiee11g-installation-on-32-bits-XP-Pro.html

    He noted the location of the controls on the remote file, double click will start the process.

    Thank you
    Vino

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    

Maybe you are looking for

  • Tips...

    I have a MBP 13 "early 2011, that I need to upgrade the RAM for. No joy to find a source for this, unless I want to make the upgrade (which I don't; d it myself). All have a suggestion for a source of the chips at a good price?

  • Satellite U920T - battery short time after 2 years of use of work

    Hi all My 2 years old computer U920t laptop / Tablet satellite ultrabook has bad battery life. The battery will only last up to 2 hours before requiring charging on the basis of data entry doc/excel word normal. Any ideas on how I can improve it? The

  • Classic BlackBerry cannot unlock my Classic

    I have a simple password that I used to unlock my new Blackberry classic. Today my phone refuses to accept the password. The password was created recently, but I've used it since a week without a problem. It's fresh in my mind and I am certainly not

  • How can I control the number of clients connecting to one or more access points?

    Hi guys,. I am using several access points LWAPP/CAPWAP (1010, 1131, 1142) connected to the 4400 series wlan controllers (OS Version 4.2 and 7.0). Regarding the client connection to access points, I have several questions: 1. extent to which clients

  • Mac OS 10.6 Snow Leopard work with HP deskjet 5150?

    Mac OS 10.6 Snow Leopard work with HP deskjet 5150? [Title edited for clarity]. Message edited by SandyD on 08/28/2009 12:55