SQL Developer 3 and simple_integer

Hi can anyone help me with something, I have checked everywhere else and can't find an answer.
Does SQL Developer v 3 support the new 11g data type simple_integer? I have a simple procedure shown below
set serveroutput on;
DECLARE
n simple_integer := 1;
BEGIN
FOR j IN 1..4 LOOP
n := n + 1;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
END LOOP;
FOR j IN 1..4 LOOP
n := n - 1;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
END LOOP;
END;
When I try and run this I get the error
Error report:
ORA-06550: line 2, column 5:
PLS-00201: identifier 'SIMPLE_INTEGER' must be declared
ORA-06550: line 2, column 5:
PL/SQL: Item ignored
When I change simple_integer to integer or pls_integer it works. but the new type of simple_integer doesn't. Can anyone shed light on this because I'm at a loss as to the problem.
Edited by: user9313611 on Oct 5, 2011 6:12 PM
Edited by: user9313611 on Oct 5, 2011 6:21 PM

Hi!
The error is definitly not dependent on your version of SQL-Developer 3.0, but on yout database version.
Test script:
SET serveroutput ON;
SELECT version from v$instance;
DECLARE
    n simple_integer := 1;
BEGIN
    FOR j IN 1..4
    LOOP
        n := n + 1;
        DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
    END LOOP;
    FOR j IN 1..4
    LOOP
        n := n - 1;
        DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
    END LOOP;
END;
Test on Oracle 11.2.0.2.0
VERSION          
11.2.0.2.0       
anonymous block completed
         +2
         +3
         +4
         +5
         +4
         +3
         +2
         +1
Test on Oracle 10.2.0.4.0
VERSION          
10.2.0.4.0       
Error starting at line 3 in command:
DECLARE
    n simple_integer := 1;
BEGIN
    FOR j IN 1..4
    LOOP
        n := n + 1;
        DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
    END LOOP;
    FOR j IN 1..4
    LOOP
        n := n - 1;
        DBMS_OUTPUT.PUT_LINE(TO_CHAR(n, 'S9999999999'));
    END LOOP;
END;
Error report:
ORA-06550: line 2, column 7:
PLS-00201: identifier 'SIMPLE_INTEGER' must be declared
ORA-06550: line 2, column 7:
PL/SQL: Item ignored
ORA-06550: line 6, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 6, column 9:
PL/SQL: Statement ignored
ORA-06550: line 7, column 38:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 7, column 9:
PL/SQL: Statement ignored
ORA-06550: line 11, column 9:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 11, column 9:
PL/SQL: Statement ignored
ORA-06550: line 12, column 38:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 12, column 9:
PL/SQL: Statement ignored
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:Best regards,
Matt

Similar Messages

  • SQL developer starts and then disappears without any warning

    Hi, guys:
    I need to use SQL developer where there are existing connections. however, SQL developer 3.1 asked the java.exe location, and I chose java 6, now I can launch SQL developer but not able to continue running it. SQL developer starts and then disappears without any warning. Could anyone help me on this problem?
    Thanks a lot!
    Sam

    Can you start the exe from the BIN subdirectory? That should open a command console, and maybe you can see any error messages there that explain what's happening. For step-by-step directions, here's some help:
    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-debug-info-for-oracle-sql-developer/
    OR
    Install SQL Developer to a new directory and run it from there and see if that helps you get around your current install's issue.

  • SQL Developer Blocked and is not allowed to connect to database ORA-200001

    SQL Developer Blocked and is not allowed to connect to database gives ORA-200001.
    i found on net that DBA can write triggers which can deny connection to database from certain appplication.
    so i want a way to change application name so that when it connects to database
    the V$SESSION will have different value (other than SQL Developer) in column PROGRAM and/or MODULE (which i think is used by dba to restrict the connection).
    one more way is
    i am using jdbc url to connect to database
    in java we can change properties of connection to change the PROGRAM in V$SESSION.
    but i am not java expert so dont know how and where to make the changes
    either way my aim is to connect to database such that V$SESSION will have different value (other than "SQL Developer") in column PROGRAM and/or MODULE

    This is not system configration or credential issue.
    This is a check which is put DBA using logon trigger
    to check certain user loging in using certain application.
    only some users using particular username are getting this error when they try to logon using oracle sql developer
    the same users when uses different username(some generic user names created to access database) to access the same database then they are able to login.
    similarly if they login using SQL navigator they are able to login with both their own and the generic user name
    more over of all the database instances this is only happening on some of the instances and all of them are development instances.
    following will help you understand
    USER | DBUSERNAME | DATABASE | APPLICATION | ACTION
    X | X | DB1 | Oracle Sql Developer | Blocked
    X | G(Genric) | DB1 | Oracle Sql Developer | Login Success
    X | X | DB1 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB1 | Sql Navigator/SqlPLus | Login Success
    X | X | DB2 | Oracle Sql Developer | Login Success
    X | G(Genric) | DB2 | Oracle Sql Developer | Login Success
    X | X | DB2 | Sql Navigator/SqlPLus | Login Success
    X | G(Genric) | DB2 | Sql Navigator/SqlPLus | Login Success
    I just want to bypass this check which i think uses V$SESSION and columns PROGRAM and/or MODULE to check the application used by particular user.
    if i can override these values some where in oracle sql developer before loging in the DB then i can clearly pass this check and login to database.
    Edited by: user13430736 on Jun 21, 2011 4:05 AM
    Edited by: user13430736 on Jun 21, 2011 4:12 AM

  • Oracle SQL Developer freezes and locks up computer randomly

    I attempted to find a solution to this before posting. I looked through the first 40 pages of this forum and on Google, through the Developer documentation, etc. with no luck.
    The problem: while using Oracle SQL Developer, the computer randomly freezes. Things work, but it hangs too often and for too long to use. This is random - it can happen every 10 seconds or every 2 minutes. The mouse will lock up, and the keyboard buffer will get all messed up. For instance, if it happens to freeze while I'm hitting "backspace", it will delete many lines of text (I've lost a bit of work because of this in the past). The freezing will last about 2 to 20 seconds, and the only way out of it is to ctrl+alt+delete and kill SQL Developer.
    If SQL Developer is running, and I'm in a different window - it will freeze the other windows as well. Again, it's impossible to use unfortunately. My coworker doesn't have the same problem, and he's connecting to the same database with the same version using Windows Vista. It must be something on this computer. I reformatted about 1 month ago, so it's a pretty fresh install and I haven't installed much of anything yet.
    I'm using Windows Vista Enterprise 32-bit w/SP1.
    This was occurring with older versions of SQL Developer (1.2). I'm using the newest install that included the Java JDK. I've completely removed Java, my Oracle installs, and a host of other attempts to fix this, and nothing changes. I've tried running the .exe in the bin directory as administrator as well.
    Currently using Oracle Developer 1.5.1.54.40.
    Any ideas?

    I tried dumping the contents, but the java dump wasn't showing anything at all, and it would never freeze while I had the console window in focus, so it wasn't very helpful unfortunately.
    I fixed this issue by uninstalling the Java runtime on this machine and installing the Java JDK 6 Update 7 from java.sun.com/javase/downloads . I then downloaded the SQL Developer 1.5.1 version without the Java runtime included, and pointed it to the Update 7 .exe file upon first load.
    I was using JDK 6 Update 6 previously, and it must have been behind the errors. Note that the Update 7 has to be downloaded from that website as it's a new version that hasn't been posted on the regular java.com site yet.
    Message was edited by:
    user645599

  • SQL Developer Problems and Feature Requests

    I’m in the process of comparing TOAD to SQL Developer and noticed the following bugs/features in SQL Developer:
    1. An error message is correctly displayed when a database password has expired, but there isn’t a way to go back into the database and change the password for that account. Can this critical feature be added?
    2. There is no option to connect as sysdba or sysoper.
    3. In the “New / Select Database Connection” window, I get the following error when double clicking on an existing connection defined using a TNS Network Alias: Status: Failure – no ocijdbc10 in java.library.path. Any ideas? Connection was initially defined using the Network Alias button. I can connect under the “Connections” window, but not in the “New / Select Database Connection” window. Any ideas?
    4. When displaying data in a table, the filter is not user friendly. You need to enter column names and the correct SQL syntax. It also does not allow you to cut and paste in column names. It would be very helpful/useful if it was more user friendly (GUI based) such as how Sorting is done and/or how it is done in TOAD.
    5. When viewing referential constraints on a child table, it shows you information on the parent, but not if the parent is a child to something else. If you were a parent, it would be nice to see all child and their children’s children. TOAD does a nice job showing parent and child tables via a tree structure.
    6. Comparing metadata between schemas would also be a very nice feature.
    I’m not sure if this is the place to post this but thought I would start here. Any feedback would be appreciated.
    Thanks,
    Ken

    1: You can always right click and have it open an sql*plus window and that will prompt for the new password. But I do agree that support for this should be built in.
    2: This is a developer tool.. Use OEM for the dba stuff. I think that the worst thing that could happen to SQL Dev is to try to become everything for everyone like TOAD tries to.
    3: Search the forum. Other users ran into this and I believe there is a workaround.
    4: I like the current filtering on tables. So much simpler than most tools. I do agree that maybe there should be an advanced button with a filter builder and agree that column names should be copyable but would cringe if the free-form field disappeared. How many other tools can you write an inline query into the table viewer? Great feature IMHO
    Eric

  • Oracle SQL Developer installation and Java

    I finished installing Oracle Client without problems. Opened up SQL Developer for the first time and he asks me for the full Java.exe pathname.
    That's fine, but when I input the java.exe I just get asked again, no errors. Repeat until infinity.
    I installed the newest Java SDK and tried both 32-bit and 64-bit versions (jdk 7u4). I even tried installing Oracle Client version 11.1.0 AND 11.2.0 to see if that make any difference, but it's all the same.
    I have uploaded a screenshot if that helps: http://i50.tinypic.com/mjtqte.jpg
    Any ideas?
    Regards,
    Gunnar Óskarsson

    Hi Gunnar.
    Documentation:
    http://docs.oracle.com/cd/E25259_01/doc.31/e26419/install.htm#sthref8
    Ideas:
    -Do not use java7
    -Use JDK not JRE
    -On widows there is a version of SQLDeveloper including java 6 jdk
    -Instant client is not required - but if you want to use it use at least 11.2.0.2
    -Updated SetJavaHome in sqldeveloper\sqldeveloper\bin\sqldeveloper.conf to point to the JDK
    -There is some confusion over 32bit and 64bit Operating System, java and SQLDeveloper, you can search the forum for details, eg: thread title: "Unable to start Oracle SQL Developer"
    -Turloch
    SQLDeveloper Forum

  • SQl developer installation and set up the connections

    Hi,
    I m a new learner of Oracle - SQL. My doubt is can i have an test environment( a dummy) connection in SQL developer for my practice purpose in my local laptop.
    Do i need to install Oracle to work with SQL developer in my system.Wat all I should have to fulfill the abve?
    Pls guide from the basic
    Thanks in Advance

    cuteprathyu999 wrote:
    Hi,
    I m a new learner of Oracle - SQL. My doubt is can i have an test environment( a dummy) connection in SQL developer for my practice purpose in my local laptop.
    Do i need to install Oracle to work with SQL developer in my system.Wat all I should have to fulfill the abve?
    Pls guide from the basic
    Thanks in Advance
    SQL Developer is a 'client' tool.  It is pretty much worthless without a database to connect to.  You can't execute SQL statements without a database.  The database can be either on your local machine (where you have installed SQL Dev) or on a remote machine.  To get a database on your own machine, you will need to download Oracle Database, install it, and create a database.  Be sure to read the installation guide for installation prereqs, including certified operating systems.

  • Re: SQL Developer Problems and Feature Requests

    "no ocijdbc10 in java.library.path"... What should i do with it?
    I get it on the simplest of operations: changing (in fact setting) the connection password for the existing connection (defined by TNS/Connect Identifier). Oh, yes, there're workarounds, particularly export-edit-import, but don't you find it a bit weird?
    BTW, i do not find a Save button there either, won't it be just appropriate? (Not allways a connection one's setting up for is already available on the spot).
    Environment : OS: RHEL4, SQL Developer version: 1.0.0.15.57 (at least that's what About says), java - just stright form Sun, 1.5.0_09_b01; this was one i told SQL Developer to use. The default java in the system is Red Hat 3.4.6-3, though, i haven't changed that - should i?
    TIA,
    Uldis

    I have had this issue with the Connection window with the TNS Connection Identifier method, but it appears to be related in some way to the other Oracle installations you have. For me (I am on Win XP), the error went away after installing the Oracle 10g client with Discoverer 10g Administrator. It then came back when I needed to rebuild my computer and installed my Oracle clients (I have three for various different products) in a different order, but was fixed that time by reordering my Oracle Homes via the Universal Installer and making my 10g Client first (Oracle Universal Installer -> Installed Products -> Environment)
    Alternatives are to switch back to the TNS Network Alias method to record the password (unfortunately, even when entering the connection as a Network Alias it is saved as a Connection Identifier) or to just use the Basic tab instead of the TNS tab.

  • SQL DEVELOPER cut and paste does not work, slow and cannot work fast.

    I have lots of difficulties using SQL Developer, the cut/paste does not work properly, when I type search in he code editor it just paste or type the test in the source code not in the serach box. Very hectic I'm pallning to swicth to TOAD until they a a good version.

    Hello Aukhez,
    I'm sorry to hear that you're having problems with SQLDeveloper - personally, I've never had any problems with cut/copy/paste and searching, and I've been using SQLDeveloper from v1.0 to the current version, on practically every version of the JDK from 1.5-1.6u16 on both Windows and Linux.
    Sorry to state the obvious, but perhaps if you could provide a bit more specific information - such as platform, version, etc - and details of what you tried to do, someone here might be able to help...? Regarding speed, there are quite a few things you can do to make this better, but again, without knowing your setup, it's hard to give you proper directions. Plus, you'll find numerous threads here and on google about what you can do to improve speed.
    Regards,
    John

  • SQL Developer 5 and the export feature

    I see it puts the create tables near the end of the script and I noticed that my partititioned tables indexes are there, but the create tables are missing for the partitioned tables.

    hi,
    For me it show the create table, my table is partitioned by Hash .
    What is your partition type ?
    I don't like the fact the storage clause are missing from the SQL especially for partitioned tables , and there isn't a tab partition statistics.

  • SQL Developer - Drag and Drop

    The drag and drop functionality doesn't seem to be working.
    I have it set to Insert in preferences.
    Looks like it is actually dragging the objects (as I see the sheet by the cursor) but once dropped - nothing happens.
    Is there a way to make this work?
    I am on V 2.1.0.63 on Windows 7.
    TIA
    Ant

    I have this intermittently with 2.1: usually drag and drop works. Sometimes not. Sometimes when not changing the preferences can cause it to behave again, sometimes not (so a restart is necessary), sometimes (having given up all hope) it just works again. Mostly it happen on linux X86_64 but windows (32bit) is not immune. If it were not so intermittent and unpredictable I could have submitted a worthwhile bug report by now, but so far I cannot identify any common cause for either nothing happening or the ability to "recover" so I keep looking to the forums and hoping ....

  • Sql Developer 1 and 1.1

    Dear All,
    Sorry if this has been answered somewhere else, but can you have both versions installed and running on the same machine?
    Cheers

    Sure thing!
    All the documentation you need is on sqldev's homepage.
    Most important is installing in a different folder (duh).
    But even then, they'll share the .sqldeveloper folder in Documents and Settings.
    To switch from 1 to the other, you can make a batch that renames/moves the folder from 1 version to the other (as I did).
    Have fun with 1.1!
    K.

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • Function will not run (and shows with red cross in SQL Developer)

    I have created the function below by typing into the "Enter SQL Statement" box in the SQL Developer tool and running. I see the message "create or REPLACE FUNCTION Statement Processed". I see the Function in the tree view, but it has a red cross icon next to it, so I guess somethings wrong with it. When I try to run it I get the message "The selected program is in an invalid state for running. Recompile the program and try again." If I right-click the function and compile then I get no errors but the red cross remains and I still can't run it.
    What am I doing wrong?
    Also, I am planning on supplying a SQL script to customers that will have this function at the top of the script, and then I will use the function throughout the rest of the script to decide whether or not to drop a table before re-creating it. Will that be ok? i.e. will the function be available to the rest of the script, or would the function creation need to be followed by a commit/grant/other?
    CREATE OR REPLACE FUNCTION CHECK_TABLE_EXISTS(tableName VARCHAR2)
    RETURN BOOLEAN IS
        tableExists NUMBER(1,0);
    BEGIN
          SELECT COUNT(*) INTO tableExists FROM user_tables WHERE table_name=tableName;
          IF tableExists = 1 THEN
            RETURN TRUE;
          ELSE
            RETURN FALSE;
          END IF;
    END CHECK_TABLE_EXISTS;Thanks,
    Paul

    Hello Try the same at sqlplus and see how it goes. It should not throw any error messages as I tried the same as a normal user Scott with only (connect, resource) priveleges. You dont have to grant any specific previleges for user_tables.
    -Sri
    SRI>conn scott/tiger@sri
    Connected.
    SRI>CREATE OR REPLACE FUNCTION CHECK_TABLE_EXISTS(tableName VARCHAR2)
      2  RETURN BOOLEAN IS
      3      tableExists NUMBER(1,0);
      4  BEGIN
      5        SELECT COUNT(*) INTO tableExists FROM user_tables WHERE table_name=tableName;
      6        IF tableExists = 1 THEN
      7          RETURN TRUE;
      8        ELSE
      9          RETURN FALSE;
    10        END IF;
    11  END CHECK_TABLE_EXISTS;
    12  /
    Function created.
    SRI>set serverout on
    SRI>begin
      2  if check_table_exists('EMP') = TRUE
      3  THEN
      4  dbms_output.put_line('Found');
      5  else
      6  dbms_output.put_line('Not Found');
      7  end if;
      8  end;
      9  /
    Found
    PL/SQL procedure successfully completed.

  • Install Oracle XE, SQL Developer, and Toad on the same machine?

    I have been trying to install Oracle SQL Developer, Toad, and Oracle Express on my work computer. Installing SQL Developer and Toad was pretty straightforward, and I was able to browse the XE database with SQL Developer. But after installing Toad, problems started. Toad was using Oracle XE's registry settings to locate ORACLE_HOME and oci.dll. So I tried changing the settings for Oracle XE in the registry. Toad now works, but not Oracle XE. And while I was going through this all, I even had a time when I had Toad and oracle xe working, but not SQL Developer. It almost looks like you can choose two of the products, but not all three.
    So, my question to the community at large is "Can it be done?". In what directories do you have each product installed? What environment variables do you have set? Where is your tnsnames.ora? What Oracle registry settings do you have set (namely HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE)?
    I can post my current settings, but I've been through so many iterations that these current settings don't really matter that much.
    Here are the details I am looking for
    Path to sqldeveloper.exe
    Path to oracle.exe (for Oracle XE)
    Environment Variables
    ORACLE_HOME
    ORACLE_BASE
    TNS_ADMIN
    PATH (just the oracle stuff)
    Registry Settings
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_HOME
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_BASE
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\TNS_ADMIN
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\OLEDB
    HKLM\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORAMTS_CP_TRACE_DIR

    I don't use toad, but there should be no reason why you can't install all 3. SQL Developer is a very clean install and affects nothing else. It doesn't add to the path, or create any registry entries except for file associations.
    A toad installation should pick up your oracle client (in this case the XE code). I am curious as to why you felt you had to change registry settings. What problem were you trying to fix?
    My recommendation would be to uninstall everything, clean the registry and reinstall in the order XE, Toad, SQL Developer. Test in between installations and seek help for problems as you find them. Bear in mind that this is the forum for SQL Developer. QUestions about Oracle XE would be better answered in the dedicated forum, or in the Installation forum, and questions about Toad in a toad forum.

Maybe you are looking for

  • Spaces allowed in iPhoto filenames? when syncing to iPhone/iPad?

    It took me a while to narrow this one down, in short, if the underlying filename of the photo you attempt to sync from iPhoto using iTunes to your iPhone/iPod contains a space character, then the sync will fail with the, rather unhelpful "unknown err

  • HP Photosmart C6300 All in one series is not printing

    I have replaced all cartridges, and gone through the troubleshooting program for Ink System Failure with no success. I have the HP Photosmart 6300 printer. I need your help. Loreen Brigham

  • Draw line between black pixel : coordinates of selected pixels ?

    Hi I want to build a script which can check a Photoshop file and : - find black pixel - for each black pixel, look for another black pixel within maximum distance of 5 pixels - then draw a line between the two black pixels. I wrote this script below

  • Doesn't work and Disable Image

    Good Night, Hello Mozilla, I have some question. One I have installed Firefox 24, and I search the "Load Image Automatically" (approximately) for disable load image for slow connection, but I didn't find it. Maybe, I just back to version 22... This f

  • VOIP ATA & Setting up Time Capsule

    Hello, I have a lynksys AM300 with a Time Capsule connected to it. I was to introduce a ATA device but will need to connect it to the TC. What do I need to do to configure the TC so that the VOIP via ATA will work? Thanks Morgs