Quantcast
Channel: Doyensys Allappsdba Blog..
Browsing all 1640 articles
Browse latest View live

Script to delete RMAN backupsets older than a specified number of days

DAYSTOKEEP=60# -- Do not change anything below this line ---------------------------CMDFILE=/tmp/rmanpurge$$.rcvLOGFILE=/tmp/rmanprige$$.logif [ ! -x $ORACLE_HOME/bin/rman ]; then echo "ERROR: RMAN not...

View Article


Script to know the audit information

conn / as sysdbatti "Auditing Initialisation Parameters:"select name || '=' || value PARAMETERfrom sys.v_$parameter where name like '%audit%'/tti "Statement Audits Enabled on this Database"column...

View Article


Script to analyze all table and index partitions individually

set feed off echo off head off trimspool on line 500spool /tmp/analyze$$.sqlselect 'ANALYZE TABLE '||table_owner||'.'||table_name||' partition ('|| partition_name||') estimate statistics;'from...

View Article

Script to determine the high water mark of tables

set verify offcolumn owner format a10column alcblks heading 'Allocated|Blocks' just ccolumn usdblks heading 'Used|Blocks' just ccolumn hgwtr heading 'High|Water' just cbreak on owner skip pageselect...

View Article

Script to get the details of Index fragmentation of a schema

prompt -- Drop and create temporary table to hold stats...drop table my_index_stats/create table my_index_stats ( index_name varchar2(30), height number(8), del_lf_rows number(8), distinct_keys...

View Article


Script to copy table from one database to another database

-- STEPS:---- Disable constraints-- Disable triggers-- Copy-- Enable constraints-- Enable triggersSET SERVEROUTPUT ONPROMPT Enter the table's name you want to copyDEFINE tname =...

View Article

Script to get explain plan for the baselines created with SQL_ID

Please run the below query and get the explain plan for which baselines created for an SQL ID.col sql_text for a60 wrapset verify offset pagesize 999set lines 155col username format a13col prog format...

View Article

Steps to upgrade Time Zone version to 26 for 12.2 database.

Please follow the below steps to update the timezone to 26 for 12.2 database.conn / as sysdbapurge dba_recyclebin;EXEC DBMS_APPLICATION_INFO.SET_CLIENT_INFO('upg_tzv') ;alter session set...

View Article


Steps to clone a database through RMAN using standby database.

Please follow the below for database clone through RMAN using standby database.1)  Step 1:-------------------a) Cancel the recovery in CTL DR on dbprod01.b) Open the database in read only mode. - alter...

View Article


Article 2

List of hidden parameters in Oracle database:-SET PAUSE ONSET PAUSE 'Press Return to Continue'SET PAGESIZE 60SET LINESIZE 300COLUMN ksppinm FORMAT A50COLUMN ksppstvl FORMAT A50SELECT ksppinm,...

View Article

Image may be NSFW.
Clik here to view.

Terraform : Creating New EC2 instance via Terraform

In this post, We will share - What is Terraform, How to install it, and How to Create EC2 instance via Terraform.What is TerraformTerraform is a tool for building, changing, and versioning...

View Article

Image may be NSFW.
Clik here to view.

Article 0

SYSTEM Tablespace is space increasing Abnormally in 12cSYSTEM tablespace was growing rapidly. We observe that we were not doing much on this database. Only few users were working to test the...

View Article

Image may be NSFW.
Clik here to view.

Article 0

   18c Oracle Database Installation(On-Premise)You have three options to install database; Starting with Oracle Database 18c release.1) Image-based Oracle Database Installation2) RPM-Based Oracle...

View Article


Image may be NSFW.
Clik here to view.

How to Create Oracle Cloud Promotion Account

This post is to create Promotion (trial) account for Oracle public Cloud. 1. Open below link in Web Browser. Enter Valid Email...

View Article

Image may be NSFW.
Clik here to view.

Login to Oracle Cloud .... After Oracle Cloud Promotion Account Creation

This post is in continuation of my previous post.After you created promotion account, you will receive an confirmation email along with credentials from oracle.Login to Oracle Cloud1. Click over the...

View Article


OGG-02538 Cannot unregister REPLICAT REPIR because of the following SQL...

Unregistering an INTEGRATED REPLICAT from an unsupported Oracle database (11.2.0.3)OGG-02538  Cannot unregister REPLICAT REPIR because of the following SQL error: OCI Error ORA-00942: table or view...

View Article

OGG-01172 Discard file (dirrpt/REPTMP.dsc) exceeded max bytes (20000000).

OGG-01172  Discard file (dirrpt/REPTMP.dsc) exceeded max bytes (20000000).One of my replicate got abended due to discard file reach max bytes value.There is two option to resolve this issue.Option :...

View Article


How to apply weblogic bsu patch

step1: Download latest “patch-client-installer310_generic32.jar” from Oracle Support Sitestep2:    Go to “bsu” directory of your WLS Installation:    cd  /opt/app/bea1032/utils/bsustep3:  To apply...

View Article

How to set initial and max heapsize in weblogic

When we create a managed server either on the same machine or on remote machine it gets its initial startup parameters from $DOMAIN_HOME/bin/setDomainEnv.sh/cmd file.By default two parameters are set:...

View Article

Image may be NSFW.
Clik here to view.

how to increase connection timeout in weblogic

We need to follow below steps to set this option : -Dsun.net.client.defaultConnectTimeout=5000) through Weblogic Admin Console.To set this JVM options using the weblogic administration console:1.In the...

View Article
Browsing all 1640 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>