Total Pageviews

Thursday, August 9, 2018

RMAN Full backup script

sql 'alter system archive log current';
sql "alter session set nls_date_format=''dd.mm.yyyy hh24:mi:ss''";
RUN
{
configure controlfile autobackup on;
set command id to 'DB11GDEVOnlineBackupFull';
ALLOCATE CHANNEL c1 DEVICE TYPE disk;
ALLOCATE CHANNEL c2 DEVICE TYPE disk;
ALLOCATE CHANNEL c3 DEVICE TYPE disk;
ALLOCATE CHANNEL c4 DEVICE TYPE disk;
backup AS COMPRESSED BACKUPSET full database tag DB11GDEV_FULL format 'H:\backups\db11gdev\%d_%T_%s_%p_FULL' ;
sql 'alter system archive log current';
backup tag ORCL_ARCHIVE format 'H:\backups\db11gdev\%d_%T_%s_%p_ARCHIVE' archivelog all delete all input ;
backup tag ORCL_CONTROL current controlfile format 'H:\backups\db11gdev\%d_%T_%s_%p_CONTROL';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
}

Wednesday, August 1, 2018

How to resolve "ORA-12754: Feature 'startup' is disabled due to missing capability 'Runtime Environment". in Oracle 18c database

[oracle@0209RUPAV006TVS ~]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 Production on Wed Aug 1 13:50:12 2018
Version 18.1.0.0.0

Copyright (c) 1982, 2017, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORA-12754: Feature 'startup' is disabled due to missing capability 'Runtime Environment'.

For the above issue we have to simply set the _exadata_feature_on=true   in pfile and start the database with this pfile. Below are the content of pfile for reference.




##############################################################################
# Copyright (c) 1991, 2013 by Oracle Corporation
##############################################################################

###########################################
# Cache and I/O
###########################################
db_block_size=8192

###########################################
# Cursors and Library Cache
###########################################
open_cursors=300

###########################################
# Database Identification
###########################################
db_name="test"

###########################################
# File Configuration
###########################################
control_files=("/u01/app/oracle/oradata/TEST/control01.ctl", "/u01/app/oracle/fast_recovery_area/TEST/control02.ctl")
db_recovery_file_dest="/u01/app/oracle/fast_recovery_area/TEST"
db_recovery_file_dest_size=8106m

###########################################
# Miscellaneous
###########################################
compatible=18.0.0
diagnostic_dest=/u01/app/oracle

###########################################
# NLS
###########################################
nls_language="AMERICAN"
nls_territory="AMERICA"

###########################################
# Processes and Sessions
###########################################
processes=300

###########################################
# SGA Memory
###########################################
sga_target=2361m

###########################################
# Security and Auditing
###########################################
audit_file_dest="/u01/app/oracle/admin/test/adump"
audit_trail=db
remote_login_passwordfile=EXCLUSIVE

###########################################
# Shared Server
###########################################
dispatchers="(PROTOCOL=TCP) (SERVICE=testXDB)"

###########################################
# Sort, Hash Joins, Bitmap Indexes
###########################################
pga_aggregate_target=787m

###########################################
# System Managed Undo and Rollback Segments
###########################################
undo_tablespace=UNDOTBS1
_exadata_feature_on=true