SAVE EXCEPTIONS and SQL%BULK_EXCEPTION
We saw how the FORALL syntax allows us to perform bulk DML operations.
But what happens if one of those individual operations results in an exception? If there is no exception handler, all the work done by the current bulk operation is rolled back.
If there is an exception handler, the work done prior to the exception is kept,...
Wednesday, 31 May 2017
Tuesday, 30 May 2017
undefined
undefined
Utility / Math related queries
Convert number to words
More info: Converting number into words in Oracle
SELECT TO_CHAR (TO_DATE (1526, 'j'), 'jsp') FROM DUAL;
Output:
one thousand five hundred twenty-six
Find string in package source code
Below query will search for string ‘FOO_SOMETHING’ in all package source. This query comes handy when you want to find a particular procedure or function...
undefined
undefined
Database administration queries
Database version informationReturns the Oracle database version.
SELECT * FROM v$version;
Database default information
Some system default information.
SELECT username,profile,default_tablespace,temporary_tablespaceFROM dba_users;
Database Character Set information
Display the character set information of database.
SELECT * FROM nls_database_parameters;
Get...
Friday, 26 May 2017
undefined
undefined
ORACLE-FORU - SQL%BULK_ROWCOUNT
Posted by Unknown in PL_SQL
No comments
SQL%BULK_ROWCOUNT
The SQL%BULK_ROWCOUNT cursor attribute gives granular information about the rows affected by each iteration of the FORALL statement. Every row in the driving collection has a corresponding row in the SQL%BULK_ROWCOUNT cursor attribute.
Lets see example you will clearly understand.
create one table.
CREATE TABLE bulk_rowcount_test AS
SELECT *
FROM all_users;
Below...
undefined
undefined
FORALL in Bulk Collection.
The FORALL syntax allows us to bind the contents of a collection to a single DML statement, allowing the DML to be run for each row in the collection without requiring a context switch each time. To test bulk binds using records we first create a test table.
lets try to understand with example.
create one table to test how forall function will work and performance...
undefined
undefined
Most Important Data dictionary Queries..
Posted by Unknown in SQL
No comments
Data dictionary queries
Check if a table exists in the current database schema
A simple query that can be used to check if a table exists before you create it. This way you can make your create table script rerunnable. Just replace table_name with actual table you want to check. This query will check if table exists for current user (from where the query is executed).
SELECT table_nameFROM user_tablesWHERE...
Thursday, 25 May 2017
undefined
undefined
Weblogic Server 11g 10.3.3 on MS Windows 7
Posted by Unknown in Oracle
No comments

Weblogic Server Installation 11g 10.3.3 on MS Windows 7
We download the Oracle Weblogic server from here.
We started the installer and will see at the beginning the initial loading.
Wait until the loading of the installer completes.
Once the installer screen pops
up click Next to continue.
...
Subscribe to:
Posts (Atom)