Retrieve last inserted record

Question : Retrieve last inserted record I am using Coldfusion MX, with an access database. Having just used a form to enter a record, I now want a query to pull off THAT record so I can link other data to it.. as primary key is an auto generated number I dont know what it is until the record is inserted. I know I can query all the records in the Continue Reading →

Problem: 10g – Problem with creating Users , ora 30041 cannot grant quota on tablespace

Question : 10g – Problem with creating Users , ora 30041 cannot grant quota on tablespace I create a user in 10g, release 2 for windows: CREATE USER abc identified by abc default tablespace abc_TS1 TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON TEMP QUOTA UNLIMITED ON abc_TS1 ACCOUNT  UNLOCk; I keep getting ora 30041 cannot grant quota on tablespace but how can I grant to the user if wont create user Continue Reading →

Problem: download and extract linux817ee.tar.gz

Question : download and extract linux817ee.tar.gz I have downloaded the linux817ee.tar.gz file, it has 30,124,904 bites. Double clicked the file, there were 176 .jar files in the winzip window. When I extracted the file using winzip, it gave the error message: Error reading D:..linux817ee.tar. Possible cause: bad disk.The last tow lines in the winzip’s log file is as follows: Extracting ordvid_demo.0.0.jar Error reading D:Huangdownloadoracle8ioracle8.1.7linux817ee.tar.  Possible cause: bad disk Any help Continue Reading →

FRM-40735 / ORA-01422 / FRM-40222 / FRM-40735 Runtime Erros

Question : FRM-40735 / ORA-01422 / FRM-40222 / FRM-40735 Runtime Erros Hello, Well, I compiled my application, when I call the main form and press on some tabs I get the following sequence of errors: 1) FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-01422 2) FRM-40222: Disabled item B1_BILLED failed validation And then back to 1 and 2. 1) How can I resolve this sequence of trigger errors ? PT   Solution Continue Reading →

Problem: pgAdmin III query tool “IF” statement ERROR

Question : pgAdmin III query tool “IF” statement ERROR This is giving me an error in the pgAdmin II query tool. IF EXISTS(SELECT relname FROM pg_class WHERE relname = ‘Angelina_VR_Data’) THEN SELECT 2 ELSE SELECT 1 END IF; The error is: ERROR: syntax error at or near “IF” SQL state: 42601 Character: 1 Thank you in advance for your help. Please Help! This is driving me crazy!!!   Solution: pgAdmin Continue Reading →

Create an Oracle Forms data block using a stored procedure

Question : Create an Oracle Forms data block using a stored procedure Does anybody know where I could find some detailed documentation about creating Oracle Forms data blocks using stored procedures?   Solution : Create an Oracle Forms data block using a stored procedure Why base a block on a stored procedure? ————————————— Basing a block on a stored procedure is an advanced operation to do the following: 1. Reduce network traffic Continue Reading →

ORA-12569: TNS:packet checksum failure – Oracle 10.2 to MySQL 5.0

Question : ORA-12569: TNS:packet checksum failure – Oracle 10.2 to MySQL 5.0 I’m getting this error when tnsping-ing the SID defined below.  The ODBC connection MySQLTDSN works. How do I resolve the error? TNSNAMES.ORA entry: MySQLTDSN = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = MyPC)(PORT = 3306)) ) (CONNECT_DATA = (SID=MySQLTDSN) ) (HS=OK) ) SID Listener: (SID_DESC = (PROGRAM = hsodbc) (ORACLE_HOME = C:oraclexeapporacleproduct10.2.0server) (SID_NAME = MySQLTDSN) ) Continue Reading →

Problem: (SAGE 200) Login/Authentication error :: “Timeout expired” :: [Win XP Pro, SBS 2003, SQL Server 2000]

Problem: (SAGE 200) Login/Authentication error :: “Timeout expired” :: [Win XP Pro, SBS 2003, SQL Server 2000] Background We have a network over which our SBS2003 hosts the Sage 200 sql database.  Workstations are all connected through a Workgroup, and not Active Directory.  We have 2 workstations that have been using Sage 200. We have purchased and installed a third licence so that we can add a new user to Continue Reading →

error frm 40352 last record of query retrieved

Question : error frm 40352 last record of query retrieved i am working in oracle forms, and have written a function inside a form which searches a particular value in the set of records. the function is working fine but if  i enter a value which is not there in the record, it pops up a message box with error ” FRM-40352 : last record of query retrieved.” though it is Continue Reading →

Check if file exists

Question : Check if file exists Hello, I thought this would be easy but am at a loss! We’ve put together an images database using Oracle 8i and Forms 6i (client-server). We have a table of images, containing filenames that reference an NT drive (called “DIS”) that contains the actual images (JPGs, TIFs, etc). We have created a form which allows a user to “import” their own images into the database. Continue Reading →