Welcome To Snipplr


Everyone's Recent Snippets Tagged Oracle



A slight adaptation on the sql in the Oracle Forum
0 1739 posted 14 years ago by theonlyalterego
OFP is the database environment
0 1651 posted 14 years ago by theonlyalterego
This sql statement enables to detect duplicates entries over a key and creates a seq column which says which one is the sequence of the duplicates. This way you can take only the seq = 1 and still be able to identify all duplicates
0 3638 posted 14 years ago by xavsio4
Very useful sql to find which responsibility has access to a report or request.
0 3162 posted 14 years ago by theonlyalterego
I found this today and it's very useful for finding the responsibility key when trying ot run OAF from JDev.
0 2136 posted 14 years ago by theonlyalterego
Per cambiare il tipo di dato in una colonna devo fare un giretto...
0 1221 posted 14 years ago by tuffo19
this code is for iterating through a cursor
0 3371 posted 14 years ago by Hisoka
0 1143 posted 14 years ago by marvin9000
0 1096 posted 14 years ago by JohnnyGamba
use this SQL query to find out an applications full name (aka long name) and/or application id based on the application short name. This can obviously be re-written to perform the reverse.
0 2361 posted 15 years ago by theonlyalterego
0 1265 posted 15 years ago by xavsio4
0 3485 posted 15 years ago by tuffo19
You would use a CURSOR FOR Loop when you want to fetch and process every record in a cursor. The CURSOR FOR Loop will terminate when all of the records in the cursor have been fetched.
1 1361 posted 15 years ago by mprabhuram
Elapsed Time Calculation
0 1199 posted 15 years ago by mprabhuram
GET_HASH_VALUE Function This function computes a hash value for the given string. Syntax DBMS_UTILITY.GET_HASH_VALUE ( name VARCHAR2, base NUMBER, hash_size NUMBER) RETURN NUMBER;
1 1629 posted 15 years ago by mprabhuram
Returns database's version
0 1147 posted 15 years ago by mprabhuram
other links : http://tinman.cs.gsu.edu/~raj/880/su98/pldsql/node6.html
1 1397 posted 15 years ago by mprabhuram
In the examples so far we have declared variables as a separate object using one of PL/SQL’s standard datatypes. Normally a PL/SQL variable is closely tied to a database object and uses the same datatype. For example, if the variable will hold the...
1 1517 posted 15 years ago by mprabhuram
Logic to subtract months from a date field and extract year and month
0 1534 posted 15 years ago by mprabhuram
Sequence is used to generate auto incrementing numbers
0 1162 posted 15 years ago by mprabhuram
See the DBLinks that you have created in the past
0 1442 posted 15 years ago by mprabhuram
use this to convert the oracle time stamp into a character.
0 1463 posted 15 years ago by mprabhuram
This will take the alpha numeric loan number field and converts it into numeric loan number. If there are any loan numbers with alphabet then it is converted as NULL (basically alpha numeric loan numbers are ignored)
0 1342 posted 15 years ago by mprabhuram