<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueGecko Denmark</title>
	<atom:link href="https://bluegecko.dk/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluegecko.dk</link>
	<description>Your remote dba</description>
	<lastBuildDate>Mon, 12 May 2014 07:49:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>How to secure and audit unauthorized data access</title>
		<link>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-secure-and-audit-unauthorized-data-access</link>
					<comments>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 12 May 2014 07:49:51 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[audit]]></category>
		<category><![CDATA[database auditing]]></category>
		<category><![CDATA[Encrypt]]></category>
		<category><![CDATA[Enterprise User Security]]></category>
		<category><![CDATA[FGA]]></category>
		<category><![CDATA[Fine Grained Audit]]></category>
		<category><![CDATA[NETS]]></category>
		<category><![CDATA[Oracle Advanced Security]]></category>
		<category><![CDATA[Oracle Database Vault]]></category>
		<category><![CDATA[Oracle Label Security]]></category>
		<category><![CDATA[Proxy Authentication]]></category>
		<category><![CDATA[Roles]]></category>
		<category><![CDATA[SE & HØR]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[TDE]]></category>
		<category><![CDATA[Transparent Data Encryption]]></category>
		<category><![CDATA[Virtual Private Database]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3743</guid>

					<description><![CDATA[The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its data. Currently, hot topic news in Denmark is, where a popular week-magazine received sensitive information about famous people, from a highly trusted person, working for the Nordic provider of payment card transactions. Unfortunately this incident is not unique and happens far too often. Securing data requires a defense-in-depth approach. Both technical and administrative employees need to be involved to prevent and monitor unauthorized access to sensitive data. Payment Card Industry (PCI), Sarbanes-Oxley (SOX), EU Privacy Directive and the Healthcare Insurance Portability and Accountability Act (HIPAA) all require strong internal controls on access, disclosure or modification of sensitive information that could lead to fraud, identity theft, financial irregularities and financial penalties.</p>
<p>This blog will list various Oracle database security features that may help to prevent or discover unauthorized access of confidential data with the right setup. In addition, we will discuss some of the Oracle Security options that use combinations of these features and make it easier to secure sensitive information from the database.</p>
<p><strong>Database Auditing (DA)</strong><br />
DA is the monitoring and recording of selected user database actions. Security policies can trigger auditing when specified elements in the database are accessed or altered. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit records can be stored in the database audit trail or in files on the operating system. Standard auditing includes operations on privileges, schemas, objects, and statements. To enable DA, the initialization parameter, AUDIT_TRAIL, should be set to &#8220;DB&#8221;, &#8220;DB,EXTENDED&#8221;, &#8220;XML&#8221;, &#8220;XML, EXTENDED&#8221; or &#8220;OS&#8221;.</p>
<p><strong>Fine Grained Audit (FGA)</strong><br />
With FGA, it is possible to create audit policies, that records if a user viewed (selected) data from a specific table or table column. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit trail records created by FGA can be captured and analyzed in Oracle Audit Vault and Database Firewall, automatically alerting the security team about possible malicious activity.</p>
<p><strong>Transparent Data Encryption (TDE)</strong><br />
The TDE feature allows confidential data to be encrypted within the data files to prevent access to it from the hard drive or backup media. TDE stores sensitive data in encrypted form and when the data is accessed, it automatically decrypt it. Encrypted data is transparently decrypted for a database user or application that has privileges to access the data. TDE helps protect data stored on media in the event that the storage media or data file gets stolen. Oracle requires the Advanced Security Option to be enabled.</p>
<p><strong>Encrypt Database Backups</strong><br />
Encryption is the only defense when it comes to protecting business data when it is transported on tape or disk to offsite storage for safekeeping. Oracle provides two solutions for encrypting database backups.<br />
1) Oracle RMAN can encrypt an entire database backup using one of these three methods: TDE, Passphrase or Hybrid (both Passphrase and TDE).<br />
2) Oracle Secure Backup (OSB), delivers tape data protection for the Oracle database and file systems in distributed UNIX, Linux, Windows and Network Attached Storage (NAS) environments.</p>
<p><strong>Encrypt Database Export files</strong><br />
Oracle Data Pump can encrypt an export file using one of these three methods: TDE, Passphrase or Hybrid (both Passphrase and TDE).</p>
<p><strong>Virtual Private Database (VPD)</strong><br />
A VPD masks data in a larger database so that only a subset of the data appear to exist, without actually segregating data into different tables, schemas, databases. In other words, VPD allows multiple users to access a single schema whilst preventing them from accessing data that is not relevant to them. Oracle VPD enables you to create security policies to control database access at the row and column level. Essentially, VPD adds a dynamic WHERE clause to a SQL statement that is issued against the table, view, or synonym to which an VPD security policy was applied. A simple VPD example might restrict access to data during business hours and a more complex VPD example might read an application context during a login trigger and enforce row level security against a specific table.</p>
<p><strong>Roles</strong><br />
Roles are a powerful method for managing privileges in the Oracle Database. You can add privileges to a role and then grant the role to a user or to another role. Once granted to a user, roles with the associated privileges are active as soon as the user has successfully authenticated to the database.</p>
<p><strong>Proxy Authentication (PA)</strong><br />
PA is supported over thin and thick JDBC connections and on the command line. Users can authenticate to the database using their own username and then proxy to another user in the database. PA is particularly useful when administrators need to connect to the application schema to perform maintenance. When Audit is enabled, audit records generated during the connection include the proxy user name, providing important information on the actual end user who performed the maintenance task.</p>
<p><strong>Enterprise User Security (EUS)</strong><br />
EUS is an Oracle Database Enterprise Edition feature and enables you to centrally manage database users across the enterprise. Enterprise users are created in Oracle Internet Directory, and can be assigned roles and privileges across various enterprise databases registered with the directory. This gives the ability to centrally manage database users and their authorizations in one central place.</p>
<p><strong>Oracle Database Vault (ODV &#8211; Database Security Option)</strong><br />
ODV is a Database Security option that reduces the risk of insider and outsider threats and addresses common compliance requirements by:<br />
&#8211; Preventing privileged users (DBA) from accessing sensitive application data<br />
&#8211; Preventing compromised privileged users accounts from being used to steal sensitive data or make unauthorized changes to databases and applications<br />
&#8211; Providing strong controls inside the database over who can do what and controls over when and how applications, data and databases can be accessed<br />
&#8211; Providing privilege analysis for all users and applications inside the database to help achieve least privilege model and make the databases and applications more secure<br />
ODV has been certified with numerous enterprise applications including E-Business Suite, PeopleSoft, Siebel, and SAP. The certification includes out-of-the-box security policies specific for each application.</p>
<p><strong>Oracle Advanced Security (OAS &#8211; Database Security Option)</strong><br />
OAS is a database security option that provides two important preventive controls to protect sensitive data at the source including database encryption (Transparent Data Encryption (TDE)) and on-the-fly redaction of display data. TDE stops would-be attackers from bypassing the database and reading sensitive information directly from storage. Data Redaction complements TDE by reducing the risk of unauthorized data exposure in applications, redacting sensitive data before it leaves the database. Together these two controls form the foundation of Oracle’s defense-in-depth, multi-layered database security solution.</p>
<p><strong>Oracle Label Security (OLS &#8211; Database Security Option)</strong><br />
OLS is a database security option and provide multi-level security capabilities within the Oracle Database. OLS provides the ability to tag data with a data label or a data classification. These data labels can be collected in label security policies. This capability allows the database to inherently know what data is sensitive and allows the sensitive data to be combined in the same table as the larger data set without compromising security.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/how-to-secure-and-audit-unauthorized-data-access/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Database security in the cloud</title>
		<link>https://bluegecko.dk/database-security-in-the-cloud/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=database-security-in-the-cloud</link>
					<comments>https://bluegecko.dk/database-security-in-the-cloud/#comments</comments>
		
		<dc:creator><![CDATA[cedwards]]></dc:creator>
		<pubDate>Thu, 29 Apr 2010 15:51:11 +0000</pubDate>
				<category><![CDATA[Amazon Web Services]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sentrigo]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=1095</guid>

					<description><![CDATA[Here&#8217;s a great article on database security in the cloud published in eWeek by Slavik Markovich, founder of Sentrigo. The truth is, Slavik&#8217;s article has great advice for anyone considering hosting their application with any third-party provider.  When you don&#8217;t own the infrastructure, you lose some control no matter how the service is marketed.  Cloud [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/news-events/database-cloud-security-webinar/" rel="bookmark" title="Permanent Link: Database Cloud Security Webinar">Database Cloud Security Webinar</a></li>
<li><a href="http://www.bluegecko.net/events/database-cloud-security-webinar-2/" rel="bookmark" title="Permanent Link: Database Cloud Security Webinar">Database Cloud Security Webinar</a></li>
<li><a href="http://www.bluegecko.net/database-hosting-services/" rel="bookmark" title="Permanent Link: Database Hosting Services">Database Hosting Services</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Here&#8217;s a great article on <a title="database security in the cloud" href="http://bit.ly/d85KpU" >database security in the cloud</a> published in eWeek by Slavik Markovich, founder of <a title="sentrigo" href="http://www.sentrigo.com" >Sentrigo</a>.</p>
<p>The truth is, Slavik&#8217;s article has great advice for anyone considering hosting their application with <em>any</em> third-party provider.  When you don&#8217;t own the infrastructure, you lose some control no matter how the service is marketed.  <span id="more-1095"></span>Cloud providers recently seem to be under tighter scrutiny for security, as if renting bare-metal (or virtualized) servers from a Rackspace or Savvis is any different; the burden is <em>always</em> on the customer to demand proof of good ITIL processes and secure infrastructure configuration and operations.  When it gets down to it, if a customer does not have the sense to firewall a physical, virtual, or &#8220;cloud,&#8221; server exposed to the Internet, for example, they&#8217;re asking for trouble through no fault of the provider.</p>
<p>I&#8217;d encourage everyone to read this article and think about <em>any</em> third-party hosting provider be they cloud, virtual, or traditional bare-metal.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/news-events/database-cloud-security-webinar/' rel='bookmark' title='Permanent Link: Database Cloud Security Webinar'>Database Cloud Security Webinar</a></li>
<li><a href='http://www.bluegecko.dk/events/database-cloud-security-webinar-2/' rel='bookmark' title='Permanent Link: Database Cloud Security Webinar'>Database Cloud Security Webinar</a></li>
<li><a href='http://www.bluegecko.dk/database-hosting-services/' rel='bookmark' title='Permanent Link: Database Hosting Services'>Database Hosting Services</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/database-security-in-the-cloud/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Exploring Oracle 11g Tablespace Encryption</title>
		<link>https://bluegecko.dk/exploring-oracle-11g-tablespace-encryption/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=exploring-oracle-11g-tablespace-encryption</link>
					<comments>https://bluegecko.dk/exploring-oracle-11g-tablespace-encryption/#respond</comments>
		
		<dc:creator><![CDATA[mhammingh]]></dc:creator>
		<pubDate>Tue, 02 Dec 2008 18:07:02 +0000</pubDate>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[oracle wallet]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tablespace encryption]]></category>
		<guid isPermaLink="false">http://matthias.bluegecko.net/?p=434</guid>

					<description><![CDATA[Tablespace encryption encrypts data at the datafile level to keep people from being able to peek at the oracle datafiles directly. Oracle 10 allowed us to encrypt certain columns, and starting in Oracle 11, tablespace encryption is made available. First we&#8217;ll need to setup oracle wallet. Oracle will need to store a key to encrypt [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Tablespace encryption encrypts data at the datafile level to keep people from being able to peek at the oracle datafiles directly. Oracle 10  allowed us to encrypt certain columns, and starting in Oracle 11, tablespace encryption is made available.</p>
<p>First we&#8217;ll need to setup oracle wallet.<span id="more-434"></span></p>
<p>Oracle will need to store a key to encrypt and decrypt the data in our tablespace.  The key is kept in a file external to the database using oracle wallet.</p>
<p>The first step to setup the wallet is to setup the sqlnet.ora file to a location where the wallet will be stored.   Oracle documentation suggests using $ORACLEnetworkadmin, but since I&#8217;m testing this using an Oracle 11 RAC database I&#8217;ll have to put the file in a location available to all nodes in the cluster, so I&#8217;ve chosen my voting disk on /ocfs.  Here is what my sqlnet.ora looks like (also &#8211; be sure to copy the sqlnet.ora file to each node in the RAC cluster)</p>
<p>[code language=&#8221;plain&#8221;][oracle@oratest1 ~]$ cat $ORACLE_HOME/network/admin/sqlnet.ora<br />
ENCRYPTION_WALLET_LOCATION=<br />
  (SOURCE=(METHOD=FILE)(METHOD_DATA=<br />
   (DIRECTORY=/ocfs/oracle/rac11g/wallet/)))<br />
[oracle@oratest1 ~]$ scp /opt/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora oracle@oratest2:/opt/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora<br />
[/code]</p>
<p>Next, we create the wallet  using the mkstore utility on the command line.  The mstore command will prompt for a password, be sure to write this one down as we&#8217;ll be using it later</p>
<p>[code language=&#8221;plain&#8221;]<br />
[oracle@oratest1 ~]$ mkdir -p /ocfs/oracle/rac11g/wallet<br />
[oracle@oratest1 ~]$ chmod 700 /ocfs/oracle/rac11g/wallet<br />
[oracle@oratest1 ~]$ cd /ocfs/oracle/rac11g/wallet<br />
[oracle@oratest1 walet]$ mkstore -wrl . -create<br />
[oracle@oratest1 walet]$ ls -la<br />
total 19<br />
drwx&#8212;&#8212;  2 oracle dba 2048 Nov 28 11:30 .<br />
drwxr-xr-x  3 oracle dba 2048 Nov 28 11:13 ..<br />
-rw&#8212;&#8212;-  1 oracle dba 7340 Nov 28 11:30 cwallet.sso<br />
-rw&#8212;&#8212;-  1 oracle dba 7312 Nov 28 11:30 ewallet.p12<br />
[/code]</p>
<p>Finally, you have to open the wallet, the following command will do just that.  Make sure you run this command from a sqlplus session that was started using the sqlnet.ora created earlier.</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt;alter system set encryption wallet open authenticated by &quot;somereallyobscurestringofcharactersandd1g1t5&quot;;</p>
<p>System altered. [/code]</p>
<p>Test ability to encrypt sensitive data</p>
<p>Lets suppose we have an application which stores passwords in a database table (beleive me, this happens; I&#8217;ve seen this in production systems &#8211; more often than I&#8217;d like to admit).  First lets create a simple test table and see if we can find the password by looking at the data file directly.</p>
<p>Create two tablespaces, one will be encrypted, and one will be a normal unencrypted tablespace.  We&#8217;ll also create a simple table to test out the encryption</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt;create tablespace crypttest<br />
datafile &#8216;/opt/oracle/crypttest.dbf&#8217; size 256m<br />
ENCRYPTION default storage( encrypt );</p>
<p>Tablespace created.</p>
<p>SQL&gt;create tablespace nocrypttest<br />
datafile &#8216;/opt/oracle/nocrypttest.dbf&#8217; size 256m;</p>
<p>Tablespace created.</p>
<p>SQL&gt;create table sensitive tablespace nocrypttest as select username, password from dba_users where rownum = 0;</p>
<p>Table created.</p>
<p>SQL&gt;insert into sensitive values (&#8216;TEST_USER&#8217;,&#8217;SENSITIVEPASSWORD&#8217;);</p>
<p>1 row created.</p>
<p>SQL&gt;commit;</p>
<p>Commit complete.</p>
<p>SQL&gt;create index i_usrpass on sensitive ( password ) tablespace nocrypttest;</p>
<p>Index created.</p>
<p>SQL&gt;alter system checkpoint;</p>
<p>System altered.<br />
[/code]</p>
<p>Now that we have a normal unencrypted table, we drop back out to the operating system to see if the sensitive data is visible by looking at the datafile directly.  You&#8217;ll notice its quite easy to find what we are looking for;  The first &#8220;SENSITIVEPASSWORD&#8221; is found in the table segment, the second is from the index segment.  Uugh.</p>
<p>[code language=&#8221;plain&#8221;]<br />
[oracle@oratest1 ~]$  strings /opt/oracle/nocrypttest.dbf | grep -i SENSITIVEPASSWORD<br />
SENSITIVEPASSWORD<br />
SENSITIVEPASSWORD<br />
[/code]</p>
<p>Now that we&#8217;ve verified that our sensitive data is not protected very well, lets throw it into the encrypted tablespace and give it another go.  The password is no longer plainly visible in the datafile.  Yeah!</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt;alter table sensitive move tablespace crypttest;</p>
<p>Table altered.</p>
<p>SQL&gt;alter index i_usrpass rebuild tablespace crypttest;</p>
<p>Index altered.</p>
<p>SQL&gt;alter system checkpoint;</p>
<p>System altered.</p>
<p>SQL&gt;exit</p>
<p>[oracle@oratest1 ~]$  strings /opt/oracle/crypttest.dbf | grep -i SENSITIVEPASSWORD | wc -l<br />
0<br />
[/code]</p>
<p>Of course, there are always trade offs; encryption is no different.  Oracle is decrypting the data in the background when it has to fetch from disk into the db cache, and decrypt it again when it writes back to disk.  This en/decrypting will naturally require some extra cpu cycles</p>
<p>Lets create a couple of tables for comparisons between encrypted and unencrypted full table and index scans.</p>
<p>Create a couple of tables to play around with</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt;  create table cryptperf tablespace crypttest<br />
  2  as select * from (<br />
  3  select * from dba_objects union all<br />
  4  select * from dba_objects union all<br />
  5  select * from dba_objects union all<br />
  6  select * from dba_objects union all<br />
  7  select * from dba_objects union all<br />
  8   select * from dba_objects<br />
  9  );</p>
<p>Table created.</p>
<p>Elapsed: 00:00:17.97</p>
<p>SQL&gt; create table nocryptperf tablespace nocrypttest<br />
  2  as select * from (<br />
  3  select * from dba_objects union all<br />
  4  select * from dba_objects union all<br />
  5  select * from dba_objects union all<br />
  6  select * from dba_objects union all<br />
  7   select * from dba_objects<br />
  8  );</p>
<p>Table created.</p>
<p>Elapsed: 00:00:33.50<br />
[/code]</p>
<p>Full table scan test: it took around 10 seconds longer to scan the encrypted table as compared to the normal table. This is actually a bigger difference that I&#8217;d expect to see.  Lets not jump the gun here are start saying that tablespace encryption is slow and refuse to apply it in a production system &#8211; this test is probably not extensive enough.  However, it does warrent caution and of course rigorous testing should be done before any implementation.</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt; select count(1) from ( select * from cryptperf ) ;</p>
<p>  COUNT(1)<br />
&#8212;&#8212;&#8212;-<br />
    422622</p>
<p>Elapsed: 00:00:16.35</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 470027687</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
| Id  | Operation          | Name      | Rows  | Cost (%CPU)| Time     |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
|   0 | SELECT STATEMENT   |           |     1 |  1723   (1)| 00:00:21 |<br />
|   1 |  SORT AGGREGATE    |           |     1 |            |          |<br />
|   2 |   TABLE ACCESS FULL| CRYPTPERF |   411K|  1723   (1)| 00:00:21 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Note<br />
&#8212;&#8211;<br />
   &#8211; dynamic sampling used for this statement</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
         28  recursive calls<br />
          0  db block gets<br />
       6298  consistent gets<br />
       6448  physical reads<br />
          0  redo size<br />
        420  bytes sent via SQL*Net to client<br />
        420  bytes received via SQL*Net from client<br />
          2  SQL*Net roundtrips to/from client<br />
          0  sorts (memory)<br />
          0  sorts (disk)<br />
          1  rows processed</p>
<p>SQL&gt; select count(1) from ( select * from nocryptperf );</p>
<p>  COUNT(1)<br />
&#8212;&#8212;&#8212;-<br />
    352190</p>
<p>Elapsed: 00:00:04.87</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 949999261</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
| Id  | Operation          | Name        | Rows  | Cost (%CPU)| Time     |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|   0 | SELECT STATEMENT   |             |     1 |  1437   (1)| 00:00:18 |<br />
|   1 |  SORT AGGREGATE    |             |     1 |            |          |<br />
|   2 |   TABLE ACCESS FULL| NOCRYPTPERF |   380K|  1437   (1)| 00:00:18 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Note<br />
&#8212;&#8211;<br />
   &#8211; dynamic sampling used for this statement</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
         28  recursive calls<br />
          0  db block gets<br />
       5266  consistent gets<br />
       5445  physical reads<br />
          0  redo size<br />
        420  bytes sent via SQL*Net to client<br />
        420  bytes received via SQL*Net from client<br />
          2  SQL*Net roundtrips to/from client<br />
          0  sorts (memory)<br />
          0  sorts (disk)<br />
          1  rows processed<br />
[/code]</p>
<p>Index scan test</p>
<p>In oracle 10gR2 index range scans were reportedly not supported on indexed columns that were encrypted.  In the test below we add an index on the object_id column and show that the optimizer was able to perform an index range scan on the index.</p>
<p>[code language=&#8221;plain&#8221;]<br />
SQL&gt; create index i_cryptperf on cryptperf(object_id) tablespace crypttest;</p>
<p>Index created.</p>
<p>Elapsed: 00:00:04.29<br />
SQL&gt; create index i_nocryptperf on nocryptperf(object_id) tablespace nocrypttest;</p>
<p>Index created.</p>
<p>SQL&gt;  begin dbms_stats.gather_table_stats(&#8216;SYS&#8217;,&#8217;CRYPTPERF&#8217;,cascade =&gt; TRUE); end;<br />
  2  /</p>
<p>PL/SQL procedure successfully completed.</p>
<p>Elapsed: 00:00:13.14<br />
SQL&gt; begin dbms_stats.gather_table_stats(&#8216;SYS&#8217;,&#8217;NOCRYPTPERF&#8217;,cascade =&gt; TRUE); end;<br />
  2  /</p>
<p>PL/SQL procedure successfully completed.</p>
<p>Elapsed: 00:00:03.00<br />
SQL&gt;</p>
<p>SQL&gt; set autotrace on;<br />
SQL&gt; select object_id from nocryptperf where object_id = 20;</p>
<p> OBJECT_ID<br />
&#8212;&#8212;&#8212;-<br />
        20<br />
        20<br />
        20<br />
        20<br />
        20</p>
<p>Elapsed: 00:00:00.02</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 4180234382</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>| Id  | Operation        | Name          | Rows  | Bytes | Cost (%CPU)| Time<br />
 |</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>|   0 | SELECT STATEMENT |               |     5 |    25 |     3   (0)| 00:00:01<br />
 |</p>
<p>|*  1 |  INDEX RANGE SCAN| I_NOCRYPTPERF |     5 |    25 |     3   (0)| 00:00:01<br />
 |</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8212;</p>
<p>Predicate Information (identified by operation id):<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>   1 &#8211; access(&quot;OBJECT_ID&quot;=20)</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        141  recursive calls<br />
          0  db block gets<br />
         20  consistent gets<br />
          0  physical reads<br />
          0  redo size<br />
        470  bytes sent via SQL*Net to client<br />
        420  bytes received via SQL*Net from client<br />
          2  SQL*Net roundtrips to/from client<br />
          4  sorts (memory)<br />
          0  sorts (disk)<br />
          5  rows processed</p>
<p>SQL&gt; select object_id from cryptperf where object_id = 20;</p>
<p> OBJECT_ID<br />
&#8212;&#8212;&#8212;-<br />
        20<br />
        20<br />
        20<br />
        20<br />
        20<br />
        20</p>
<p>6 rows selected.</p>
<p>Elapsed: 00:00:00.01</p>
<p>Execution Plan<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Plan hash value: 2919947406</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
| Id  | Operation        | Name        | Rows  | Bytes | Cost (%CPU)| Time     |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
|   0 | SELECT STATEMENT |             |     6 |    30 |     3   (0)| 00:00:01 |<br />
|*  1 |  INDEX RANGE SCAN| I_CRYPTPERF |     6 |    30 |     3   (0)| 00:00:01 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Predicate Information (identified by operation id):<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>   1 &#8211; access(&quot;OBJECT_ID&quot;=20)</p>
<p>Statistics<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        164  recursive calls<br />
          0  db block gets<br />
         24  consistent gets<br />
          0  physical reads<br />
          0  redo size<br />
        475  bytes sent via SQL*Net to client<br />
        420  bytes received via SQL*Net from client<br />
          2  SQL*Net roundtrips to/from client<br />
          4  sorts (memory)<br />
          0  sorts (disk)<br />
          6  rows processed<br />
[/code]</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/exploring-oracle-11g-tablespace-encryption/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 27/178 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-17 01:51:19 by W3 Total Cache
-->