Frequently Asked Questions
- How to get the Temp Directory Path in Java?
The path to the temp directory in Java can be retreived via the sytem property as mentioned below:System.getProperty("java.io.tmpdir");
- How to list all the sequence in schema with size?
All the oracle sequences are stored in a table called "dba_sequences".The following query selects the min, max ,current value along with the length current value and orders it by the length in desc.
select SEQUENCE_NAME,MIN_VALUE,MAX_value,LAST_NUMBER,length(LAST_NUMBER)
from dba_sequences
where SEQUENCE_OWNER='schema owner'
order by length(LAST_NUMBER)desc;
- How to do view all the triggers in a schema?
Yes, you can view triggers using the INFORMATION_SCHEMA.TRIGGERS table. The following sql list all the triggers in a given schema. select
SEQUENCE_NAME,MIN_VALUE,MAX_value,LAST_NUMBER,length(LAST_NUMBER)
from dba_sequences
where SEQUENCE_OWNER='schema owner'
order by length(LAST_NUMBER) desc
- How to view all Stored Procedures in a schema?
The following sql list the name of all the routines in a given database.SELECT ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE="PROCEDURE" AND ROUTINE_SCHEMA="dbname";
- How to convert ISAM table to MYISAM?
The table types have changed from ISAM to MYISAM from Mysql version 4.x to 5.x. In order to convert a table from ISAM to MyISAM, simply issue a statement like
ALTER TABLE tblname ENGINE=MYISAM.
- How do I import a MySQL dumpfile into my database?
Data can be dumped into the database using the following command. mysql -p -h DBSERVER dbname < dbname.sql