PL/SQL for Trigger can't see a table?

I am trying to write a simple log-in script that limits the number of log-in attempts that are allowed in a period of time. To support this I created a tiny 3 column table to record the failed log-in attempts -- but my WHEN-BUTTON-PRESSED PL/SQL trigger code can't seem to see the table? It always throws a SQL%NOTFOUND exception when I try to use this table. I've tried cnt, logons.cnt, and nw.logons.cnt to identify the columns but nothing has worked.
What am I doing wrong?
DECLARE
  dummy1 NUMBER;
BEGIN
  SELECT nw.logons.cnt
  INTO dummy1
  FROM nw.logons
  WHERE nw.logons.userid = '2';
LOGONS table in the NW schema
USERID VARCHAR2(6 BYTE)
LASTTIME DATE
CNT NUMBER

Oh GOD, I forgot to COMMIT. That is all it was. Sorry.

Similar Messages

  • Can't see my tables from a JDBC program

    Hi there,
    I have a JDBC program to connect to an Oracle 9i database. The problem is that I can't see the tables I create if I do something like "SELECT * FROM TAB" from a JDBC program and hence can't use them.
    If I do the same statement from SQL * PLUS, I get the the full list of my tables including the ones I created. If i do that from JDBCTest.java, I don't get to see them. I do commit my statments and have tried committing from the Java program and from the SQL Plus after creating the tables....
    Just to make sure I have checked myself, I am pretty sure that I am connecting with the same ID/Password in which I created my tables. I have also used schema.table to no avail... I have used scott/tiger and system/manager
    If i try st.executeUpdate() for example, I get the error : java.sql.sqlException: ORA-00942: table or view does not exist...
    Any help would be greatly appreciated
    Thanx :)
    Nav

    Hi MOD,
    hmmm. Sorry I am not an Oracle geek, but I am under system/manager and I created them all in there. I thought permissions are granted automatically. I tried to grant permissions to myself but had an error that I can't update them myself...
    Can you plz elaborate on how to set permissions cuz actually i installed the database (password still default) and I am not sure if there is a dba other than system/manager who could grant me permissions...
    It works on my home machine with the exact same version of Oracle and Java though and the same users and password :s
    Any other thoughts
    Thanx
    NAV

  • Where can we see Fact Table And Dimension Table in DataWarehouse Workbench?

    Hai Experts
    where can we see Fact Table And Dimension Table in DataWarehouse Workbench?
    Best Regards
    nvnkmr12

    Hi
    Refer the link below and you will get a comprehensive explanation of how data is stored and modeled in BI. If explains fact table, dimension table, SID table, P and Q , X and Y tables.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84
    Cheers
    Umesh

  • Facebook for Blackberry: can't see any photos

    Hi,
    I'm new to Blackberry, I just bought a Curve 8520 a friend did not use anymore (he got a newer Blackberry, haha). And I'm facing some difficulties with Facebook for Blackberry: I can't see any photo.
    OS: 5.0.0.900
    App: Facebook for Blackberry (by RIM) - version 1.9.0.28
    Carrier: Rogers Wireless. On prepaid plan (Blackberry Social 40)
    Everything worked alright this week, I remember using the Facebook app on Monday and Tuesday wihout noticing anything. I happen to have noticed on friday night that no profile picture nor photos in photo albums to show when in Facebook app (but the problem could have started before).
    It does not seems like it's a problem with Facebook authorizations, as I can see every profile picture when I'm on my desktop PC and when I go to Facebook mobile website using my BB's browser on WiFi.
    If I try to see a photo from an album, I get the followinf error: "Failed to download the requested image".
    If you have any suggestion or need more info, please don't hesitate, I'll gladly read and answer you!
    (I tried a quick search on this problem, but did not find anything really helpfull. But this guy seems to have had this problem on last April, and he did not get an answer...)
    Solved!
    Go to Solution.

    Where did you get the device?  Is it possible that it has an IT policy on the device blocking Facebook and/or Facebook options?  Look in Options >Security Options >General Settings (actual menu paths vary with OS version) and see if there is any reference to IT policy.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Can't see some tables name from connection navigation

    I use sql developer to connect 10g database, I have 50 tables within a user, but it only shows 27 tables. I don't know why. Can anyone tell me ? Thx

    We have 2 oracle10g database.
    If I use Oracle Enterprise Manage(OEM), and login as user A, I can see all tables in both of 2 oracle10g database. but if I use SQL developer connecting with user A, SQL developer can see only part of tables ( about 1/2) in one database and all tables in another databse. I don't know why. but this two database has replication relationship. As I opinion, if I can see in OEM, I can also see in SQL developer.
    anyway, I didn't apply filter. And my privilege is ok. Because I use below in user A:
    select table_name from user_table. this select is only select the tables belong to user A, it has the same result with OEM.
    Thanks anyway

  • Create CMP Entity Beans from Tables Wizard - Can't see any tables with DB2

    Hi,
    I'm trying to use the "Create CMP Entity Beans from Tables Wizard" to create an entity from a table in a DB2 database. The problem is, on page 2, I can't see any available tables. I have verified that the connection works (I can open the connection in the Navigator frame and I can see that table).
    Note that if I try this wizard on an Oracle database, I can see tables.
    WTF? Can someone please help?

    I second the motion. I too work in an environment with centralized data management (DBA's) that create and maintain all tables under a generic schema. This has prevented me from using the Create Entity Beans from Table feature of Jdev r3 preview.
    At least I can see that I'm not alone.
    Thanks
    When I select the "Create CMP Entity Beans from Tables Wizard," no tables or views are available to select. The JDev database connection is using an ID assigned to me.
    The tables that I am looking for were created by the DBA under his ID and are therefore in that schema. He did create Public Synonyms for them, but the tables still do not show up in the wizard.
    Is there a configuration step that I need to do to have those tables show up?
    Tables created by a DBA and then accessed by developers using a public synonym is a very common scenario and should be supported by JDeveloper (IMO).
    Thanks.
    I'm using JDev 9.0.2.8.2.

  • Program (PL/SQL) for count the registers of all tables in a schema

    Hi...
    I create a little program , for count the registers of all tables in the schema...
    If you need , send me your email...
    Atte
    Hector

    Hi,
    You can create a script by yourself by executing the script mentioned below:
    Connect as sys or system....
    SQL> spool test.sql
    SQL> select 'select count(*) from '||owner||'.'||table_name||';' from dba_tables;
    SQL> spool off;
    Hope this helps.
    Regards,
    -Praveen.
    http://myracle.wordpress.com

  • Problem with role and user; user can't see the table

    Hello forum,
    I've created a role:
    CREATE ROLE enr_service;
    GRANT CONNECT TO enr_service;
    GRANT ALL ON Locataires TO enr_service;
    GRANT ALL ON Batiments TO enr_service;
    GRANT ALL ON Sportifs TO enr_service;
    GRANT SELECT ON Epreuves TO enr_service;
    and also a user:
    CREATE USER ENR1 IDENTIFIED BY password QUOTA UNLIMITED ON USERS;
    GRANT enr_service TO ENR1;
    ALTER USER ENR1 DEFAULT ROLE enr_service;
    ALTER USER ENR1 DEFAULT TABLESPACE USERS;
    I can connect to the database with this user but when I try to query a table he's been granted access to I get an error message:
    SELECT * FROM Sportifs;
    ORA-00942: table or view does not exists
    I can't see what I've done wrong. Any help is appreciated.
    Sebastian

    user2019788 wrote:
    Hello forum,
    I've created a role:
    CREATE ROLE enr_service;
    GRANT CONNECT TO enr_service;
    GRANT ALL ON Locataires TO enr_service;
    GRANT ALL ON Batiments TO enr_service;
    GRANT ALL ON Sportifs TO enr_service;
    GRANT SELECT ON Epreuves TO enr_service;
    and also a user:
    CREATE USER ENR1 IDENTIFIED BY password QUOTA UNLIMITED ON USERS;
    GRANT enr_service TO ENR1;
    ALTER USER ENR1 DEFAULT ROLE enr_service;
    ALTER USER ENR1 DEFAULT TABLESPACE USERS;
    I can connect to the database with this user but when I try to query a table he's been granted access to I get an error message:
    SELECT * FROM Sportifs;
    ORA-00942: table or view does not exists
    I can't see what I've done wrong. Any help is appreciated.
    SebastianThat's probably because ENR1 doesn't have any table named SPORTIFS and he didn't qualify the table name with the schema name ...

  • Crystal 2008 can't "see" my tables but Version XI can.

    I bought 2008 and tried to connect through ODBC to a progress databse. The tables that have names which include a dash "-" will not run. I tried version XI and it works fine with my same ODBC connection (.dsn) what can I do to correct this? I bought 2008. Can I rool this back or something?

    Hi David,
    Just try to create the connection with ODBC/ OLEDB with DSN connection and update the connection with the set datasource location and verify that you are able to see the tables in the CR XI version.
    Else create a new connection to the existing one and verify the tables are retrieved or not.
    Let us know if you have any queries.
    Regards,
    Naveen.

  • Pages for iPad, can't see all files

    I'm having some trouble with my iPad and I may have to do a full reset.  (you can read about the saga here: https://discussions.apple.com/message/15034366#15034366).  Most of my apps won't launch, including Pages, Keynote, etc.  But before I do, there are a few files I'd like to retrieve from the device. 
    But well before this trouble happened, I recall that when I connected the iPad to my Mac, launched iTunes under Apps > File Sharing > Pages I only saw a portion of the docs I know I have in my Pages on the iPad.  This didn't concern me at the time, as I had a lot of those docs in other places.  But now I am trying to get to the actual files that I know must be on the device.  In the iPad, Pages saves whenever you close and go back to "My Documents."  So I know these must be saved somewhere...as I've been able to retrieve them from the iPad itself.  I feel like there must be something with Pages and how it stores data in iPad. 
    Any ideas are welcome. 
    Thanks!

    the iwork apps store your files locally, not in the folder that is seen by iTunes. You must export from the individual iworks apps using "Export to iTunes". This will allow them to be seen in itunes for saving back to your computer. I you added a file through itunes you need to use the import into the local space by using the "import from iTunes" option.
    Since you arent able to launch the apps, you might have lost those files. I am in the habit of using the "export to iTunes" anytime that I have made significant changes that I know would be devastating to lose. Thats my "backup" location.
    Whatever you do, dont delete the apps until after you have retreived everything you can through itunes. Deleting the apps deleted both the local space files and the iTunes files in the 'backup' folder I believe.
    Jason

  • Bookmarks are gone?? I have used This Browser for years can you see my Bookmarks

    Do you have my bookmarks? How to recover Bookmarks? have up graded my O.S. MAC..
    help! I have many years with these bookmarks.
    I have down loaded FireFox but I did not see were my info is at. Or asked my me if I have books marks already??
    No Bookmark after down loading the Browser

    I'm not familiar with MacOS updates. You ran an update to the OS on your Mac without uninstalling Firefox first, but after that finished, Firefox was missing and had to be installed again? That's not a good sign... do you have any information on whether it was moved to a different folder during the process?
    Do you recall ever setting up the Sync service from within Firefox? This service copies your bookmarks to Mozilla's Sync server. In order to connect to that, you would need a copy of the Sync Key (formerly called the Recovery Key) for your account.
    If you never set up Sync, your bookmarks would just be on your computer and in any backups you make of your Firefox data (for example, using Apple's Time Machine software).

  • Can't see my tables in ODBC

    When I create tables from SQL+, these do not appear in the ODBC driver. I am logged in as "System"/"Manager". If I log into SQL+ using the demo user "Scott"/"Tiger", and create the tables in the demo db, then they are visible. I need to set some permissions on my db? Can't find anything about it in the online help.

    1) Yes, I can insert and select records in the tables using SQL+. Do I need to "commit" them further? Don't suppose so...
    2) When I log on to ODBC as scott/tiger, I can see the exact same tables as I can using system/manager, and that is the system tables, the demo tables and "SCOTT" tables, including the ones I created as scott/tiger. But I still cannot find the tables created as system/manager.
    3) I am using MsAccess 2000. When you connect to an ODBC driver, it lists the available tables for selection.
    Morten
    null

  • I can't see my table in my app with oracle 9i

    Hi:
    I have an app with Java and O9i where i have to delete some data in table, but when i execute my metod appears a "ORA-00903: invalid table name" error code, but when i check the schema in DbVisualizer i see it that table in fact i can delete data manually but in my app don't.
    Somebody have the same problem or some can help me please. Thks
    .

    > now the question is
    does't matter CAPS? in my app
    Generally, no.
    When you create a table like this
    CREATE TABLE aa_Sales (...);the name is automatically stored in the data dictionary as "AA_SALES". The parser also uppercases the name when you refer to it is a query like
    SELECT * FROM AA_sales;so the names match and everything works regardless of case.
    The exception to this is when you explicitly name a table in double-quotes (which clearly you haven't here as the query from all_tables showed), or if you place double-quotes around the name in a query, because in both cases this forces case-sensitivity.

  • Can not see new table to reverse

    I have a new table that has been added to an oracle database but when I go to add it to my model it is not available in the list of objects to reverse when I am on the selective reverse tab. I do have the New Datastores checkbox checked. any ideas?

    I figured it out. The physical schema and work schema was defined with the schema name in lower case but should have been in uppercase.

  • Spool file problem,Can't see the query in output file.

    Hello ,
    I am facing a very old school kind of problem .....about spool file ....
    The scenario -
    I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
    The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
    Sample of my SQL Script ....
    clear buffer
    spool D:\DB_status.txt
    /*To check the database startup time*/
    Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
    from v$instance
    .........next query n so on....
    spool off;
    In the output pf the spool file at D:\db_status.txt..
    Startup time
    08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
    What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
    Please suggest if you have anymore ideas , regarding this .....
    ORACLE 10g R2
    Windows Server 2008
    Thanks in advance ...

    Why don't you just use database control, instead of re-inventing the wheel?
    Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
    The answer to your quiz/doc question is
    set echo on
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Web content/HTML5 animations cancelling buttons out-

    Has anyone experienced button failure when place under or over HTML5 animations? It's weird as I have a sweet little Wallaby created pulsing animation which has a button underneath it which actions just fine but have just brought in an animation from

  • Cancelled Documents

    Hi everybody,                       I jus want to take all the documents which are cancelled. While taking reports it also gives the document which is closed ... since the status for both closed and cancelled is 'C'. I jus want to take the documents

  • Unable to Bring Up System in Installer Mode

    My son came home from college with an old IBook G4 with OS X he received as a "throwing away" gift. We don't have the prior owner's userid or password or OS disks. I've picked up a set of OS X10.2 Jaguar disks off of Ebay. When I attempt to start the

  • Can't delete/stop problem execution??

    All, I have a job (RMANScript) to backup my database that is being reported as a "Problem" execution. When I click to view the details, it shows the Initialize piece worked, but the actual script running for 5 days now. I've tried to suspend the run

  • Oracle Administration Assistant for Win NT

    Hello, I had install Oracle 8i Enterprice Edition, but by starting de Administration Assistant for Win NT, it seems the system do nothing..?????? thanks