How run Procedure in SQL Developer?

I need run procedure in SQL Developer with parameter : 2009
create or replace PROCEDURE "update_table" (ff_year in varchar2) AS
CURSOR c_update IS
select DISTINCT P.mafew name, u.frew nameone, t.greddf, .........
I click green button RUN and have new window Run PL/SQL. Where in this script I need to print 2009?
DECLARE
FF_YEAR VARCHAR2(200);
BEGIN
FF_YEAR := NULL;
update_table(
FF_YEAR => FF_YEAR
END;

Hi,
user10886774 wrote:
Thanks all!
I can run the procedure like 1 or 2 example? Is it right?
1 like Run Script
EXEC "UPDATE_TABLE" ('2009');
2 click RUN on UPDATE_TABLE procedure
DECLARE
FF_YEAR VARCHAR2(200);
BEGIN
FF_YEAR := '2009';
UPDATE_TABLE(
FF_YEAR => FF_YEAR
END;
What is the name of the procedure?
Is it update_tabe (all small letters)? If so, you must reference it as "update_table" (all small letters, inside double-quotes).
Is it UPDATE_TABLE (all capital letters)? If so, you have the choice of referencing it as "UPDATE_TABLE" (all capital letters, inside double-quotes) or as update_table, or Update_Table, or UPDATE_TABLE, or uPdAtE_taBle, or ... (any kind of letters, without quotes).
How about commit after?How about it?
What is the question?
If you want to commit, say COMMIT or click on the COMMIT icon.

Similar Messages

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • Re: Probelems running queries in SQL Developer

    I used to be able to run queries in SQL developer without any problems but now I get the followin message whenever I try to run a query
    "Could not initialize class oracle.sql.CHAR"
    p.s. I also get this: "oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;"
    Edited by: user564155 on Jul 26, 2010 1:49 PM

    Might be corrupt settings; backup/delete the SQL Developer/systemXXX directory in the hidden Application Data under your Windows profile to reset your installation to defaults.
    Else, if you run from \sqldeveloper\bin\sqldeveloper.exe, what output do you get in the opened console when starting up and querying? This could help diagnosing the problem.
    Hope that helps,
    K.

  • How to debug a procedure in SQL Developer

    i am a plsql writer .... i use SQL Developer to connect to oracle on windows platform ... iam using oracle
    version 10g some time i need to debug a procedure or i want to run a procedure in debug mode
    please tell me how to do this SQL Developer

    There's great help inside sqldev, just follow the Help Contents - Concepts and usage - Running and debugging...
    Have fun,
    K.

  • How can I execute this procedure in sql developer, cursortype is refcursor

    PROCEDURE GET_CNTRY(CNTRY_NME_IN IN VARCHAR2 DEFAULT NULL,
    QRY_RSLT_OUT OUT CURSORTYPE) AS
    BEGIN
    OPEN QRY_RSLT_OUT FOR
    select
    CNTRY_NME,
    FRGN_CNTRY_CDE,
    INV_VEH_CNTRY_CDE,
    FRGN_CNCY_CDE,
    WTHH_PCT_COLA_CDE
    FROM
    CNTRY
    WHERE
    CNTRY_NME = NVL(CNTRY_NME_IN,CNTRY_NME);
    END GET_CNTRY;

    In SQL Developer run the following code as script (You need to hit F5 to run it as script).
    var rc refcursor
    exec get_cntry (<give your cntry_nme_in>, :rc)
    print :rc

  • Run package store procedure in sql developer

    Night staff, I am using Oracle 11g, only that it gives the following error below, which can be wrong and how to rotate within the sql developer?
    Warning(3,18): PLW-07203: o parâmetro 'CODCEP_EMP' pode se beneficiar do uso da hint do compilador NOCOPY
    ror starting at line 1 in command:
    exec buscadb.tabemp('09811370');
    Error report:
    ORA-06550: linha 1, coluna 7:
    PLS-00306: número incorreto de tipos de argumentos na chamada para 'TABEMP'
    ORA-06550: linha 1, coluna 7:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    create or replace PACKAGE BUSCADB AS
    TYPE t_cursor IS REF CURSOR;
    PROCEDURE TABEMP(CODCEP_EMP IN OUT empresas.cep_emp%TYPE,io_cursor OUT t_cursor);
    END BUSCADB;
    create or replace PACKAGE BODY BUSCADB AS
    PROCEDURE TABEMP(CODCEP_EMP IN OUT empresas.cep_emp%TYPE,io_cursor OUT t_cursor) AS
    v_cursor t_cursor;
    begin
    open v_cursor for
    select cod_emp,nom_emp,end_emp,cep_emp
    from empresas
    where cep_emp = codcep_emp;
    io_cursor := v_cursor;
    END TABEMP;
    END BUSCADB;

    These questions should be posted in the SQL And PL/SQL forum.
    But I can give you this: READ the error. The procedure takes 2 parameters, you only give 1.
    Regards,
    K.

  • How to Execute SQL Server stored procedure through SQL Developer?

    Hi,
    I was successful in connecting SQL Server database using SQL Developer. I am able to see all the objects such Tables,Views & Procedure and also can query data using sql Query. But when it comes to executing procedure there's no option to achieve this. I tried "Exec |<Execute Procedure> Proc_name" but unfortunately both statement threw Errors.
    Please suggest about other alternates.
    Thanks in Advance,
    AP

    Hi,
    I was successful in connecting SQL Server database using SQL Developer. I am able to see all the objects such Tables,Views & Procedure and also can query data using sql Query. But when it comes to executing procedure there's no option to achieve this. I tried "Exec |<Execute Procedure> Proc_name" but unfortunately both statement threw Errors.
    Please suggest about other alternates.
    Thanks in Advance,
    AP

  • Executing Procedures in sql Developer

    Hi ,
    I'm new to SQL Developer and trying to explore the tool . I have written a procedure as
    create or replace PROCEDURE SAMPLE2 AS
    studName Varchar2(8) ;
    BEGIN
    SELECT Stud1.NAME INTO studName
    FROM Stud1
    WHERE Stud1.NAME = 'SOM';
    END ;
    It has compiled perfectly .
    Now when I run by right clicking it works
    But when I'm running it using
    BEGIN
    exec SAMPLE2()
    END;
    or
    BEGIN
    SAMPLE2()
    END;
    it is giving error .
    Morover can you tell me how I can view the data after running the procedure .

    See Executing Anonymous Blocks in SQL Developer
    Remember statements always need to end with ;
    Regards,
    K.

  • Calling Procedure from SQL Developer

    Could anyone tell me how to call a Procedure from a SQL Worksheet using SQL Developer?
    I can run by right clicking the Procedure in the Connections window, but want to call it using SQL commands.
    I can run it using EXECUTE procedurename in SQL Plus but I get an ORA-00900 - invalid SQL statement if I try this in a SQL Worksheet. If I try CALL procedurename, I get an ORA-06576 - not a valid procedure or function name.
    Am I doing something daft (I've been using Oracle for 3 days)?

    begin
    procedure(params);
    end;

  • How can I get SQL Developer working on Windows 7 64-bit

    Hi all,
    I've followed the download instructions for SQL Developer v4 as per the download page (
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-download-v4-1925679.html
    Install instructions: http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-install-windows-1969674.html
    I've  installed SQL Developer requires JDK 7 (jdk-7u25-windows-x64.exe) - with no issues.
    I've also downloaded and unziped to sqldeveloper-4.0.0.12.27-no-jre.zip to C:\Program Files\
    SQL Developer successfully starts, but when I try to connect to a data source, I get the following error:
    Status : Failure -Test failed: C:\Oracle11g\product\11.2.0\client_1\BIN\ocijdbc11.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform.
    can any tell me how I fix this issue........... I getting fed up using clunky toad

    You're trying to use a 32 bit Oracle Client with 64 bit SQL Developer.
    You're doing something in SQL Developer that's requiring us to load OCI - in your connection properties, use Network Alias instead of Connect Identifier for TNS, or make sure in your Advanced settings you don't have 'Use OCI/Thick driver' enabled.
    Or, install a 64 bit copy of the Oracle Client and tell SQL Developer to use that home instead.

  • Help how to connecting Oracle SQL Developer 3.0  with Oracle Database 11g

    Hello,
    I'm new in oracle developer yesterday i setup in my laptop database 11g the last version (11.2.0.1.0), well i follow steps still i got succeed to install, and i got my local host URL and i test my user name and password work very well, my problem now is i try to connect database 11g using Oracle SQL Developer 3.0 (3.0.04.34) but always filed and with my little experience i don't know where the wrong. as i said i test database after finish install is work fine the my URL is https://Ahmed-HP:1158/em and i test my username and password that i already set before is enter normal in my local database, please i need help to know how i connect database with Oracle SQL Developer 3.0 (3.0.04.34).
    Thanks,

    885173 wrote:
    EdStevens, thanks for your quick answer, sorry for my explain was doesn't clear, i open oracle sql developer and choose new connection i set connection name system_orcl username:system password:*i set my password that i create when i setup database*
    -Now the link that i got after finish install database is https://Ahmed-HP:1158/em so i have question about this point Hostname and port if the link to access database is this https://Ahmed-HP:1158/em so this mean i typing at Hostname:localhost and port:1158 ?
    because the message when i test connection always is filed and I'm sure i typing username and password and SID:orcl as i set when install database.port 1158 is what the dbcontrol (Oracle Enterprise Manager) is listening on. OEM is NOT the database. As far as the database is concerned, OEM is "just another client".
    Actually, the database doesn't listen for requests on any port. There is another process, the "listener" that listens for requests to connect to the database. Typically, it listens on port 1521. You should have a tnsnames.ora file set up to resolve a connection request to the correct host. You can read more on this at http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

  • Running scripts in SQL developer in batch mode (windows 7)

    Hi
    Can anybody share the steps to run a set of SQLs in SQL developer in batch mode in Windows 7
    Regards
    -Learnsequel
    Edited by: 910874 on Jul 25, 2012 9:13 AM

    910874 wrote:
    was thinking of something like this
    1) Create a .txt file name 'mysqlfile.txt' in desktop which contains the below statements
    Create table A
    Create table B
    2) Create a .bat file name 'run.bat' and kept in desktop which contains the below statements ( syntax may not be correct though)
    sqlplus -s <DBusername>/<pwd>@//<Hostname>:<port>/<SID>@<C:\Users\<username>\Desktop/mysqlfile.txt>
    3) Double click 'run.bat'
    Any thought?
    Regards
    -Learnsequelit can be made to work;
    but it is a run ONCE file since errors get throw on second & subsequent runs

  • Creating Procedure in SQL Developer 3

    CREATE OR REPLACE PROCEDURE INSERTION_MAIN_2_SP
    AS
    MID NUMBER;
    BEGIN
    SELECT SEQ_ID.NEXTVAL INTO MID FROM DUAL;
    INSERT INTO MASTER_TB VALUES(MID,'AKBER','HYDERABAD','INDIA');
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,700,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,300,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,200,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    INSERT INTO DETAIL VALUES(SEQ_DETAIL.NEXTVAL,MID,SYSDATE,2,600,1);
    END INSERTION_MAIN_2_SP;
    Recieving Error :
    Error: ORA-06552: PL/SQL: Compilation unit analysis terminated ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed

    Hi Asif,
    If the sequences (seq_id, seq_detail) and tables (master_tb, detail) are in the connection's schema and defined with columns having the data types indicated in your code, then the DDL does compile in SQL Developer 3.0.
    Recall that privileges acquired via ROLE do not apply within PL/SQL procedures, so perhaps that is your problem. Otherwise make sure the data values in the INSERT statements map properly to the underlying column ordering in the tables.
    Regards,
    Gary Graham
    SQL Developer Team

  • How to lock Oracle SQL developer 1.5.1

    Hi,
    If you run a PL/SQL block on a page that takes some time and while still processing you try to see a table it locks.
    Running: Windows XP, Oracle SQL Developer 1.5.1, jdk 1.6.07, Orcacle 10g.
    Greetings,

    This is well known. Everything uses the same connection so while the query is busy, you can't do anything else.
    The workaround is to use the Unshared Worksheet feature. Typing ctrl-shift-N in a worksheet will create new worksheet using a copy of the current connection.
    Unfortunately, unless you remember to do this first, the object browser is still unusable because it is using the same connection as the original worksheet.

  • How i can force sql developer to show just tables of HR schema ?

    In sql developer we can filter the tables that it shows under table node ,
    how i can force it just to show tables of HR schema ?
    Thanks

    See my post in your other thread (How i can deal with DB schema in SQL developer ?
    In this case, you let only the HR user in the right panel.

Maybe you are looking for

  • Message no. AK005 - Asset is investment measure, transaction type not allow

    Dear All, I am getting following error while transfering Investment AuC to Main Asset. Message no. AK005 - Asset is investment measure, transaction type not allow I searched the Forum and got some input.., but in that I have a clarification. Please s

  • DROID X 3G MOBILE HOTSPOT

    Ok here is my question's: How do i get my 3G Mobile Hotspot since im on a prepaid plan? Is it just $20 month only or more? Do i need to call 611 to get it turned on or what? I actually just got an upgrade so thts why im asking.....HELP VERIZON!!!!!!!

  • CS4:  "Critical errors were found in setup. Please see the setup log for details" !!

    I am using Win XP Pro SP3. I have CS3 installed, and successfully installed Dreamweaver, Fireworks and Flash from CS4 Design Premium. Then I successfully uninstalled DW, FW and FL CS3. When I tried to open a SWF in Illustrator it failed to open, and

  • Sometimes album name will not change...

    Sometimes when I am trying to change and album name (and I have say 10 albums) it will not change, remains "My Albums 6" ???

  • Final Cut Quit and Deleted All My Footage

    I was working on a project in Final Cut Pro X when suddenly the application quit with a very brief error message attached (which I could not read in time). I then reopened Final Cut and the project was gone, and my events had been cleared. No events,