SQL Developer 3.1.07 Conn Err: Invalid Conn Info Specified

Hi,
I have been using SQL Developer for a while but out of the blue I'm now getting a connection error:
Message box says:
"An error was encountered performing the requested operation:
Invalid connection information specified. Verify the URL format for the specified driver.
Vendor code 0"
Does anyone know what this error is and how to fix it? It was working fine yesterday. Nothing that I'm aware of was changed or installed on my laptop.
Thx!
~p

All connections or just one?
Can you create a new connection which works?
It is possible your connection definitions have been corrupted. Can you view the properties for a connection? Does it look as expected?
What version of SQL Developer are you using? What DBMS and Version are you connecting to?

Similar Messages

  • SQL Developer 2.1.1 ORA-00911: invalid character in Data Grid

    Hi,
    When I try to view data in Data Grid from table that has column name in format underscoreNAMEunderscore I get ORA-00911: invalid character.
    As far as I can tell the problem is same with all 2.x versions. Version 1.5.5 works OK.
    Is there a way around the problem?
    Thank you for your help.
    Silvio

    I see no answers :-(
    Is there a chance this gets listed as a bug and fixed?
    Thank you

  • Oracle SQL Developer 1.1.1.25.14, I rror ORA-01722 Invalid Number

    I have installed the new version of Oracle SQL Developer 1.1.1.25.14, I use Oracle 9.2. When I browse in the tree of the stored procedures and compile I obtain Error ORA-01722 Invalid Number. The previous version does not give this error. I have tried to change the decimal separator to comma ',' and point '.' but this error always appears.

    create or replace
    PROCEDURE getAge (
    dtmDataStart_in IN DATE,
    dtmDataEnd_in IN DATE,
    intYears_out OUT NUMBER,
    intMonths_out OUT NUMBER,
    intDays_out OUT NUMBER) AS
    -- Calcola il numero di anni, mesi, giorni intercorsi
    -- dalla data iniziale alla data finale.
    -- Se la data iniziale è > della data finale, le due date
    -- vengono scambiate e le variabili di output vengono ritornate
    -- con segno negativo.
    --==================================================
    -- Data Ultima Modifica: 31/07/98
    -- Aggiunta procedura per il calcolo della differenza tra
    -- due date dello stesso anno.
    --==================================================
    -- DICHIARAZIONE VARIABILI INIZIO --------------------------------------------------------
    intYMDStart NUMBER(10);
    intYMDEnd NUMBER(10);
    intYMD NUMBER(10);
    intDiffAnni NUMBER(5);
    intDiffMesi NUMBER(5);
    intDiffGiorni NUMBER(5);
    intMeseStart NUMBER(5);
    intAnnoStart NUMBER(5);
    intTotGiorniMeseStart NUMBER(5);
    ysnNegativo NUMBER(5);
    -- DICHIARAZIONE VARIABILI FINE ----------------------------------------------------------
    BEGIN
    intYMDStart := TO_NUMBER( TO_CHAR(dtmDataStart_in,'YYYYMMDD'));
    intYMDEnd := TO_NUMBER( TO_CHAR(dtmDataEnd_in,'YYYYMMDD'));
    ysnNegativo := 0;
    IF intYMDStart = intYMDEnd THEN
    intYears_out := 0;
    intMonths_out := 0;
    intDays_out := 0 ;
    ELSE
    IF intYMDStart > intYMDEnd THEN
    intYMD := intYMDStart;
    intYMDStart := intYMDEnd;
    intYMDEnd := intYMD;
    ysnNegativo := -1;
    END IF;
    intDiffAnni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'YYYY')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
    intDiffMesi := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'MM')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
    intDiffGiorni := TO_NUMBER(TO_CHAR(dtmDataEnd_in,'DD')) - TO_NUMBER(TO_CHAR(dtmDataStart_in ,'DD'));
    -- I valori cosi' calcolati di intDiffAnni, intDiffMesi e intDiffGiorni vanno bene
    -- ad eccezione dei seguenti casi:
    -- Sistemo intDiffAnni
    IF (intDiffMesi > 0 OR (intDiffMesi = 0 AND intDiffGiorni >= 0)) THEN
    -- intDiffAnni e' OK
    intDiffAnni := intDiffAnni;
    ELSE
    -- non e' ancora arrivato il giorno del compleanno
    intDiffAnni := intDiffAnni-1;
    END IF;
    -- Sistemo intDiffMesi
    IF (intDiffMesi > 0 AND intDiffGiorni < 0) THEN
    intDiffMesi := intDiffMesi-1;
    ELSIF (intDiffMesi < 0 ) THEN
         if(intDiffGiorni<0) THEN
         intDiffMesi := intDiffMesi+11;
    else
         intDiffMesi := intDiffMesi+12;
    END IF;
    ELSIF (intDiffMesi=0 AND intDiffGiorni<0) THEN
         intDiffMesi:=11;
    END IF;
    -- Sistemo intDiffGiorni
    -- Calcolo i giorni come (TotGiorniMeseIniziale - GiornoIniziale) + (GiornoFinale - 0)
    -- che e' uguale a fare TotGiorniMeseIniziale + (GiornoFinale-GiornoIniziale)
    IF intDiffGiorni < 0 THEN
    intMeseStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'MM'));
    IF intMeseStart IN (1,3,5,7,8,10,12) THEN
    intTotGiorniMeseStart := 31;
    ELSIF intMeseStart = 2 THEN
    -- Da enciclopedia: sono bisestili gli anni multipli di 4
    -- esclusi i secoli che non sono multipli di 400 (Parte commentata).
    intAnnoStart := TO_NUMBER(TO_CHAR(dtmDataStart_in ,'YYYY'));
    if (intAnnoStart MOD 4) = 0
    -- AND NOT ((intAnnoStart MOD 100) = 0 AND (intAnnoStart MOD 400) <> 0)
    Then
    intTotGiorniMeseStart := 29;
    else
    intTotGiorniMeseStart := 28;
    end if;
    ELSIF intMeseStart IN (4,6,9,11) THEN
    intTotGiorniMeseStart := 30;
    END IF;
    intDiffGiorni := intDiffGiorni + intTotGiorniMeseStart;
    END IF;
    IF ysnNegativo = 0 THEN
    intDays_out := intDiffGiorni;
    intMonths_out := intDiffMesi;
    intYears_out := intDiffAnni;
    ELSE
    intDays_out := intDiffGiorni * (-1);
    intMonths_out := intDiffMesi * (-1);
    intYears_out := intDiffAnni * (-1);
    END IF;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE;
    END getAge;
    The output result of compilation is "GETAGE Compiled", I think the 01722 error is not caused from an sql syntax error, but probably caused from an invalid or unsupported or 'strange' configuration on nationalization... the fact surprises me that the previous version did not give problems
    THANKS SO MUTCH
    */

  • Invalid column index error in sql developer

    Hi,
    I was trying to create stored procedures, functions and packages in sql developer which is connected to Oracle 11g. My instructor is able to execute all of them without any errors in 10g. However, when I try to execute them, I get- "Invalid column index error". Any suggestions on how to rectify this error?

    Hi,
    That is probably an
    ORA-17003: Invalid column index
    Which is a JDBC error. Is Java/JDBC somehow involved?
    If not, could you please post one of the failing statements?
    Regards
    Peter

  • Invalid month error sometimes in SQL Developer

    Hi
    sometimes I get 'Invalid Month error' in SQL developer when I execute the following query
    select TRUNC(TO_DATE('01-JUN-2013','DD-MON-YYYY')) from dual;
    But when I dosconnect session and reconnect, It works fine
    Any suggestions on how to avoid this issue ?
    Thanks

    872202 wrote:
    Hi
    sometimes I get 'Invalid Month error' in SQL developer when I execute the following query
    select TRUNC(TO_DATE('01-JUN-2013','DD-MON-YYYY')) from dual;
    But when I dosconnect session and reconnect, It works fine
    Any suggestions on how to avoid this issue ?
    ThanksThere's absolutely no reason that that should result in that error.
    The SQL is sent to the database and it's perfectly valid SQL, taking a string, and converting it to a date with the correct date format mask, and then truncating the date (which, by default is to the day, which in this case is pointless as it's already truncated), returning a DATE datatype, which SQL Developer will then render using it's date display format.

  • How to compile all invalid objects in SQL Developer

    Hi
    I am used to PL\SQL Developer and currently I am testing SQL Developer (version 2.1). I have question where can I find in SQL Developer functionality (or how to invoke those functions) like:
    1 ) To list all invalid objects and then compile them.
    2) Invoke window similar to “Command window” in PL\Sql Developer
    Thanks for help
    Groxy

    Could I please revive this and ask how do I use UTL_RECOMP?
    Also, I could not find a description of the icons in SQL Developer. Some procedures are shown with a green plus sign (I am guessing here since I can't make out what it is) on them and the ones that I right-click and compile have this green go away. Can you explain?
    Thanks a lot.

  • Why am I getting this error message in SQL Developer-ORA-01735: invalid ALTER TABLE OPTION?

    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:   
    *Action:
    DESC acctmanager
    Thank you in advance.

    4b60e01f-2ea5-40fe-a161-fc12d38d09e5 wrote:
    To Whom it may Concern,
    I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
    Here is the syntax I am using:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2);
    The spool file I'm getting as a result of the script above:
    Error starting at line 1 in command:
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10)),
    Ben_id VARCHAR(2)
    Error report:
    SQL Error: ORA-01735: invalid ALTER TABLE option
    01735. 00000 -  "invalid ALTER TABLE option"
    *Cause:  
    *Action:
    DESC acctmanager
    Thank you in advance.
    try as below instead
    ALTER TABLE ACCTMANAGER
    ADD (Comm_id NUMBER(10), Ben_id VARCHAR(2));

  • SQL Developer Abrupt behaviour -- Invalid Identifier

    I have tried to use below 2 SQL using Script output (F5) both of them are semantically incorrect, but first one give no error, while second one give error
    SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX';
    No error raised.
    SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX';
    Error starting at line 1 in command:
    SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX'
    Error at Command Line:1 Column:33
    Error report:
    SQL Error: ORA-00904: "XX_ID": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:   
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Shahid,
    I tried the same in 3.1.07.42 using jdk1.6.0_31:
    Worksheet
    SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX';
    SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX';Run Script -> Script Output
    Error starting at line 1 in command:
    SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX'
    Error at Command Line:1 Column:44
    Error report:
    SQL Error: ORA-00904: "XX_ID": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:
    Error starting at line 2 in command:
    SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX'
    Error at Command Line:2 Column:32
    Error report:
    SQL Error: ORA-00904: "XX_ID": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:Maybe your SQL Developer version is different? Or you really got both errors, but the sizing of your Script Output tab only displayed the last one and you didn't notice the scroll bar at the tab's right side?
    Regards,
    Gary
    SQL Developer Team

  • "Invalid column index: getValidColumnIndex" in SQL Developer 1.5.4

    The error given in the "Subject" line occurred when clicking the "Commit" button in a table grid after changing one value. I also get it when clicking the "Rollback" button, but I also get "Rollback successful" as well and when I refresh the data is as it was before I changed it.
    Is this a bug?
    As noted this is SQL Developer 1.5.4 (Build MAIN-5940) on Windows XP SP2 using JDK 1.5.0_17.
    Thanks.
    Ed. H.

    Heres the DDL (less comments, storage clauses, and a foreign key constraint to another table):
    CREATE TABLE "ET_MAINTENANCE_TYPE_REF"
    (     "MTR_SEQ" NUMBER(4,0) NOT NULL ENABLE,
         "NAME" VARCHAR2(100 CHAR) NOT NULL ENABLE,
         "CURRENT_IND" CHAR(1 CHAR) DEFAULT 'Y' NOT NULL ENABLE,
         "DESCRIPTION" VARCHAR2(255 CHAR),
         "CREATE_USER_ID" VARCHAR2(50 CHAR) NOT NULL ENABLE,
         "CREATE_TS" DATE NOT NULL ENABLE,
         "UPDATE_USER_ID" VARCHAR2(50 CHAR),
         "UPDATE_TS" DATE,
         "VERSION" NUMBER(10,0) DEFAULT 0 NOT NULL ENABLE,
         "FK_REF_ET_MAINT_TYPE_GRP_SEQ" NUMBER(4,0),
         "DN_MAINT_TYPE_GRP_CODE" VARCHAR2(10 CHAR)
    ALTER TABLE "ET_MAINTENANCE_TYPE_REF" ADD CONSTRAINT "CK_YES_NO_INDICATOR30" CHECK (Current_Ind IN ('Y', 'N')) ENABLE;
    ALTER TABLE "ET_MAINTENANCE_TYPE_REF" ADD CONSTRAINT "PK_ET_MAINTENANCE_TYPE_REF" PRIMARY KEY ("MTR_SEQ") ENABLE ;
    And here's some data:
    REM INSERTING into ET_MAINTENANCE_TYPE_REF
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (40,'Quick Start-up Operations Check','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'MAINTGRP',to_date('AD 2007-12-07 16:44:11','BC YYYY-MM-DD HH24:MI:SS'),1,3,'CHKNG');
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (41,'RAD Wipe Sample','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'EMP v6 DB mods.',to_date('AD 2009-03-04 16:17:21','BC YYYY-MM-DD HH24:MI:SS'),4,5,'MISC');
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (42,'Sensor Change','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'MAINTGRP',to_date('AD 2007-12-07 16:44:11','BC YYYY-MM-DD HH24:MI:SS'),1,7,'REPLCMNT');
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (43,'Sensor Replacement','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'MAINTGRP',to_date('AD 2007-12-07 16:44:11','BC YYYY-MM-DD HH24:MI:SS'),1,7,'REPLCMNT');
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (44,'Source Inventory','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'MAINTGRP',to_date('AD 2007-12-07 16:44:11','BC YYYY-MM-DD HH24:MI:SS'),1,5,'MISC');
    Insert into ET_MAINTENANCE_TYPE_REF (MTR_SEQ,NAME,CURRENT_IND,DESCRIPTION,CREATE_USER_ID,CREATE_TS,UPDATE_USER_ID,UPDATE_TS,VERSION,FK_REF_ET_MAINT_TYPE_GRP_SEQ,DN_MAINT_TYPE_GRP_CODE) values (45,'Vehicle Maintenance','Y','Maint. type','EMP v4 Modifications',to_date('AD 2008-04-29 18:16:35','BC YYYY-MM-DD HH24:MI:SS'),'MAINTGRP',to_date('AD 2007-12-07 16:44:12','BC YYYY-MM-DD HH24:MI:SS'),1,8,'SEVRCNG');
    I had deleted the value of DN_MAINT_TYPE_GRP_CODE in the record with MTR_SEQ of 41 and was commiting the record so I could test a script to replace NULL values in DN_MAINT_TYPE_GRP_CODE in a production database.
    Ed. H.

  • SQL Developer connect to RAC12c (Basic) failed with ORA-01017 invalid username/password; logon denied

    I'm using scan in hostname to connect as Basic that failed ORA-01017.  I'm using the same credential system to logon from sqlplus and is fine.
    Any ideas?

    Essentially all you have said is: help me, I have a problem.
    1. full version of sql developer being used
    2. full version of Java SDK being used
    3. full version of JDBC jar file being used
    4. full details on the connection information being used
    5. full version of the Oracle client being used
    6. confirm that both your sql*plus and sql developer connections were made from the SAME machine
    A Basic connection uses the thin driver while sql*plus is using OCI

  • SQL Developer: Failure -Test failed: IO Error: Network Adapter No Conn

    SQL Developer: Failure -Test failed: IO Error: The Network Adapter could not establish the connection
    Hi,
    and sorry this is a really common questions and yes I did do a search, but I don't understand it.
    First let me just tell you that Oracle 11g is installed on my second laptop on the same Network.
    Secondly I can connect to the Database using Oracle SQL Developer on the laptop Oracle 11g is installed on.
    The problem is I want to connect to the database on my main Laptop.
    I put in the correct details Hostname 192.168.0.8 ( this is the laptop oracle is installed and running on)
    Port 1521
    SID dbarudu
    ****** YES I HAVE PORT FORWARDED
    ****** YES I HAVE ALLOWED 1521 on the FIREWALL
    ****** YES I HAVE EVEN SWITCHED OFF THE FIREWALL
    Now one more thing you should know ... I don't know nothing about Oracle Servers ok.... so I have just installed Oracle 11g Enterprise and thought done it should be working now.
    I just need to use oracle db for a project.
    So keep in mind I am a total noob and terms like TNSPING etc mean absolutely nothing to me.
    So please help, but help with step by step guide on how to get Oracle to let me have access from another computer.

    If the Listener is working, then you should not get the error SQL-Developer error you are reporting.
    The listener typically runs using the hostname and port 1521. This means it opens tcp port 1521 on all IP addresses of that platform.
    The database server by default will register itself with the local listener. Thus the listener will know the database SID, the database services, whether there are dispatchers to support shared server connections and so on.
    The client side needs simply to specify 3 pieces of data to connect:
    - the IP of the database server
    - the tcp port of the listener
    - a database identifier (such as Oracle SID or service name) to connect to
    It is really that simple.
    If this does not work, the problem falls into 2 broad categories:
    a) incorrect installation and configuration of the Oracle software (the out-of-the-box install works unless messed up)
    b) some kind of networking issue
    To troubleshoot any problem means reducing the complexity of the problem, eliminating multiple moving parts and focusing on specific ones, in order to isolate the problem.
    For your problem, this will go something as follows:
    - does the listener run? (check if the service is running and whether tcp connections are accepted on the listener port - telnet can be used for the latter)
    - does the database successfully registers itself with the listener? (check the services command of the listener and relevant db initialisation parameters)
    - does a local TNS (tcp network) connection work on that server? (use SQL*Plus and test on that platform client-server connectivity via tcp to the listener)
    - does the client platform have connectivity with the server platform? (use ICMP and telnet to test)
    - repeat the TNS test on the client platform using the same working TNS tested on the server platform
    Do not use JDBC to test the connection - keep it simple and use sqlplus and the standard Oracle Call Interface (OCI). A full client version of the OCI plus sqlplus can be downloaded under the Oracle InstantClient downloads.
    Finally - if you expect to simply install and use Oracle, then use the correct version. Oracle Express Edition aka Oracle XE. Installs and works out-of-the-box. The only manual config change to make is (as far as I recall) to run the listener on all IP addresses of that platform. And this required editing the listener.ora file, changing the HOST parameter and restarting the listener.
    Also keep in mind that you have not presented an Oracle error code and Oracle error message. But a client application error message. And that message is pretty much meaningless - it does not point to a specific Oracle networking or Oracle server problem. To diagnose that, we expect a TNS or ORA error number.

  • Invalid file - SQL Developer 1.2 for Windows download

    I attempted to download the latest verion(1.2) for Windows with JDK and failed.
    Download process completes downloading the file, but it then complains that its not a valid ZIP file!
    cheers.
    Manod

    It's not a bug. There can be a number of reasons why, when you attempt to download a file, you do not get the full download. One of which is just that you lose the connection and that can depend on where and when you download, another is that there can be fire wall issues on the client site. There are times when the issue is on the Oracle side and this too can be as a result of different things. In this case, there is a specific OTN forum for site issues. I have not seen any such mention of a problem or a downtime or anything else in the past few weeks. All I meant is that if you have a problem with a download, you might try again later. We have had a few thousand SQL Developer downloads in the past few days, so there is no issue on our side.
    Sue

  • BUG: SQL Developer no longer identifies invalid views version 1.1.3.2766

    I have a sql script which 'CREATE OR REPLACE FORCE VIEW' a view but unlike SQLDeveloper 1.1R2 which I am amending in a third party editor and loading via sqlplus the view is created with "Warning: View created with compilation errors."
    In 1.1R2 this would have displayed a view icon with a red cross in the navigator bar. This is no longer the case. All views appear to be valid.
    Regards
    Kris

    It appears that SQL Developer is not handling the INTERVAL data type when a NULL value is present, e.g: -
    This works OK:
    SELECT CAST('-0 0:0:0.400000000' AS INTERVAL DAY(3) TO SECOND(0))
    FROM dual;
    This does not:
    SELECT CAST(NULL AS INTERVAL DAY(3) TO SECOND(0))
    FROM dual;
    As a work around you can simply TO_CHAR the column:
    SELECT source,
    destination,
    comments,
    flags,
    owner,
    job_name,
    job_creator,
    client_id,
    global_uid,
    program_owner,
    program_name,
    job_type,
    job_action,
    number_of_arguments,
    schedule_owner,
    schedule_name,
    start_date,
    repeat_interval,
    end_date,
    job_class,
    enabled,
    auto_drop,
    restartable,
    state,
    job_priority,
    run_count,
    max_runs,
    failure_count,
    max_failures,
    retry_count,
    last_start_date,
    TO_CHAR(last_run_duration),
    next_run_date,
    TO_CHAR(schedule_limit),
    TO_CHAR(max_run_duration),
    logging_level,
    stop_on_window_close,
    instance_stickiness,
    system,
    job_weight,
    nls_env
    FROM dba_scheduler_jobs a;
    Thanks
    Kelvin
    Edited by: Kelvin Hibberd on 05-Feb-2010 06:32

  • 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.

  • How to connect from oracle sql developer ?

    I've made one java class, to access UserRecord Data Base from sql developer.
    My class file is :-
    import java.sql.*;
    import java.io.*;
    public class SelectData{
    public SelectData(){}
    public void selectData(){
              String url="jdbc:oracle:thin:@10.1.236.10:1521:dev92i";//connection url
         Connection con= null; //connection create
              Statement stat = null; //prepared statement create
              ResultSet rs=null; //result set to hold result
              try{
              Class.forName("oracle.jdbc.driver.OracleDriver");
              con = DriverManager.getConnection(url,"scott","tiger");
              stat = con.createStatement();
              rs = stat.executeQuery("select Name from UserRecord");
              while (rs.next()) {               // Position the cursor                 
                        // Retrieve the first column value
                        System.err.println("Name= " +rs.getString("Name"));
                        // Retrieve the first column value
                        System.err.println("Pswd= " +rs.getString("Password"));
              rs.close();
              catch(SQLException e){
                   System.err.println(e.getMessage());
              catch(ClassNotFoundException e){
                   System.err.println(e.getMessage());
              catch(Exception e){
                   System.err.println(e.getMessage());
              finally{     
                        try{
                        if(con!=null)
                             con.close();
                        catch(Exception e){
                             System.err.println(e.getMessage());
    public static void main(String args[]){
         SelectData sd=new SelectData();
         sd.selectData();
    When i run this class file it gives error :-
    "oracle.jdbc.driver.OracleDriver"
    Plz help me out from this problem and suggest any configuration if required in oracle sql developer to run my programs.

    {color:#0000ff}hi,
    add the jar for oracle jdbc to the libraries.
    if you are using any IDE then just change the project properties adding the jar file.
    if not edit the classpath of the envoirnment variables.
    {color}{color:#ff0000}*manik*{color}

Maybe you are looking for