Always get same compilation error.. Does'nt matter whatever i write in code

Hi All,
I am getting strange error while compiling my pl/sql code.. it always gives me error
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
..I always get this error. In sample piece of code , i dont have any table also
SQL> SELECT * FROM V$VERSION ;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - Production
SQL> Create or replace FUNCTION check_cid IS
BEGIN
dbms_output.put_line("CHAL");
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
2 3 4 5 6 7 8
Warning: Function created with compilation errors.
SQL> SQL> show err
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid() RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist

The error message is correct.
You are using double quotes instead of single quotes.
Identifiers (table names, column names etc) with special characters should be enclosed by double quotes, so PL/SQL thinks you are using an identifier and can't find it.
Please replace the double quotes by single quotes.
Please also make sure you always try to iron out simple compilation errors yourself, so you become independent, and don't need to ask for the assistance of volunteers.
Optionally, increase your intake of coffee, and/or buy (better) glasses ;)
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Cannot get Genius to work - Always get same error message - "Genius results can't be updated right now. The required file cannot be found."  Problem also seems to be affecting iCloud aand Music Match.

    Cannot get Genius to work - Always get same error message - "Genius results can't be updated right now. The required file cannot be found."  Problem also seems to be affecting iCloud aand Music Match. Can anyone help me with this?  What file is missing and from where?

    This is a known problem with Windows 7 Enterprise using certain Group Policy settings. Solution for me was to use another machine running Windows 7 Ultimate.

  • HT1338 What's going on with iCloud (MobileMe)?  I'm able to sign in here, but I can't access mail on my Macbook Pro, iPhone, or work computer.  I always get an authorization error (user-id or passwork wrong).  This has been going on for almost a week now.

    What's going on with iCloud (MobileMe)?  I'm able to sign in here, but I can't access mail on my Macbook Pro, iPhone, or work computer.  I always get an authorization error (user-id or passwork wrong).  This has been going on for almost a week now.

    The single download means that you won't be able to redownload it from the store without paying, either on a computer's iTunes or an iOS device - it doesn't stop you from copying the audiobook to your other computers or syncing it to your iOS devices, you just can't redownload it. (I believe that they are all supplied to Apple by audible.com, so I assume that it's them requiring the one-time download.)
    You can download audiobooks on your computer's iTunes and sync them to iOS devices, you do not have to buy them directly on the device (if you do then you can copy them back to your computer's iTunes library by connecting the device and using the File > Devices > Transfer Purchases menu option on your computer's iTunes).
    What you are doing to sync them should work i.e.
    - connecting the iPad to your Mac
    - selecting the iPad on your Mac's iTunes
    - selecting its Books tab and selecting the audiobooks that you want to sync to the iPad and syncing/applying that selection.
    You should then get an audiobooks option in the Music app on your iPad. If they aren't appearing there  then do they show in Settings > General > Usage > Music on the device - if you have audiobooks on the iPad then they should be listed there under an 'audiobooks' heading.
    By 'restart the iPad' do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    You could also try closing its Music app via the iPad's taskbar : Force an app to close in iOS.
    And do a soft-reset and retry syncing.
    I assume that music and other items sync ok ?

  • How do I add an included jsp to my project and not get a compile error?

    Hi,
    I have a project with some included jsp's however if I add them to the project, when I build I get a compile error as the jsp uses variables from the calling jsp.
    Any ideas on how to get round this.
    Thanks
    DM

    There are two main ways that I deal with this problem (yeah, it sucks, but it sort of makes sense that it happens...) (I presume you're talking static include here...)
    #1 - name the included file with an extension that JDev will not try to compile (.jspf - for JSP Fragment - is common) Then it will be compiled in with the including page, but won't gag the project compilation. Advantage - it works, and you find out at compile time if you hosed up the variable reference. Disadvantage: JDev tries really, really, really hard to keep you from naming a JSP file with an extension of .jspf I normally create the .jsp file in JDev, remove it from the project, rename the file outside of JDeveloper, then add it back to the project - pain in the butt, but it works (and you probably aren't building scads of these included files...)
    #2 - add the variable to be referenced to the pageContext implicit object as an attribute in your including page (ex, <% pageContext.setAttribute("myVar", myVar); %>), then reference that attribute in your included JSP (ex, <%= pageContext.getAttribute("myVar") %>) . It will compile fine (as the compiler has no way of knowing if the pageContext attribute actually exists, it just sees that the syntax is good and motors along merrily. Advantage: don't have to have differently named JSP files (which isn't actually a big deal). Disadvantage: You hvae to add the variable to the pageContext (and you have to always add Object derivatives, as primitives won't go into a hash) and you don't find out if you screwed the variable up until runtime (when it tries the getAttribute, which could return null if you didn't properly set it to start with) vs at compile-time w/ the direct reference.
    HTH!
    Jim

  • How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.

    I wanted editing a photo from lightroom to elements but lightroom did not open elements. Your site said first to reinstall Elements before to try more comlicated things. It is the worst thing I ever done. Now i have lost Elements at all. It does not want to reinstall. Very funny. I tried all Adobe (!!!) suggestions: change OOBE for OOBE.bak; copy file from the dvd to computer before autorun executable,etc etc NOTHING WORKS !
    Adobe suggested to download ASA program but only to tell us that it does more exist !!! After that they suggested to try to find MANUALLY the dailies failure reports !!! It is impossible to understand those reports
    Thank for your help!!

    HI,
    Win7-64, Lightroom 4.4 Photoshop Elements 11 GPU Nvidia Quadro K600, 4g RAM, Dell U2713H , all servicepack updated.
    After several hours searching on the web Finally found that in c\programfiles(x86)\commonfiles\adobe\OOBE
    Rename in OLDOOBE
    Stop antivirus
    Restart windows
    Copy directory of the DVD Adobe PSE 11 to c\ ord\:nameit ADOBE\
    Open file
    Click right to setup.exe
    Buzinga.
    It is the worst software I ever had to deal whit.
    FargateOne
    De : Mylenium 
    Envoyé : 7 mai 2014 10:26
    À : Pascal Renauld
    Objet :  How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.
    How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Photoshop General Discussion - View the full discussion <https://forums.adobe.com/message/6361905#6361905>

  • I am using Windows 7 64-bit. After installing Photoshop Elements 13 and trying to run it I always get the message: Photoshop does not work anymore. And it doesn't.

    I am using Windows 7 64-bit. After installing Photoshop Elements 13 and trying to run it I always get the message: Photoshop does not work anymore. And it doesn't.

    Hi Hardy Tasso,
    Are you seeing this problem since first launch of PSE13 after installation or recently?
    Please try:
    Keep Ctrl + Alt + Shift keys pressed while launching PSE13 Editor and click OK on the dialog that comes next.
    Thanks,
    Anwesha

  • Getting a compilation error. Says ; is missing in line 34

    // A program to demonstrate the use of JList's
    //Import Statements
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ListTest extends JFrame{
         //Class Declarations
         JList list;
         String[] colorNames = {"black", "blue", "green", "red"};
         Color[] colors  = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
         //Main Program that starts Execution
         public static void main(String[] args) {
              ListTest test =  new ListTest();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //Constructor
         public ListTest()
              super("List Test Demo");
              Container container  = getContentPane();
              container.setLayout(new FlowLayout());
              list = new JList(colorNames);
              list.setVisibleRowCount(3);
              list.setSelectedIndex(0);
              //Anonymous Inner Class
              list.addListSelectionListener() {
                   new ListSelectionListener(){
                   public void valueChanged( ListSelectionEvent e)
                        container.setBackground(colors[colorlist.getSelectedIndex()]);
              container.add(list);
              pack();
              setVisible(true);
    }// End of Class ListTestGetting the following compilatioN Error
    Getting a compilation error. Says ; is missing in line 34

    // A program to demonstrate the use of JList's
    //Import Statements
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ListTest extends JFrame{
         //Class Declarations
         JList list;
         String[] colorNames = {"black", "blue", "green", "red"};
         Color[] colors  = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
         //Main Program that starts Execution
         public static void main(String[] args) {
              ListTest test =  new ListTest();
              test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //Constructor
         public ListTest()
              super("List Test Demo");
              Container container  = getContentPane();
              container.setLayout(new FlowLayout());
              list = new JList(colorNames);
              list.setVisibleRowCount(3);
              list.setSelectedIndex(0);
              //Anonymous Inner Class
              list.addListSelectionListener (
                   new ListSelectionListener() {
                   public void valueChanged( ListSelectionEvent e)
                        container.setBackground(colors[colorlist.getSelectedIndex()]);
              container.add(list);
              pack();
              setVisible(true);
    }// End of Class ListTestCannot resolve symbol ListSelectionListener [LINE 36]

  • Why dont we get a compilation error for converting a collection into array?

    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
      public static void main(String[] args) {
        Map<Integer, String> temp = new HashMap<Integer, String>();
        temp.put(new Integer(1), "cat");
        temp.put(new Integer(2), "rat");
        Collection coll = temp.values();
        String[] arr = (String[]) coll.toArray();
        System.out.println(arr.length);
    } Thanks,
    Harish Srinivasan

    Infiniti wrote:
    Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    public class SampleMap {
    public static void main(String[] args) {
    Map<Integer, String> temp = new HashMap<Integer, String>();
    temp.put(new Integer(1), "cat");
    temp.put(new Integer(2), "rat");
    Collection coll = temp.values();
    String[] arr = (String[]) coll.toArray();
    System.out.println(arr.length);
    } Thanks,
    Harish SrinivasanAn explicit cast's job is to tell the compiler that even though it cannot guarantee that the conversion will work, allow the code anyway and let the runtime handle an error if it occurs.

  • Always getting a server error when trying to download the products

    I' always getting a server error when trying to download the products since yesterday, what can I do ?

    Try using a different browser

  • [iPhone 2.1 beta2] gethostbyname always get Unknown host error

    gethostbyname always get "Unknown host" error.
    any thoughts?
    following is the code how to get local iphone ip:
    char buffer[256];
    if(gethostname(buffer, sizeof(buffer)) == 0)
    struct hostent* host = gethostbyname(buffer);
    if (host == NULL) {
    herror("gethostbyname");
    return NULL;
    in_addr in;
    memcpy(&in.s_addr, host->h_addr, host->h_length);
    char* addr = inet_ntoa(in);
    if(addr)
    strcpy(local_ip, addr);
    }

    I'm having a similar problem, but the emergency call/airplane mode trick didn't fix mine. I just get call failed with no option to turn off airplane mode. Anyone else have another solution?
    I'm on an original iPhone with a Mac PowerBook G4
    After trying the update to 2.1 I just get the "unknown error occurred (-3256)" in iTunes. And the connect to iTunes screen on my iPhone. I've tried resetting with no success. I cannot restore because it can't access the iPhone in iTunes (it shows up as a devise by that's it). I can't get to any settings.
    Any help will be greatly appreciated...I'm desperate.

  • Sometimes a web page appears with only text and no picures. It is not always the same site and does not always happen. If I switch to Explorer for the same web site it always works

    Sometimes a web page appears with only text and no picures. It is not always the same site and does not always happen. If I switch to Explorer for the same web site it always works

    Thank you, it worked with just F5. I don't know whether CTRL + F5 would work because the problem has not come back yet!

  • HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS

    HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS IN ADVANCE

    try this website this should help you http://helpme.viber.com/index.php?/Knowledgebase/List/Index/1/iphone

  • No matter WHAT I try I always get a 404 error .

    I though I had fixed this but it happend again I cannot get
    this page done because everytime I upload it and try to view it I
    get a 404 error.. I have had it working a few times but it seems
    like every time I add a certain amount of text it doesnt work
    anymore or something.. I have deleted and re made the entire page
    without copying and pasting my text like 5 times and Im sick of
    working on this now and If i cant get it figured out Im done with
    working on this site..
    Here is my site www.furnaps.com
    The page I cannot get to work is
    www.furnaps.com/free_site_rev/reward.html

    > javascript include
    What? A missing linked javascript file won't produce a 404.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "iwasjoeking" <[email protected]> wrote in
    message
    news:fuiijr$12$[email protected]..
    > Looks like it is working now. Are you still having
    problems with your
    > page?
    >
    > The error that you saw could also be from a javascript
    include. I see
    > something from Google on your page. Could have been that
    the external js
    > page
    > was down at the moment you were looking at it.
    >
    > Also, if the problem is still present, check to see if
    the file is
    > actually on
    > the server. I have had experiences where my local file
    name had the
    > extension
    > "htm", but when I uploaded it, it changed to "html"--I
    think it is some DW
    > setting somewhere. To verify that the file is on the
    server, click the
    > "Expand
    > to show local and remote sites" button from the file
    panel. Then check
    > the
    > file name on your server.
    >
    > One side note... I would suggest changing the title of
    your page. Right
    > now
    > it says "Untitled Document".
    >

  • I try to generate a chm file over the net and I get a compiling error message

    Hi all,
    I am trying to generate chm files over the net, and the same project when I am generating the same chm locally works fine, however when I am attempting to generate the same chm on a network location, it gives me a compiling error and aborts the generation. It is also keeping the chm file open afterwards, so I have to reboot the machine.
    It is RH7 working on a Windows XP Pro 32 bit.
    Thank you

    It is not a project issue. RoboHelp is just not designed to work that way but like a lot of things, some people can use them outside what they were designed for. However, just because some people can work that way, it does not follow everyone can.
    I've seen people with projects on a network and they say have been doing it for years so it must be OK. A while later they come back and say the problem is fixed since moving it locally.
    Sorry but it looks like you are stuck with working the way you do or getting your colleague to do it. It might be as simple as he is on a different bit of your network.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Compiler bug in 10.1.3 EA1?  get "Internal compilation error" with EnumSet

    The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
    If I change the line:
    "EnumSet set = EnumSet.of(Buttons.ONE);"
    To:
    "EnumSet set = EnumSet.allOf(c);"
    It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
    Any ideas?
    ========================================
    package mypackage;
    import java.util.EnumSet;
    public class EnumDemo
    enum Buttons { ONE, TWO, THREE }
    public EnumDemo()
    public void dump()
              Class c = Buttons.class;
              EnumSet set = EnumSet.of(Buttons.ONE);
              System.out.println(set.toString());
    public static void main(String[] args)
    EnumDemo cls = new EnumDemo();
    cls.dump();
    ==============================

    package com.esp.main;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    public class TreeNavigator extends JTree {
    private FormMain fm;
    public TreeNavigatorNode selectedTreeNode;
    public TreePath selectedTreePath;
    public JTree thisTree;
    public TreeNavigator(FormMain pFM) {
    fm = pFM;
    thisTree = this;
    addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
    if (selectedTreeNode == null) {
    return;
    selectedTreePath = e.getPath();
    addMouseListener(new MouseAdapter() {
    public void mouseReleased(MouseEvent e) {
    if (e.getClickCount() == 1) {
    doPopup(e.getX(), e.getY());
    String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
    String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
    if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
    fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
    } else if (e.getClickCount() == 1) {
    TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
    thisTree.setSelectionPath(path);
    public void doPopup(int x, int y) {
    if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
    fm.cm.sendString("Do Nothing");
    } else {
    fm.cm.sendString("Launch form");
    setEditable(false);
    setMaximumSize(new java.awt.Dimension(3200, 3200));
    setPreferredSize(new java.awt.Dimension(800, 100));
    setShowsRootHandles(false);
    setLargeModel(false);
    setRootVisible(false);
    setDragEnabled(false);
    DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
    treeModel.addTreeModelListener(new NavigatorTreeModelListener());
    setModel(treeNavigatorModel);
    expandAll(this);
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    public void expandAll(JTree tree) {
    int row = 0;
    while (row < tree.getRowCount()) {
    tree.expandRow(row);
    row++;
    private void jbInit() throws Exception {
    this.setSize(new Dimension(286, 383));
    TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
    this.setCellRenderer(renderer);
    class NavigatorTreeModelListener implements TreeModelListener {
    public void treeNodesChanged(TreeModelEvent e) {
    TreeNavigatorNode node;
    node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
    * If the event lists children, then the changed
    * node is the child of the node we've already
    * gotten. Otherwise, the changed node and the
    * specified node are the same.
    try {
    int index = e.getChildIndices()[0];
    node = (TreeNavigatorNode)(node.getChildAt(index));
    } catch (NullPointerException exc) {
    public void treeNodesInserted(TreeModelEvent e) {
    public void treeNodesRemoved(TreeModelEvent e) {
    public void treeStructureChanged(TreeModelEvent e) {
    }

Maybe you are looking for

  • Subledger and GL Reconciliation Account Adjustment

    Hi Everyone, My issue is that I currently have an inconsistency between our Fixed Asset Subledger and General Ledger, and here is the scenario I have: 1. FA Subledger Entry - Profit Centre 123 has an amount of $100 2. GL Entry - Reconciliation Accoun

  • Mass move of source files in Photoshop Elements (PSE) 7...or 6 or 5 or 4...

    Because my Photoshop Elements 7 (previously 5 and 3 and 1) catalog outlasted multiple computers, I've "restored" the catalog multiple times. When I've done so, I've wanted to keep my picture file structure, so I selected that option in the restore. H

  • When clicking "Open" in InDesign, can I have it open up to Bridge instead of Finder?

    I'm looking to quit using Finder because it doesn't work well with our server (PC based). I would like when in InDesign or Photoshop, and I click to open a new file it would open up to Bridge instead of Finder (or Explorer in the PC world). Is this p

  • How can i execute my swing project?

    i am new about java.. i am trying to do something with jbuilder.. but i can't have any exe file.. i want to know how the last users will use my programs.. do they have to write java commands?.. thanks..

  • Can't create the file "navfill-v2.jpg."

    I have been using iWeb for over 4 years and have never had a problem until this message suddenly came up when I tried to save my website to a folder on my desktop as I have always done. Can't create the file "navfill-v2.jpg." The disk may be damaged