Date settings Toad/Oracle SQL Developer

Dear all, the code below works as a TOAD, but in the Oracle Sql Developer does not work it says the start_date is not declared. Ambersand doent work in Toad? Do not know why. Y at - it a reason for this.
I used Toad for awhile, now, they are deploying Oracle Sql Developer because it is a free tool.

SET SERVEROUTPUT ON
SET VERIFY OFF

(8) tank variable start_date;


BEGIN
: Start_date: = TO_CHAR (TO_DATE ('& 1', 'YYYYMMDD'), 'YYYYMMDD');
END;
/

BEGIN
DBMS_OUTPUT. PUT_LINE(:START_DATE);
END;

Published by: user531731 on 07/23/2009 17:18

Published by: user531731 on 07/23/2009 17:19

My recommendation would be to write correctly regardless of the tool.

SQL> DECLARE
  2    START_DATE VARCHAR2(8) := TO_CHAR(TO_DATE('&1','YYYYMMDD'),'YYYYMMDD');
  3  BEGIN
  4    DBMS_OUTPUT.PUT_LINE(START_DATE);
  5  END;
  6  /
Enter value for 1: 20091010
old   2:   START_DATE VARCHAR2(8) := TO_CHAR(TO_DATE('&1','YYYYMMDD'),'YYYYMMDD');
new   2:   START_DATE VARCHAR2(8) := TO_CHAR(TO_DATE('20091010','YYYYMMDD'),'YYYYMMDD');
20091010

PL/SQL procedure successfully completed.

SQL> 

Tags: Database

Similar Questions

  • SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    After some testing today with a new installation and plugin subversion in the latest edition of data Modeler this error happens with every start of the tool.

    Have removed and unzipped the installation once again without changing the error.

    After that, I started with another user on my computer, it the error does not occur.

    Is there a system folder to remove the configuration of my personal like jdeveloper and sql developer?

    I lose the most important features, for example. have no browser and cannot open a design.

    Here is the full error stack:

    29 may 2015 22:17:40 oracle.ideimpl.extension.AddinManagerImpl

    SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    java.lang.NullPointerException

    at oracle.dbtools.crest.swingui.editor.UDPLibrariesPersistence.load(UDPLibrariesPersistence.java:220)

    at oracle.dbtools.crest.model.design.DesignSet.createElement(DesignSet.java:56)

    at oracle.dbtools.crest.swingui.ApplicationView.addDesign(ApplicationView.java:2497)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:435)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:389)

    at oracle.dbtools.crest.swingui.ApplicationView.getInstance(ApplicationView.java:2258)

    at oracle.dbtools.crest.fcp.DataModelerAddin.initialize(DataModelerAddin.java:553)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:496)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:483)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:299)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:160)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:143)

    at oracle.ide.IdeCore.initProductAndUserAddinsAndActionRegistry(IdeCore.java:2294)

    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1817)

    at oracle.ide.Ide.startup(Ide.java:772)

    at oracle.ide.osgi.Activator.start(Activator.java:209)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)

    at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)

    at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)

    at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1352)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1156)

    at org.netbeans.core.startup.ModuleList.installNew (ModuleList.java:340)

    at org.netbeans.core.startup.ModuleList.trigger (ModuleList.java:276)

    at org.netbeans.core.startup.ModuleSystem.restore (ModuleSystem.java:301)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:181)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:150)

    at org.netbeans.core.startup.Main.start (Main.java:307)

    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

    at java.lang.Thread.run(Thread.java:745)

    Hi Torsten,

    Thanks for reporting the problem. I logged a bug.

    You can view together as "list of system types" directory to "preference > Data Modeler"-probably no longer exists. I guess that the setting for this directory is empty when you start SQL Dev as a different user.

    Philippe

  • Oracle SQL Developer with SQL Developer Data Modeler

    Friends,

    I'm trying to understand the differences between Oracle SQL Developer Data Modeler and the possibility to use the SQL Developer Data Modeler.

    I have looked at two home pages produced on OTN, http://www.oracle.com/technology/products/database/datamodeler/index.html & http://www.oracle.com/technology/products/database/sql_developer/index.html and would appreciate your comments on my findings so far

    (1) the Oracle SQL Developer Data Modeler is a paid product stand-a-lone while using the Data Modeler of SQL Developer feature is free

    (2) the Data Modeler in SQL Developer functionality is basically a "viewer" I create my existing table of DR. by dragging in the Modeler in the object browser, but that's all. I can't save the diagram for later use or use to change the structure of the or the tables

    (3) if I need to have 'Oracle Designer' as ERD capability so I need to use Oracle SQL Developer Data Modeler (after purchase!)

    (4) are there other differences that I missed?


    Thanks in advance

    Yes, you've nailed it!

    Have fun
    K.

  • 'Oracle SQL Developer Data Modeling required repository report'

    Hi all

    Try to use model data of SQL Dev EA 2.1 reports, but whenever I try to connect to a database I get message 'Oracle SQL Developer maker data reporting repository.' necessary

    No idea how to fix this?

    Thank you

    Hello

    You can create from Modeler data using "file > export > schema considered" feature - repository will be created with the first exported design.

    Philippe

  • Oracle SQL Developer Data Modeler start error

    Hi all

    I just downloaded Oracle SQL Developer Data Modeling (2.0.0.57.0) [released July 1, 2009] by selecting the option ' Oracle SQL Developer Data Modeler for Windows (this zip file contains the JRE).

    After that I installed the same and tried to start clicking on datamodeler.exe, I get the following error message

    "Failed to create an instance of the JVM on the path:... \jdk\jre\bin\client\jvm.dll.

    On the same machine, I can successfully run the SQL Oracle program without error. My machine is having Windows XP Professional SP3.

    Any ideas? If there is a problem with Java, that of the Oracle SQL Developer should also not run. But as I said it runs with any error, but the Oracle SQL Developer Data Modeler gives the above error.

    Kind regards

    JAA149

    Hey Jawad,

    you wrote you have 960 MB of RAM - how did you do a test with 1.5 MB of RAM and 2 MB of RAM?
    No doubt this is a problem of memory - memory change in the datamodeler.conf file option:
    -There 'AddVMOption-Xmx768M"by default; to take
    -"AddVMOption-Xmx512M" or never, making it suitable for your configuration - you can check the available free memory first.

    Philippe

  • Oracle SQL Developer in JDeveloper data modeling

    Hello

    See http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html
    Oracle SQL Developer - early release of the adoptive parent 2 data modeling
    Oracle SQL Developer data modeling is the latest product offering to join the Oracle database tools. SQL Developer data modeling offers complete data and database, modeling, tools and utilities, including entity-relationship, modeling relational (configuration database), Type data and multidimensional modeling, front and rear complete engineering and code generation. It includes the import to and the export to a variety of sources and targets, offers a variety of formatting options and valid models through a predefined set of design rules.

    SQL Developer data modeling can connect to any version of the data base Oracle 9.2.0.1 and later versions, and is platform-independent. Initially available as a standalone product, with the future versions available as an extension of Oracle SQL Developer. The second version of the early adopter has stand-alone and file-based.


    See the screenshots, import.png, multi.png, notation.png, subview.png, erd.png, largemodel.jpg

    question
    These data new modeling capabilities are destined to end up in a future version of JDeveloper (replacing the existing data modeling features in JDeveloper)?

    Thank you very much
    Jan Vervecken

    N °

    Modeling of SQL Developer focuses on ER diagrams and a repository - which we think is targeting a different audience, then the 'physical' offered by JDeveloper modeling.

  • The using Excel and Oracle SQL Developer data import - I need help

    Dear friends,

    I use Oracle SQL Developer 1.5.1 and I need to import an Excel file into a database table. If I try to import this file into XLS format, fields and headers are properly presented and separated, but if I press the button 'Next', it does nothing - it remains stopped.

    I did some research here in this forum and it seems to me that when you try to import a file via the XLS format, Developer SQL has bugs. Is this correct?

    If I save the same file in the CSV format and try to import the same file, it moves forward, but SQL Developer is not separating headers and fields correctly. It includes all CSV fields into one - say Column0 and fields 1. TEST; 01/01/2000 under the same Column0.

    Save the file in the CSV format is not a problem, by taking a little time. But I don't know how to make Developer SQL import correctly. Could someone help me please? Thanks in advance.

    Best regards

    Franklin

    This is a known bug in 1.5.1 so use 1.5.0 to import from Excel.
    With respect to the CSV, make sure that you have the right setting in the Preferences - Database - settings of export of genres - delimiter of export custom .

    Have fun
    K.

  • How to modify data in "Result grid query" in Oracle SQL developer

    Dear,

    I would like to know how to change values directly in the query result grid.

    I use Oracle SQL Developer version 4.0.3.16

    Thank you

    Khalil

    EditValues.JPG

    I checked in SQL Developer 4 and I found no option to do this.

    I don't think it's available. You can open the table and add filters on each column and change. Or you can add where clause as suggested the link written by Jeff that I already gave. (http://www.thatjeffsmith.com/archive/2013/06/sql-developer-im-looking-at-a-record-how-do-i-edit-it/)

    Or you write update instructions.

    See you soon

    AJ

  • Oracle SQL Developer to the database unifying connection

    Hello community!

    I am developing a SQL string that will pull data from various processes of cost (i plan to wrap the dataview object in a cube and publish a dashboard after that). I was wondering if there is any way to connect oracle SQL Developer for oracle hosted instance unify to create code more efficiently? If so, explain the steps for me please?

    I can get the following information of Oracle BI Publisher, see Exhibit A.

    I have to fill in the fields in Appendix B and this is where I don't know how to do this, see Exhibit B.

    Your help is highly appreciated

    Concerning

    Amir

    Hi Amir - there is currently no way to directly connect to the DB for unifying hosted environments. We are currently working on this issue.

    In the meantime, you can use the SQL Editor in your BI Publisher server interface. You build instructions SQL can then be pasted in via data in unifying views.

  • Partitions don't synchronize only not - Oracle SQL Developer 4.1.3.20

    Hello

    First of all, thanks a lot for developers for this great tool.

    I use the Data Modeler which comes with Oracle SQL Developer 4.1.3.20.

    In the 12 c database, I created the following table:

    CREATE

    TABLE MMOURA. TEST_TABLE

    (

    NUMBER OF ID_TEST_TABLE (10) NOT NULL

    DATE_TEST_TABLE DATE NOT NULL

    )

    ORGANIZATION HEAP PCTFREE 10

    LOGGING NOCOMPRESS NO INMEMORY

    NOCACHE NOPARALLEL NOROWDEPENDENCIES DISABLE THE MOVEMENT OF THE LINE;

    I import with Data Modeler and add the partition:

    CREATE

    TABLE MMOURA. TEST_TABLE

    (

    NUMBER OF ID_TEST_TABLE (10) NOT NULL

    DATE_TEST_TABLE DATE NOT NULL

    )

    ORGANIZATION HEAP PCTFREE 10 TABLESPACE SYSTEM NOT LOGGING NOCOMPRESS NO INMEMORY RANGE PARTITION

    (

    DATE_TEST_TABLE

    )

    INTERVAL OF

    (

    NUMTOYMINTERVAL (1, 'MONTH')

    )

    (

    PARTITION P_BEFORE_2010 VALUES LESS THAN (TO_DATE (JANUARY 1, 2010 ',' DD/MM/YYYY "")) NOCOMPRESS

    )

    NOCACHE NOPARALLEL NOROWDEPENDENCIES DISABLE THE MOVEMENT OF THE LINE;

    So I can create a partition and generates the correct code.

    I click on "Synchronize data dictionary with model" and see the differences with the model and the database.

    In the models 'compare', 'Physical Details' is red. 'Partition' is red, "Selected" are marked, "Source table: TEST_TABLE ' is YES and" target Table: TEST_TABLE "is no.

    "Partitioning" is marked, and I can see the new partition "P_BEFORE_2010."

    teste_partition_chamado_oracle.png

    But when I click on 'Overview of DOF', theres no changes:

    -Generated by Oracle SQL Developer Data Modeler 4.1.3.901

    -in: 2016-01-14 14:19:50 BRST

    -site: database Oracle 12 c

    -type: Oracle Database 12 c

    -Oracle SQL Developer Data Model Summary Report:

    --

    -CREATE TABLE 0

    -CREATION OF INDEX 0

    ...

    ...

    In the tool preferences, model, synchronization, it is marked:

    FUNCTION

    PACKAGE

    PROCEDURE

    ROLE

    SEQUENCE

    SYNONYM

    TABLESPACE

    In "Import Options", it is marked:

    Partitions

    Triggered

    What I am doing wrong? Is this some sort of bug?

    Hi Marcio,

    I'm afraid that data Modeler does not "DOF Preview" statements for changes in the distribution.

    Kind regards

    David

  • Database SQL Server (read-only mode) in Oracle SQL Developer

    Hello

    I have connected the database server SQL with Oracle SQL Developer 3.2.10.09, everything looks good except that I can only browse the data, I can not change the data in the tables may not add new or delete lines. Query is also disabled (I got the message: Query Builder is not supported for this connection type.) I used a third of JDBC drivers - jtds - 1.2.6.jar as my connection to SQL server. Is there a way to change the data in the tables?

    Thank you.

    As much as I KNOW edition data in table in the grid are possible with an Oracle database. On MS SQL, you can use update instructions on the worksheet.

    Hope that helps,
    dhalek

  • Error 17002 i/o in Oracle SQL Developer

    Hello

    I am trying to connect to the database to test using the Oracle SQL developer, but I get the below error
    IO error: the network adapter could not establish the connection provider code 17002

    I used to connect to the test server very well 2 weeks ago (the test server is on a different network and I connect using VPN).

    I am able to connect to the database of the Production by the developer Oracle SQL (without VPN) but when I try to connect to the test, I get the error.

    I checked the name of the service and the ports and everything is fine and. So, what could be the problem?

    Is there any change that's happened?
    Check firewall settings

  • Oracle SQL Developer environment encoding

    I have Oracle SQL Developer (3.1.07) and I'm working with a database using WE8ISO8859P1 coding (SELECT * FROM nls_database_parameters setting WHERE = "NLS_CHARACTERSET" ;))

    I have problems with the registration of batches that contains unicode symbols. When I open previously saved the package that all unicode symbols are turned to "".

    Should what settings I change to keep the SQL Developer these symbols?
    I tried to put environment encoding to "ISO-8859-15" and some other encodings, but it won't help. ".

    Published by: 919845 on 2012.9.3 04:44

    Short version (if I find time, I'll do better writing upwards).

    Your understanding so far is false. If you read carefully, the table [1] is supposed to contain the "games of Unicode characters... as long as some older character sets»

    The only current, recommended Oracle db name for Unicode character set is: AL32UTF8. (Read globalization support guide for application of unicode support, etc.)

    Only Iso character sets I know media letter lowercase n cedilla, U + 0146 are 8859-13 (Latin-7) and 8859-10 (Latin-6) (and perhaps 8859-4/Latin-4). 8859-1 and 8859-15 defines that character.
    Table A-4 lists the Oracle names for character sets of database that matches the 8859-x character sets for example:
    http://docs.Oracle.com/CD/E11882_01/server.112/e10729/applocaledata.htm#i635047

    So, whatever it is, it seems that you need to change your database character set.

    Published by: orafad on March 13, 2012 10:14

  • Problems with Oracle sql developer

    Hello

    I have problems with my Oracle SQL developer 3.0.04 Version. It makes windows unstable once the query tries to display too many rows of data (for example, 300 k). Is there a way to solve this problem in addition to increasing the amount of physical memory? I currently have only 1 GB of RAM on this machine. Thank you.

    Hello

    Upgrading hardware can be a very satisfying experience, especially as it is almost always little expensive compared to the value of your time. Virtual memory / paging on the Windows and PC hardware is a huge disappointment, so more memory on Windows is a cure-all. With more and more common 64-bit operating systems, laptop computers and the PC is currently available with 8G of memory.

    That said, I think few users have a business case for the visualization of the hundreds of thousands of lines via a graphical user interface.

    Getting back to what concerns the management of memory in java, I want to put in a plug for the garbage and first new Garbage Collector. It will be the production in JDK 1.7, but can be found in the JDK 1.6 u14 & high in experimental option. The most recent revision update, the better it is. Just add something like this in your sqldeveloper.conf file:

    AddVMOption - XX: + UnlockExperimentalVMOptions
    AddVMOption - XX: + UseG1GC
    AddVMOption - XX: + G1YoungGenSize = 25 m
    AddVMOption - XX: + G1ParallelRSetUpdatingEnabled
    AddVMOption - XX: + G1ParallelRSetScanningEnabled

    It does a much better job of actually release unused memory in the context of the o/s.
    To learn more on this subject: http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html

    Gary Graham
    SQL DeveloperTeam

  • Oracle SQL Developer 3.0: Debugging of PL/SQL anonymous blocks: ISSUES

    Hello
    I just downloaded the Oracle SQL Developer 3.0. I used EA versions because they have emerged and was happy to see the final version. So I immediately tried to debug an anonymous block (something I was not looking to do in EA versions) and nothing happened.

    The "Debug" is grayed out and the string 'ctrl-SHIFT-F10' key did nothing. I found this forum:
    Re: 30EA1: debugging of anonymous block?
    and Vadim Tropashko follow-up advice. This has nothing to my anonymous block but has worked well for a simple example.

    So I started to whittle my anonymous block to the bottom to find the culprit, here's a breaking point repeatable for me:
    declare
        stmt1 long;
        stmt2 long;
        stmt3 long;
        stmt4 long;
        p_data varchar2( 500 );
        i      varchar2( 10 );
    BEGIN
        STMT1 := 1;
        STMT2 := 1;
        STMT3 := 1;
        STMT4 := 1;
        
        --the moment this is in the block "Debug" is no longer an option
         select
            SendDocumentResult
           into
            p_data
           from
            XMLTABLE( '/data' 
                    PASSING 
                    xmltype.createxml( '<?xml version="1.0" encoding="utf-8"?><data><SendDocumentResult>test</SendDocumentResult></data>' ) 
                    COLUMNS SendDocumentResult varchar2( 1000 ) PATH 'SendDocumentResult' ) ;
    end;
    The moment that I SELECT INTO... XMLTABLE() it fails (a normal SELECT INTO works very well).

    Is this a problem with my environment or there's a problem with SQL Developer 3.0.04. Overlooking the comments of K, it seems that debugging has worked for 'simple' blocks, so I wonder if it's just out of reach...

    My environment:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production     
    PL/SQL Release 11.2.0.1.0 - Production                                           
    CORE     11.2.0.1.0     Production                                                         
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production                
    NLSRTL Version 11.2.0.1.0 - Production
    
    and Oracle SQL Developer
    3.0.04 (Buld Main 04.34 with bundled Java) on a Window's XP box.

    The analysis has been the problem indeed. Can offer no alternative workaround, that packing horror XML in a view.

Maybe you are looking for

  • Satellite: Windows product key

    My laptop crashed during a firmware launched by Toshiba software update, I could not recover the soft recovery on the laptop and possibly (accidentally) formatted the drive using recovery software. I asked a USB recovery (£40 +!) and used to get the

  • Cannot connect to the admin page of R6400 laptop, only on iPhone

    I installed a new router R6400 but can not access the admin of my laptop page. I was able to access it from my iPhone, so I am able to connect to the internet. I have talked to support 2 or 3 times and they always say the same thing: reset the router

  • Error with shift register

    Hello. I have a problem with my VI again. I managed to solve the previous problem. However, another problem occurred. Please see my VI as an attachment. Kind regards Floret

  • Pre-installed Windows Vista application a key activate my system. I don't have a key.

    BOUGHT my HP PC in best buy, the system at its request a key for active window vista I do not have the CD that I have to do? In the year 2008, I bought my hp pc in best buy, with Windows vista, now the sound system arching for a key bevcause it says

  • photos, videos and documents are missing after doing something safely Dell

    Friday, I did something really stupid, I was trying to tube allows you to download and what happened when I tried to delete my video files was that they would not remove when I had enough, anyway I got safely Dell and pressed a button and then my com