Kepler Technologies

Kepler Technologies Kepler Technologies is a global IT consulting firm. We are Oracle authorized Gold Partner and experts in providing Oracle Solutions and Services.

29/11/2012

Walkin Interview for Fresher Graduates, BBA, MBA Graduate/Management Trainee of 2011/2012/2013 pass-out for Marketing Executive Profile from Nov 30th - Dec 5th,2012 between 11AM - 2PM.

We are looking for Fresher Graduates, BBA, MBA Graduate/Management Trainee of 2011/2012/2013 pass-out for field marketing.

If you are not able to attend walking interview, Please email your updated resume to [email protected]

Job Description:
- Business Development Trainees for IT Training company with its branch in Delhi and Gurgaon with the below responsibilities.

Duties:

1) Doing Field Marketing with Canopies, Enrollment Forms,Mailers etc.

2)Visiting Educational Institutes and Engineering colleges and promoting Company IT training courses on Java, Oracle, Microsoft Technologies.

Job Location : D-71B, Opp. Axis Bank, Malviya Nagar, New Delhi
Contact Nos. : 011-41070037,9891908833, 8506050511/5

Company Profile
Kepler Technologies
www.keplertechnologies.com
Contact :+91-11-41070037, +91-8506-0505-15

29/10/2012

Kepler Technologies is organizing a walking interview for the post of career counselor (preferably female) from 30 Oct to 2 Nov.

Venue:
D71B Malviya Nagar

Opp. Axis Bank

New Delhi 110017
Contact No: 91-11-41070037, 85-06-05-05-12/13/14/15
Job Location:
Malviya Nagar, New Delhi

Job Description:
Business Development Executive/Career Counselor for US Based IT Training company with its branch in Delhi and Gurgaon with the below responsibilities.

You can also refer this job to your friends who might be interested.

Desired Candidate Profile:
Excellent Communication and Convincing skill is must.
Fluency in English is must.
Proficient in creating PowerPoint presentations.
Listening Skill.
Ability to hold a conversation.
Sound Analytical skills.
Smart, Energetic and motivated candidates with good Computer Skills.
Job will be target driven and incentive based with lots of potential and career growth.
Fresher with good communication skill can apply for trainee position.
Job Responsibilities :
Working with USA office on a regular basis and provide daily, weekly and monthly progress.
Promoting the company brand. Working on ideas to generate revenues.
Working with HR of IT Companies to identify their training needs and arrange for Corporate IT training.
Convincing the B.E, B Tech, MCA graduates to join our Job guaranteed IT training courses.
Arranging seminars/web presentations for students/IT professionals about our courses to create awareness and encourage them to join the IT courses.
Working with HR of IT Companies to help them with their Permanent and Temporary Staffing requirements.
Responsible for placement of students in IT Companies.
Keep track of inquiries from various modes like emails, telephone and direct inquiries during exhibition and maintaining the record of the same.
Other routine office work comprising of data entry, research on the Internet, etc

Company Profile
Kepler Technologies
www.keplertechnologies.com
We are an US based IT company with specialization in Oracle, Microsoft, Sun and Red Hat Consulting,Staffing and Training. We are Oracle Certified Gold Partners to offer their product and services. We have offices in Noida and Gurgaon. We provide excellent career growth opportunities to deserving candidates. Please visit our website keplertechnologies.com for more details.

Kepler Technologiesoffers High end technology and Manpower solutions to Individual and Fortune 500 companies. The company’s expertise in consulting, content design, hi-end technology training and assessment helps individuals and corporates to enhance their skill cost effectively and efficiently. It ...

25/07/2012

Soon starting a Office in South Delhi, India

Managing Database Optimizer StatisticsOptimizer statistics are a collection of data that describe more details about the...
20/06/2012

Managing Database Optimizer Statistics

Optimizer statistics are a collection of data that describe more details about the database and the objects in the database. These statistics are used by the query optimizer to choose the best ex*****on plan for each SQL statement. Optimizer statistics include the following:

Table statistics
Number of rows
Number of blocks
Average row length
Table Column statistics
Number of distinct values (NDV) in column
Number of nulls in column
Data distribution (histogram)
Extended statistics
Index statistics
Number of leaf blocks
Levels
Clustering factor
System/OS statistics
I/O performance and utilization
CPU performance and utilization

The optimizer statistics are stored in the data dictionary tables dba_tables, dba_indexes etc

Because the objects in a database can be constantly changing, statistics must be regularly updated so that they accurately describe these database objects. Statistics are maintained automatically by Oracle or you can maintain the optimizer statistics manually using the DBMS_STATS package.

The DBMS_STATS package also provides procedures for managing statistics. You can save and restore copies of statistics. You can export statistics from one system and import those statistics into another system. For example, you could export statistics from a production system to a test system.



Also refer to below url for more tips.

http://www.dba-oracle.com/oracle_tips_dbms_stats1.htm



Gather Schema Stats

begin

dbms_stats.gather_schema_stats(

ownname=> ‘SCOTT’,

estimate_percent=> DBMS_STATS.AUTO_SAMPLE_SIZE,

cascade=> DBMS_STATS.AUTO_CASCADE,

degree=> DBMS_STATS.AUTO_DEGREE,

no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,

granularity=> ‘AUTO’,

method_opt=> ‘FOR ALL COLUMNS SIZE AUTO’);

end;



Gather Table Stats (Capturing table stats automatically captures all its index stats)

begin

dbms_stats.gather_table_stats(

ownname=> ‘SCOTT’,

tabname=> ‘EMP_BIG’ ,

estimate_percent=> DBMS_STATS.AUTO_SAMPLE_SIZE,

cascade=> DBMS_STATS.AUTO_CASCADE,

degree=> 4,

no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,

granularity=> ‘AUTO’,

method_opt=> ‘FOR ALL COLUMNS SIZE AUTO’);

end;



Gather Table Partition Stats

begin

dbms_stats.gather_table_stats(

ownname => ‘SCOTT’,

tabname => ‘EMP_PARTITIONED’,

partname => ‘M20120430′,

estimate_percent=> DBMS_STATS.AUTO_SAMPLE_SIZE,

cascade=> DBMS_STATS.AUTO_CASCADE,

degree=> DBMS_STATS.AUTO_DEGREE,

no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,

granularity=> ‘PARTITION’,

method_opt=> ‘FOR ALL COLUMNS SIZE AUTO’);

end;

Gather Database Stats

begin

dbms_stats.gather_database_stats(

estimate_percent=> DBMS_STATS.AUTO_SAMPLE_SIZE,

cascade=> DBMS_STATS.AUTO_CASCADE,

degree=> DBMS_STATS.AUTO_DEGREE,

no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,

granularity=> ‘AUTO’,

method_opt=> ‘FOR ALL COLUMNS SIZE AUTO’);

end;



Script to find whether Stats are STALE for SCOTT schema

A DBA needs to check whether Stats are STALE when user complains that suddenly the queries or Application started running slow.

Stale stats are the most common reason for queries suddently running slow without any changes to Schema/Tables/Indexes.

SET SERVEROUTPUT ON

DECLARE

ObjList dbms_stats.ObjectTab;

BEGIN

DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>’SCOTT’, objlist=>ObjList, options=>’LIST STALE’);

IF ObjList.FIRST is NOT NULL THEN

FOR i in ObjList.FIRST..ObjList.LAST

LOOP

dbms_output.put_line(ObjList(i).ownname || ‘.’ || ObjList(i).ObjName || ‘ ‘ || ObjList(i).ObjType || ‘ ‘ || ObjList(i).partname);

END LOOP;

ELSE

dbms_output.put_line(‘No Objects with Stale Statistics found’);

END IF;

END;

/

If above PL/SQL block returns that certain tables stats are STALE run the below PL/SQL block to capture the stats to remove STALE stats.

BEGIN

DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>’SCOTT’,options=>’GATHER STALE’);

END;
Automatic Optimizer Statistics Collection

The recommended approach to gathering optimizer statistics is to allow Oracle Database to automatically gather the statistics. Oracle Database gathers optimizer statistics on all database objects automatically and maintains those statistics as an automated maintenance task. The automated maintenance tasks infrastructure (known as AutoTask) schedules tasks to run automatically in Oracle Scheduler windows known as maintenance windows. By default, one window is scheduled for each day of the week.

Automatic optimizer statistics collection gathers optimizer statistics by calling the DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC procedure. The GATHER_DATABASE_STATS_JOB_PROC procedure collects statistics on database objects when the object has no previously gathered statistics or the existing statistics are stale because the underlying object has been modified significantly (more than 10% of the rows).The DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC is an internal procedure, but it operates in a very similar fashion to the DBMS_STATS.GATHER_DATABASE_STATS procedure using the GATHER AUTO option.

The primary difference is that the DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC procedure prioritizes the database objects that require statistics, so that those objects which most need updated statistics are processed first. This ensures that the most-needed statistics are gathered before the maintenance window closes.

Automatic optimizer statistics collection eliminates many of the manual tasks associated with managing the query optimizer, and significantly reduces the risks of generating poor ex*****on plans due to missing or stale statistics.



If for some reason automatic optimizer statistics collection is disabled, you can enable it using the ENABLE procedure in the DBMS_AUTO_TASK_ADMIN package:

BEGIN

DBMS_AUTO_TASK_ADMIN.ENABLE(

client_name => 'auto optimizer stats collection',

operation => NULL,

window_name => NULL);

END;

/

In situations when you want to disable automatic optimizer statistics collection, you can disable it using the DISABLE procedure in the DBMS_AUTO_TASK_ADMIN package:

BEGIN

DBMS_AUTO_TASK_ADMIN.DISABLE(

client_name => 'auto optimizer stats collection',

operation => NULL,

window_name => NULL);

END;

/

Automatic optimizer statistics collection relies on the modification monitoring feature. If this feature is disabled, then the automatic optimizer statistics collection job will not be able to detect stale statistics. This feature is enabled when the STATISTICS_LEVEL parameter is set to TYPICAL or ALL. TYPICAL is the default value.


June 20th, 2012 | Category: Advanced Oracle

Comments are closed.

dbms_stats Oracle SQL performance

08/06/2012

Oracle Network Configuration
Listener is a process which runs on the Oracle Server. This process fulfills connection requests from Clients to connect to the database instance.

By default, the Listener name is LISTENER which runs on port 1521.

A DBA can create multiple listeners for one database. For Example: LISTENER1, LISTENER2, LISTENER_ORA11G etc.

Multiple listeners should run on different ports. For Example: 1521, 1522, 1523 etc

Listener.ora is files that store Listener configuration details.

Tnsnames.ora is file that stores Database addresses and is used mainly by Remote clients/Machines to connect to Oracle Database.

The listener receives a client connection request.
The listener starts a dedicated server process, and the dedicated server inherits the connection request from the listener.
The client is now connected directly to the dedicated server.
Sqlnet.ora is a file that specifies the database domain and naming method used to connect to database.

Oracle Networking Configuration Files

Configuration File Description
listener.ora Located on the database server at the location $ORACLE_HOME/network/admin
Protocol
Host
Port
Database SID or Service Name
tnsnames.ora Required mainly on the client machines at location $ORACLE_HOME/network/adminCan optionally be present on Database Server Machine
sqlnet.ora Located on each client machines and database server computer, this file may include:
Order of naming methods the client should use when resolving a name
Client domain
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
NAMES.DEFAULT_DOMAIN = kepler.com
cman.ora Oracle network configuration manager is an optional component. If a DBA configures it then cman.ora is required.


Sample listener.ora file

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = linux1)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ora11g.kepler.com)
(ORACLE_HOME = /home/oracle/product/11g)
(SID_NAME = ora11g)
)
)

LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = linux1)(PORT = 1522))
)
)
)

SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ora11g.kepler.com)
(ORACLE_HOME = /home/oracle/product/11g)
(SID_NAME = ora11g)
)
)

Sample tnsnames.ora file

ORA11g =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = linux1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORA11g)
)
)

To validate a tns entry use below command:

$ tnsping ora11g

TNS Ping Utility for Linux: Version 10.2.0.4.0 – Production on 22-MAY-2011 17:55:33

Copyright (c) 1997, 2007, Oracle. All rights reserved.

Used parameter files:

/opt/oracle/product/10g/network/admin/sqlnet.ora

Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = linux1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ora11g)))

OK (10 msec)

To validate that listener.ora and tnsnames.ora is configured properly for ora11g database

$ sqlplus scott/tiger@ora11g ( sqlplus username/password@tnsnames )



Commands to Manage Listerner using lsnrctl tool

$ lsnrctl

LSNRCTL for Linux: Version 10.2.0.4.0 – Production on 29-MAY-2012 17:58:30

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Welcome to LSNRCTL, type “help” for information.

LSNRCTL> help

The following operations are available

An asterisk (*) denotes a modifier or extended command:

start stop status

services version reload

save_config trace spawn

change_password quit exit

set* show*

Description of the commands to manage the listener:

start Starts the listener with the name specified, otherwise LISTENER will be used.

Examples :

lsnrctl start

lsnrctl start LISTENER

lsnrctl start LISTENER1

stop Stops the listener.

Examples :

lsnrctl stop

lsnrctl stop LISTENER

lsnrctl stop LISTENER1

status Provides status information about the listener, including start date, uptime, and trace level.

Examples :

lsnrctl status

lsnrctl status LISTENER

lsnrctl status LISTENER1

services Displays each service available, along with the connection history.

Examples :

lsnrctl services

lsnrctl services LISTENER

lsnrctl services LISTENER1

version Displays the version information of the listener.

reload Forces a read of the listener.ora file in order for new settings to take effect without stopping and starting the listener.

save_config Creates a backup of the existing listener.ora file and saves changes to the current version.

trace Sets the trace level to one of the following OFF or 0, USER or 4 , ADMIN or 8, or SUPPORT or 12.

spawn Spawns a program that runs with an alias in the listener.ora file.

change_password Sets a new password for the listener.

quit and exit Exits the listener utility.

set Changes the value of the listener parameter.

Examples :

LSNRCTL> set current_listener LISTENER1

Current Listener is LISTENER1

LSNRCTL>

show Displays current parameter settings

Examples :

LSNRCTL> show current_listener

Current Listener is LISTENER1

07/06/2012

Convert Non RAC to RAC database for 10g/11g/11gr2

In this demo we are converting a Non RAC database dbtest on host rac01 to a RAC database with instance dbtest1 and dbtest2 on host rac01 and rac02 respectively.

1. on the first node rac01

Make a full database backup of the single-instance database before you change anything.

1) Install Oracle Clusterware on all nodes you intend to have as cluster members.

2) If the Non RAC database is running from a Non RAC RDBMS home Install Oracle Database Software with Real Application Clusters option on existing and all new nodes.

2) Configure the cluster listener using netca or manually from new cluster RDBMS Home or Grid Infrastructure home in case of 11gr2. Eventually stop the single instance listeners when they are running on one of the clustered nodes in case they are using the same listener ports. Ideally, use the ‘LISTENER’ as name for that listener.

3) Restore the backup of datafiles, redo logs, control file to a shared storage.

4) Take a backup of original single-instance pfile.

cp /opt/oracle/product/11gr2/dbs/initdbtest.ora to /opt/oracle/product/11gr2/dbs/initdbtest_bkp.ora

vi initdbtest_bkp.ora

Add the following entry in pfile, e.g. for a two node RAC cluster

*.cluster_database = TRUE
*.cluster_database_instances = 2
*.undo_management=AUTO

*.remote_listener=listeners_dbtest for 10g/11gr1

or

*.remote_listener=‘scan-name:1521’ for 11gr2
dbtest1.undo_tablespace= UNDOTBS1 (undo tablespace that already exists)
dbtest1.instance_name=dbtest1
dbtest1.instance_number=1
dbtest1.thread=1
dbtest1.local_listener=listener_rac01

dbtest2.instance_name=dbtest2
dbtest2.instance_number=2
dbtest2.local_listener= listener_rac01
dbtest2.thread=2
dbtest2.undo_tablespace=UNDOTBS2
dbtest2.cluster_database = TRUE
dbtest2.cluster_database_instances = 2
5) change the location of control file in parameter file

local drive to shared cluster file system location

ie control_files=’/opt/oracle/data/control01.ctl’

to ie control_files=’/opt/oracle/data/control01.ctl’

6) create spfile from pfile( spfile should be stored in shared device)

export ORACLE_SID=dbtest1
sqlplus “/ as sysdba”
create spfile=’/opt/oracle/data/dbtest/spfiledbtest.ora’ from pfile=’ /opt/oracle/product/11gr2/dbs/initdbtest_bkp.ora ‘;
exit

7 ) Create the $ORACLE_HOME/dbs/initdbtest1.ora with below entry

spfile= ‘opt/oracle/data/dbtest/spfiledbtest.ora’

8 ) create new password file for dbtest1 instance.

orapwd file=orapwdbtest password=pass12

9) start the database in mount stage

10) Rename the datafile, redo logs to new shared device

alter database rename file ‘’ to ‘

01/06/2012

Overview of Database Backup and Recovery

The focus in Oracle Database backup and recovery is on the physical backup of database files, which permits you to reconstruct your database. The files protected by the backup and recovery facilities built into Oracle Enterprise Manager Database Control (Database Control) include datafiles, control files, server parameter files, and archived redo logs. With these files you can reconstruct your database. The backup mechanisms work at the physical level to protect against file damage, such as the accidental deletion of a datafile or the failure of a disk drive.

Oracle Recovery Manager (RMAN), a command-line and Enterprise Manager-based tool, is the method preferred by Oracle for efficiently backing up and recovering your Oracle database. RMAN is designed to work intimately with the server, providing block-level corruption detection during backup and restore. RMAN optimizes performance and space consumption during backup with file multiplexing and backup set compression, and integrates with leading tape and storage media products.

Logical backups, such as exporting database objects such as tables or tablespaces, are a useful supplement to physical backups, but cannot protect your whole database. An effective backup strategy must be based on physical backups.

The Oracle Database flashback features provide a range of physical and logical data recovery tools as efficient, easy-to-use alternatives to physical and logical backups. The flashback features enable you to reverse the effects of unwanted database changes without restoring datafiles from backup or performing media recovery.

This section introduces the following flashback features:

Oracle Flashback Table, which enables you to revert a table to its contents at a time in the recent past

Oracle Flashback Drop, which enables you to retrieve deleted (dropped) database tables

Oracle Flashback Database, which enables you to revert the entire database to a past point in time

The first two features operate at the logical level, whereas the last feature operates at the physical level. None of the preceding features requires advance preparation such as creating logical exports to allow for retrieval of your lost data. You can use all of the features while your database is available. Oracle Database Backup and Recovery User's Guide discusses the flashback features of Oracle Database at greater length.The Oracle Enterprise Manager physical backup and recovery features are built on the Recovery Manager (RMAN) command-line client. Database Control makes available many of the RMAN features, and provides wizards and automatic strategies to simplify and further automate RMAN-based backup and recovery.

Database Backup and Recovery Concepts

To back up your database means to make copies of your datafiles, control file, and archived redo logs (if your database runs in ARCHIVELOG mode). Restoring a database means copying the physical files that make up the database from a backup medium, typically disk or tape, to their original or to new locations. Database recovery is the process of updating database files restored from a backup with the changes made to the database after the backup, typically using redo log files.

31/05/2012

Alter system commands to modify dynamic and static spfile parameters in spfile, memory or both the places.

This note covers frequently used spfile/init.ora parameters that DBA needs to modify on a regular basis.

SQL> show parameter cache

NAME TYPE VALUE
———————————— ———– ——————————
db_16k_cache_size big integer 0
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 0
db_8k_cache_size big integer 0
db_cache_advice string ON
db_cache_size big integer 0
db_keep_cache_size big integer 0
db_recycle_cache_size big integer 0
db_16k_cache_size big integer 0
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 0
db_8k_cache_size big integer 0
db_cache_advice string ON
db_cache_size big integer 0

Commands to size different Oracle Database Buffer Cache components

alter system set db_cache_advice=off scope=memory;
alter system set db_cache_advice=off scope=spfile;
alter system set db_cache_advice=off;
alter system set db_cache_advice=off sid=’ora11g’;
alter system set db_cache_advice=off scope=both;

alter system set db_cache_advice=on scope=memory;
alter system set db_cache_advice=on scope=spfile;
alter system set db_cache_advice=on;
alter system set db_cache_advice=on scope=both;

SQL> alter system set db_cache_size=200M;
alter system set db_cache_size=200M
*
ERROR at line 1:
ORA-32018: parameter cannot be modified in memory on another instance

SQL> alter system set db_cache_size=200M sid=’ora11g’;

System altered.

SQL> alter system set db_2k_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_4k_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_8k_cache_size=20M sid=’ora11g’;
alter system set db_8k_cache_size=20M sid=’ora11g’
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-00380: cannot specify db_8k_cache_size since 8K is the standard block size

Solution: Since Oracle default block size as specified by db_block_size is 8192 bytes(8K) we can not set the value of db_8k_cache_size. The 8k cache size is already defined by db_cache_size

SQL> show parameter db_block_size

NAME TYPE VALUE
———————————— ———– ——————————
db_block_size integer 8192

SQL> alter system set db_16k_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_32k_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_keep_cache_size=500M sid=’ora11g’;
alter system set db_keep_cache_size=10M sid=’ora11g’
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00384: Insufficient memory to grow cache

Solution: This error came as sga_target or memory_target does not have space left to accomodate increase in db_keep_cache_size by 500M.
Increasing db_keep_cache_size by 10M worked.

Less memory is available to set db_keep_cache_size to trying below with 10 MB and it will work.

SQL> alter system set db_4k_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_keep_cache_size=10M sid=’ora11g’;

System altered.

SQL> alter system set db_recycle_cache_size=10M sid=’ora11g’;

System altered.

LOG_BUFFER

log_buffer is a static parameter. We can change it in spfile only.
Need to start the instance/database to make the log_buffer change applicable to the instance.

SQL> show parameter log_buffer

NAME TYPE VALUE
———————————— ———– ——————————
log_buffer integer 18874368

SQL> alter system set log_buffer=20000000 scope=spfile;

System altered.

SQL> SHUTDOWN IMMEDIATE

SQL> STARTUP

SQL> show parameter log_buffer

NAME TYPE VALUE
———————————— ———– ——————————
log_buffer integer 19996672

PGA_AGGREGATE_TARGET

pga_aggregate_target is Dynamic parameter and the value can be changed in the instance without requiring a restart.

SQL> show parameter pga

NAME TYPE VALUE
———————————— ———– ——————————
pga_aggregate_target big integer 0
SQL>
SQL> alter system set pga_aggregate_target=50M sid=’ora11g’;

System altered.

SQL> show parameter pga

NAME TYPE VALUE
———————————— ———– ——————————
pga_aggregate_target big integer 50M
SQL>

MEMORY_MAX_TARGET(Static)
MEMORY_TARGET(Dynamic and the value must be less then memory_max_target)

SQL> alter system set memory_max_target=2.5G scope=spfile;
alter system set memory_max_target=2.2G scope=spfile
*
ERROR at line 1:
ORA-32005: error while parsing size specification [2.5G]

Solution: Above command does not take memory in decimal, Hence I have used 2500 M instead of 2.5 GB

SQL> alter system set memory_max_target=2500 M scope=spfile;

System altered.

SQL> startup force;
ORACLE instance started.

Total System Global Area 2622255104 bytes
Fixed Size 2216224 bytes
Variable Size 1627393760 bytes
Database Buffers 973078528 bytes
Redo Buffers 19566592 bytes
Database mounted.
Database opened.

SQL> show parameter memory_max

NAME TYPE VALUE
———————————— ———– ——————————
memory_max_target big integer 2512M

SQL> alter system set memory_target=2500 M;
alter system set memory_target=2500 M
*
ERROR at line 1:
ORA-32018: parameter cannot be modified in memory on another instance

Solution: If we are trying to change Memory_target or any other SGA values in RAC Database. We need to specify the SID
using the sid=’ ‘ to resolve the error as mentioned below.

SQL> alter system set memory_target=2500 M sid=’ora11g’;

System altered.

SQL> show parameter memory

NAME TYPE VALUE
———————————— ———– ——————————

memory_max_target big integer 2512M
memory_target big integer 2512M

SESSION and PROCESSES (Both are static parameters and have to use scope=spfile)

Changing sessions and processes Static Parameters

alter system set sessions=300 scope=spfile;

SQL> show parameter process

NAME TYPE VALUE
———————————— ———– ——————————
aq_tm_processes integer 0
cell_offload_processing boolean TRUE
db_writer_processes integer 1
gcs_server_processes integer 2
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 150
SQL>
SQL>
SQL>
SQL> show parameter sessions

NAME TYPE VALUE
———————————— ———– ——————————

sessions integer 248

SQL> alter system set sessions=300;
alter system set sessions=300
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

Solution: sessions is a static parameter. We have to use scope=spfile and bounce the instance to make the changes applicable.

SQL> alter system set sessions=300 scope=spfile;

System altered.

SQL> shutdown immediate;
SQL> startup;

SQL> show parameter sessions

NAME TYPE VALUE
———————————— ———– ——————————

sessions integer 300

SQL> show parameter processes

NAME TYPE VALUE
———————————— ———– ——————————
processes integer 150

SQL> alter system set processes=200 scope=spfile;

System altered.

SQL> shutdown immediate;
SQL> startup;

CONTROL FILE parameters control_file_record_keep_time(Dynamic) and control_files(Static)

SQL> show parameter control

NAME TYPE VALUE
———————————— ———– ——————————
control_file_record_keep_time integer 7
control_files string /home/oracle/oradata/ora11g/control01.ctl, /home/oracle/oradata/ora11g/control02.ctl

SQL>
SQL> alter system set control_file_record_keep_time=15;

System altered.

SQL> alter system set control_files=’/home/oracle/oradata/ora11g/control01.ctl’;
alter system set control_files=’/opt/oracle/oradata/cr9dev/control01.ctl’
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

Solution: control_files is a static parameter. We have to use scope=spfile and bounce the instance to make the changes applicable.

SQL> alter system set control_files=’/opt/oracle/oradata/cr9dev/control01.ctl’ scope=spfile;

System altered.

SQL> startup force;

Address

D 71B Malviya Nagar Opp Axis Bank
Delhi
110017

Telephone

+911141070037

Website

http://www.keplertechnologies.com/

Alerts

Be the first to know and let us send you an email when Kepler Technologies posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Kepler Technologies:

Share