Friday, 21 September 2012
Adding my blog at BlogDash
http://www.blogdash.com/full_profile/?claim_code=66b1e0e26bc35a7684f439d84d5818fb
Wednesday, 15 August 2012
Celebrating 66th Independence Day
Happy Independence Day
Wishing 66th Independence Day to all Indians. A moment of celebration and pride, a moment to achieve high and a moment to wish long live independence from all darks and greys..
Jai Hind
Monday, 13 August 2012
NoSQL !! Not Only SQL
It was not before I heard of murmurs of Big data in the database glossaries that I heard of NoSQL databases. Almost all the Web 2.0 companies and big guns in the industry are diverting their radar on RDBMS alternatives. NoSQL is an unplanned product of all such researches and explorations. Started for something, did something and found something in the form of NoSQL. I am not in a criticizing tone but I am trying to defend the capabilities of RDBMS, which of course and perhaps would not be overshadowed by the scaling out features of NoSQL.
I thought it would be might of help to the community to pen down my findings on the topic. Its not complete but the findings are still in alive mode.
NoSQL: The Concept
The NoSQL Database is a new infant in the database world. The concept evolved in 2009 as the outcome of brainstorming done in the area of high volume storage. NoSQL provides a database model which doesn’t complies neither with the relational model of database nor with the ACID features of the database language. By name, it appears as a counter of SQL language, but its a myth. Both SQL and NoSQL can coexist in a system and share no relation between them. NoSQL stands for Not Only SQL.
By virtue of its violation of basic database features, NoSQL cannot be referred as the database by soul, but it appears just as a data store or repository where the acmodel is majorly need oriented. Till date, there are more than 160 NoSQL databases available in the market. The major users of NoSQL database model are Facebook, Linkedin, Twitter, Google and Amazon.
NoSQL offers a flexible database model which can be accessed and monitored from middle tier. It has no specific language of its own (unless UnQL comes in). One of the most famous model is key value pair model. Other model can be document centric, graphical, tabular, column oriented and object databases.
The Need
The basic idea after the NoSQL evolution is to design a distributed data store with large scale data flow. The WEB2.0 platform discovered new attributes of data access. The web data is not only read only but the readers are also allowed to interact with the web data. Subsequently, the web data generates huge traffic and the data size increases steeply. This exponential growth of industrial data (mostly from social media and search engines) require massive scalability, low latency and data on demand facility in a simplified database model.
The relational database worked well with the information storage philosophies but failed to justify the revolutionary growth of data in the current times. In addition, the relational database system provides a non distributed, vertically scalable, schema oriented and licensed platform for data management activities. NoSQL on the other hand, is an open source, non relational, distributed and horizontally scalable database system which can withstand high volume of mixed-up data with low latency but high availability.
NoSQL Features
The major accomplishments of NoSQL database are
- Distributed architecture allows the implementation of replication mechanism to ensure consistent and unbreakable data flow
- Horizontally scalable ensures that new server nodes can be added, if required to enhance the performance and efficiency. Note that RDBMS has no such property to scale horizontally.
- Not schema dependent and non relational. Data storage paradigm is flexible as per the developer. In addition, there are no tables, constraints, join or relations to deal with. It completely behaves as a data store.
- Compliance with BASE (Basically Available, Soft state, Eventually consistent). The BASE model talks more on the data availability and replication consistency of master servers. “Basically available” implies that the data must always be available partially and progressively after a transaction. The data consistency in NoSQL is not stringent as in RDBMS i.e. the data remains in soft state. It may or may not be readily available as soon as the transaction gets over. There is a scope of small amount of latency in the availability. Such degree of data consistency is best suited for social media and not finance sector. Thus, the data is eventually consistent but not instantaneous.
- Complies with the Consistency and Partition tolerance of CAP theorem. CAP theorem states that a database model must obey anyone of Consistency, Availability or Partition tolerance. Note that conventional RDBMS compiles with Consistency and Availability.
- Ability to store huge amount of structured or semi structured data and its retrieval
- Not much technical expertise required
- Less maintenance and administration overheads
As a new database in the industry, the NoSQL database received mixed responses. The database users who were loyal to relational model rejected the need oriented approach of this database. On the other hand, the people who were facing capacity issues with RDBMS readily adopted the NoSQL database. It was in 2009 when NoSQL started competing with RDBMS.
NoSQL categories
Key-Value stores - Based on Amazon' dynamo.
- Columnar Family stores
- Document database - inspired by Lotus Notes. Mainly for document centric and semi structured data
- Graph database
NoSQL examples
Here are some pioneer and famous NoSQL databases used by the companies dealing with huge volumes of data.
- Amazon Dynamo (Used in ecommerce applications)
- Amazon SimpleDB (Used in webservices)
- Google BigTable
- Cassandra (Used by Facebook)
- CoucheDB,
- Neo4j
I shall be back with more findings as they find me.
Related articles
- SQL Vs. NoSQL: Which Is Better? (developers.slashdot.org)
- NoSQL or SQL? Do you have to choose? (rackspace.com)
- From 2010: NoSQL (Old Wine, New Bottle) (architects.dzone.com)
- NoSQL Rebels Aim Missile at Larry Ellison's Yacht (wired.com)
- Why NoSQL Should Be Called "SQL with Alternative Storage Models" (architects.dzone.com)
Monday, 6 August 2012
Oracle Engineered Systems: Hardware and Software Engineered to Work Together
Oracle Engineered Systems are highly efficient integrated systems which combine hardware and software to provide a complete enterprise solution to the customers or partners. The focus of the Oracle Engineered Systems is to give extreme performance, high scalability and maximum availability by reducing infrastructure complexity and setup cost. The pre assembled innovative systems have greatly simplified the requirements of a data center. One of the most complete enterprise systems in the current times, oracle engineered systems have everything to offer and fit the requirement. It can be understood as a box packaged box comprising of application support, operating system, virtualization, hardware management, networking support, and optimized storage scheme; all assembled to offer highly efficient and scalable solution to the customers.
Complete list of advantages drawn from Oracle Engineered Systems are as below
1. Integration of hardware and software components
2. Enhanced performance, claims 10x times faster than normal database
3. Low risk during installation and upgrades; high security
4. Accelerated deployment
5. Reduced complexity, IT cost and TCO (Total Cost of Ownership)
6. Single vendor support for purchase, deployment and support
Oracle engineered systems can be classified under below six solutions which we shall discuss briefly
1. Exadata
2. Exalogic
3. Exalytics
4. Oracle Database Appliance
5. Oracle Big Data Appliance
6. SPARC super cluster
1. Exadata
Exadata is one of the fastest database machines which work for both OLTP and data warehousing applications. It is a packaged integration of hardware and software comprising of server (Oracle 11g database servers), storage (Exadata Storage server), networking (InfiniBand), and virtualization. The Exadata machines are efficient to store upto 10 times more data and yield 10x-50x times better execution performance. The Exadata machine runs on the latest database version i.e. Oracle 11g Release 2.
Currently, there are two versions of Oracle Exadata namely, X2-2 and X2-8. The X2-2 version is a lower version with 2 to 8 twelve core database servers. The X2-8 version is best suited for huge requirements with 2 eighty core database servers. Depending upon the database size and performance requirements, these versions can be deployed in quarter rack, half rack and full rack configuration. Lower configurations can be upgraded to the next level with zero downtime, thus making it a scalable solution.
Key features of Exadata which contribute to the extreme performance are smart scan, hybrid columnar compression, smart flash cache, intelligent I/O resource management, smart flash logging, and storage indexes.
Oracle encourages its partners and customers (ISV) to have hands on Exadata and Exalogic through Oracle’s Exastack progam. The OPN members can utilize Oracle resources to achieve Oracle Exastack Ready or Oracle Exastack Optimized status. Oracle Exastack ready status qualifies an OPN member to be beneficiary based on their exhibition on Oracle products. A gold partner with Oracle Exastack optimized status has full access to technical resources from oracle and lab environments.
2. Exalogic
Exalogic is the high performance engineered system which is specifically designed for running Oracle Fusion Middleware, Oracle’s Fusion and Java based applications. Besides the enterprise applications, Exalogic works equally well for Linux or Solaris based applications. For Java based application mounted on Exalogic, performance can be improved upto 10x times with 5x more active users. Oracle applications run 4x times faster as compared to the normal servers with 3x times more active users. Key software engineered with the Exalogic hardware are Weblogic server, Coherence, JRockit and Hotspot, Exalogic elastic cloud software, Oracle linux, and enterprise manager for cloud monitoring and control. Exalogic is available in quarter rack, half rack, full rack and even multi racks (2-8) versions. Upgrades are possible from lower configuration to higher one with zero downtime and negligible maintenance issues.
An Exalogic unit is configured with cloud capacity too. The Exalogic Elastic Cloud is efficient to mount an application on a secure private cloud with extreme performance and simple management. All types of applications, ranging from small scale to large scale like mainframe applications can be based on Exalogic. The cloud capacity associated with Exalogic contributes to the enhanced application capacity and performance, reduced latency, and intensive database communication.
Oracle encourages its partners to take up Exalogic EX-CITE program. The program aims to demonstrate the efficiency and effectiveness of Exalogic on customers/partners business prospects.
3. Exalytics
After database and application engineered systems, Exalytics is the engineered system which focuses on the Business Intelligence applications. The Exalytics machine enables speedy analysis of data using In Memory (In Memory Parallel Analytics) processing engine.
The Exalytics architecture includes BI foundation suite (OBIEE), In Memory Parallel Essbase, and In Memory Parallel TimesTen database for Exalytics along with network components (Infiniband). Oracle TimesTen database is a relational In Memory database where the tables are cached under cache groups in the memory. Its existing capabilities have been enhanced for analytic processing by supporting columnar compression. Oracle EssBase is an OLAP server for analytic applications.
BI query reporting time improves by 18x times when Exalytics works with Oracle database. Combination of Exalytics and Exadata improves the BI query reporting time by 23 times.
The Oracle Exalytics machine is fed with four Intel Xeon E7-4800 processors where each one can provide 10 cores for computational purposes.
4. Oracle Database Appliance (ODA)
The Oracle Database Appliance is the engineered system which serves the lower capacity database services for OLTP and data warehousing applications. It is a shorter format (quarter rack) of Exadata machine which are expandable and promise higher capacity systems. In contrary to Exadata, ODA is affordable and offers easy implementations over skilled and risk deployment.
Oracle Database Appliance comes as a 4 rack unit (2 server nodes and 12TB storage capacity) running on Oracle Linux with 11gR2 RAC supported database. A complete ODA system is engineered with Oracle Linux, Oracle 11gR2 database (enterprise edition), RAC, grid infrastructure, enterprise manager, oracle automatic service requests and appliance manager. The automatic service request is an intelligent facility which can record and generate any hardware failure or replace requests. The appliance manager is a self efficient tool gets started in the deployment stage for assembling, installation and configuration tasks. In the later stages of maintenance and support, appliance manager is efficient to apply patches or reports a fixation for troubleshoot (if any).
It is best suited for non expandable systems and lower capacity customers. ODA is easy to implement, affordable and ensures high performance and serviceability.
5. Oracle Big Data Appliance (OBDA)
Oracle Big Data Appliance is the engineered system from Oracle to handle the growth of large scale enterprise data in the varied sections of the industry. The term Big Data refers to the techniques to counter the large enterprise data, both structured or unstructured, which grows at exponential rate like web data from twitter, linkedin, mapping sites etc. In a single rack, the Big Data appliance has 216 CPU processing cores and 648TB of raw storage. Starting with a single rack, the appliance can be scaled upto eight racks.
The Big Data appliance runs on Oracle Linux and Oracle JVM. Apache Hadoop from Cloudera is used for the distribution while NoSQL database (Oracle Berkeley DB) stores the data sets in key-value pairs. Using Map Reduce framework, the available data is organized and loaded into Oracle Exadata database machine. Key components which operate in this stage are Oracle loader and Oracle Data Integrator. Once the organized data is loaded, it is ready for analytical process and business decision making. The analysis is done in Oracle Exalytics In Memory machine. The statistical environment R is also used for advanced analytics at the decision stage. All the major hardware components i.e. Big Data appliance, Exadata and Exalytics share the InfiniBand connectivity so as to boost the network speed. In addition, the Big Data connectors do the load balancing between Big Data Appliance and Oracle Exadata machine.
The large data is diversified, organized and then analyzed. The Big Data platform operates in three stages namely, Acquire, Organize and Analyze. The infrastructure required for the Big Data platform can be divided as per the three stages.
Acquire: The stage where all available data is pulled and kept. Important components in this stage are Hadoop Distributed File System, and NoSQL Database.
Hadoop is an open source framework developed by Doug Cutting from Cloudera to counter large number of upcoming data requests. It is a file system which parallel takes the requests in large batches, breaks them into smaller requests and feeds into the distributed file systems. Cloudera manager tool is used to manage Hadoop.
Organize: Mapping, reducing and organization of data. Components at this stage are Oracle Exadata database machine, Oracle loader, Oracle Data Integrator, and Hadoop Map Reduce framework.
Analyze: Analysis and decision making stage. Oracle Exalytics does the job in the stage.
Decide and Visualize: Advanced analytics using R statistical environment
6. SPARC Super Cluster
The SPARC super cluster is the engineered system from Oracle to fit general purpose requirements of customers. It runs for all sorts of workloads. It integrates the high performance components like SPARC T4 compute tool, Exadata storage cells, Exalogic Elastic Cloud, ZFS storage appliance, Solaris 11, and enterprise manager. The components share InfiniBands connectivity.
Complete list of advantages drawn from Oracle Engineered Systems are as below
1. Integration of hardware and software components
2. Enhanced performance, claims 10x times faster than normal database
3. Low risk during installation and upgrades; high security
4. Accelerated deployment
5. Reduced complexity, IT cost and TCO (Total Cost of Ownership)
6. Single vendor support for purchase, deployment and support
Oracle engineered systems can be classified under below six solutions which we shall discuss briefly
1. Exadata
2. Exalogic
3. Exalytics
4. Oracle Database Appliance
5. Oracle Big Data Appliance
6. SPARC super cluster
1. Exadata
Exadata is one of the fastest database machines which work for both OLTP and data warehousing applications. It is a packaged integration of hardware and software comprising of server (Oracle 11g database servers), storage (Exadata Storage server), networking (InfiniBand), and virtualization. The Exadata machines are efficient to store upto 10 times more data and yield 10x-50x times better execution performance. The Exadata machine runs on the latest database version i.e. Oracle 11g Release 2.
Currently, there are two versions of Oracle Exadata namely, X2-2 and X2-8. The X2-2 version is a lower version with 2 to 8 twelve core database servers. The X2-8 version is best suited for huge requirements with 2 eighty core database servers. Depending upon the database size and performance requirements, these versions can be deployed in quarter rack, half rack and full rack configuration. Lower configurations can be upgraded to the next level with zero downtime, thus making it a scalable solution.
Key features of Exadata which contribute to the extreme performance are smart scan, hybrid columnar compression, smart flash cache, intelligent I/O resource management, smart flash logging, and storage indexes.
Oracle encourages its partners and customers (ISV) to have hands on Exadata and Exalogic through Oracle’s Exastack progam. The OPN members can utilize Oracle resources to achieve Oracle Exastack Ready or Oracle Exastack Optimized status. Oracle Exastack ready status qualifies an OPN member to be beneficiary based on their exhibition on Oracle products. A gold partner with Oracle Exastack optimized status has full access to technical resources from oracle and lab environments.
2. Exalogic
Exalogic is the high performance engineered system which is specifically designed for running Oracle Fusion Middleware, Oracle’s Fusion and Java based applications. Besides the enterprise applications, Exalogic works equally well for Linux or Solaris based applications. For Java based application mounted on Exalogic, performance can be improved upto 10x times with 5x more active users. Oracle applications run 4x times faster as compared to the normal servers with 3x times more active users. Key software engineered with the Exalogic hardware are Weblogic server, Coherence, JRockit and Hotspot, Exalogic elastic cloud software, Oracle linux, and enterprise manager for cloud monitoring and control. Exalogic is available in quarter rack, half rack, full rack and even multi racks (2-8) versions. Upgrades are possible from lower configuration to higher one with zero downtime and negligible maintenance issues.
An Exalogic unit is configured with cloud capacity too. The Exalogic Elastic Cloud is efficient to mount an application on a secure private cloud with extreme performance and simple management. All types of applications, ranging from small scale to large scale like mainframe applications can be based on Exalogic. The cloud capacity associated with Exalogic contributes to the enhanced application capacity and performance, reduced latency, and intensive database communication.
Oracle encourages its partners to take up Exalogic EX-CITE program. The program aims to demonstrate the efficiency and effectiveness of Exalogic on customers/partners business prospects.
3. Exalytics
After database and application engineered systems, Exalytics is the engineered system which focuses on the Business Intelligence applications. The Exalytics machine enables speedy analysis of data using In Memory (In Memory Parallel Analytics) processing engine.
The Exalytics architecture includes BI foundation suite (OBIEE), In Memory Parallel Essbase, and In Memory Parallel TimesTen database for Exalytics along with network components (Infiniband). Oracle TimesTen database is a relational In Memory database where the tables are cached under cache groups in the memory. Its existing capabilities have been enhanced for analytic processing by supporting columnar compression. Oracle EssBase is an OLAP server for analytic applications.
BI query reporting time improves by 18x times when Exalytics works with Oracle database. Combination of Exalytics and Exadata improves the BI query reporting time by 23 times.
The Oracle Exalytics machine is fed with four Intel Xeon E7-4800 processors where each one can provide 10 cores for computational purposes.
4. Oracle Database Appliance (ODA)
The Oracle Database Appliance is the engineered system which serves the lower capacity database services for OLTP and data warehousing applications. It is a shorter format (quarter rack) of Exadata machine which are expandable and promise higher capacity systems. In contrary to Exadata, ODA is affordable and offers easy implementations over skilled and risk deployment.
Oracle Database Appliance comes as a 4 rack unit (2 server nodes and 12TB storage capacity) running on Oracle Linux with 11gR2 RAC supported database. A complete ODA system is engineered with Oracle Linux, Oracle 11gR2 database (enterprise edition), RAC, grid infrastructure, enterprise manager, oracle automatic service requests and appliance manager. The automatic service request is an intelligent facility which can record and generate any hardware failure or replace requests. The appliance manager is a self efficient tool gets started in the deployment stage for assembling, installation and configuration tasks. In the later stages of maintenance and support, appliance manager is efficient to apply patches or reports a fixation for troubleshoot (if any).
It is best suited for non expandable systems and lower capacity customers. ODA is easy to implement, affordable and ensures high performance and serviceability.
5. Oracle Big Data Appliance (OBDA)
Oracle Big Data Appliance is the engineered system from Oracle to handle the growth of large scale enterprise data in the varied sections of the industry. The term Big Data refers to the techniques to counter the large enterprise data, both structured or unstructured, which grows at exponential rate like web data from twitter, linkedin, mapping sites etc. In a single rack, the Big Data appliance has 216 CPU processing cores and 648TB of raw storage. Starting with a single rack, the appliance can be scaled upto eight racks.
The Big Data appliance runs on Oracle Linux and Oracle JVM. Apache Hadoop from Cloudera is used for the distribution while NoSQL database (Oracle Berkeley DB) stores the data sets in key-value pairs. Using Map Reduce framework, the available data is organized and loaded into Oracle Exadata database machine. Key components which operate in this stage are Oracle loader and Oracle Data Integrator. Once the organized data is loaded, it is ready for analytical process and business decision making. The analysis is done in Oracle Exalytics In Memory machine. The statistical environment R is also used for advanced analytics at the decision stage. All the major hardware components i.e. Big Data appliance, Exadata and Exalytics share the InfiniBand connectivity so as to boost the network speed. In addition, the Big Data connectors do the load balancing between Big Data Appliance and Oracle Exadata machine.
The large data is diversified, organized and then analyzed. The Big Data platform operates in three stages namely, Acquire, Organize and Analyze. The infrastructure required for the Big Data platform can be divided as per the three stages.
Acquire: The stage where all available data is pulled and kept. Important components in this stage are Hadoop Distributed File System, and NoSQL Database.
Hadoop is an open source framework developed by Doug Cutting from Cloudera to counter large number of upcoming data requests. It is a file system which parallel takes the requests in large batches, breaks them into smaller requests and feeds into the distributed file systems. Cloudera manager tool is used to manage Hadoop.
Organize: Mapping, reducing and organization of data. Components at this stage are Oracle Exadata database machine, Oracle loader, Oracle Data Integrator, and Hadoop Map Reduce framework.
Analyze: Analysis and decision making stage. Oracle Exalytics does the job in the stage.
Decide and Visualize: Advanced analytics using R statistical environment
6. SPARC Super Cluster
The SPARC super cluster is the engineered system from Oracle to fit general purpose requirements of customers. It runs for all sorts of workloads. It integrates the high performance components like SPARC T4 compute tool, Exadata storage cells, Exalogic Elastic Cloud, ZFS storage appliance, Solaris 11, and enterprise manager. The components share InfiniBands connectivity.
Related articles
- Exaview on Oracle Exalytics, Exalogic and Exadata (theenterprisefiles.com)
- Oracle Finally Adds the Elastic to Exalogic (servicesangle.com)
- MVP Systems Software Achieves Oracle Exastack Ready Status (prweb.com)
- Oracle's cloud hype set for major escalation (networkworld.com)
- Oracle readies Exalogic 2.0 'engineered systems' (go.theregister.com)
Tuesday, 19 June 2012
Recent Articles at Exforsys (XML Storage and 11g Analytic Enhancements)
Hope you all are liking the book and my wish that it reaches my readers. I am satisfied with the good response of the readers. The fact that the book features into Oracle magazine (July-August 2012) issue and Oracle ACE newsletter has already overwhelmed me with joy and excitement.
Once again, thanks to Exforsys for publishing my two articles recently.
First article deals with the XML storage concepts in Oracle. The concepts have been theoretically explained within the scope of the article. Read the complete story at the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-xml-storage.html
Second article explains the aggregate and analytic enhancements in Oracle 11g database. The article explains the newly inducted LISTAGG and NTH_VALUE functions with examples. Read the complete article at the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-analytic-enhancements.html
Hope you all will like it. Do post your feedback, observations or suggestions.
Thanks to all,
Saurabh
Once again, thanks to Exforsys for publishing my two articles recently.
First article deals with the XML storage concepts in Oracle. The concepts have been theoretically explained within the scope of the article. Read the complete story at the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-xml-storage.html
Second article explains the aggregate and analytic enhancements in Oracle 11g database. The article explains the newly inducted LISTAGG and NTH_VALUE functions with examples. Read the complete article at the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-analytic-enhancements.html
Hope you all will like it. Do post your feedback, observations or suggestions.
Thanks to all,
Saurabh
Related articles
- XML Parsing save all in TextView- in Android (stackoverflow.com)
- XML Help (daniweb.com)
Tuesday, 12 June 2012
Oracle Community: Partner News & Book Beat [Oracle Magazine July/August 2012 issue]
After ACE newsletter, the book makes into Oracle Magazine Book Beat section...great feeling and satisfaction that it reaches its readers...
Community: Partner News & Book Beat.
Community: Partner News & Book Beat.
Saturday, 2 June 2012
Win a Free Copy of Packt's Oracle book
Gladly I would like to announce that Packt publishing has arranged a GiveAway contest for “Oracle Advanced PL/SQL Developer Professional Guide” especially and exclusively for the readers.
It’s easy to participate and walk away with your copy. All you need to do is just comment below the post and win a free copy of Oracle Advanced PL/SQL Developer Professional Guide . Three lucky winners stand a chance to win an e-copy of the book. Keep reading to find out how you can be one of the Lucky One.

Overview of Oracle Advanced PL/SQL Developer Professional Guide
Blitz the 1Z0-146 exam
The Oracle Advanced PL/SQL Developer Professional Guide helps you to master the advanced PL/SQL concepts in Oracle 11g. The book is recommended for the Associate level Oracle professionals aspiring for Professional level. The topics covered and demonstrated are in line with the Oracle University prescription for Oracle Professional certification, which justify the version updates to be advanced and not complex.
Master the advanced features of PL/SQL to design and optimize code using real-time demonstrations
The book aims to cover the advanced features of PL/SQL which are required to design and optimize the PL/SQL code. The recapitulation of PL/SQL programming and advanced features like collections, external procedures, server side result caching, implementing VPD to enforce row level security, handling large objects and SecureFiles build up a concrete platform for a PL/SQL professional. Apart from the programming, the book makes instrumental recommendations on the usage of development tool SQL Developer, employing best practices in database environments and safeguarding the vulnerable areas in PL/SQL code to avoid code injection.
Read more about this book and download free Sample Chapter: http://www.packtpub.com/oracle-advanced-pl-sql-developer-professional-guide/book
How to Enter?
All you need to do is head on over to this page and look through the product description of the book and drop a line via the comments to this blog post below to let us know what interests you the most about these books. It’s that simple
Deadline
The contest is open for a limited period and will close on 3rd July, 2012. Winners will be contacted by email, so ensure that you give real and correct email address when you comment!
Enjoy reading, bye
Saurabh
It’s easy to participate and walk away with your copy. All you need to do is just comment below the post and win a free copy of Oracle Advanced PL/SQL Developer Professional Guide . Three lucky winners stand a chance to win an e-copy of the book. Keep reading to find out how you can be one of the Lucky One.
Overview of Oracle Advanced PL/SQL Developer Professional Guide
The Oracle Advanced PL/SQL Developer Professional Guide helps you to master the advanced PL/SQL concepts in Oracle 11g. The book is recommended for the Associate level Oracle professionals aspiring for Professional level. The topics covered and demonstrated are in line with the Oracle University prescription for Oracle Professional certification, which justify the version updates to be advanced and not complex.
The book aims to cover the advanced features of PL/SQL which are required to design and optimize the PL/SQL code. The recapitulation of PL/SQL programming and advanced features like collections, external procedures, server side result caching, implementing VPD to enforce row level security, handling large objects and SecureFiles build up a concrete platform for a PL/SQL professional. Apart from the programming, the book makes instrumental recommendations on the usage of development tool SQL Developer, employing best practices in database environments and safeguarding the vulnerable areas in PL/SQL code to avoid code injection.
Read more about this book and download free Sample Chapter: http://www.packtpub.com/oracle-advanced-pl-sql-developer-professional-guide/book
How to Enter?
All you need to do is head on over to this page and look through the product description of the book and drop a line via the comments to this blog post below to let us know what interests you the most about these books. It’s that simple
Deadline
The contest is open for a limited period and will close on 3rd July, 2012. Winners will be contacted by email, so ensure that you give real and correct email address when you comment!
Enjoy reading, bye
Saurabh
Thursday, 17 May 2012
An article suggestion from PacktPub.com
Dear All All
Packt publishers have extracted a chapter of my book as an article.
Click here to view the full article.
Packt publishers have extracted a chapter of my book as an article.
PL/SQL: Using CollectionsThe Oracle Advanced PL/SQL Developer Professional Guide helps you master advanced PL/SQL concepts. Besides the clear and precise explanation on advanced topics, it also contains example code and demonstrations, which gives a sense of application and usage to readersIn this article by Saurabh Gupta, author of Oracle Advanced PL/SQL Developer Professional Guide, we'll cover the following topics:
|
Click here to view the full article.
Monday, 7 May 2012
PL/SQL # Tip: Locally declared subprograms in PL/SQL
Hi all,
From long time, I am planning to start a blog section on PL/SQL programming tips. I have observed that as we grow more in technology, we skip some of the key features of language. When discovered later, the same tip appears to be an important bottleneck in programming.
Here, we go with the first one!!
We all know about the usage of local subprograms in anonymous blocks or subprograms. We declare local subprograms for private usage within the current block. They accomplish some small utility of the block and support modular programming. Few facts associated with the local subprograms are as below
1. Local subprograms must be defined as the last construct in the declarative section. However, their prototype can be declared along with other constructs and identifiers in the declarative section. The concept is known as Forward Declaration.
2. Results of locally declared functions in an anonymous blocks cannot be cached under 'Oracle 11g Result Caching' Scheme.
3. Locally declared subprograms cannot be used within SQL statements which appear in the current block. Let us conduct a small case study
Instead, the results of local subprograms must be captured in local block variables. Thereafter, these block variables can be used within the SQL statements.
Above features of local subprograms appears to be small but are very useful in day to day programming. Hope you all will like it!!
Do share your suggestions, additional observations or feedback, which of course value a lot to me.
From long time, I am planning to start a blog section on PL/SQL programming tips. I have observed that as we grow more in technology, we skip some of the key features of language. When discovered later, the same tip appears to be an important bottleneck in programming.
Here, we go with the first one!!
We all know about the usage of local subprograms in anonymous blocks or subprograms. We declare local subprograms for private usage within the current block. They accomplish some small utility of the block and support modular programming. Few facts associated with the local subprograms are as below
1. Local subprograms must be defined as the last construct in the declarative section. However, their prototype can be declared along with other constructs and identifiers in the declarative section. The concept is known as Forward Declaration.
2. Results of locally declared functions in an anonymous blocks cannot be cached under 'Oracle 11g Result Caching' Scheme.
3. Locally declared subprograms cannot be used within SQL statements which appear in the current block. Let us conduct a small case study
create table t_demo_sql
(a number,
b number)
/
Table created.
create or replace procedure p_ins_rec (p_data number)
is
function f_getnum(p_num NUMBER) return number
is
begin
return (p_num*2);
end;
begin
insert into t_demo_sql values
(p_num, f_getnum(p_num));
end;
/
Warning: Procedure created with compilation errors.
SELECT NAME, ATTRIBUTE, TEXT FROM USER_ERRORS WHERE NAME='P_INS_REC'
/
NAME ATTRIBUTE TEXT
---------- --------- -----------------------------------------------------
P_INS_REC ERROR PLS-00231: function 'F_GETNUM' may not be used in SQL
P_INS_REC ERROR PL/SQL: ORA-00904: : invalid identifier
P_INS_REC ERROR PL/SQL: SQL Statement ignoredInstead, the results of local subprograms must be captured in local block variables. Thereafter, these block variables can be used within the SQL statements.
Above features of local subprograms appears to be small but are very useful in day to day programming. Hope you all will like it!!
Do share your suggestions, additional observations or feedback, which of course value a lot to me.
Monday, 2 April 2012
An Exclusive Thank You from Packt Publishing -- Any 3 Packt Ebooks for just $19.99
Good Morning and Happy April month to all,
Here is a great offer from Packt publishers for the week. Don't wait !! Hurry
This week only and to thank you for your custom in the past we have two exclusive offers for you:
On a purchase of 3 ebooks, this offer will save you up to $80 off the list price.
To take advantage of these offers, browse our book store to find the ebooks you want, add your ebook choices to your cart, and use the following discount codes at the checkout:
This offer runs for 1 week only, so be quick and get your cut price ebooks before next Thursday, 5th April 2012.
Packt Publishing Direct Marketing Team
Use the link for pre order:
http://www.packtpub.com/oracle-advanced-pl-sql-developer-professional-guide/book
Bye for now,
Saurabh
Here is a great offer from Packt publishers for the week. Don't wait !! Hurry
This week only and to thank you for your custom in the past we have two exclusive offers for you:
- Buy three Packt ebooks for just $19.99.
- Buy one book, you can get any Packt ebook for just $9.99.
On a purchase of 3 ebooks, this offer will save you up to $80 off the list price.
To take advantage of these offers, browse our book store to find the ebooks you want, add your ebook choices to your cart, and use the following discount codes at the checkout:
- Buy three ebooks for $19.99: [Promo Code: THOR20]
- Buy one ebook for $9.99: [Promo Code: DANYEB]
This offer runs for 1 week only, so be quick and get your cut price ebooks before next Thursday, 5th April 2012.
Packt Publishing Direct Marketing Team
Use the link for pre order:
http://www.packtpub.com/oracle-advanced-pl-sql-developer-professional-guide/book
Bye for now,
Saurabh
Tuesday, 6 March 2012
Enjoy reading...enjoy PacktLib
Hi,
Nice to see a new development for Indian techies from Packt publishers. The publishers library PacktLib is now free for tech readers in India. Interested readers can create their account and use the library for free from 8 to 8.
Find more information at http://packtlib.packtpub.com/......Enjoy
Bye, Saurabh
Saturday, 25 February 2012
Methodical Performance Tuning Part 2 by Arup Nanda: AIOUG webcast
Arup Nanda delivers yet again a useful webcast on Oracle performance tuning practices. This time he shows the utilization of V$ views to analyse the session level waits and statistics.
Download links are as below
http://arup.blogspot.in/2011/10/aioug-webcast-methodical-performance.html
http://arup.blogspot.in/2012/02/aioug-webcastmethodical-performance.html
Besides, the reviewing activities on "Book in Making" are going smooth. My regards to Ronald Rood, Kamran Agayev and Mohan Dutta, who are investing their efforts and valuable time in reviewing the book. Thanks for all your responses on the book listing.
Saurabh
Download links are as below
http://arup.blogspot.in/2011/10/aioug-webcast-methodical-performance.html
http://arup.blogspot.in/2012/02/aioug-webcastmethodical-performance.html
Besides, the reviewing activities on "Book in Making" are going smooth. My regards to Ronald Rood, Kamran Agayev and Mohan Dutta, who are investing their efforts and valuable time in reviewing the book. Thanks for all your responses on the book listing.
Saurabh
Related articles
- Solving common Oracle Wait Events for performance tunning (samadhandba.wordpress.com)
Sunday, 19 February 2012
Upgrading to Oracle 11gR2, presented by Syed Jaffar Hussain
Oracle ACE Director Syed Jaffer Hussain presents a webinar on upgrading database systems to Oracle 11gR2.
http://www.youtube.com/watch?v=QcH7Z3w2AbM
Have a learning and enjoyable experience
Thanks
Saurabh
http://www.youtube.com/watch?v=QcH7Z3w2AbM
Have a learning and enjoyable experience
Thanks
Saurabh
Related articles
- Oracle: Webcast: #Oracle solutio... (oracleidentity.wordpress.com)
- Oracle: Identify the #cloud stra... (oracleidentity.wordpress.com)
- Oracle Identity Manager: OIM 11G... (oracleidentity.wordpress.com)
Wednesday, 1 February 2012
Discovering the Author within me: My upcoming book
The book is for the Oracle Associate professionals who are aspiring for Professional level exam (1Z0-146 certification).
"The Oracle Advanced PL/SQL Developer Professional Guide helps you master advanced PL/SQL concepts. Besides the clear and precise explanation on advanced topics, it also contains example code and demonstrations, which gives a sense of application and usage to readers. The book gives a deep insight that will help transform readers from mid-level programmers to professional database developers. It aims to cover the advanced features of PL/SQL for designing and optimizing PL/SQL code."--From PacktPub webpage
http://www.packtpub.com/oracle-advanced-pl-sql-developer-professional-guide/book
Wait until May but surely book your copies in advance.
Thanks to Oracle and Luv u All,
Saurabh
Labels:
Database,
Oracle,
PL/SQL,
Programming,
Software developer,
SQL
Saturday, 28 January 2012
A Conversation with Hans Forbrich
Hans Forbrich, an Oracle ACE Director, talks about his path to becoming a prized speaker at Oracle User Group meetings around the world.
http://medianetwork.oracle.com/video/player/961894745001
Enjoy all
Saurabh
http://medianetwork.oracle.com/video/player/961894745001
Enjoy all
Saurabh
Tuesday, 17 January 2012
Revise Partitioning Concepts in Oracle
Hi all,
Partitioning is one of the most stable, proven and efficient features of Oracle. It defines proper segregated format of data management along with boosting up the query performance. Recently, I published my article on Partitioning concepts at Exforsys. The article covers theoretical concepts involved in the feature. Continue reading the complete story from the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-partitioning-overview.html
Hope you all enjoy the reading. Post your feedback and comments.
Thanks all. I'll be back with some more news and sharings. Bye for now
Saurabh
Partitioning is one of the most stable, proven and efficient features of Oracle. It defines proper segregated format of data management along with boosting up the query performance. Recently, I published my article on Partitioning concepts at Exforsys. The article covers theoretical concepts involved in the feature. Continue reading the complete story from the below link
http://www.exforsys.com/tutorials/oracle-11g/oracle-partitioning-overview.html
Hope you all enjoy the reading. Post your feedback and comments.
Thanks all. I'll be back with some more news and sharings. Bye for now
Saurabh
Thursday, 29 December 2011
Warm wishes for New Year 2012
Hi All,
Before the dawn reaches the dusk, before the verticals meets horizons, let us together welcome a New Year of warmth, prosperity and growth.
May the yer 2012 brings all greats, loads of love, happiness, and ample of opportunities of growth and survival.

SbhOracle would enter into its second year. 2011 has been a great year of establishment, reachability and credibility. And yes, it made a mark in alot more interactions in techworld.
Happy New year in Advance!!
Love you all,
Saurabh
Before the dawn reaches the dusk, before the verticals meets horizons, let us together welcome a New Year of warmth, prosperity and growth.
May the yer 2012 brings all greats, loads of love, happiness, and ample of opportunities of growth and survival.
SbhOracle would enter into its second year. 2011 has been a great year of establishment, reachability and credibility. And yes, it made a mark in alot more interactions in techworld.
Happy New year in Advance!!
Love you all,
Saurabh
Saturday, 24 December 2011
My publication at RMOUG SQL> Update
Hi Guyzz,
Finally I made my publication into Winter issue of SQL>Update, the quartely journal of RMOUG. Thanks to Peggy King and Pat Van Buskirk for the great work and support in the process. Really it looks as an achievement to share the cover page with Tom Kyte (Ask Tom)
My article reads about Inheritance in Oracle. As one of my earlier post talks about the abstract, the paper show the implementation of object model with a sample case study and forecasts it as an upcoming data model. Surely, the object model comfortably fits into OOPs based application requirements and offers better integration too.
You can find the complete story of the paper from the below link
Inheritance in Oracle by Saurabh Gupta (SQL Update Winter11 Issue RMOUG)
Do post your commets and feedback/suggestions. See you RMOUG again in Spring Issue.
Bye for now
Saurabh
Saturday, 17 December 2011
Sangam11 pics
Here I come with the pics from Sangam11
[gallery link="file" columns="1"]
Enjoy
[gallery link="file" columns="1"]
Enjoy
Sunday, 11 December 2011
AIOUG Sangam 11
Hi Guyzzz
Just back from AIOUG Sangam11. Wonderful effort, event, sessions and most important grrat stage to share with some great names. Arup Nanda, Murali Vallath, Kuassi Mensah and many more. Kudos to the arrangement and and event management too.


The Day 1 (9th Dec) started off with registration. Was glad to see our bags and great material. Saw Murali at the doorstep and the day started off.
Murali addressed the session and thanked the event management team and introduced Arup to kick off the session. Arup Nanda 'The LONGTIME DBA' was the Show Stopper of the whole event. And he should be !!
Rich Niemiec started off with a session on Rolta. He showed us some pics of Oracle Corp...was amazed to be the part of it.



Arup started off with a session on Profiler in PL/SQL. Great sessions, great views and great information. Kuassi Mensah delivered a nice session on Oracle Net security. Murali too gave a presentation on RAC subject, but couldn't catch up match as I have no background. Hemant came up with the day to day challenges of a DBA, their role and expectations. Fabulous !!
Day 2 (10th Dec) again saw a long session from Arup until Lunch. Superb stamina and grasp !! Got to know some new concepts on Cache fusion, DBA best practices, and introduced the logic behind Exdata. I could see the roadmap of DBA to DMA (Database Machine Administrator). Again a good one!!
Meanwhile I got introduced to Arup Nanda with a handshake and told him about myself. Told him about my online works and he asked me to get in touch for SELECT journal too. Nice chat time !!
Later I attended session by Hemant on Partitioning. Though it was an elementary one but enough to fill up 1 hour session. The next session by Prabhakar Gongloor was another masterpiece where he showed some screendumps of Oracle 12C. I believe we would be only of those few ones who could see it within 2 months of the version release. I could see him hiding something by saying its 'Special Technique' through which EM can connect to DB even if it is down (as far as I could understand).
As I referred one of my colleague for the seminar, I received a coupon worth INR500, redeemable on the same day against the books at the counter. I got one copy of Oracle XML DB.
The conference ended with photo sessions. I too got few with Arup, Bryn, Rich and Mensah. Soon I would publish on my blog. Received a Tshirt from OTN too.
Next year, it would be in August, 2012...I will be happy to volunteer the event and would surely like to see myself at the stage right there :)
Once again, Thanks Oracle, Thanks AIOUG !!
By for now
Saurabh
Just back from AIOUG Sangam11. Wonderful effort, event, sessions and most important grrat stage to share with some great names. Arup Nanda, Murali Vallath, Kuassi Mensah and many more. Kudos to the arrangement and and event management too.
The Day 1 (9th Dec) started off with registration. Was glad to see our bags and great material. Saw Murali at the doorstep and the day started off.
Murali addressed the session and thanked the event management team and introduced Arup to kick off the session. Arup Nanda 'The LONGTIME DBA' was the Show Stopper of the whole event. And he should be !!
Rich Niemiec started off with a session on Rolta. He showed us some pics of Oracle Corp...was amazed to be the part of it.
Arup started off with a session on Profiler in PL/SQL. Great sessions, great views and great information. Kuassi Mensah delivered a nice session on Oracle Net security. Murali too gave a presentation on RAC subject, but couldn't catch up match as I have no background. Hemant came up with the day to day challenges of a DBA, their role and expectations. Fabulous !!
Day 2 (10th Dec) again saw a long session from Arup until Lunch. Superb stamina and grasp !! Got to know some new concepts on Cache fusion, DBA best practices, and introduced the logic behind Exdata. I could see the roadmap of DBA to DMA (Database Machine Administrator). Again a good one!!
Meanwhile I got introduced to Arup Nanda with a handshake and told him about myself. Told him about my online works and he asked me to get in touch for SELECT journal too. Nice chat time !!
Later I attended session by Hemant on Partitioning. Though it was an elementary one but enough to fill up 1 hour session. The next session by Prabhakar Gongloor was another masterpiece where he showed some screendumps of Oracle 12C. I believe we would be only of those few ones who could see it within 2 months of the version release. I could see him hiding something by saying its 'Special Technique' through which EM can connect to DB even if it is down (as far as I could understand).
As I referred one of my colleague for the seminar, I received a coupon worth INR500, redeemable on the same day against the books at the counter. I got one copy of Oracle XML DB.
The conference ended with photo sessions. I too got few with Arup, Bryn, Rich and Mensah. Soon I would publish on my blog. Received a Tshirt from OTN too.
Next year, it would be in August, 2012...I will be happy to volunteer the event and would surely like to see myself at the stage right there :)
Once again, Thanks Oracle, Thanks AIOUG !!
By for now
Saurabh
Labels:
AIOUG,
Arup Nanda,
DBA,
DMA,
Exadata,
Murali Vallath,
Oracle,
Oracle 11g,
Oracle 12C,
OTN,
Parrtitioning,
PL/SQL,
Sangam11,
SQL,
XML
Friday, 25 November 2011
Register for Sangam 2011 at AIOUG
Don't miss chance to meet ACEs and some great Oracle DBA and Developer sessions.
Sangam 2011.
See you all there !!
Thursday, 17 November 2011
Create a table with only scale specification for a column
Hi All,
Just came across a peculiar way of specifying only the column scale and not its precision, so thought of sharing with all. It looks pretty simple but could be a handy tip for table designs.
Scenario: Create a table CONT_EMPS where Salary column must store values upto 2 places of decimals (i.e. scale is 2). Here, note that no precision has been specified for the Salary column. Lets see how to do it.
When I specify '*' in place of precision, Oracle treats it as the maximum precision allowed for the column. Additionally, this convention doesn't applies to PL/SQL data type declaration.
Bye for now.
Saurabh
Related articles
Just came across a peculiar way of specifying only the column scale and not its precision, so thought of sharing with all. It looks pretty simple but could be a handy tip for table designs.
Scenario: Create a table CONT_EMPS where Salary column must store values upto 2 places of decimals (i.e. scale is 2). Here, note that no precision has been specified for the Salary column. Lets see how to do it.
SQL> CREATE TABLE CONT_EMPS
2 (EMPID NUMBER,
3 EMPNAME VARCHAR2(256),
4 SAL NUMBER(*,2))
5 /
Table created.SQL> DESC CONT_EMPS
Name Null? Type
------------ -------- ----------------------------
EMPID NUMBER
EMPNAME VARCHAR2(256)
SAL NUMBER(38,2) When I specify '*' in place of precision, Oracle treats it as the maximum precision allowed for the column. Additionally, this convention doesn't applies to PL/SQL data type declaration.
Bye for now.
Saurabh
Related articles
- PL/SQL Part-1 (oramasters.com)
- SQL SERVER - How to work with Row Constructors , inserted and deleted tables and Handle Result Set (sqlexplore.wordpress.com)
- jOOQ-meta. A "hard-core SQL" proof of concept (lukaseder.wordpress.com)
- BISQL # 34 :What is Identity IN SQL {Identity Part - I} (sqlmentalist.wordpress.com)
- SQL Tuning or SQL Optimization (premaseem.wordpress.com)
- Pivot Data in SQL and Display in a Flex Advanced Data Grid Part One (boozydoo.wordpress.com)
- SQL injection (nuzhatg.wordpress.com)
Friday, 11 November 2011
Sunday, 6 November 2011
PL/Scope and PL/SQL Hierarchical Profiler in Oracle 11g
Hello world,
Ever since the release of Oracle 11gR2 in 2009 under the theme "Consolidate. Compress. Control", its new features have always been the talk of the conferences and meetings. But besides the compression, control and other development features, there were several other features which have got less weightage. I shall present my walkthrough experience in the below link (which has been published by Exforsys).
PL/Scope and DBMS_HPROF
Hope you enjoy reading the complete story and post your feedback and comments.
Thanks, bye
Saurabh
Ever since the release of Oracle 11gR2 in 2009 under the theme "Consolidate. Compress. Control", its new features have always been the talk of the conferences and meetings. But besides the compression, control and other development features, there were several other features which have got less weightage. I shall present my walkthrough experience in the below link (which has been published by Exforsys).
PL/Scope and DBMS_HPROF
Hope you enjoy reading the complete story and post your feedback and comments.
Thanks, bye
Saurabh
Related articles
- New book: Expert PL/SQL Practices for Oracle Developers and DBAs (dulcianonit.wordpress.com)
- Oracle 11g SecureFiles (sbhoracle.wordpress.com)
- Result Caching feature in Oracle 11g (sbhoracle.wordpress.com)
Saturday, 5 November 2011
Enable Encryption for SecureFiles
Last week, I was trying to enable ENCRYPTION property for Oracle 11g Secure File. But I couldn’t find sufficient information on the web. However, I have tried it now and would like to demonstrate on my blog.
Suppose I have a table EMPLOYEES where employees image (BLOB) has to be loaded into the database. You want to compress it and encrypt it as per AES192 encryption standard.
Let us see how to do it.
1. Compression can be easily enabled for the BLOB as below
2. Enabling the encryption feature for the IMAGE column in EMPLOYEES table
The TDE is an encryption system which encrypts the columns value with a confidential key. An encrypted key can hold multiple encrypted columns of same table. There exists second level of security where the column keys are again encrypted with database’s master key. But note that none of the keys are stored in database. They reside within an Oracle wallet. An encryption wallet has to be set as an external security module before enabling the feature for the LOB column.
Step 1: Create a Folder C:\ExternalSecurity\Wallets\ on the Oracle database server to store the Transparent Data Encryption (TDE) wallet.

Step 2: Edit the SQLNET.ora file at \\ORACLE_HOME\NETWORK\ADMIN location on the server. Include the ENCRYPTION_WALLET_LOCATION to indicate the location of the TDE wallet.

Step 3: Open the command prompt on the server machine to reload the server
Reload the Listener using RELOAD command

Step 4: Now login as DBA
Set the encryption key along with its password
The ALTER SYSTEM command above keeps the wallet open until the database is up. If the database is down and restarted subsequently, the wallet has to be explicitly opened.
The error message raised below is not an error since the wallet gets automatically opened while setting
Step 5: Login as SCOTT user
Step 6: Verify the server wallet location. Check the ENCRYPTED WALLET LOCATION directory. You can find the ewallet.p12 filer created.

Note that the table carrying encrypted column(s) cannot participate in conventional export or import process. But data pump rescues the situation by supporting encrypted exports and imports.
Suppose I have a table EMPLOYEES where employees image (BLOB) has to be loaded into the database. You want to compress it and encrypt it as per AES192 encryption standard.
Let us see how to do it.
1. Compression can be easily enabled for the BLOB as below
ALTER TABLE EMPLOYEES
MODIFY LOB (IMAGE)
(
COMPRESS HIGH
)
/
Table altered.2. Enabling the encryption feature for the IMAGE column in EMPLOYEES table
The TDE is an encryption system which encrypts the columns value with a confidential key. An encrypted key can hold multiple encrypted columns of same table. There exists second level of security where the column keys are again encrypted with database’s master key. But note that none of the keys are stored in database. They reside within an Oracle wallet. An encryption wallet has to be set as an external security module before enabling the feature for the LOB column.
Step 1: Create a Folder C:\ExternalSecurity\Wallets\ on the Oracle database server to store the Transparent Data Encryption (TDE) wallet.
Step 2: Edit the SQLNET.ora file at \\ORACLE_HOME\NETWORK\ADMIN location on the server. Include the ENCRYPTION_WALLET_LOCATION to indicate the location of the TDE wallet.
ENCRYPTION_WALLET_LOCATION=
(SOURCE=(METHOD=FILE)
(METHOD_DATA= (DIRECTORY= C:\ExternalSecurity\Wallets)
)
)Step 3: Open the command prompt on the server machine to reload the server
Reload the Listener using RELOAD command
Step 4: Now login as DBA
Set the encryption key along with its password
SQL> ALTER system SET ENCRYPTION KEY IDENTIFIED BY "wallet";
System altered.The ALTER SYSTEM command above keeps the wallet open until the database is up. If the database is down and restarted subsequently, the wallet has to be explicitly opened.
The error message raised below is not an error since the wallet gets automatically opened while setting
SQL> ALTER system SET ENCRYPTION WALLET OPEN IDENTIFIED BY "wallet";
ALTER system SET ENCRYPTION WALLET OPEN IDENTIFIED BY "wallet"
*
ERROR at line 1:
ORA-28354: wallet already openStep 5: Login as SCOTT user
Enter user-name: SCOTT/TIGER
SQL> ALTER TABLE EMPLOYEES
2 MODIFY
3 (
4 IMAGE ENCRYPT USING 'AES192'
5 );
Table altered.
SQL> SELECT *
2 FROM user_encrypted_columns;
TABLE_NAME COLUMN_NAME ENCRYPTION_ALG SAL INTEGRITY_AL
---------- -------------- ----------------------------- --- ------------
EMPLOYEES IMAGE AES 192 bits key YES SHA-1Step 6: Verify the server wallet location. Check the ENCRYPTED WALLET LOCATION directory. You can find the ewallet.p12 filer created.
Note that the table carrying encrypted column(s) cannot participate in conventional export or import process. But data pump rescues the situation by supporting encrypted exports and imports.
Subscribe to:
Posts (Atom)