الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

كيف يمكن زيادة فى حجم sga

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته
كيف يمكن زيادة فى حجم sga

بتاريخ:

وعليكم السلام ورحمة الله وبركاته

الحجم الحقيقي للSGA هو عبارة عن مجموع احجام مكونات الSGA مثل الShared_Pool والJava_Pool، لكن لا يمكن أن يتجاوز حجم هذه الأجزاء القيمة القصوي للSGA وهي القيمة الموجودة في المتغير SGA_MAX_SIZE


لمعرفة الحجم الحالي للذاكرة SGA

select sum(bytes)/(1024*1024) size_in_mb from v$sgastat



لمعرفة الحجم الأقصي للSGA

SHOW PARAMETER SGA_MAX_SIZE



لتغيير الحجم الاقصي للذاكرة SGA

ALTER SYSTEM SET SGA_MAX_SIZE=VALUE



أما لتغير اجزاء الذاكرة SGA

ALTER SYSTEM SET JAVA_POOL=VALUE



هذا بالطبع إذا كنت تستخدم ملف المتغيرات SPFILE أما إذا كنت تستخدم ملف المتغيرات PFILE فقم بتعديل المتغيرات علي ملف المتغيرات

بتاريخ:
  • كاتب الموضوع

بارك الله فيك ياخى الباشا وجزاك الله خيرا

بتاريخ:
  • كاتب الموضوع

اخى الباشا قمت بتغير الحجم بتاع sga
alter system set sga_max_size=2000M scope=pfile
الى 2000M
وكذلك قمت بتغير الحجم بتاع pga
alter system set pga_aggregate_target = 1000M scope=spfile
الى 1000
وعملت shutdown immediate
ثم عملت startup
SQL> startup
ORA-27100: shared memory realm already exists
الرجاء المساعدة

بتاريخ:

السلام عليكم

ممكن تنبيه بس صغير

تغيير حجم sga شيء كثير حساس لانو بيأثر على اداء الداتابيز كلها ، خاصة اذا كنت بتعمل ع Data base of production

يعني خلي بالك ،
الا اذا كنت بتعمل ع Data base of test فهذا شي تاني

تم تعديل بواسطة rachid_to_dba

بتاريخ:

اخي المنتصر هل حلت المشكلة؟

اذا لم تحل فما هو نظام التشغيل الذي تعمل به قاعدة البيانات؟

بتاريخ:
  • كاتب الموضوع

السلام عليكم
نظام التشغيل الذى تشتغل عليها قاعدة البيانات هو
WINDOWS SERVER 2003

بتاريخ:
  • كاتب الموضوع

شكر على المرور ياخى Ahmed Hamdy
عاملت جميع الاوامر السابقة
ولكن نفس المشكلة
وحاولت فتح قاعدة البيانات باستخدام
pfile
SQL> startup pfile='E:\oracle\product\10.2.0\db_1\dbs\initdw.ora';
ORA-32006: PARALLEL_AUTOMATIC_TUNING initialization parameter has been deprecated
ORA-00371: not enough shared pool memory, should be atleast 87364812 bytes

بتاريخ:

غير البارامتر الخاص ب shared_pool_size فى Pfile الى القيمه المطلوبه
ثم قم بنفس الخطوات مره اخري
وعند النجاح قم بانشاء SPfile from Pfile
فى انتظار ردك

بتاريخ:
  • كاتب الموضوع

اخى Ahmed Hamdy
اين اغير البارامتر الخاص ب shared_pool_size فى Pfile

بتاريخ:

انا لاحظت انك بتستخدم اب PFILE الخاص بالداتاويرهاوس ...فهل هذا هو المطلوب ؟
وان كان هناك خطا ما فى اختيار ال PFILE الصحيح فهتلاقيه فى المسار ده E:\oracle\product\10.2.0\db_1\dbs تحت اسم initDBNAME.ora
لو مش موجود البارامتر ...قم باضافته فى الملف و احفظ واعد المحاوله
تحياتى

بتاريخ:
  • كاتب الموضوع

اين اغير قيمة البارامتر فى هدا الملف
#***********************************************************************
# Example INIT.ORA file for data-warehousing applications
#***********************************************************************
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your data warehousing or
# business intelligence application. The primary purpose of this file
# is to provide a starting point for parameter settings in a
# data-warehouse. This file is designed for release 9.0.
#
# All of the parameters in this file and discussed in more detail
# in the documentation. This file should be used for guidance
# on the setting of parameters, not as a reference for parameters.
#
# 'Data warehousing' is an expansive term. In general, this parameter
# file assumes that a data warehouse is characterized by:
# - end-users execute only queries (rather than updates)
# - end-user queries often examine large amounts of data
# - data-loading and updating is managed in separate operations;
# often, data-modifications occur during batch operations although
# some data warehouses receive new data throughout the day
#
# Some parameter settings are generic to any data-warehouse application.
# Other parameters depend upon the size of the data warehouse; different
# settings are provided for these parameters, for the following categories
# of data warehouses:
# Category Size of raw data CPUs Memory
# DEMO <1GB 1 128MB
# SMALL <100GB 4 ~1GB
# MEDIUM 100-500GB 4-12 4-10GB
# LARGE >500GB 12-16+ >10GB
# 'Raw data' refers to the size of the actual data, and does not
# include index space or temp space.
#
# The uncommented parameters in this init.ora file are configured for
# a 'demo' system. These parameters are suitable for using the 'Sales
# History' Schema (a sample data warehouse schema, which is included
# on the Oracle9i CD), which is used throughout Oracle's documentation
# and training related to data warehousing. Most customers will be
# able to install and run this schema on a single-CPU workstation.
#
# More detailed information on all parameters can be found in the
# in the documentation.
#
# This parameter file provide initial guidelines for the configuration
# parameters of a data warehouse. Using these guidelines, you should
# be able to achieve good performance for a wide variety of data
# warehouse applications. However, further tuning of these parameters
# for a specific application may yield improved performance.
#
# INSTRUCTIONS: Edit this file and the other INIT files at your site,
# either by using the values provided here or by providing your own.
# If you are using Oracle Real Application Clusters, place an IFILE=
# line into each instance-specific INIT file that points at this file.


#***********************************************************************
# Database parameters
#***********************************************************************


# Database blocks should be large in data warehouses. This improves
# performance for operations involving large amounts of data.
db_block_size = 8192

# For a large data warehouse, db_files should be set to a large value.
#db_files = 1000

#***********************************************************************
# Memory parameters
#***********************************************************************

# In a data warehouse, the majority of physical memory will be
# allocated for the one of the following two purposes:
# Runtime memory: used for sorting and hashing data during query processing
# (governed by the parameter pga_aggregate_size)
# Data caching: used to accelerate performance by avoid disk accesses
# (governed by the parameter db_cache_size)
# Additionally, a significant amount of memory may need to be allocated for:
# Shared pool: used for storing shared memory constructs
# (governed by the parameter shared_pool_size)
# Large pool: used during parallel-execution processing
# (governed by the parameter large_pool_size)
#
# Memory is managed globally. The DBA should first determine how much
# memory is available for Oracle to use. Then, the DBA should choose
# memory parameters so that pga_aggregate_size + db_cache_size +
# shared_pool_size + large_pool_size is roughly equal to the amount
# of memory available for the Oracle database.
#
# For example, suppose that a DBA is managing a small data mart. The
# data mart server has 1GB of physical memory. The DBA has determined
# that 500M of memory will be used by the operating system and other
# applications, so that 500M is available for Oracle.
#
# The DBA may choose the following settings:
# shared_pool_size = 50M
# pga_aggregate_size = 200M
# db_cache_size = 200M
# large_pool_size = <default>
#
# The total memory utilization is 450M plus a system-determined value
# for the large pool.
#
# The following sections discuss each of these memory-related
# parameters in more detail. These examples assume that the data
# warehouse server has 1GB, 8GB, and 16GB respectively for small,
# medium, and large configurations.


# Runtime memory (the memory used for sorting and hashing during query
# execution) is automatically and globally managed when the
# pga_aggregate_target parameter is set. For data warehouse workloads
# which involve sorts and joins of large volumes of data, the
# pga_aggregate_target should be set to a large value.
#
# pga_aggregate_target should, in general, be equal to 20-80% of the
# available memory, depending on the workload. The values below assume
# a mixed data-warehouse workload.
#
# This parameters (introduced in Oracle9i) replaces all of the
# following parameters: hash_area_size, sort_area_size,
# create_bitmap_area_size, and bitmap_merge_area_size


pga_aggregate_target = 30M #DEMO
#pga_aggregate_target = 200M #SMALL
#pga_aggregate_target = 3000M #MEDIUM
#pga_aggregate_target = 6000M #LARGE


# The database cache is also a globally-managed portion of memory. The
# database cache should be set to a large value for data warehouse
# workloads which involves short-running queries and/or the access of
# small tables and indexes.
#
# db_cache_size should, in general, be equal to 20-80% of the
# available memory, depending on the workload. The values below assume
# a mixed data-warehouse workload.
#

db_cache_size = 30M #DEMO
#db_cache_size = 200M #SMALL
#db_cache_size = 3000M #MEDIUM
#db_cache_size = 6000M #LARGE


# Shared pool size should be, in general, equal to 5-10% of the
# available memory. Data warehouses typically do not require as much
# memory for shared pool as OLTP systems.

shared_pool_size = 20M #DEMO
#shared_pool_size = 50M #SMALL
#shared_pool_size = 400M #MEDIUM
#shared_pool_size = 800M #LARGE


# The default for large_pool_size should appropriate for most
# environments.
#
# The Large Pool is used for several purposes. In a data warehouse the
# majority of the space in the Large Pool will be used for
# parallel-execution internal message buffers. The amount of memory
# required by parallel-execution is proportional to the product of the
# number of concurrent parallel-execution users and the square of the
# number of CPU's.
#
# The documentation describes in detail how to estimate the default size
# of the Large Pool, and the conditions under which this parameter
# should be set explicitly.
#
# Here are some very general estimates on the amount of memory required
# for the Large Pool based on the number of CPU's:
# 4 cpus: 5M (with parallel_threads_per_cpu = 4)
# 8 cpus: 5M (with parallel_threads_per_cpu = 2)
# 8 cpus: 20M (with parallel_threads_per_cpu = 4)
# 16 cpus: 20M (with parallel_threads_per_cpu = 2)
# 32 cpus: 80M (with parallel_threads_per_cpu = 2)
#
# The Large Pool is only used for parallel-execution message buffers
# when parallel_automatic_tuning is enabled. If
# parallel_automatic_tuning is not utilitized, then parallel-execution
# message buffers are stored in the shared pool, and the
# shared_pool_size parameter should be adjusted appropriately.


#***********************************************************************
# Parallel Execution parameters
#***********************************************************************


# Parallel execution parameters were greatly simplified in Oracle8i.
# Data warehouses developed on older releases of Oracle may use
# different init.ora parameters. While these older parameters continue
# to be supported, these parameters below are recommended for all new
# data warehouses, and should be considered when upgrading data
# warehouses from previous releases.

# Setting parallel_automatic_tuning will result in the database
# configuring itself to support parallel execution.
parallel_automatic_tuning = true

# This parameter determines the default number of parallel execution
# processes. Typically, 2 parallel processes per CPU provides good
# performance. However, for systems with a smaller number of CPUs or
# for systems in which the IO subsystem is slow relative to the the
# CPU's, more parallel processes may be desired and the value of this
# parameter may be increased.
parallel_threads_per_cpu = 4 #SMALL
#parallel_threads_per_cpu = 2 or 4 #MEDIUM
#parallel_threads_per_cpu = 2 #LARGE


#***********************************************************************
# Optimizer and query parameters
#***********************************************************************

# All data warehouses should use the cost-based optimizer. All basic
# data warehouse performance features, such as star-query support,
# hash joins, parallel execution, and bitmap indexes are only
# accessible via the cost-based optimizer.
optimizer_mode = choose

# When using a star schema, set this parameter to true.
star_transformation_enabled = true


#***********************************************************************
# IO parameters
#***********************************************************************

# Multiblock reads allow for the database to retrieve multiple
# database blocks in a single IO. In general, a high multiblock read
# count provides better performance, particularly for operations on
# large volumes of data. Oracle supports IO's up to 1MB on many
# platforms. Disk striping will also affect the value for multiblock
# read count, since the stripe size should ideally be a multiple of
# the IO size.

# If you are gathering optimizer system statistics (see DBMSSTAT.SQL
# for more information), then you should set this parameter to a high
# value.
#db_file_multiblock_read_count = 64

# If you are not gathering optimizer system statistics, then you
# should set this parameter to a lower value.
db_file_multiblock_read_count = 16



#***********************************************************************
# Materialized view parameters
#***********************************************************************

# This parameter enables the use of materialized views for improved
# query performance.
query_rewrite_enabled = true

# This parameter determines the degree to which Oralce enforces
# integrity rules during query rewrite. In most data-warehouse
# environment, 'trusted' is the appropriate setting.
query_rewrite_integrity = trusted



#***********************************************************************
# Compatibility
#***********************************************************************

# When building a new application, both compatibility and
# optimizer_features_enabled should be set to the current release to
# take advantage of all new features. If you are upgrading an existing
# application to Oracle9i, then you may want to consider setting one
# or both of these parameters to an earlier release.
#compatible = 9.0
#optimizer_features_enabled = 9.0


#***********************************************************************
# Other Parameters
#***********************************************************************


# This section lists other parameters that, although not specific
# to data warehousing, are required for any Oracle database. By
# uncommenting these parameters, this parameter file can be used
# as a complete stand-alone init.ora file.

#db_name = MY_DB_NAME

# Define at least two control files by default
#control_files = (ora_control1, ora_control2)

بتاريخ:

Example INIT.ORA file for data-warehousing applications

اخى ليس هذا هو الملف المطلوب ...الملف المطلوب تغييره ستجده كما اوضحت لك سابقا
فرضا اسم الداتابيز عندك orcl ستجده باسم initorcl.ora

بتاريخ:
  • كاتب الموضوع

أخى Ahmed Hamdy
فى المسار التالى
E:\oracle\product\10.2.0\db_1\dbs
يوجد اتنان من الملفات الاول SPFILE
والثانى PFILE
SPFILEGISDB.ORA
والثانى initdw.ORA
اين اغير القيمة البارامتر

بتاريخ:

اخي المنتصر لابد من إنشاء الPFILE من الSPFILE

CREATE PFILE FROM SPFILE



قم بالاتصال بالSqlplus
sqlplus /nolog
conn /as sysdba

بعد ذلك ستجد ملف اسمه initGISDB.ora قم بالتعديل عليه ثم بعد ذلك قم بتشغيل قاعدة البيانات عبر الPFILE الجديد

startup pfile=\path\initGISDB.ora

بتاريخ:

ما اسم الداتابيز تبعك


انت ما رديت علي
اخي ارجو ان تاخذ بعين الاعتبار الملاحظة السابقة

تم تعديل بواسطة rachid_to_dba

بتاريخ:
  • كاتب الموضوع

السلام عليكم
اخى الباشا تم تكوين ملف
pfile
ولكن عند عمل startup pfile
تحدث مشكلة
SQL> create pfile='E:\oracle\product\10.2.0\admin\gisdb\pfile\initGISDB.ora' from spfile='E:\oracle\product\
10.2.0\db_1\dbs\SPFILEGISDB.ORA';

File created.

SQL> startup pfile='E:\oracle\product\10.2.0\admin\gisdb\pfile\initGISDB.ora';
ORA-27100: shared memory realm already exists

بتاريخ:

افتح ملف الPFILE وقم بتعديل حجم الذاكرة للقيم الأولي ثم من خلال الPrompt قم بحذف الService الخاصة بالInstance وقم بإنشائها مره أخري:

c:> oradim -delete -sid <yoursid>


ثم قم بإنشائها مره أخري

c:\> oradim -new -sid <samesid>


ثم قم بتشغيل الInstance عن طريق الPFILE كما فعلت سابقاً

بتاريخ:
  • كاتب الموضوع

شكر لك اخى الباشا لقد تم حل المشكلة وجزاك الله خيرا
واشكر جميع من ساهم معنا فى حل هذة المشكلة

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.