<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by All database Solutions on Medium]]></title>
        <description><![CDATA[Stories by All database Solutions on Medium]]></description>
        <link>https://medium.com/@alldatabase.solutions?source=rss-609338da3c18------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-8muXIksHuFaiPQ_i8FNHw.png</url>
            <title>Stories by All database Solutions on Medium</title>
            <link>https://medium.com/@alldatabase.solutions?source=rss-609338da3c18------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:22:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alldatabase.solutions/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Oracle Database Resource Manager (DBRM)-Exadata]]></title>
            <link>https://medium.com/@alldatabase.solutions/the-oracle-database-resource-manager-allows-c11bc46dd608?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/c11bc46dd608</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 09:34:05 GMT</pubDate>
            <atom:updated>2023-12-29T09:35:15.514Z</atom:updated>
            <content:encoded><![CDATA[<p>Oracle Database Resource Manager (DBRM)-Exadata</p><p><strong>The Oracle Database Resource Manager allows</strong></p><p>The database more control over how hardware resources are allocated. In an environment with multiple concurrent user sessions that run jobs with differing priorities, all sessions should not be treated equally. The Resource Manager enables you to classify sessions into groups based on session attributes, and to then allocate resources to those groups in a way that optimizes hardware utilization for your application environment.</p><p>With the Resource Manager, you can:</p><ul><li>Guarantee certain sessions a minimum amount of processing resources regardless of the load on the system and the number of users.</li><li>Dstribute available processing resources by allocating percentages of CPU time to different users and applications. In a data warehouse, a higher percentage can be given to ROLAP (relational online analytical processing) applications than to batch jobs.</li><li>Limit the degree of parallelism of any operation performed by members of a group of users.</li><li>Create an active session pool. An active session pool consists of a specified maximum number of user sessions allowed to be concurrently active within a group of users. Additional sessions beyond the maximum are queued for execution, but you can specify a timeout period, after which queued jobs will terminate. The active session pool limits the total number of sessions actively competing for resources, thereby enabling active sessions to make faster progress.</li><li>Manage runaway sessions or calls in the following way<br>==&gt; By placing an absolute limit on the percentage of CPU that a group can consume<br>==&gt;By detecting when a session or call consumes more than a specified amount of CPU or I/O, and then automatically either terminating the session or call, or switching it to a consumer group that is allocated a small amount of CPU, which would in effect mitigate the impact of the runaway session or call</li><li>Prevent the execution of operations that the optimizer estimates will run for a longer time than a specified limit.</li><li>Limit the amount of time that a session can be idle. This can be further defined to mean only sessions that are blocking other sessions.</li><li>Configure an instance to use a particular scheme for allocating resources. You can dynamically change the scheme, for example, from a daytime scheme to a nighttime scheme, without having to shut down and restart the instance.</li></ul><p>Thus, the Oracle Database Resource Manager facility allows a more granular definition of user categories (“consumer groups”) and the allocation of resources. It also has the ability to detect and halt “runaway” queries. This is particularly useful when ad hoc access to the database is provided.</p><p>DBRM</p><p>Oracle’s Database Resource Manager (DBRM) allows DBAs to address resource allocation within the domain of the database itself. It is a well-organized, framework that is automated by design. It ensures that critical system resources like CPU and I/O will be available to the important applications whenever they are needed, even when the system is under a heavy workload. This is done by creating resource allocation schemes that define priorities based on the needs of the business.</p><p>Remember that Resource Management is a “Gate Keeper”, not an “Accelerator”. It is used to make sure that you live within the confines of the available capacity limits while maintaining consistent performance. Resource Management kicks in whenever you are hitting the capacity limits of the server. If this is happening frequently, you may need to seriously consider expanding your capacity.</p><p>Services are the highest level component when defining workload management, but at a more granular control may be taken within a specific database by separating users into consumer groups. Once those groups are in place, the database resource manager (DBRM) will ensure that appropriate level computing resources are made available to each group. Multiple resource plans can be defined allowing the database to shift between those plans in order to adapt to changing processing patterns such as nightly ETL and month-end reporting.</p><p>For systems that are processing multiple jobs at any given time, parallelism can be a beneficial tool or, if unconstrained, also be an impediment to good system performance. DBRM allows the administrator to set a maximum degree of parallelism for users in a consumer group to prevent over-subscription of certain resources.</p><p>DBRM also provides a way of dynamically moving queries from one resource plan to the other before it executes. Allocation of resources and switching before the statement actually starts is beneficial as it helps with getting the right resources assigned from the start. When executed properly it also helps with runaway query prevention [i.e. Cartesian joins] by choosing the right group (resource profile) for the statement.</p><p>The following illustration shows the execution process by which a dynamic switching approach can allocate resources based on query execution time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*VZvscTQWBQx2AXOU.png" /></figure><p>Three groups are defined; one group is for “long running” queries, the second for “medium” and the third for “short”. The defined running time for each of these groups are pre-defined from business user requirements. If groups are set for 10, 100 and 1000 seconds respectively, then that is the query timing which will be used as the switching boundary.</p><p>When a user submits a statement the database cost-based optimizer (CBO) determines the estimated execution time duration of the statement. The DBRM then assigns the query to a specific resource group allowing the query to run with the appropriate allocated database and system resources.</p><h3>DBRM Strategy</h3><h3>Resource Manager</h3><h3>The Database Resource Manager (DBRM) is geared toward managing CPU resources and indirectly the disk I/O on the database tier. The I/O Resource Manager (IORM) is geared toward managing and prioritizing I/O at the storage cell level. When databases on Exadata request I/O from the storage cells, they send additional information along with those requests which identifie the database making the request as well as the consumer group making the request. The software on the storage cells knows about the priorities you established inside the database (DBRM) and/or at the Storage Cell (IORM), and it manages how I/O is scheduled. DBRM and IORM are tightly linked together, so knowing about DBRM is the foundation to understanding IORM.</h3><h3>The Resource Manager components are listed in the following table:</h3><h3>Resource consumer group /<br>Consumer group</h3><h3>These are the various names by which you may see resource consumer groups referred. Resource Manager allocates resources to consumer groups, rather than user sessions. A consumer group is a set of database sessions that may be grouped together based on their priority, and/or resource requirements.</h3><h3>Resource plan directive /<br>Plan directive /<br>Directive</h3><h3>These are the names by which you may see resource plan directives referred. Resource allocations are not assigned directly to consumer groups. They are defined in a resource plan directive. A consumer group is then assigned to the plan directive so that resource allocations may be enforced.</h3><h3>Resource plan /<br>Plan</h3><h3>Resource plans are sometimes referred to simply as “plans”, or “the plan.” Plan directives are grouped together to create a resource plan, thus defining the overarching allocation of resources to all sessions within the database.</h3><p><strong>Consumer groups:</strong> A consumer group can represent a single database session or a group of sessions. Generally speaking, consumer groups consist of end users or application groups that share a common business priority. Grouping sessions together in this manner allow resources to be assigned and managed collectively.</p><p>In a mixed-workload database environment, consumer group assignments allow you to collectively assign more CPU and I/O resources to your high-priority business applications while reducing the resources allocated to low priority applications.</p><p><strong>Plan directives:</strong> Plan directives are where you define your resource allocations. A plan directive is created using the CREATE_PLAN_DIRECTIVE procedure. In addition to defining the resource allocation itself (percentage of CPU, for example), the procedure also requires you to name one resource plan and one consumer group.</p><p>In this way, a plan directive “links,” or assigns the consumer groups to a resource plan.</p><p>Only one consumer group may be assigned to a directive, and resource plans typically consist of multiple directives. You can say that a consumer group is assigned to a resource plan through the creation of a plan directive.</p><p><strong>Resource plan</strong>: The resource plan is the collection of directives that determine how and where resources are allocated. Only one plan may be activated in the database instance at any given time. The resource plan is activated when assigning it to the</p><p>RESOURCE_MANAGER_PLAN instance parameter.</p><p>For example, the following alter system command activates the resource plan ‘myplan’:<br>SQL&gt; alter system set resource_manager_plan=’myplan’;</p><p>A database’s resource plan may be changed at any time, allowing you to reallocate resources at various times of the day, week, or month in order to meet the varying workload requirements of your business. When the resource plan is activated, no resources are allocated to individual user sessions. Instead, resources are allocated to the consumer groups according to the directives in the resource plan.</p><p><strong>Consumer Groups</strong></p><p>When a resource plan is activated, DBRM examines key attributes of all sessions in the database and assigns them to consumer groups. Sessions are assigned to consumer groups by means of mapping rules that you define. For example, a set of user accounts can be mapped to a consumer group based on their user name or the machine from which they are logging in. A user may belong to many different consumer groups and may be dynamically reassigned from one consumer group to another even in the middle of executing a SQL statement or query. Since database resources are allocated only to consumer groups, reassigning a session to another group immediately changes its resource allocation. All sessions in a consumer group share the resources of that group. For example, if the APPS consumer group is allocated 70% of the total CPU on the server, all sessions belonging to that consumer group will equally share the 70% allocation of CPU. There are two built-in consumer groups in every database:</p><p>SYS_GROUP and OTHER_GROUPS: These groups cannot be modified or dropped.</p><p>SYS_GROUP: This is the default consumer group for the SYS and SYSTEM user accounts. These accounts may be assigned to another consumer group using mapping rules we’ll discuss in the next section.</p><p>OTHER_GROUPS: This is the default consumer group. Any sessions that belong to a consumer group that is not defined in the currently active resource plan will automatically be mapped to this consumer group. This is Oracle’s way of making sure all user sessions are assigned to a consumer group in the active resource plan.</p><p>Consumer Group Mapping Rules</p><p>All user sessions (except SYS and SYSTEM) are mapped by default to the consumer group OTHER_GROUPS. This behavior can be modified using mapping rules so that sessions are automatically reassigned to other consumer groups. If there is no mapping rule for a session, or if the mapping rules assign the session to a consumer group that is not named in the currently active plan, then it will be automatically assigned to this built-in consumer group. Every resource plan must have the OTHER_GROUPS resource group to handle this condition. The following example shows how a mapping rule is created. This mapping rule calls for the TPODER account to be automatically assigned to the REPORTS consumer group, while anyone logging in using the Payroll.exe application will be mapped to the APPS consumer group:</p><p>BEGIN<br>DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING<br>(DBMS_RESOURCE_MANAGER.ORACLE_USER, ‘TPODER’, ‘REPORTS’);<br>DBMS_RESOURCE_MANAGER.SET_CONSUMER_GROUP_MAPPING<br>(DBMS_RESOURCE_MANAGER.CLIENT_PROGRAM, ‘payroll.exe’, ‘APPS’);<br>END;</p><p>There are two types of session attributes that can be used to create mapping rules: login attributes and runtime attributes. Login attributes are set when the user logs in and do not change during the life of the session. Resource Manager uses login attributes to determine which consumer group the session should initially be assigned to. Runtime attributes are set at runtime and can be changed at any time during the life of the session by the client application. Table 7–2 describes the session attributes Resource Manager can use for creating session-to-consumer-group mapping rules.</p><p><strong>Session Attribute</strong></p><p><strong>Type</strong></p><p><strong>Description</strong></p><p>EXPLICIT</p><p>N/A</p><p>This attribute refers to the explicit request by a user to switch to another consumer group using one of the following stored procedures in the DBMS_SESSION package:</p><p>SWITCH_CURRENT_CONSUMER_GROUP</p><p>SWITCH_CONSUMER_GROUP_FOR_SESS</p><p>SWITCH_CONSUMER_GROUP_FOR_USER</p><p>ORACLE_USER</p><p>Login</p><p>This is the USERNAME column from v$session. It is the user name the session used to authenticate to the database during login.</p><p>SERVICE_NAME</p><p>Login</p><p>This is the database service name used to connect to the database. It is the SERVICE_NAME column in the v$session</p><p>view.</p><p>CLIENT_OS_USER</p><p>Login</p><p>This is the operating system user account of the machine the user is connecting from. It is the OSUSER column from the v$session view.</p><p>CLIENT_PROGRAM</p><p>Login</p><p>This is the executable file the end user is using to connect to the database; for example, sqlplusw.exe.</p><p>Resource Manager evaluates this value without consideration of case, (upper or lower).</p><p>CLIENT_MACHINE</p><p>Login</p><p>This is the machine from which the user is connecting to the database. It appears in the MACHINE column of the v$session view.</p><p>MODULE_NAME</p><p>Runtime</p><p>This is the module name set by the application connecting to the database. It is stored in the MODULE column of the v$session view and is set by calling the</p><p>DBMS_APPLICATION_INFO.SET_MODULE procedure. This is an optional setting, and some applications do not use it.</p><p>MODULE_NAME_ACTION</p><p>Runtime</p><p>This is a concatenation of the module and action in the form <em>module.action. </em>The application sets these</p><p>attributes by calling the following procedures:</p><p>DBMS_APPLICATION_INFO.SET_MODULE</p><p>DBMS_APPLICATION_INFO.SET_ACTION</p><p>SERVICE_MODULE</p><p>Runtime</p><p>This attribute is the concatenation of the service name used to connect to the database, and the MODULE attribute in the form <em>service.module</em>.</p><p>SERVICE_MODULE_ACTION</p><p>Runtime</p><p>This attribute is the concatenation of the service name,</p><p>module, and action in the form <em>service.module.action</em>.</p><p>ORACLE_FUNCTION</p><p>Runtime</p><p>This is a special attribute that is maintained internally</p><p>by the database. It is set when running RMAN or Data</p><p>Pump. This attribute can be set to BACKUP, to perform a</p><p>backup … as backupset, or COPY, to perform a backup …</p><p>as copy. When Data Pump is used to load data into the database, this attribute is set to DATALOAD. These</p><p>attributes are automatically mapped to built-in consumer groups such as BATCH_GROUP and ETL_GROUP.</p><p>It is a common practice to set the priority of this mapping attribute to the highest level.</p><p>Tip: For attributes other than ORACLE_USER and SERVICE_NAME in the previous table, you can also use wildcards such as _ and % for single and multiple characters, respectively. Conflicts can occur between mapping rules when a user account matches more than one rule. Oracle resolves these conflicts by allowing you to specify the relative priority of each attribute. In this way, Oracle can automatically determine which rule (attribute) should take precedence when session attributes satisfy multiple mapping rules. The default priorities for the ORACLE_USER and CLIENT_APPLICATION attributes are 6 and 7, respectively.</p><p>In the following code example, the CLIENT_PROGRAM promoted to position 2, and the ORACLE_USER placed in position 3. Now the client application establishing a database connection will take precedence over the client’s USERNAME.</p><p>BEGIN<br>dbms_resource_manager.clear_pending_area();<br>dbms_resource_manager.create_pending_area();<br>dbms_resource_manager.set_consumer_group_mapping_pri(<br>EXPLICIT =&gt; 1,<br>CLIENT_PROGRAM =&gt; 2,<br>ORACLE_USER =&gt; 3,<br>SERVICE_MODULE_ACTION =&gt; 4,<br>SERVICE_MODULE =&gt; 5,<br>MODULE_NAME_ACTION =&gt; 6,<br>MODULE_NAME =&gt; 7,<br>SERVICE_NAME =&gt; 8,<br>CLIENT_MACHINE =&gt; 9,<br>CLIENT_OS_USER =&gt; 10 );<br>dbms_resource_manager.submit_pending_area();<br>END;</p><p><strong>Plan Directives</strong></p><p>DBRM allocates database resources to consumer groups through plan directives. A plan directive consists of one consumer group and one or more management attributes. There is a one-to-one relationship between a plan directive and a consumer group, and no two directives may be assigned to the same resource group (within the same plan). A plan directive is made up of a list of management attributes in a key=value fashion. For example, the following listing shows how a set of directives may be defined in DBRM:</p><p>DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE<br>(<br>PLAN =&gt; ‘example_plan’,<br>GROUP_OR_SUBPLAN =&gt; ‘APPS’,<br>COMMENT =&gt; ‘OLTP Application Sessions’,<br>MGMT_P1 =&gt; 70,<br>MAX_UTILIZATION_LIMIT =&gt; 90,<br>MAX_EST_EXEC_TIME =&gt; 3600<br>);</p><p>MGMT_Pn</p><p>Exadata’s IO Resource Manager works with DBRM through plan directives using the CPU management attributes MGMT_Pn, (where n may be 1–8), and MAX_UTILIZATION_LIMIT. Do to their important interface these attributes will be reviewed. CPU is allocated in a level + percentage manner. Usage of the MGMT_Pn attribute determines the relative priority in which CPU is allocated to consumer groups across the various levels, where 1 is the highest level/priority. The percentage assigned to the MGMT_Pn attribute determines how available CPU resources (unallocated plus unused) are allocated within a particular level. Whatever CPU is unused or unallocated from level 1 is allocated to level 2. Unused and unallocated CPU from level 2 is then passed to the consumer groups on level 3. If there are two consumer groups on level 2 and one of them doesn’t use its allocation, the unused CPU is always passed to the next level in the Plan. The other consumer group on level 2 can’t utilize it. You borrow from the higher level.</p><p>The following example shows a simple resource plan and illustrates how this level + percentage method of allocating CPU resources works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*75Vuf14kV14ZT4YN.png" /></figure><p>The APPS group is allocated 70% of total CPU available to the database. Sessions in the REPORTS group are the next highest priority at level 2 and will be allocated half of the unallocated CPU (30%) from level 1. Sessions in the resource groups MAINTENANCE and OTHER_GROUPS equally share unallocated CPU (50%) from level 2. This can be expressed in formula form as follows:</p><p>APPS = 70% (100% × 70%)<br>REPORTS = 15% ((100% — 70%) × 50%)<br>MAINTENANCE = 7.5% (((100% 70%) × 50%) × 50%)<br>OTHER_GROUPS = 7.5% (((100% 70%) × 50%) × 50%)</p><p>Resource Manager is designed to maximize CPU utilization. This is important to understand because it means that there are times when consumer groups may actually exceed their allocation. When CPU resources are limited, plan directives define guaranteed service levels for consumer groups. But when extra CPU is available, plan directives also determine how unused CPU resources are allocated among consumer groups.</p><p>As an example, if CPU utilization in the APPS group falls below 70%, half of the unused CPU is redistributed to the REPORTS group on level 2 (mgmt._p2=50%), and half is distributed to the consumer groups on level 3. If the REPORTS group does not fully utilize its allocation of CPU, the unused CPU is also redistributed to the consumer groups on level 3. If you need to set an absolute limit on CPU for a consumer group, use the MAX_UTILIZATION_LIMIT directive.</p><p><strong>Resource Plan</strong><br>A resource plan is a collection of plan directives that determine how database resources are to be allocated. You may create any number of resource plans for your database that allows you to meet the specific service levels of your business, but only one may be active at any given time. You may deactivate the current resource plan and activate another plan whenever the needs of the business change. When the active resource plan changes, all current and future sessions will be allocated resources based on directives in the new plan. Switching between various resource plans is commonly done to provide suitable allocations for particular times of the day, week, or month. For example, an after-hours plan may be activated in the evening to favor database backups, batch jobs, extracts, and ETL data-loading activities. Other applications for maintaining multiple plans may include month-end processing, year-end processing, etc.</p><p><strong>The Pending Area</strong><br>Resource plans in the database cannot be directly modified; nor can you directly define new plan directives or resource groups. Oracle provides a work space called the pending area for creating and modifying all the elements of a resource plan. You can think of it as a loading zone where all the elements of your resource plan are staged and validated together before they are submitted to DBRM.</p><p>There may be only one pending area in the database at any given time. If a pending area is already open when you try to create one, Oracle will display the error message, “ORA-29370: pending area is already active.” The pending area is not a permanent fixture in the database. You must explicitly create it before you can create or modify resource plans. The following listing shows the typical process of creating a pending area, validating your changes, and then submitting it. After the pending area is submitted, it is automatically removed and a new one must be created if you want to perform any additional work on DBRM components. The following listing shows how the Pending Area is created, validated, and submitted.</p><p>BEGIN<br>DBMS_RESOURCE_MANAGER.CREATE_PENDING_AREA(); — Create the pending area<br>&lt;create, modify, delete your resource plan&gt;<br>DBMS_RESOURCE_MANAGER.VALIDATE_PENDING_AREA(); — Validate your work<br>DBMS_RESOURCE_MANAGER.SUBMIT_PENDING_AREA(); — Install your work into DBRM<br>END;</p><p>Resource Manager Views</p><p>Oracle supplies a number of views that report configuration, history, and metrics for Resource Manager. These views are useful for reviewing and monitoring resources in your DBRM configuration.</p><p>V$RSRC_CONSUMER_GROUP: The V$RSRC_CONSUMER_GROUP view displays information about the active resource consumer groups. It also contains performance metrics that are useful for tuning purposes. We’ll take a closer look at this view when we test a resource plan later on in the chapter.</p><p>V$RSRC_PLAN: This view displays the configuration of the currently active resource plan.</p><p>V$RSRC_PLAN_HISTORY: The V$RSRC_PLAN_HISTORY view shows historical information<br>about your resource plans, including when they were activated and deactivated, and whether they were enabled by the database scheduler or scheduler windows.</p><p>V$RSRC_SESSION_INFO: This view shows performance statistics for sessions and how they were affected by the Resource Manager.</p><p>V$SESSION: The V$SESSION view is not specifically a Resource Manager view but its<br>RESOURCE_CONSUMER_GROUP field is useful for determining what resource group a session is assigned to.</p><p>DBA_RSRC_CATEGORIES: This view displays the resource categories that are configured in the database. Categories are used by the I/O Resource Manager for controlling storage cell I/O allocation within a database.</p><p>DBA_RSRC_CONSUMER_GROUP_PRIVS: This view reports users, and the resource groups to which they have been granted permission. A user must have permission to switch to a consumer group before the session-to-consumer group mapping rules will work.</p><p>DBA_RSRC_GROUP_MAPPINGS: This view lists all of the various session-to-resource group mapping rules defined in the database.</p><p>DBA_RSRC_MAPPING_PRIORITY: This view reports the priority of session attributes which<br>are used in resolving overlaps between mapping rules.</p><p>DBA_RSRC_IO_CALIBRATE: This view displays the I/O performance metrics DBRM uses for I/O resource management. Maximum read rates are captured for I/O operations per second (IOPS), megabytes per second (MBPS), and latencies for data block read requests.</p><p>DBA_RSRC_PLANS: This view lists all resource plans and the number of plan directives assigned to each plan in the database.</p><p>DBA_RSRC_PLAN_DIRECTIVES: This view lists all resource plan directives, resource allocation percentages, and levels defined in the database.</p><p>DBA_USERS: This view is not actually a Resource Manager view but it does display the username and initial resource group assignment in the INITIAL_RSRC_CONSUMER_GROUP column.</p><p>DBA_HIST_RSRC_CONSUMER_GROUP: This view displays historical performance metrics for Resource consumer groups. It contains AWR snapshots of the V$RSRC_CONS_GROUP_HISTORY view.</p><p>DBA_HIST_RSRC_PLAN: This is a simple view that displays historical information about resource plans such as when they were activated and deactivated.</p><p>You can learn in detail on Exadata from book <a href="https://amzn.to/3RzNKpH">Expert Oracle Exadata</a></p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2299912688956399980?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c11bc46dd608" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exadata Storage Architecture]]></title>
            <link>https://medium.com/@alldatabase.solutions/exadata-storage-architecture-12f4abb7b06f?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/12f4abb7b06f</guid>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Tue, 26 Dec 2023 01:16:25 GMT</pubDate>
            <atom:updated>2023-12-26T01:16:25.472Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog of the Exadata Storage Architecture is presented. For ease of complexity this diagram represents an Exadata Quarter Rack. The full Exadata 8 Node Rack has 14 Cells and 168 disks or 4x of what is shown in the diagram. What is shown is the relationship between the compute nodes (database servers), InfiniBand switches, and storage servers.</p><p><strong>Quarter Rack</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/0*1wMeh4OcZ4wYWcg-.png" /></figure><p>Each storage server has physical disks that are configured for use by ASM. The following shows the relationship between physical disks, cell disks, and grid disks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/0*7DJJC95PyuZ_pScj.png" /></figure><p>Next is a representation of what the cell disks look like when configured according to the default installation on Exadata. This shows the first 3 disks, followed by disk “n” which represents the remaining disks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/0*d47SLzGwEvlxRSDu.png" /></figure><p>On each cell, the first 2 disks have approximately 30GB sectioned off for the operating system. The corresponding space on the remaining disks is used to create the DBFS_DG grid disks. Finally, a grid disk for DATA is created (starting from the outside tracks for the best performance), followed by the RECO grid disk</p><h3>Database File System (DBFS)</h3><h3>Database File System (DBFS) is a filesystem stored in a database. Best practice is to use a dedicated DBFS database. DBFS can be shared between all Exadata compute nodes. DBFS cannot be exported via NFS.</h3><p>You can learn in detail on Exadata from book<a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2749358290095428648?hl=en#"> Expert Oracle Exadata</a></p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2749358290095428648?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12f4abb7b06f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exadata half RACK Image Upgrade-Non-Rolling-Compute Node]]></title>
            <link>https://medium.com/@alldatabase.solutions/exadata-half-rack-image-upgrade-non-rolling-compute-node-66360b50ee75?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/66360b50ee75</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Wed, 01 Nov 2023 01:50:04 GMT</pubDate>
            <atom:updated>2023-11-01T01:50:04.121Z</atom:updated>
            <content:encoded><![CDATA[<p>As DMA its regular activity to patch exadata machine. There are two ways of patching Exadata box Rolling and Non-Rolling. In this blog, we will start with part 3 of the Exadata (Half Rack) Image Upgrade (Non-Rolling).</p><p>Precheck: Exadata Image Upgrade</p><ol><li>Oracle recommends to clear all the stateful alrts from all the cell nodes<br>[root@abcxyzadm01 ~]# dcli -g cell_group -l root “cellcli -e list alerthistory attributes name,beginTime,alertShortName,alertDescription,severity where alerttype=stateful and severity=critical”</li><li>Based on Exachk report check if Oracle finds any hardware failure which much be fixed before you proceed for the patching.</li></ol><p>Compute Node/ DB Note / YUM Patch Plan (Non-Rolling)</p><ol><li>Check image version</li><li>dcli -l root -g dbs_group imageinfo -versio<br>dcli -l root -g dbs_group imageinfo -status<br>dcli -l root -g dbs_group uname -r</li><li>Verify dbnodeupdate script version</li><li>Download latest version of dbnodeupdate script from patch 21634633<br>Download dbserver.patch.zip as p21634633_122110_Linux-x86–64.zip, which contains dbnodeupdate.zip and patchmgr for dbnodeupdate orchestration via patch 21634633</li><li>cd /u01/exa_img_upg/YUM<br>unzip -o p21634633_122110_Linux-x86–64.zi<br>Should be at least version<br>./dbnodeupdate.sh -V<br>ver=$(./dbnodeupdate.sh -V | awk ‘{print $3}’); if (( $(echo “$ver &lt; 5.151022” | bc -l) )); then echo -e “\nFAIL: dbnodeupdate version too low. Update before proceeding.\n”; elif (( $(echo “$ver &gt; 5.151022” | bc -l) )); then echo -e “\nPASS: dbnodeupdate version OK\n”; else echo -e “\nWARN: dbnodeupdate minimum version ($ver) detected. Check if there is a newer version before proceeding.\n”; fi</li><li>dbnodeupdate script is updated frequently (sometimes daily). If not current then download updated version.</li><li>Check databases running before stopping CRS</li><li>/u01/app/19c/grid/bin/crsctl status resource -t -w “TYPE = ora.database.type”<br>ps -ef | grep pmon_ | grep -v grep</li><li>Stop the CRS (Non-Rolling)</li><li>Execute on one node<br>dcli -l root -g dbs_group /u01/app/12.1.0.2/grid/bin/crsctl disable crs<br>/u01/app/19c/grid/bin/crsctl stop cluster -all<br>dcli -l root -g dbs_group /u01/app/19c/grid/bin/crsctl stop crs<br>dcli -l root -g dbs_group ‘/u01/app/19c/grid/bin/crsctl check crs | grep online | wc -l | while read retval; do if [[ $retval -eq 0 ]]; then echo CRS Stopped; elif [[ $retval -eq 4 ]]; then echo CRS Running; else echo CRS Not Ready; fi; done;’</li><li>Reboot servers and reset ILOM</li><li>dcli -l root -g dbs_group uptime<br>If uptime more than 7 days then reboot servers<br>dcli -l root -g dbs_group reboot<br>Reset the iloms<br>dcli -l root -g dbs_group ‘ipmitool bmc reset cold’</li><li>Unmount NFS partitions</li><li>dcli -l root -g dbs_group ‘umount -a -t nfs -f -l’</li><li>Run precheck</li><li>cd /u01/exa_img_upg/YUM<br>./dbnodeupdate.sh -u -l /u01/exa_img_upg/YUM/pXXXXXXXX_Linux-x86–64.zip -t XXXXX -g -v</li><li>Perform backup and upgrade</li><li>Make sure to check known issues section above prior to executing dbnodeupdate.sh<br>./dbnodeupdate.sh -u -l /u01/exa_img_upg/YUM/pXXXXX_Linux-x86–64.zip -t XXXX -q</li><li>Monitor the reboot<br>Monitor the reboot of each node by logging into the ilom console.</li><li>After reboot completes</li><li>Before running the completion step, run the CheckHWnFWProfile script to make sure it passes. If not, shut the system down and power cycle it from the ilom ( stop /SYS, wait 5 minutes, start /SYS) <br>/opt/oracle.cellos/CheckHWnFWProfile<br>cd /u01/exa_img_upg/YUM<br>umount -a -t nfs -f -l<br>./dbnodeupdate.sh -t XXXXXX -c -g<br>mount -a</li><li>Verify fuse RPMs are Installed <br>yum list installed | grep fuse<br>There should be 3 fuse rpm’s. If not check note “Fuse packages removed as part of dbnodeupdate prereq check (Doc ID 2066488.1)”</li><li>Check version and status</li><li>dcli -l root -g dbs_group imageinfo -version<br>dcli -l root -g dbs_group imageinfo -status<br>dcli -l root -g dbs_group uname -r</li><li>Enable CRS</li><li>/u01/app/19c/grid/bin/crsctl enable crs<br>/u01/app/19c/grid/bin/crsctl check crs<br>dcli -l root -g dbs_group ‘/u01/app/19c/grid/bin/crsctl check crs | grep online | wc -l | while read retval; do if [[ $retval -eq 0 ]]; then echo CRS Stopped; elif [[ $retval -eq 4 ]]; then echo CRS Running; else echo CRS Not Ready; fi; done;’</li><li>Post checks</li><li>/u01/app/19c/grid/bin/crsctl status resource -t -w “TYPE = ora.database.type”<br>The following checks if APM is disabled across all nodes<br>dcli -l root -g dbs_group ‘cat /sys/module/ib_sdp/parameters/sdp_apm_enable’</li><li>Additional checks (if there were problems)</li><li>ssh &lt;database-node&gt;<br>cd /var/log/cellos/<br>cat dbnodeupdate.log<br>cat dbserver_backup.sh.log<br>cat CheckHWnFWProfile.log<br>cat exadata.computenode.post.log<br>cat cellFirstboot.log<br>cat exachkcfg.log<br>cat vldrun.each_boot.log<br>cat validations.log</li></ol><p>Rollback Steps :</p><ol><li>Rolling back the update with the dbnodeupdate.sh utility:<br>./dbnodeupdate.sh -r</li><li>Reboot the server using the reboot command.<br># reboot</li><li>Run the dbnodeupdate.sh utility in ‘completion mode’ to finish post patching steps<br>Similar like with regular updates or One-Time updates, when switching OS binaries with the same Oracle Home, the database kernel should be relinked, so the ‘post completion’ step needs to be performed.</li><li>./dbnodeupdate.sh -c</li></ol><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1273047294799273394?hl=en#">Switch Firmware upgrade</a>.</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1273047294799273394?hl=en#">Cell node image upgrade.</a></p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1273047294799273394?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66360b50ee75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As DMA its regular activity to patch exadata machine.]]></title>
            <link>https://medium.com/@alldatabase.solutions/as-dma-its-regular-activity-to-patch-exadata-machine-cdc66070451c?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdc66070451c</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 06:45:27 GMT</pubDate>
            <atom:updated>2023-10-25T06:45:27.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exadata half RACK Image Upgrade-Non-Rolling-Cell Server</h3><p>As DMA its regular activity to patch exadata machine. There are two ways of patching Exadata box Rolling and Non-Rolling. In this blog, we will start with part 3 of the Exadata (Half Rack) Image Upgrade (Non-Rolling).</p><p>Precheck: Exadata Image Upgrade</p><ol><li>Oracle recommends to clear all the stateful alrts from all the cell nodes</li><li>[root@abcxyzadm01 ~]# dcli -g cell_group -l root “cellcli -e list alerthistory attributes name,beginTime,alertShortName,alertDescription,severity where alerttype=stateful and severity=critical”</li><li>Based on Exachk report check if Oracle finds any hardware failure which much be fixed before you proceed for the patching.</li></ol><p>Cell Node/ Cell Server Patch Plan (Non-Rolling)</p><ol><li>update using the patchmgr utility.Unzip the update. It will extract into the patch_XXXXXX directory.</li><li>Stop agents if running (Non-Rolling)</li><li>Check agents and restart if not running<br> ps -ef | grep agent | grep java | sed ‘s/\s\+/ /g’ | cut -d “ “ -f 1,8 | sed ‘s/\/jdk.*//’<br> dcli -g dbs_group -l root ‘su -l oracle -c “/u01/app/em13c/core/13.1.0.4.0/bin/emctl start agent”’<br> dcli -g dbs_group -l root ‘su -l oracle -c “/u01/app/em13c/core/13.1.0.4.0/bin/emctl status agent”’ | grep ‘Agent is’</li><li>Check databases running before stopping CRS</li><li>/u01/app/12.1.0.2/grid/bin/crsctl status resource -t -w “TYPE = ora.database.type” <br>dcli -l root -g dbs_group “ps -ef | sort -k1.50 | grep pmon_ | grep -v grep &amp;&amp; echo ‘’”</li><li>Stop and disable CRS</li><li>dcli -l root -g dbs_group /u01/app/12.1.0.2/grid/bin/crsctl disable crs /u01/app/12.1.0.2/grid/bin/crsctl stop cluster -all<br>dcli -l root -g dbs_group /u01/app/12.1.0.2/grid/bin/crsctl stop crs<br>dcli -l root -g dbs_group ‘/u01/app/12.1.0.2/grid/bin/crsctl check crs | grep online | wc -l | while read retval; do if [[ $retval -eq 0 ]]; then <br>echo CRS Stopped; elif [[ $retval -eq 4 ]]; then echo CRS Running; else echo CRS Not Ready; fi; done;’</li><li>Restart ILOM on all cell nodes (optional)</li><li>dcli -l root -g cell_group “ipmitool bmc reset cold”</li><li>Check uptime and reboot if needed</li><li>dcli -l root -g cell_group “uptime” <br> If cells up more than 7 days then reboot. <br> dcli -l root -g cell_group “cellcli -e alter cell shutdown services all” <br> Verify all cells stopped successfully. If not, repeat until all cells are stopped. <br> dcli -l root -g cell_group sync<br> dcli -l root -g cell_group sync <br> dcli -l root -g cell_group reboot</li><li>Stop services on all cell nodes</li><li>cd /u01/exa_img_upg/CELL/patch_XXXXXXX<br>dcli -l root -g cell_group “cellcli -e alter cell shutdown services all”</li><li>Cleanup space from any previous runs <br>the -reset_force command is only done the first time the cells are patched to this release. <br>It is not necessary to use the command for subsequent cell patching, even after rolling back the patch.</li><li>./patchmgr -cells cell_group -reset_force</li><li>Always use the -cleanup option before retrying a failed or halted run of the patchmgr utility.</li><li>./patchmgr -cells cell_group -cleanup</li><li>Run prerequisites check</li><li>cd /u01/exa_img_upg/CELL/patch_XXXXXXX<br>./patchmgr -cells cell_group -patch_check_prereq</li><li>Patch the cell nodes</li><li>nohup ./patchmgr -cells cell_group -patch &amp;</li><li>Monitor the patch progress</li><li>Monitor the ILOM console for each cell being patched. You may want to download the ilom-login.sh script from note 1616791.1 for assisting in logging into the iloms.</li><li>cd /u01/exa_img_upg/CELL/patch_XXXXXXXX<br>tail -f nohup.out</li><li>Cleanup space<br>./patchmgr -cells cell_group -cleanup</li><li>Post Checks</li><li>dcli -l root -g cell_group imageinfo -version <br>dcli -l root -g cell_group imageinfo -status <br>dcli -l root -g cell_group “uname -r” <br>dcli -l root -g cell_group cellcli -e list cell <br>dcli -l root -g cell_group /opt/oracle.cellos/CheckHWnFWProfile</li><li>Additional checks (if there were problems)</li><li>cd /u01/exa_img_upg/CELL/patch_XXXXXXXX<br>cat patchmgr.stdout <br>cat _wip_stdout file <br>ssh &lt;cell-node&gt; <br>cd /var/log/cellos <br>grep -i ‘fail’ validations.log <br>grep -i ‘fail’ vldrun*.log <br>cat validations.log <br>cat vldrun.upgrade_reimage_boot.log <br>cat vldrun.first_upgrade_boot.log <br>cat CheckHWnFWProfile.log <br>cat cell.bin.install.log <br>cat cellFirstboot.log <br>cat exachkcfg.log <br>cat patch.out.place.sh.log <br>cat install.sh.log</li><li>Start agents and verify that they are running<br>Check agents and restart if not running<br> ps -ef | grep agent | grep java | sed ‘s/\s\+/ /g’ | cut -d “ “ -f 1,8 | sed ‘s/\/jdk.*//<br> dcli -g dbs_group -l root ‘su -l oracle -c “/u01/app/em12c/core/12.1.0.4.0/bin/emctl start agent”<br> dcli -g dbs_group -l root ‘su -l oracle -c “/u01/app/em12c/core/12.1.0.4.0/bin/emctl status agent”’ | grep ‘Agent is’</li><li>Enable and start CRS</li><li>dcli -l root -g dbs_group /u01/app/12.1.0.2/grid/bin/crsctl enable crs<br> dcli -l root -g dbs_group /u01/app/12.1.0.2/grid/bin/crsctl start crs<br> dcli -l root -g dbs_group ‘/u01/app/12.1.0.2/grid/bin/crsctl check crs | grep online | wc -l | while read retval; do if [[ $retval -eq 0 ]]; then echo CRS Stopped; elif [[ $retval -eq 4 ]]; then echo CRS Running; else echo CRS Not Ready; fi; done;’</li><li>Verify databases started</li><li>/u01/app/12.1.0.2/grid/bin/crsctl status resource -t -w “TYPE = ora.database.type” <br>dcli -l root -g dbs_group “ps -ef | sort -k1.50 | grep pmon_ | grep -v grep &amp;&amp; echo ‘’”</li></ol><p>Rolling Back Successfully Patched Exadata Cells</p><p>(This section describes how to roll back successfully patched Exadata Cells. Cells with incomplete or failed patching cannot be rolled back.)</p><p>Do not run more than one instance of the patchmgr utility at a time in the deployment.</p><p>Check the prerequisites using the following command:</p><p>./patchmgr -cells cell_group -rollback_check_prereq [-rolling]</p><p>Perform the rollback using the following command:</p><p>./patchmgr -cells cell_group –rollback [-rolling]</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1321712331276540475#">compute node image upgrade.</a></p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1321712331276540475#">Switch Firmware upgrade</a>.</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/1321712331276540475#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdc66070451c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exadata(Half Rack) Image Upgrade (Rolling) Part-3-Compute Node Image Upgrade]]></title>
            <link>https://medium.com/@alldatabase.solutions/exadata-half-rack-image-upgrade-rolling-part-3-compute-node-image-upgrade-c6b92bf91bd5?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b92bf91bd5</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[database-administration]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Thu, 19 Oct 2023 01:54:32 GMT</pubDate>
            <atom:updated>2023-10-19T01:54:32.459Z</atom:updated>
            <content:encoded><![CDATA[<p>As DMA its regular activity to patch exadata machine. There are two ways of patching Exadata box Rolling and Non-Rolling. In this blog, we will start with part 3 of the Exadata (Half Rack) Image Upgrade (Rolling).</p><p>Step 1: Check image version</p><p>cd /root</p><p>dcli -l root -g dbs_group imageinfo -version</p><p>dcli -l root -g dbs_group imageinfo -status</p><p>dcli -l root -g dbs_group uname -r</p><p>— Verify dbnodeupdate script version<br>Download latest version of dbnodeupdate script from patch 21634633<br>Download dbserver.patch.zip which contains dbnodeupdate.zip and patchmgr for dbnodeupdate orchestration via patch 21634633.</p><p>cd /u01/exa_img_upg/YUM</p><p>unzip -o p21634633_122110_Linux-x86–64.zip</p><p>Should be at least version 5.151022</p><p>./dbnodeupdate.sh -V</p><p>ver=$(./dbnodeupdate.sh -V | awk ‘{print $3}’); if (( $(echo “$ver &lt; 5.151022” | bc -l) )); then echo -e “\nFAIL: dbnodeupdate version too low. Update before proceeding.\n”; elif (( $(echo “$ver &gt; 5.151022” | bc -l) )); then echo -e “\nPASS: dbnodeupdate version OK\n”; else echo -e “\nWARN: dbnodeupdate minimum version ($ver) detected. Check if there is a newer version before proceeding.\n”; fi</p><p>dbnodeupdate script is updated frequently (sometimes daily). If not current then download updated version.</p><p>Step 2: Check databases running before stopping CRS</p><p>crsctl status resource -t -w “TYPE = ora.database.type”</p><p>ps -ef | grep pmon_ | grep -v grep</p><p>Step 3: Stop the CRS (Rolling)</p><p>Execute on the Compute Node for which you are going for Image Upgrade.</p><p>crsctl disable crs</p><p>crsctl stop crs</p><p>crsctl check crs</p><p>ps -ef | grep grid | grep -v grep</p><p>Reboot server and reset ILOM</p><p>uptime</p><p>If uptime more than 7 days then reboot server</p><p>reboot</p><p>Reset the ilom</p><p>ipmitool bmc reset cold</p><p>Step 4: Unmount NFS partitions</p><p>umount -a -t nfs -f -l</p><p>Step 5: Run precheck</p><p>cd /u01/exa_img_upg/YUM/dbserver_patch_5.170420</p><p>./dbnodeupdate.sh -u -l /u01/exa_img_upg/YUM/IMAGE.zip -t PATCHNUMBER -v</p><p>Step 6: Perform backup and upgrade</p><p>==========================</p><p>Make sure to check known issues section above prior to executing dbnodeupdate.sh</p><p>cd /u01/exa_img_upg/YUM/dbserver_patch_5.170420</p><p>nohup ./dbnodeupdate.sh -u -l /u01/exa_img_upg/YUM/IMAGE.zip -t PATCHNUMBER -q &amp;</p><p>Step 7: Monitor the reboot</p><p>==================</p><p>Monitor the reboot of each node by logging into the ilom console.</p><p>After reboot completes</p><p>Before running the completion step, run the CheckHWnFWProfile script to make sure it passes. If not, shut the system down and power cycle it from the ilom ( stop /SYS, wait 5 minutes, start /SYS)</p><p>/opt/oracle.cellos/CheckHWnFWProfile</p><p>cd /u01/exa_img_upg/YUM</p><p>umount -a -t nfs -f -l</p><p>cd /u01/exa_img_upg/YUM/dbserver_patch_5.170420</p><p>./dbnodeupdate.sh -t PATCHNUMBER -c</p><p>mount -a</p><p>Verify fuse RPMs are Installed</p><p>yum list installed | grep fuse</p><p>Step 8: Check version and status</p><p>========================</p><p>cd /root</p><p>dcli -l root -g dbs_group imageinfo -version</p><p>dcli -l root -g dbs_group imageinfo -status</p><p>dcli -l root -g dbs_group uname -r</p><p>Enable CRS</p><p>crsctl enable crs</p><p>crsctl check crs</p><p>If CRS is not already started then start the CRS on this Image Upgraded node.</p><p>crsctl start crs</p><p>Step 9: Post checks</p><p>===========</p><p>/u01/app/12.1.0.2/grid/bin/crsctl status resource -t -w “TYPE = ora.database.type”</p><p>Additional checks (if there were problems)</p><p>ssh &lt;database-node&gt;</p><p>cd /var/log/cellos/</p><p>cat dbnodeupdate.log</p><p>cat dbserver_backup.sh.log</p><p>cat CheckHWnFWProfile.log</p><p>cat exadata.computenode.post.log</p><p>cat cellFirstboot.log</p><p>cat exachkcfg.log</p><p>cat vldrun.each_boot.log</p><p>cat validations.log</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Rollback Steps in case required</p><p>===============================</p><p>1. Rolling back the update with the dbnodeupdate.sh utility:</p><p>./dbnodeupdate.sh -r</p><p>2. Reboot the server using the reboot command.</p><p># reboot</p><p>3. Run the dbnodeupdate.sh utility in ‘completion mode’ to finish post patching steps</p><p>Similar like with regular updates or One-Time updates, when switching OS binaries with the same Oracle Home, the database kernel should be relinked, so the ‘post completion’ step needs to be performed.</p><p>./dbnodeupdate.sh -c</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2712226070064985126?hl=en#">Switch Firmware upgrade</a>.</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2712226070064985126?hl=en#">Cell node image upgrade</a>.</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/2712226070064985126?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b92bf91bd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As DMA its regular activity to patch exadata machine.]]></title>
            <link>https://medium.com/@alldatabase.solutions/as-dma-its-regular-activity-to-patch-exadata-machine-812994d5ad34?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/812994d5ad34</guid>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Sat, 23 Sep 2023 17:25:27 GMT</pubDate>
            <atom:updated>2023-09-23T17:25:27.318Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exadata (Half Rack) Image Upgrade (Rolling) Part-2-Switch Firmware Upgrade</h3><p>As DMA its regular activity to patch exadata machine. There are two ways of patching Exadata box Rolling and Non-Rolling. In this blog, we will start with part 2 of the Exadata (Half Rack) Image Upgrade (Rolling).</p><p>Note: Switch firmware is upgraded in a rolling manner.</p><p>Step1: First upgrade the firmware of Subnet Manager</p><p>[root@xyzsw-iba01 ~]# getmaster</p><p>Local SM enabled and running, state STAND BY</p><p>20150813 00:20:59 Master SubnetManager on sm lid 1 sm guid 0x10e035c2e0a0a0 : SUN DCS 36P QDR xyzsw-ibb01 192.168.xx.xx</p><p>[root@xyzsw-iba01 ~]#</p><p>[root@xyzsw-ibb01 ~]# getmaster</p><p>Local SM enabled and running, state MASTER</p><p>20150813 00:21:00 Master SubnetManager on sm lid 1 sm guid 0x10e035c2e0a0a0 : SUN DCS 36P QDR xyzsw-ibb01 192.168.xx.xx</p><p>[root@xyzsw-ibb01 ~]#</p><p>Here xyzsw-ibb01 is the Subnet Manager</p><p>Step2:Create ibswitches.lst</p><p>cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p># vi ibswitches.lst</p><p>xyzsw-ibb01</p><p>xyzsw-iba01</p><p>Step 3:Run the pre-requisite checks</p><p>#./patchmgr -ibswitches ibswitches.lst -upgrade -ibswitch_precheck</p><p>Note: If the output from the comma nd shows overall status is SUCCESS, then proceed with the upgrade.</p><p>If the output from the command shows overall status is FAIL, then review the error summary in the output to determine which checks failed, and then correct the errors. After the errors have been corrected, rerun the pre-requisite checks until it is successful.</p><p>Step 4: Upgrade the switches</p><p>#./patchmgr -ibswitches ibswitches.lst -upgrade</p><p>Step 5: Check the output from the command, and verify the upgrade</p><p>The output should show SUCCESS. If there are errors, then correct the errors and run the upgrade command again.</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5057612268661328949?hl=en#">compute node image upgrade</a>.</p><p>Click on to for<a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5057612268661328949?hl=en#"> Cell node image upgrade</a>.</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5057612268661328949?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=812994d5ad34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As DMA its regular activity to patch exadata machine.]]></title>
            <link>https://medium.com/@alldatabase.solutions/as-dma-its-regular-activity-to-patch-exadata-machine-76f1248b8f5c?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/76f1248b8f5c</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Fri, 15 Sep 2023 12:28:34 GMT</pubDate>
            <atom:updated>2023-09-15T12:28:34.018Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exadata (Half Rack) Image Upgrade (Rolling) Part 1-Cell Server</h3><p>As DMA its regular activity to patch exadata machine. There are two ways of patching Exadata box Rolling and Non-Rolling. In this blog , We will start with part 1 of the Exadata (Half Rack) Image Upgrade (Rolling).</p><p>Step 1: Backup Current Configurations</p><p>echo “Executing prechecks specific to cell nodes…”</p><p>This is one time precheck configs will collect for all 7 cell nodes of the cell group</p><p>#cd /root</p><p>echo “” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo “************************” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo “Cell specific prechecks” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo “************************” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Need at least 1.5gb + size of ISO file (approx 3gb total for Jan-July releases) space on / partition of cells to do cell update” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group df -h / &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Check all cells are up” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group cellcli -e list cell &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Check cell network configuration” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group “/opt/oracle.cellos/ipconf -verify” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Validate cell disks for valid physicalInsertTime (should be no output)” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group cellcli -e ‘list physicaldisk attributes luns where physicalInsertTime = null’ &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Check for WriteBack Flash Cache” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group cellcli -e “list cell attributes flashcachemode” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo -e “\n# Check for Flash Cache Compression” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>dcli -l root -g cell_group cellcli -e “list cell attributes flashCacheCompress” &gt;&gt;/u01/exa_img_upg/prechecks/cell_node_prechecks.txt</p><p>echo “Executing prechecks specific to compute nodes…”</p><p>This is one time precheck configs will collect for all 4 db nodes of the dbs group</p><p>#cd /root</p><p>echo “” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo “************************” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo “Compute specific prechecks” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo “************************” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# need 3–5 gb on / partition” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group df -h / &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# need ~40 mb on /boot partition” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group df -h /boot &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# check freespace on /u01 partition” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group df -h /u01 &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# Make sure not snaps are still active” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group lvs &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# Need at least 1.5gb gb free PE” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group vgdisplay &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# Mounted filesystems” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group mount &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# Contents of /etc/fstab” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group cat /etc/fstab &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>echo -e “\n# Contents of /etc/exports” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group cat /etc/exports &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>#</p><p>echo “Done.”</p><p>echo -e “\n# Contents of /etc/exports” &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>dcli -l root -g dbs_group cat /etc/exports &gt;&gt;/u01/exa_img_upg/prechecks/compute_node_prechecks.txt</p><p>#</p><p>echo “Done.”</p><p>Step 2: Pre-Validation — Validate if there is any Critical and Stateful alert is leftover on the cell servers</p><p>cd /root</p><p>[root@abcxyzadm01 ~]# dcli -g cell_group -l root “cellcli -e list alerthistory attributes name,beginTime,alertShortName,alertDescription,severity where alerttype=stateful and severity=critical”</p><p>We can drop all the alert history</p><p>CellCLI&gt; drop alerthistory all</p><p>OR</p><p>====</p><p>To drop individual alert we need to use below command</p><p>Example :</p><p>CellCLI&gt; list alerthistory &lt;6_1&gt;</p><p>CellCLI&gt; list alerthistory &lt;6_1&gt; detail</p><p>CellCLI&gt; drop alerthistory &lt;6_1&gt;</p><p>Only drop alert which are taken care.</p><p>Step 3: Precheck</p><p>[root@abcxyzadm01 patch_PATCHNUMBER]# ./patchmgr -cells &lt;cell_group&gt; -patch_check_prereq -rolling</p><p>-rw-r — r — 1 root root 10 May 4 15:53 cell_node_1</p><p>-rw-r — r — 1 root root 11 May 4 16:10 cell_node_2</p><p>-rw-r — r — 1 root root 10 May 4 16:11 cell_node_3</p><p>-rw-r — r — 1 root root 10 May 4 16:11 cell_node_4</p><p>-rw-r — r — 1 root root 11 May 4 16:11 cell_node_5</p><p>-rw-r — r — 1 root root 10 May 4 16:11 cell_node_6</p><p>-rw-r — r — 1 root root 10 May 4 16:12 cell_node_7</p><p>Note : change the cell_group name to one which you are patching</p><p>Example : For first cell node</p><p>[root@abcxyzadm01 patch_PATCHNUMBER]# ./patchmgr -cells cell_node_1 -patch_check_prereq -rolling</p><p>[root@abcxyzadm01 patch_PATCHNUMBER]# ./patchmgr -cells cell_node_1 -patch_check_prereq -rolling</p><p>2017–05–08 11:24:52 -0700 [INFO] Disabling /var/log/cellos cleanup on this node for the duration of the patchmgr session.</p><p>2017–05–08 11:25:56 -0700 :Working: DO: Check cells have ssh equivalence for root user. Up to 10 seconds per cell …</p><p>2017–05–08 11:25:56 -0700 :SUCCESS: DONE: Check cells have ssh equivalence for root user.</p><p>2017–05–08 11:26:00 -0700 :Working: DO: Initialize files, check space and state of cell services. Up to 1 minute …</p><p>2017–05–08 11:26:44 -0700 :SUCCESS: DONE: Initialize files, check space and state of cell services.</p><p>2017–05–08 11:26:44 -0700 :Working: DO: Copy, extract prerequisite check archive to cells. If required start md11 mismatched partner size correction. Up to 40 minutes …</p><p>2017–05–08 11:26:59 -0700 Wait correction of degraded md11 due to md partner size mismatch. Up to 30 minutes.</p><p>2017–05–08 11:27:00 -0700 :SUCCESS: DONE: Copy, extract prerequisite check archive to cells. If required start md11 mismatched partner size correction.</p><p>2017–05–08 11:27:00 -0700 :Working: DO: Check prerequisites on all cells. Up to 2 minutes …</p><p>2017–05–08 11:27:39 -0700 :SUCCESS: DONE: Check prerequisites on all cells.</p><p>2017–05–08 11:27:39 -0700 :Working: DO: Execute plugin check for Patch Check Prereq …</p><p>2017–05–08 11:27:39 -0700 :INFO: Patchmgr plugin start: Prereq check for exposure to bug 22909764 v1.0. Details in logfile /u01/exa_img_upg/CELL/patch_PATCHNUMBER/patchmgr.stdout.</p><p>2017–05–08 11:27:39 -0700 :INFO: Patchmgr plugin start: Prereq check for exposure to bug 17854520 v1.3. Details in logfile /u01/exa_img_upg/CELL/patch_PATCHNUMBER/patchmgr.stdout.</p><p>2017–05–08 11:27:41 -0700 :WARNING: ACTION REQUIRED: Cells to be upgraded pass version check, however other cells not being upgraded may be at version 11.2.3.1.x or 11.2.3.2.x, exposing the system to bug 17854520. Manually check other cells for version 11.2.3.1.x or 11.2.3.2.x.</p><p>2017–05–08 11:27:41 -0700 :INFO: Checking database homes for remote db nodes with oracle-user ssh equivalence to the local system.</p><p>2017–05–08 11:27:41 -0700 :INFO: Database homes that exist only on remote nodes must be checked manually.</p><p>2017–05–08 11:27:47 -0700 :SUCCESS: Patchmgr plugin complete: Prereq check passed — no exposure to bug 17854520</p><p>2017–05–08 11:27:47 -0700 :INFO: Patchmgr plugin start: Prereq check for exposure to bug 22468216 v1.0. Details in logfile /u01/exa_img_upg/CELL/patch_PATCHNUMBER/patchmgr.stdout.</p><p>2017–05–08 11:27:48 -0700 :SUCCESS: Patchmgr plugin complete: Prereq check passed for the bug 22468216</p><p>2017–05–08 11:27:48 -0700 :INFO : Patchmgr plugin start: Prereq check for exposure to bug 24625612 v1.0.</p><p>2017–05–08 11:27:48 -0700 :INFO : Details in logfile /u01/exa_img_upg/CELL/patch_PATCHNUMBER/patchmgr.stdout.</p><p>2017–05–08 11:27:48 -0700 :SUCCESS: Patchmgr plugin complete: Prereq check passed for the bug 24625612</p><p>2017–05–08 11:27:48 -0700 :SUCCESS: DONE: Execute plugin check for Patch Check Prereq.</p><p>Restart ILOM on all cell nodes (optional)</p><p>dcli -l root -g &lt;cell_group&gt; “ipmitool bmc reset cold”</p><p>Note: Change the &lt;cell_group&gt; to the cell server you are patching as below</p><p>cell_node_1</p><p>cell_node_2</p><p>cell_node_3</p><p>cell_node_4</p><p>cell_node_5</p><p>cell_node_6</p><p>cell_node_7</p><p>Example</p><p>dcli -l root -g cell_node_1 “ipmitool bmc reset cold”</p><p>Check repair times for all mounted disk groups in the Oracle ASM instance and adjust if needed Note: Set disk_repair_time to 8.5 hours.</p><p>sqlplus / as sysasm</p><p>select dg.name,a.value from v$asm_diskgroup dg, v$asm_attribute a where dg.group_number=a.group_number and a.name=’disk_repair_time’;</p><p>NAME VALUE</p><p>— — — — — — — — — — —</p><p>DATA_DG 3.6h</p><p>DBFS_DG 3.6h</p><p>RECO_DG 3.6h</p><p>If the repair time is not 8.5 hours then note the value and the diskgroup names. Replace &lt;diskgroup_name&gt; in the following statement to adjust. alter diskgroup ‘&lt;diskgroup_name&gt;’ set attribute ‘disk_repair_time’=’8.5h’;</p><p>Repeat the above statement for each diskgroup as below</p><p>alter diskgroup DATA_DG set attribute ‘disk_repair_time’=’8.5h’;</p><p>alter diskgroup DBFS_DG set attribute ‘disk_repair_time’=’8.5h’;</p><p>alter diskgroup RECO_DG set attribute ‘disk_repair_time’=’8.5h’;</p><p>Also increase the rebalance power to 5</p><p>alter diskgroup RECO_DG rebalance power 5;</p><p>alter diskgroup DATA_DG rebalance power 5;</p><p>alter diskgroup DBFS_DG rebalance power 5;</p><p>Check uptime and reboot if needed</p><p>cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>dcli -l root -g cell_group “uptime”</p><p>[root@abcxyzadm01 ~]# dcli -l root -g cell_group “uptime”</p><p>xyzceladm01: 12:51:44 up 222 days, 17:17, 0 users, load average: 1.45, 1.33, 1.35</p><p>xyzceladm02: 12:51:44 up 222 days, 17:17, 0 users, load average: 1.64, 1.21, 1.25</p><p>xyzceladm03: 12:51:44 up 222 days, 17:18, 0 users, load average: 1.34, 1.45, 1.43</p><p>xyzceladm04: 12:51:44 up 222 days, 17:17, 0 users, load average: 0.98, 1.25, 1.35</p><p>xyzceladm05: 12:51:44 up 222 days, 17:17, 0 users, load average: 1.10, 1.33, 1.42</p><p>xyzceladm06: 12:51:44 up 222 days, 17:17, 0 users, load average: 0.88, 1.21, 1.34</p><p>xyzceladm07: 12:51:44 up 222 days, 17:17, 0 users, load average: 0.99, 1.21, 1.30</p><p>[root@abcxyzadm01 ~]#</p><p>Note: If cells up more than 7 days then reboot each cell in rolling fashion using the note below.</p><p>Steps to shut down or reboot an Exadata storage cell without affecting ASM (Doc ID 1188080.1)</p><p>Note: In our case we need to reboot the cell server</p><p>cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>Follow our blog to <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/3004154036797623867?hl=en#">Cell Node Reboot Steps Without Affecting ASM.</a></p><p>Step 4: Cleanup space from any previous runs</p><p>The -reset_force command is only done the first time the cells are patched to this release.</p><p>It is not necessary to use the command for subsequent cell patching, even after rolling back the patch.</p><p>We need to use ‘cleanup’ option not ‘reset_force’ option</p><p>[root@abcxyzadm05 ~]#cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>./patchmgr -cells &lt;cell_group&gt; -reset_force</p><p>Note : Always use the -cleanup option before retrying a failed or halted run of the patchmgr utility.</p><p>[root@abcxyzadm05 ~]#cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>./patchmgr -cells &lt;cell_group&gt; -cleanup</p><p>Note: Please use the &lt;cell_gorup&gt; as per respective cell you are patching</p><p>Note: Change the &lt;cell_group&gt; to the cell server you are patching as below</p><p>cell_node_1</p><p>cell_node_2</p><p>cell_node_3</p><p>cell_node_4</p><p>cell_node_5</p><p>cell_node_6</p><p>cell_node_7</p><p>Example : ./patchmgr -cells cell_node_1 -cleanup</p><p>Step 5: Run prerequisites check</p><p>=======================</p><p>#cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>./patchmgr -cells &lt;cell_group&gt; -patch_check_prereq -rolling</p><p>Note: Change the &lt;cell_group&gt; to the cell server you are patching as below</p><p>cell_node_1</p><p>cell_node_2</p><p>cell_node_3</p><p>cell_node_4</p><p>cell_node_5</p><p>cell_node_6</p><p>cell_node_7</p><p>Example : ./patchmgr -cells cell_node_1 -patch_check_prereq -rolling</p><p>Step 6: Patch the cell nodes</p><p>#cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>dcli -l root -g &lt;cell_group&gt; imageinfo</p><p>nohup ./patchmgr -cells &lt;cell_group&gt; -patch -rolling &amp;</p><p>Step 7:To Check Progress of Image Upgrade</p><p>Monitor the patch progress</p><p>Monitor the ILOM console for each cell being patched. You may want to download the ilom-login.sh script from note 1616791.1 for assisting in logging into the iloms.</p><p>cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>tail -f nohup.out</p><p>Step 8: Post Patch Space Cleanup</p><p>Cleanup space</p><p>./patchmgr -cells &lt;cell_group&gt; -cleanup</p><p>Step 9:</p><p>Post Image Upgrade Validations</p><p>==============================</p><p>Post Checks</p><p>dcli -l root -g &lt;cell_group&gt; imageinfo -version</p><p>dcli -l root -g &lt;cell_group&gt; imageinfo -status</p><p>dcli -l root -g &lt;cell_group&gt; “uname -r”</p><p>dcli -l root -g &lt;cell_group&gt; cellcli -e list cell</p><p>dcli -l root -g &lt;cell_group&gt; /opt/oracle.cellos/CheckHWnFWProfile</p><p>Also in post check — Verify grid disk status:</p><p>(a) Verify all grid disks have been successfully put online using the following command:</p><p>dcli -l root -g cell_group cellcli -e list griddisk attributes name, asmmodestatus</p><p>[root@abcxyzadm01 patch_PATCHNUMBER]# dcli -l root -g &lt;cell_group&gt; cellcli -e list griddisk attributes name, asmmodestatus</p><p>xyzcel07: DATA_DG_CD_00_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_01_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_02_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_03_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_04_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_05_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_06_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_07_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_08_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_09_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_10_xyzcel07 ONLINE</p><p>xyzcel07: DATA_DG_CD_11_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_02_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_03_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_04_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_05_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_06_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_07_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_08_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_09_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_10_xyzcel07 ONLINE</p><p>xyzcel07: DBFS_DG_CD_11_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_00_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_01_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_02_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_03_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_04_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_05_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_06_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_07_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_08_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_09_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_10_xyzcel07 ONLINE</p><p>xyzcel07: RECO_DG_CD_11_xyzcel07 ONLINE</p><p>[root@abcxyzadm01 patch_PATCHNUMBER]#</p><p>(b) Wait until asmmodestatus is ONLINE for all grid disks. Each disk will go to a ‘SYNCING’ state first then ‘ONLINE’. The following is an example of the output:</p><p>DATA_CD_00_xyzcel01 ONLINE</p><p>DATA_CD_01_xyzcel01 SYNCING</p><p>DATA_CD_02_xyzcel01 OFFLINE</p><p>DATA_CD_03_xyzcel01 OFFLINE</p><p>DATA_CD_04_xyzcel01 OFFLINE</p><p>DATA_CD_05_xyzcel01 OFFLINE</p><p>DATA_CD_06_xyzcel01 OFFLINE</p><p>DATA_CD_07_xyzcel01 OFFLINE</p><p>DATA_CD_08_xyzcel01 OFFLINE</p><p>DATA_CD_09_xyzcel01 OFFLINE</p><p>DATA_CD_10_xyzcel01 OFFLINE</p><p>DATA_CD_11_xyzcel01 OFFLINE</p><p>© Oracle ASM synchronization is only complete when all grid disks show asmmodestatus=ONLINE.</p><p>( Please note: this operation uses Fast Mirror Resync operation — which does not trigger an ASM rebalance. The Resync operation restores only the extents that would have been written while the disk was offline.)</p><p>Note: In above command change the &lt;cell_group&gt; to the cell server you are patching as below</p><p>cell_node_1</p><p>cell_node_2</p><p>cell_node_3</p><p>cell_node_4</p><p>cell_node_5</p><p>cell_node_6</p><p>cell_node_7</p><p>Step 10 : Post Execution After Validations of Image Upgrade</p><p>1. Change disk_repair_time back to original value</p><p>select dg.name,a.value from v$asm_diskgroup dg, v$asm_attribute a where dg.group_number=a.group_number and a.name=’disk_repair_time’;</p><p>sqlplus / as sysasm</p><p>select dg.name,a.value from v$asm_diskgroup dg, v$asm_attribute a where dg.group_number=a.group_number and a.name=’disk_repair_time’;</p><p>NAME VALUE</p><p>— — — — — — — — — — — — — — — — — — — — —</p><p>DATA_DG 8.5h</p><p>DBFS_DG 8.5h</p><p>RECO_DG 8.5h</p><p>Reset the repair time to the original value if it was changed at the start of patching. Replace &lt;diskgroup_name&gt; in the following statement to adjust. alter diskgroup ‘&lt;diskgroup_name&gt;’ set attribute ‘disk_repair_time’=’&lt;original value&gt;’;</p><p>alter diskgroup ‘&lt;diskgroup_name&gt;’ set attribute ‘disk_repair_time’=’3.6h’;</p><p>Repeat the above statement for each diskgroup as below</p><p>alter diskgroup DATA_DG set attribute ‘disk_repair_time’=’3.6h’;</p><p>alter diskgroup DBFS_DG set attribute ‘disk_repair_time’=’3.6h’;</p><p>alter diskgroup RECO_DG set attribute ‘disk_repair_time’=3.6h’;</p><p>Also put back the rebalance power to 2</p><p>alter diskgroup RECO_DG rebalance power 2;</p><p>alter diskgroup DATA_DG rebalance power 2;</p><p>alter diskgroup DBFS_DG rebalance power 2;</p><p>Step 11: Known Issues(In case Image Upgrade Fails)</p><p>Additional checks (if there were problems)</p><p>cd /u01/exa_img_upg/CELL/patch_PATCHNUMBER</p><p>cat patchmgr.stdout</p><p>cat _wip_stdout file</p><p>ssh &lt;cell-node&gt;</p><p>cd /var/log/cellos</p><p>grep -i ‘fail’ validations.log</p><p>grep -i ‘fail’ vldrun*.log</p><p>cat validations.log</p><p>cat vldrun.upgrade_reimage_boot.log</p><p>cat vldrun.first_upgrade_boot.log</p><p>cat CheckHWnFWProfile.log</p><p>cat cell.bin.install.log</p><p>cat cellFirstboot.log</p><p>cat exachkcfg.log</p><p>cat patch.out.place.sh.log</p><p>cat install.sh.log</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</p><p>Rolling Back Successfully Patched Exadata Cells</p><p>(This section describes how to roll back successfully patched Exadata Cells. Cells with incomplete or failed patching cannot be rolled back.)</p><p>Do not run more than one instance of the patchmgr utility at a time in the deployment.</p><p>Check the prerequisites using the following command:</p><p>./patchmgr -cells cell_group -rollback_check_prereq [-rolling]</p><p>Perform the rollback using the following command:</p><p>./patchmgr -cells cell_group –rollback [-rolling]</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/3004154036797623867?hl=en#">compute node image upgrade</a>.</p><p>Click on to for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/3004154036797623867?hl=en#">Switch Firmware upgrade</a>.</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/3004154036797623867?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76f1248b8f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cell Node Reboot Steps Without Affecting ASM]]></title>
            <link>https://medium.com/@alldatabase.solutions/cell-node-reboot-steps-without-affecting-asm-5c50023c534f?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c50023c534f</guid>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Sun, 10 Sep 2023 04:24:40 GMT</pubDate>
            <atom:updated>2023-09-10T04:24:40.302Z</atom:updated>
            <content:encoded><![CDATA[<p>For Exadata DMA it’s a regular activity to restart cell node to resolve some issue or for maintenance activity. Below are the steps can be followed to reboot cell node without affecting ASM.</p><p>Step 1: Check the disk_repair_time is set to 8.5 hours for all mounted disk groups in the Oracle ASM instance and if not set the same from above steps Note: We have just set it to 8.5 hours from previous steps.</p><p>sqlplus / as sysasm</p><p>select dg.name,a.value from v$asm_diskgroup dg, v$asm_attribute a where dg.group_number=a.group_number and a.name=’disk_repair_time’;</p><p>Step 2: Next we need to check if ASM will be OK if the grid disks go OFFLINE. The following command should return ‘Yes’ for the grid disks.</p><p>ssh &lt;Cell_Node&gt;</p><p>cellcli -e list griddisk attributes name,asmmodestatus,asmdeactivationoutcome</p><p>Note : double check you are on the correct cell which you are going for the reboot.</p><p>Step 3: If all the disks return asmdeactivationoutcome=’Yes’, then only further proceed to next step</p><p>Step 4: Run cellcli command to Inactivate all grid disks on the cell you wish to power down/reboot:</p><p>cellcli -e list griddisk</p><p>cellcli -e alter griddisk all inactive</p><p>Note: * Please note — This action could take 10 minutes or longer depending on activity. It is very important to make sure you were able to offline all the disks successfully before shutting down the cell services. Inactivating the grid disks will automatically OFFLINE the disks in the ASM instance.</p><p>Step 5: Confirm that the griddisks are now offline by performing the following actions:</p><p>(a) Execute the command below and the output should show either asmmodestatus=OFFLINE or asmmodestatus=UNUSED and asmdeactivationoutcome=Yes for all griddisks once the disks are offline in ASM. Only then is it safe to proceed with shutting down or restarting the cell:</p><p>cellcli -e list griddisk attributes name,asmmodestatus,asmdeactivationoutcome</p><p>( there has also been a reported case of asmmodestatus= OFFLINE: Means Oracle ASM has taken this grid disk offline. This status is also fine and can proceed with remaining instructions)</p><p>(b) List the griddisks to confirm all now show inactive:</p><p>cellcli -e list griddisk</p><p>Step 6: We can now reboot the cell, Double check above steps are taken care.</p><p>#hostname</p><p>#reboot</p><p>or</p><p>#shutdown -F -r now</p><p>Step 7: Once the cell comes back online — We will need to reactive the griddisks:</p><p>cellcli -e alter griddisk all active</p><p>Step 8: Issue the command below and all disks should show ‘active’:</p><p>cellcli -e list griddisk</p><p>Step 9: Verify grid disk status:</p><p>(a) Verify all grid disks have been successfully put online using the following command:</p><p>cellcli -e list griddisk attributes name, asmmodestatus</p><p>(b) Wait until asmmodestatus is ONLINE for all grid disks. Each disk will go to a ‘SYNCING’ state first then ‘ONLINE’. The following is an example of the output:</p><p>DATA_CD_00_xyzcel01 ONLINE &lt;&lt;=========</p><p>DATA_CD_01_xyzcel01 SYNCING &lt;&lt;========</p><p>DATA_CD_02_xyzcel01 OFFLINE &lt;&lt;========</p><p>DATA_CD_03_xyzcel01 OFFLINE</p><p>DATA_CD_04_xyzcel01 OFFLINE</p><p>DATA_CD_05_xyzcel01 OFFLINE</p><p>DATA_CD_06_xyzcel01 OFFLINE</p><p>DATA_CD_07_xyzcel01 OFFLINE</p><p>DATA_CD_08_xyzcel01 OFFLINE</p><p>DATA_CD_09_xyzcel01 OFFLINE</p><p>DATA_CD_10_xyzcel01 OFFLINE</p><p>DATA_CD_11_xyzcel01 OFFLINE</p><p>© Oracle ASM synchronization is only complete when all grid disks show asmmodestatus=ONLINE.</p><p>(Please note: this operation uses Fast Mirror Resync operation — which does not trigger an ASM rebalance. The Resync operation restores only the extents that would have been written while the disk was offline.)</p><p>We will get output as below</p><p>[root@xyzcel07 ~]# cellcli -e list griddisk attributes name, asmmodestatus</p><p>DATA_DG_CD_00_xyzcel07 ONLINE</p><p>DATA_DG_CD_01_xyzcel07 ONLINE</p><p>DATA_DG_CD_02_xyzcel07 ONLINE</p><p>DATA_DG_CD_03_xyzcel07 ONLINE</p><p>DATA_DG_CD_04_xyzcel07 ONLINE</p><p>DATA_DG_CD_05_xyzcel07 ONLINE</p><p>DATA_DG_CD_06_xyzcel07 ONLINE</p><p>DATA_DG_CD_07_xyzcel07 ONLINE</p><p>DATA_DG_CD_08_xyzcel07 ONLINE</p><p>DATA_DG_CD_09_xyzcel07 ONLINE</p><p>DATA_DG_CD_10_xyzcel07 ONLINE</p><p>DATA_DG_CD_11_xyzcel07 ONLINE</p><p>DBFS_DG_CD_02_xyzcel07 ONLINE</p><p>DBFS_DG_CD_03_xyzcel07 ONLINE</p><p>DBFS_DG_CD_04_xyzcel07 ONLINE</p><p>DBFS_DG_CD_05_xyzcel07 ONLINE</p><p>DBFS_DG_CD_06_xyzcel07 ONLINE</p><p>DBFS_DG_CD_07_xyzcel07 ONLINE</p><p>DBFS_DG_CD_08_xyzcel07 ONLINE</p><p>DBFS_DG_CD_09_xyzcel07 ONLINE</p><p>DBFS_DG_CD_10_xyzcel07 ONLINE</p><p>DBFS_DG_CD_11_xyzcel07 ONLINE</p><p>RECO_DG_CD_00_xyzcel07 ONLINE</p><p>RECO_DG_CD_01_xyzcel07 ONLINE</p><p>RECO_DG_CD_02_xyzcel07 ONLINE</p><p>RECO_DG_CD_03_xyzcel07 ONLINE</p><p>RECO_DG_CD_04_xyzcel07 ONLINE</p><p>RECO_DG_CD_05_xyzcel07 ONLINE</p><p>RECO_DG_CD_06_xyzcel07 ONLINE</p><p>RECO_DG_CD_07_xyzcel07 ONLINE</p><p>RECO_DG_CD_08_xyzcel07 ONLINE</p><p>RECO_DG_CD_09_xyzcel07 ONLINE</p><p>RECO_DG_CD_10_xyzcel07 ONLINE</p><p>RECO_DG_CD_11_xyzcel07 ONLINE</p><p>[root@xyzcel07 ~]#</p><p>Step10: Cell Node Reboot Steps Without Affecting ASM completed here.</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/577500470085038093?hl=en#">Exadata</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c50023c534f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transport tablespace is a feature of oracle database which is used to migrate application data…]]></title>
            <link>https://medium.com/@alldatabase.solutions/transport-tablespace-is-a-feature-of-oracle-database-which-is-used-to-migrate-application-data-5e5aba90cc82?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e5aba90cc82</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 23:13:13 GMT</pubDate>
            <atom:updated>2023-09-02T23:13:13.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle Transport Tablespace</h3><p>Transport tablespace is a feature of oracle database which is used to migrate application data from database to another database.</p><p><a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5728399157906200226?hl=en#">Transportabletablespace</a> is a much-awaited new feature available in Oracle 8.1.5. This feature allows users to export the metadata of the tablespace instead of the data in the tablespace. By doing so, the consistent backup of the tablespace concerned could be transferred to the desired location and straightaway plugged in by importing the meta data instead of importing the whole data. This feature is very useful for data warehousing/applications which needs data to be distributed to various places. Using this feature, we can reduce the time required to export import the data. Transportable tablespace can also be used with <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5728399157906200226?hl=en#">RMAN</a>, TSPITR. The examples given in this note are from NT. But the steps are identical even in Windows NT like any other Oracle Operations.</p><h3>RESTRICTIONS</h3><p>1. Operating system and processor type must be the same at source and target database</p><p>2. Database block size must be the same for the source and target database</p><p>3. <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5728399157906200226?hl=en#">Characterset</a> of the source and the target must be the same</p><p>4. Users whose default tablespace is getting exported must exist in the target database before importing</p><p>5. Target database must not have tablespace of the same name</p><p>6. Oracle versions in source and target must be 8.1.x and above</p><p>7. Snapshot/replication, function-based indexes, Scoped REFs, domain indexes, 8.0-compatible advanced queues with multiple recipients are not supported</p><p>8. The tablespace must be self-contained to ensure that the table is complete in case of partitioning.</p><p>SETUP</p><p>The required scripts for transportable tablespaces are run by catproc.sql itself. Check that DBMS_PLUGTS and DBMS_TTS are valid. If not run the following scripts</p><p>$ORACLE_HOME/rdbms/admin/catplug.sql</p><p>$ORACLE_HOME/rdbms/admin/dbmsplts.sql</p><p>$ORACLE_HOME/rdbms/admin/plvtplts.plb</p><p>as ‘SYS’ user.</p><p>If you are importing the tablespace as a user other than ‘SYS’, create a public synonym for SYS.DBMS_PLUGTS as DBMS_PLUGTS else you would get the errors similar to the following</p><p>import done in US7ASCII <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5728399157906200226?hl=en#">character</a> set and US7ASCII NCHAR character set</p><p>IMP-00003: ORACLE error 6550 encountered</p><p>ORA-06550: line 1, column 7:</p><p>PLS-00201: identifier ‘DBMS_PLUGTS.NEWTABLESPACE’ must be declared</p><p>ORA-06550: line 1, column 7:</p><p>PL/SQL: Statement ignored</p><p>IMP-00000: Import terminated unsuccessfully</p><p>The user should also have dba privilege.</p><p>Below are the steps to migrate tablespace.</p><p>1) Violation check</p><p>execute dbms_tts.transport_set_check(‘data_test,data_INDEX’,TRUE);</p><p>Made the tablespace READ only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*lMNdZyljCscvNr5g.jpg" /></figure><p>2) Export the meta data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NbB2LULc2TNsjPxm.png" /></figure><p>3) Copy Datafile from Source database to target database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/0*S0siGdb5IQ8Ey98-.png" /></figure><p>4) Import metadata to target database along with datafiles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FvqDTYrSidTcSSae.png" /></figure><p>5) Make Tablespace Read Write.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*ufERCl5Kzi8Jt7H_.jpg" /></figure><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/5728399157906200226?hl=en#">Migration</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e5aba90cc82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[For Oracle DBA database migration is common activity in day-to-day activity.]]></title>
            <link>https://medium.com/@alldatabase.solutions/for-oracle-dba-database-migration-is-common-activity-in-day-to-day-activity-f7324b7de561?source=rss-609338da3c18------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7324b7de561</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[All database Solutions]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 07:00:14 GMT</pubDate>
            <atom:updated>2023-07-13T07:00:14.999Z</atom:updated>
            <content:encoded><![CDATA[<h3>Transport Tablespace Migration with Zero Downtime</h3><p>For Oracle DBA database <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">migration</a> is common activity in day-to-day activity. Sometimes We need to migrate only one application data in the database. Though we can so such migration with <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">expdp/impdp</a> but sometimes we have a requirement of migrating data with low or no downtime. That’s where Transport tablespace with zero downtime come into picture.</p><p>In this blog we will show how we can perform the migration of tablespace with zero downtime.</p><p>1) Perform the integrity check for tablespcae</p><p>execute dbms_tts.transport_set_check(‘CON_RPT_DATA,CON_RPT_INDEX’,TRUE);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*6mvHydpeWb-LgeGN.png" /></figure><p>Make sure there is no violations.</p><p>2) In order to start actual migration, we need to create auxillary database. For that we need to create auxialiary database parameter file. (Remember <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">DBNAME </a>can be same as source, but unique name for DB needs to be different)</p><p>cat auxinst.ora</p><p>db_name=TEST3BD</p><p>compatible=11.2.0.4.0</p><p>db_unique_name=PERCTEST</p><p>db_block_size=8192</p><p>db_files=200</p><p>sga_target=2G</p><p>shared_pool_size=150M</p><p>large_pool_size=10M</p><p>db_create_file_dest=’/zfssa/backup2/TEST3BD/TTS’</p><p>3) Next step is to set the auxiliary instance parameter file in <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">RMAN</a></p><p>Set the env for source</p><p>Connect to RMAN as</p><p>rman target /</p><p>show all;</p><p>CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ‘/zfssa/backup2/TEST3BD/TTS’;</p><p>Show all</p><p>After work is finished — change the configuration to default –</p><p>Note — CONFIGURE CHANNEL DEVICE TYPE DISK CLEAR</p><p>Set auxiliary instance parameter file to ‘/zfssa/backup2/TEST3BD/TTS/tmp/auxinst.ora’</p><p>Create a physical directory auxdest as</p><p>mkdir –p /zfssa/backup2/TEST3BD/TTS/auxdest</p><p>4) Create Auxiliary instance</p><p>Run the command to create auxiliary instance for CON_RPT_DATA and CON_RPT_INDEX as below:</p><p>RMAN&gt; transport tablespace CON_RPT_DATA, CON_RPT_INDEX tablespace destination ‘/zfssa/backup2/TEST3BD/TTS/auxdest’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/0*98QvfGFPoMNV2Kit.png" /></figure><p>Here are the steps RMAN will take to do so:</p><p>1. RMAN connects to the source-database</p><p>2. RMAN creates an AUXILIARY instance and an AUXILIARY database which constists of a SYSTEM- and an <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">UNDO-tablespace</a> and the tablespace(s) we want to export. For this RMAN uses a backupset of the source database.</p><p>3. <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">RMAN recovers</a> the AUXILIARY database to the desired point in time</p><p>4. RMAN uses export-datapump (expdp) to create a dumpfile-set:</p><p>this consists of:</p><p>- the the datafiles which represent the transportable-tablespace-set,</p><p>- the dumpfile of the export con taining the metadata of the tablespace-set</p><p>- a sql-script which can be used to import the metadata into the target system</p><p>5. RMAN removes the AUXILIARY instance from the host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/0*Ar82vTye73hDSHzF.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*NZGDqMq1muyip7bm.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*UV8yzMHrlT3wenSK.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/0*MxxShnhK-3J452-d.png" /></figure><p>Notice the SCN number here , if you need it up to which time it take data from source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*cqJSkUFB8KLEQ5FF.png" /></figure><p>Taking meta export dump for CON_RPT_DATA and CON_RPT_INDEX</p><p>Created the impdp script as below to run in target</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*K9B8yFAf9VQGr1u6.png" /></figure><p>At last, it deletes the auxiliary instance</p><p>5)Import the metadata into target database.</p><p>Create a DBA DIRECTORY for import as below in the target where you need to run the import</p><p>Set the env for Target <br>Sqlplus ‘/as sysdba’</p><p>Create or replace dumpdir as ‘/zfssa/backup2/TEST3BD/TTS’ <br>Note — Path for directory is where your dumpfile was created from auxiliary instance</p><p>Now you are all set to run the import</p><p>Set the env for target</p><p>Before starting the import, make sure you set the even in the spfile of target</p><p>*. event=’10298 trace name context forever, level 32&#39;</p><p>SQL&gt; alter system set events ‘10298 trace name context forever,level 32’;</p><p>System altered.</p><p>impdp system/&lt;password&gt; directory=datapumpdir dumpfile= ‘dmpfile.dmp’ transport_datafiles= /zfssa/backup2/TEST3BD/TTS/o1_mf_con_rpt__bkc9yvp9_.dbf, /zfssa/backup2/TEST3BD/TTS/o1_mf_con_rpt__bkcbpgsj_.dbf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/0*H_CWoUOQ6OP1Asli.png" /></figure><p>6)After import is completed — Need to move datafiles to ASM.</p><p>Make the tablespace READ WRITE first</p><p>Set the env for taget</p><p>Sqlplus ‘/as sysdba’</p><p>Alter tablespace con_rpt_data read write;</p><p>Alter tablespace con_rpt_index read write;</p><p>select tablespace_name , status from dba_tablespaces where tablespace_name in (‘CON_RPT_DATA’,’CON_RPT_INDEX’);</p><p>Now even though we need to move the data file and rename the datafiles for tablespace</p><p>Alter tablespace con_rpt_data offline</p><p>Alter tablespace con_rpt_index offline;</p><p>Select file_name from dba_data_files where tablespace_name in (‘CON_RPT_DATA’,’CON_RPT_INDEX’);</p><p>Set the env for target</p><p>Rman target /</p><p>Copy datafile ‘&lt; path of the datafile from zfssa &gt;’ to ‘+DATA’; ##### FOR CON_RPT_DATA</p><p>Copy datafile ‘&lt; path of the datafile from zfssa &gt;’ to ‘+DATA’; ##### FOR CON_RPT_INDEX</p><p>Now rename all the files , which you copied as below</p><p>SQL&gt; alter database rename file ‘&lt;/zfssa location of the file&gt; ‘to ‘+DATA/TEST4BD/datafile/&lt;actual_file_name&gt;’</p><p>Cross check that files are in ASM</p><p>Select file_name from dba_data_files where tablespace_name in (‘CON_RPT_DATA’,’CON_RPT_INDEX’);</p><p>Once all looks good — do the below</p><p>In the target again, it is time to make the tablespace online and check, validate the objects</p><p>Alter tablespace con_rpt_data online</p><p>Alter tablespace con_rpt_index online;</p><p>Validate all is good in target</p><p>==========================================================</p><p>Please check our other blogs for <a href="https://www.blogger.com/blog/post/edit/2639749765266288401/7764555846667286090?hl=en#">Migration</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7324b7de561" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>